1 |
- import{cs as m,bb as _,am as l,da as E,aR as n,bO as S,de as C,ae as F,cJ as I,cK as U,cr as A,ct as M,_ as T,d as Y,aM as O,ai as L,x as o,cl as z,p as H,W as j,r as b,o as y,G as V,D as B,l as d,m as h,c as $,L as v,a as q,bd as G}from"./index.js";import{a as J}from"./index.26d6ac45.js";import K from"./invoice-modal.3f24f6.js";import W from"./index.2f94a6.js";import Q from"./index.9575df.js";import"./index.bf16817a.js";import"./execl-upload.7c83427b.js";import"./xlsx.ed122d16.js";const X=[{type:"selection",width:40,align:"center",hide:({checkList:e})=>!e.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",width:70,hide:({checkList:e})=>!e.includes("\u5E8F\u53F7\u5217")},{label:"\u5BF9\u8D26\u56DE\u7968\u7533\u8BF7",prop:"hpNo",width:140},{label:"\u5BF9\u8D26\u7F16\u7801",prop:"payNo",width:150},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name"},{label:"\u4E1A\u52A1\u7C7B\u578B",width:95,...m(A,"is_comon")},{label:"\u5356\u51FA\u65B9\u516C\u53F8",prop:"supplierName",width:145,..._("supplierNo","supplierName","\u5356\u51FA\u65B9\u516C\u53F8\u7F16\u7801:")},{label:"\u53D1\u7968\u7A0E\u524D\u91D1\u989D",width:"110px",prop:"inv_subtotal_amount"},{label:"\u53D1\u7968\u7A0E\u540E\u91D1\u989D",width:"110px",prop:"total"},{label:"\u4F9B\u5E94\u5546\u7AEF",prop:"has_account",width:80,...m(M,"has_account")},{label:"\u72B6\u6001",prop:"status",width:120,cellRenderer:({row:e,props:u})=>l(n,{size:u.size},{default:()=>{var t;return(t=E.find(a=>String(e.status)===String(a.value)))==null?void 0:t.label}})},{label:"\u53D1\u7968\u7C7B\u578B",width:185,cellRenderer({row:e}){return l(n,null,{default:()=>{var u;return((u=S.find(({value:t})=>t===e.invoiceType))==null?void 0:u.label)||"--"}})}},{label:"\u53D1\u7968\u72B6\u6001",width:70,prop:"invStatus_cn"},{label:"\u53D1\u7968\u67E5\u9A8C\u65B9\u5F0F",width:100,cellRenderer:({row:e,props:u})=>l(n,{size:u.size},{default:()=>{var t;return(t=C.find(a=>String(e.checkApi)===a.value))==null?void 0:t.label}})},{label:"\u53D1\u7968\u53F7\u7801",width:110,prop:"invoiceNumber"},{label:"\u53D1\u7968\u4EE3\u7801",width:110,prop:"invoiceCode"},{label:"\u5F00\u7968\u65E5\u671F",prop:"open_time",width:90,formatter:({open_time:e})=>e?F(e).format("YYYY-MM-DD"):""},{label:"\u8D2D\u4E70\u65B9\u62AC\u5934\u72B6\u6001",prop:"seller_check",width:130,cellRenderer:({row:e})=>l(n,null,{default:()=>{var u;return((u=I.find(t=>t.value==e.seller_check+""))==null?void 0:u.label)||"--"}})},{label:"\u9500\u552E\u65B9\u62AC\u5934\u72B6\u6001",prop:"buyer_check",width:130,cellRenderer:({row:e})=>l(n,null,{default:()=>{var u;return((u=U.find(t=>t.value==e.buyer_check+""))==null?void 0:u.label)||"--"}})},{label:"\u4E70\u5165\u65B9\u516C\u53F8",prop:"companyName",width:145,..._("companyNo","companyName","\u4E70\u5165\u65B9\u516C\u53F8\u7F16\u7801:")},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",width:150,formatter:({addtime:e})=>F(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",slot:"operation",width:55}],Z={title:"\u91C7\u8D2D\u56DE\u7968",statusProp:"supplierNo",columns:X,apis:{httpList:e=>J({...e,noRela:!0})},transformCompany:!0,companyProp:"supplierNo"},D={formItems:[{field:"create_timer",type:"date_picker",otherOptions:{type:"daterange",startProp:"start",endProp:"end",startPlaceholder:"\u65B0\u5EFA\u8D77\u59CB\u65F6\u95F4",endPlaceholder:"\u65B0\u5EFA\u7ED3\u675F\u65F6\u95F4"}},{field:"status",type:"select",placeholder:"\u5BA1\u6838\u72B6\u6001",options:E},{field:"companyNo",type:"business-query"},{field:"checkApi",type:"select",placeholder:"\u53D1\u7968\u67E5\u9A8C\u65B9\u5F0F",options:C},{field:"hpNo",type:"input",placeholder:"\u5BF9\u8D26\u56DE\u7968\u7F16\u7801"},{field:"payNo",type:"input",placeholder:"\u5BF9\u8D26\u7F16\u7801"},{field:"apply_name",type:"input",placeholder:"\u7533\u8BF7\u4EBA"},{field:"is_comon",type:"select",placeholder:"\u4E1A\u52A1\u7C7B\u578B",span:4,options:A}]},ee={key:0},ue=Y({__name:"index",setup(e){const u="supplierTicketReturn",t="/InvoiceSales/supplierTicketReturnDetail";O(u),L();const a=o(null),r=z({payNo:"",hpNo:""}),{push:f}=H();j(),o(!1);const g=o(null),N=o(null),w=o(null),s=o({inv_subtotal_amount:"",total:""}),k={pageSearchHook:()=>G(void 0,void 0,D)},R={content:{preview:({hpNo:p})=>f(`${t}?id=${p}`),create:()=>f(t),result:({inv_subtotal_amount:p,total:i})=>{const c=a.value.getBasicParams();r.hpNo=c.hpNo,r.payNo=c.payNo,s.value.inv_subtotal_amount=p,s.value.total=i}}};return(p,i)=>{const c=b("PageContainer"),x=b("PageAuth");return y(),V(x,{pageName:u},{default:B(()=>[d(c,{hooks:k,events:R,contentConfig:h(Z),"search-config":h(D),"get-content-ref":P=>a.value=P},{content_table_header:B(()=>[h(r).payNo||h(r).hpNo?(y(),$("p",ee," \u5408\u8BA1:\u53D1\u7968\u7A0E\u524D\u91D1\u989D:"+v(s.value.inv_subtotal_amount)+",\u4EF7\u7A0E\u5408\u8BA1:"+v(s.value.total),1)):q("v-if",!0)]),_:1},8,["contentConfig","search-config","get-content-ref"]),d(K,{ref_key:"invoiceModalRef",ref:g},null,512),d(W,{ref_key:"execelUploadRef",ref:N},null,512),d(Q,{ref_key:"execelUploadInvRef",ref:w,onOnSuccess:i[0]||(i[0]=()=>a.value.onSearch())},null,512)]),_:1})}}});var ie=T(ue,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/InvoiceSales/supplierTicketReturn/index.vue"]]);export{ie as default};
|