1 |
- import{_ as T,d as O,aP as M,w as f,aL as j,r as c,o as g,G as _,C as i,l as b,u as n,M as L,a as R,aY as V}from"./index.56c69f5a.js";import{h as G}from"./index.273c7a21.js";import{a,r as w}from"./columnRenderHelper.6c05b86e.js";import{h as A,E as C,s as m,e as h,o as x,c as E,d as B}from"./status.2df4810d.js";import I from"./purchase-modal.6878796f.js";import{u as H}from"./use-page-search.27df6d7f.js";import{u as F,w as U}from"./xlsx.ed122d16.js";import"./basic-descriptions.5f176484.js";import"./porder.30193b2b.js";import"./tootip.fe6ea468.js";const W=[{width:40,type:"selection",align:"center",fixed:"left"},{label:"\u91C7\u8D2D\u5355\u7F16\u7801",prop:"sequenceNo",width:"155px"},{label:"\u91C7\u8D2D\u4E3B\u5355\u7F16\u7801",prop:"cxCode",width:"150px"},{label:"\u9500\u552E\u8BA2\u5355\u7F16\u7801",prop:"qrdCode",width:"155px"},{label:"\u4F9B\u5E94\u5546\u7AEF",prop:"has_account",width:80,...a(A,"has_account")},{label:"\u72B6\u6001",prop:"status",width:95,...a(C,"status")},{label:"\u9500\u552E\u5355\u53D1\u8D27\u72B6\u6001",prop:"qrdSend",width:105,...a(m,"qrdSend")},{label:"\u5165\u5E93\u72B6\u6001",prop:"sendStatus",width:95,...a(h,"sendStatus")},{label:"\u4E1A\u52A1\u7C7B\u578B",width:95,...a(x,"is_comon")},{label:"\u8BA2\u5355\u6765\u6E90",prop:"cgdSource",width:95,...a(E,"cgdSource")},{label:"\u5546\u54C1\u6765\u6E90",prop:"cgdType",width:95,...a(B,"cgdType")},{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"pay_type",width:95},{label:"\u5546\u54C1\u7F16\u7801",prop:"goodNo",width:"150px"},{label:"\u5546\u54C1\u540D\u79F0",prop:"goodName",width:"180px"},{label:"\u7A0E\u7387",prop:"tax",width:"45px"},{label:"\u5546\u54C1\u6570\u91CF",prop:"goodNum",width:"80px"},{label:"\u5546\u54C1\u5355\u4EF7",prop:"goodPrice",width:"80px"},{label:"\u5546\u54C1\u603B\u4EF7",prop:"totalPrice",width:"80px"},{label:"\u5356\u51FA\u65B9\u516C\u53F8\u7F16\u7801",prop:"supplierNo",width:"150px",...w("supplierNo","supplierName","\u5356\u51FA\u516C\u53F8\u7F16\u7801:")},{label:"\u5907\u5E93\u5355\u7F16\u7801",prop:"bkCode",width:"150px"},{label:"\u91C7\u8D2D\u5458",prop:"ownerName",width:75},{label:"\u4E70\u5165\u65B9\u516C\u53F8",prop:"companyName",width:"160px",...w("companyNo","companyName","\u4E70\u5165\u516C\u53F8\u7F16\u7801:")},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",width:155},{label:"\u64CD\u4F5C",fixed:"right",width:55,slot:"operation"}],Y={title:"\u91C7\u8D2D\u5355\u7BA1\u7406",columns:W,apis:{httpList:G,httpAdd:!0}},y={formItems:[{field:"group",type_field:"group_type",type:"input_group",otherOptions:{inputGroupOptions:[{value:"sequenceNo",label:"\u91C7\u8D2D\u5355\u7F16\u7801"},{value:"cxCode",label:"\u91C7\u8D2D\u4E3B\u5355\u7F16\u7801"},{value:"qrdCode",label:"\u9500\u552E\u8BA2\u5355\u7F16\u7801"},{value:"goodNo",label:"\u5546\u54C1\u7F16\u7801"},{value:"goodName",label:"\u5546\u54C1\u540D\u79F0"},{value:"bkCode",label:"\u5907\u5E93\u5355\u53F7"},{value:"cgder",label:"\u91C7\u8D2D\u5458\u540D\u79F0"}]}},{field:"supplierNo",type:"supplier-query"},{field:"status",type:"select",placeholder:"\u662F\u5426\u5BF9\u8D26",options:C},{type:"select",field:"is_comon",placeholder:"\u4E1A\u52A1\u7C7B\u578B",options:x},{field:"sendstatus",type:"select",placeholder:"\u72B6\u6001",options:h},{field:"cgdsource",type:"select",placeholder:"\u8BA2\u5355\u6765\u6E90",options:E},{field:"cgdtype",type:"select",placeholder:"\u5546\u54C1\u7C7B\u578B",options:B}]},$={\u91C7\u8D2D\u5355\u7F16\u7801:"",\u91C7\u8D2D\u4E3B\u5355\u7F16\u7801:"",\u9500\u552E\u8BA2\u5355\u7F16\u7801:"",\u4F9B\u5E94\u5546\u7AEF:"",\u72B6\u6001:"",\u9500\u552E\u5355\u53D1\u8D27\u72B6\u6001:"",\u5165\u5E93\u72B6\u6001:"",\u8BA2\u5355\u6765\u6E90:"",\u5546\u54C1\u6765\u6E90:"",\u652F\u4ED8\u65B9\u5F0F:"",\u5546\u54C1\u7F16\u7801:"",\u5546\u54C1\u540D\u79F0:"",\u7A0E\u7387:"",\u5546\u54C1\u6570\u91CF:"",\u5546\u54C1\u5355\u4EF7:"",\u5546\u54C1\u603B\u4EF7:"",\u5356\u51FA\u65B9\u516C\u53F8\u7F16\u7801:"",\u5356\u51FA\u65B9\u516C\u53F8\u540D\u79F0:"",\u5907\u5E93\u5355\u7F16\u7801:"",\u91C7\u8D2D\u5458:"",\u4E70\u5165\u65B9\u516C\u53F8\u7F16\u53F7:"",\u4E70\u5165\u65B9\u516C\u53F8\u540D\u79F0:"",\u521B\u5EFA\u65F6\u95F4:""},z=O({__name:"index",setup(J){const N="porder",v=M(!1),r=f([]),D=f(null),{hasPermissionWithCode:S}=j("porder"),k={pageSearchHook:()=>H(void 0,void 0,y)},P={content:{preview:t=>D.value.onDisplay(t)}};async function q(){if(r.value.length===0){V.warning("\u8BF7\u9009\u62E9\u4E00\u6761\u91C7\u8D2D\u5355");return}const t=$,l="\u91C7\u8D2D\u5355\u5BFC\u51FA",p=[];r.value.forEach(u=>{const e={...t};e.\u91C7\u8D2D\u5355\u7F16\u7801=u.sequenceNo,e.\u91C7\u8D2D\u4E3B\u5355\u7F16\u7801=u.cxCode,e.\u9500\u552E\u8BA2\u5355\u7F16\u7801=u.qrdCode,e.\u4F9B\u5E94\u5546\u7AEF=u.has_account&&(A.find(o=>o.value==u.has_account+"")||{}).label||"",e.\u72B6\u6001=u.status&&(C.find(o=>o.value==u.status+"")||{}).label||"",e.\u9500\u552E\u5355\u53D1\u8D27\u72B6\u6001=u.qrdSend&&(m.find(o=>o.value==u.qrdSend+"")||{}).label||"",e.\u5165\u5E93\u72B6\u6001=u.sendStatus&&(h.find(o=>o.value==u.sendStatus+"")||{}).label||"",e.\u8BA2\u5355\u6765\u6E90=u.cgdSource&&(E.find(o=>o.value==u.cgdSource+"")||{}).label||"",e.\u5546\u54C1\u6765\u6E90=u.cgdType&&(B.find(o=>o.value==u.cgdType+"")||{}).label||"",e.\u652F\u4ED8\u65B9\u5F0F=u.pay_type,e.\u5546\u54C1\u7F16\u7801=u.goodNo,e.\u5546\u54C1\u540D\u79F0=u.goodName,e.\u7A0E\u7387=u.tax,e.\u5546\u54C1\u6570\u91CF=u.goodNum,e.\u5546\u54C1\u5355\u4EF7=u.goodPrice,e.\u5546\u54C1\u603B\u4EF7=u.totalPrice,e.\u5356\u51FA\u65B9\u516C\u53F8\u7F16\u7801=u.supplierNo,e.\u5356\u51FA\u65B9\u516C\u53F8\u540D\u79F0=u.supplierName,e.\u5907\u5E93\u5355\u7F16\u7801=u.bkCode,e.\u91C7\u8D2D\u5458=u.ownerName,e.\u4E70\u5165\u65B9\u516C\u53F8\u7F16\u53F7=u.companyNo,e.\u4E70\u5165\u65B9\u516C\u53F8\u540D\u79F0=u.companyName,e.\u521B\u5EFA\u65F6\u95F4=u.addtime,p.push(e)});const s=F.book_new(),d=F.json_to_sheet(p);F.book_append_sheet(s,d,"sheet"),U(s,`${l}.xlsx`,{bookType:"xlsx"})}return(t,l)=>{const p=c("ElButton"),s=c("PageContainer"),d=c("PageAuth");return g(),_(d,{pageName:N},{default:i(()=>[b(s,{hooks:k,events:P,contentConfig:n(Y),"search-config":n(y),onContentSelectChange:l[0]||(l[0]=u=>r.value=u)},{content_header:i(()=>[n(S)("048")?(g(),_(p,{key:0,type:"primary",onClick:q,loading:n(v)},{default:i(()=>[L("\u5BFC\u51FA")]),_:1},8,["loading"])):R("v-if",!0)]),_:1},8,["contentConfig","search-config"]),b(I,{ref_key:"purchaseModalRef",ref:D},null,512)]),_:1})}}});var pu=T(z,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/purchase/porder/index.vue"]]);export{pu as default};
|