index.9cc3a0.js 4.0 KB

1
  1. import{_ as D,d as y,x as r,r as m,o as A,G as S,D as p,l,m as b,M as f,bd as x,aZ as N,bT as k,b3 as P,bS as R}from"./index.js";import q from"./sheet-modal.1bb9d3.js";import{e as O}from"./export.fc82d641.js";import{c as M,s as g,i as T,r as z}from"./content.config.3f80c9db.js";import $ from"./order-dialog.71c34d.js";import I from"./index.3e38e1.js";import"./sale.ca731a82.js";import"./index.142d2268.js";import"./xlsx.ed122d16.js";import"./search-batch.610119.js";import"./columns.88d7302.js";import"./search-batch-main.5b8e8c.js";import"./search-batch-main.82dc04.js";import"./columns.88d7303.js";import"./search-batch.455058.js";const J=[{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:"\u5E73\u53F0\u8BA2\u5355\u53F7",width:100,prop:"poCode"},{label:"\u5546\u54C1\u540D\u79F0",width:100,prop:"goodName"},{label:"\u5546\u54C1\u7C7B\u578B",width:100,prop:"qrdType_name"},{label:"\u5355\u4EF7",prop:"goodPrice"},{label:"\u6570\u91CF",prop:"goodNum"},{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}],V=y({__name:"index",setup(j){const B="sheetOrderPool",d=r([]),_=r(null),c=r(null),v=r(null),h=r(null),w={pageSearchHook:()=>x(void 0,void 0,g)},C={content:{preview:({sequenceNo:n})=>h.value.onDisplay(n)}};async function F(){if(d.value.length==0){N.error("\u8BF7\u9009\u62E9\u8BA2\u5355\u6570\u636E\uFF01");return}let n=[];d.value.forEach(e=>{var s,i,t,u,E;let o=JSON.parse(JSON.stringify(e));o.qrdType_name=((s=k.find(a=>a.value===e.qrdType))==null?void 0:s.label)||"--",o.sendStatus_name=((i=P.find(a=>a.value===e.sendStatus))==null?void 0:i.label)||"--",o.qrdSource_name=((t=R.find(a=>a.value===e.qrdSource))==null?void 0:t.label)||"--",o.inv_status_name=((u=T.find(a=>a.value===e.inv_status))==null?void 0:u.label)||"--",o.pay_status_name=(E=z.find(a=>a.value===e.pay_status))==null?void 0:E.label,n.push(o)}),O({data:n,type:"front",columns:J})}return(n,e)=>{const o=m("ElButton"),s=m("PageContainer"),i=m("PageAuth");return A(),S(i,{pageName:B},{default:p(()=>[l(s,{hooks:w,events:C,contentConfig:b(M),"search-config":b(g),onContentSelectChange:e[3]||(e[3]=t=>d.value=t),"get-content-ref":t=>_.value=t},{content_header:p(()=>[l(o,{type:"primary",size:"small",onClick:e[0]||(e[0]=t=>{var u;return(u=c.value)==null?void 0:u.show()})},{default:p(()=>[f("C\u7AEF\u8BA2\u5355\u65E0\u7968\u6807\u8BB0")]),_:1}),l(o,{type:"primary",size:"small",onClick:e[1]||(e[1]=t=>{var u;return(u=v.value)==null?void 0:u.show()})},{default:p(()=>[f("\u6279\u91CF\u67E5\u627E\u8BA2\u5355")]),_:1}),l(o,{size:"small",onClick:e[2]||(e[2]=()=>F())},{default:p(()=>[f(" \u8BA2\u5355\u4FE1\u606F\u5BFC\u51FA ")]),_:1})]),_:1},8,["contentConfig","search-config","get-content-ref"]),l($,{ref_key:"orderDialogRef",ref:v},null,512),l(q,{ref_key:"sheetModalRef",ref:h},null,512),l(I,{ref_key:"clinetCDialogRef",ref:c,onReload:e[4]||(e[4]=t=>{var u;return(u=_.value)==null?void 0:u.onSearch()})},null,512)]),_:1})}}});var le=D(V,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/InvoiceSales/sheetOrderPool/index.vue"]]);export{le as default};