import{_ as F,d as D,n as r,r as m,o as y,A,y as p,h as n,i as B,H as f,cC as S,cm as x,dh as N,cs as k,dg as P}from"./index.js";import R from"./sheet-modal.d86662.js";import{e as q}from"./export.97c4d705.js";import{c as O,s as h,i as M,r as T}from"./content.config.5ec63a87.js";import z from"./order-dialog.9cbb26.js";import $ from"./index.954d7b.js";import"./sale.3efcc247.js";import"./index.904472d8.js";import"./xlsx.ed122d16.js";import"./search-batch.226f87.js";import"./columns.88d7302.js";import"./search-batch-main.959db4.js";import"./search-batch-main.d15c05.js";import"./columns.88d7303.js";import"./search-batch.466ca4.js";const H=[{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}],I="sheetOrderPool",J=D({__name:"index",setup(V){const d=r([]),_=r(null),c=r(null),v=r(null),E=r(null),w={pageSearchHook:()=>S(void 0,void 0,h)},b={content:{preview:({sequenceNo:l})=>E.value.onDisplay(l)}};async function C(){if(d.value.length==0){x.error("\u8BF7\u9009\u62E9\u8BA2\u5355\u6570\u636E\uFF01");return}let l=[];d.value.forEach(e=>{var s,i,t,u,g;let o=JSON.parse(JSON.stringify(e));o.qrdType_name=((s=N.find(a=>a.value===e.qrdType))==null?void 0:s.label)||"--",o.sendStatus_name=((i=k.find(a=>a.value===e.sendStatus))==null?void 0:i.label)||"--",o.qrdSource_name=((t=P.find(a=>a.value===e.qrdSource))==null?void 0:t.label)||"--",o.inv_status_name=((u=M.find(a=>a.value===e.inv_status))==null?void 0:u.label)||"--",o.pay_status_name=(g=T.find(a=>a.value===e.pay_status))==null?void 0:g.label,l.push(o)}),q({data:l,type:"front",columns:H})}return(l,e)=>{const o=m("ElButton"),s=m("PageContainer"),i=m("PageAuth");return y(),A(i,{pageName:I},{default:p(()=>[n(s,{hooks:w,events:b,contentConfig:B(O),"search-config":B(h),onContentSelectChange:e[3]||(e[3]=t=>d.value=t),"get-content-ref":t=>_.value=t},{content_header:p(()=>[n(o,{type:"primary",size:"small",onClick:e[0]||(e[0]=t=>{var u;return(u=c.value)==null?void 0:u.show()})},{default:p(()=>e[5]||(e[5]=[f("C\u7AEF\u8BA2\u5355\u65E0\u7968\u6807\u8BB0")])),_:1}),n(o,{type:"primary",size:"small",onClick:e[1]||(e[1]=t=>{var u;return(u=v.value)==null?void 0:u.show()})},{default:p(()=>e[6]||(e[6]=[f("\u6279\u91CF\u67E5\u627E\u8BA2\u5355")])),_:1}),n(o,{size:"small",onClick:e[2]||(e[2]=()=>C())},{default:p(()=>e[7]||(e[7]=[f(" \u8BA2\u5355\u4FE1\u606F\u5BFC\u51FA ")])),_:1})]),_:1},8,["contentConfig","search-config","get-content-ref"]),n(z,{ref_key:"orderDialogRef",ref:v},null,512),n(R,{ref_key:"sheetModalRef",ref:E},null,512),n($,{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 ne=F(J,[["__file","D:/work/jiesuan/settle-vue3/src/views/InvoiceSales/sheetOrderPool/index.vue"]]);export{ne as default};
