index.074dbd.js 3.3 KB

1
  1. import{_ as D,d as F,x as i,r as d,o as C,G as y,D as s,l as n,m as h,M as v,bd as x,aZ as S,bT as A,b3 as N,bS as k}from"./index.js";import P from"./sheet-modal.1bb9d3.js";import{e as q}from"./export.a6a852fc.js";import{c as O,s as E,i as M,r as T}from"./content.config.c50cd212.js";import R from"./order-dialog.71c34d.js";import"./sale.8a4bee70.js";import"./index.d885d00c.js";import"./xlsx.ed122d16.js";import"./search-batch.610119.js";import"./columns.88d7302.js";import"./search-batch-main.5b8e8c.js";const z=[{label:"\u8BA2\u5355\u7F16\u7801",prop:"sequenceNo",fixed:"left",width:150},{label:"\u9500\u552E\u8BA2\u5355\u4E3B\u7F16\u53F7",prop:"cxCode"},{label:"\u5BA2\u6237\u7F16\u7801",prop:"customerNo",width:150},{label:"\u5BA2\u6237\u540D\u79F0",prop:"customerName",minWidth:160},{label:"\u5E73\u53F0\u540D\u79F0",prop:"platName",width:100},{label:"\u5546\u54C1\u7C7B\u578B",width:100,prop:"qrdType_name"},{label:"\u53D1\u8D27\u72B6\u6001",width:100,prop:"sendStatus_name"},{label:"\u8BA2\u5355\u6765\u6E90",width:100,prop:"qrdSource_name"},{label:"\u5F00\u7968\u72B6\u6001",width:100,prop:"inv_status_name"},{label:"\u5DF2\u5F00\u7968",prop:"ainv_fee",width:100},{label:"\u5F00\u7968\u4E2D",prop:"inv_fee",width:100},{label:"\u672A\u5F00\u7968",prop:"winv_fee",width:100},{label:"\u5F00\u7968\u6807\u7B7E\u91D1\u989D",prop:"inv_tag_fee",width:100},{label:"\u56DE\u6B3E\u72B6\u6001",width:100,prop:"pay_status_name"},{label:"\u5DF2\u56DE\u6B3E",prop:"apay_fee",width:100},{label:"\u56DE\u6B3E\u4E2D",prop:"pay_fee",width:100},{label:"\u672A\u56DE\u6B3E",prop:"wpay_fee",width:100},{label:"\u56DE\u6B3E\u6807\u7B7E\u91D1\u989D",prop:"pay_tag_fee",width:100},{label:"\u9500\u552E\u5458",prop:"ownerName",width:70},{label:"\u90E8\u95E8",prop:"department",width:70}],I=F({__name:"index",setup(J){const b="sheetOrderPool",p=i([]),_=i(null),m=i(null),B={pageSearchHook:()=>x(void 0,void 0,E)},w={content:{preview:({sequenceNo:a})=>m.value.onDisplay(a)}};async function g(){if(p.value.length==0){S.error("\u8BF7\u9009\u62E9\u8BA2\u5355\u6570\u636E\uFF01");return}let a=[];p.value.forEach(e=>{var r,l,o,f,c;let u=JSON.parse(JSON.stringify(e));u.qrdType_name=((r=A.find(t=>t.value===e.qrdType))==null?void 0:r.label)||"--",u.sendStatus_name=((l=N.find(t=>t.value===e.sendStatus))==null?void 0:l.label)||"--",u.qrdSource_name=((o=k.find(t=>t.value===e.qrdSource))==null?void 0:o.label)||"--",u.inv_status_name=((f=M.find(t=>t.value===e.inv_status))==null?void 0:f.label)||"--",u.pay_status_name=(c=T.find(t=>t.value===e.pay_status))==null?void 0:c.label,a.push(u)}),q({data:a,type:"front",columns:z})}return(a,e)=>{const u=d("ElButton"),r=d("PageContainer"),l=d("PageAuth");return C(),y(l,{pageName:b},{default:s(()=>[n(r,{hooks:B,events:w,contentConfig:h(O),"search-config":h(E),onContentSelectChange:e[2]||(e[2]=o=>p.value=o)},{content_header:s(()=>[n(u,{type:"primary",size:"small",onClick:e[0]||(e[0]=o=>_.value.show())},{default:s(()=>[v("\u6279\u91CF\u67E5\u627E\u8BA2\u5355")]),_:1}),n(u,{size:"small",onClick:e[1]||(e[1]=()=>g())},{default:s(()=>[v(" \u8BA2\u5355\u4FE1\u606F\u5BFC\u51FA ")]),_:1})]),_:1},8,["contentConfig","search-config"]),n(R,{ref_key:"orderDialogRef",ref:_},null,512),n(P,{ref_key:"sheetModalRef",ref:m},null,512)]),_:1})}}});var X=D(I,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/InvoiceSales/sheetOrderPool/index.vue"]]);export{X as default};