1 |
- import{_ as q,d as T,aP as j,w as f,aL as M,r as c,o as g,G as _,C as F,l as b,u as n,M as O,a as L,aY as R}from"./index.42bf163d.js";import{h as V}from"./index.bdd5698b.js";import{a,r as w}from"./columnRenderHelper.3490fdb2.js";import{m,n as C,s as x,k as h,h as E,j as B}from"./status.d6b2a53d.js";import G from"./purchase-modal.4bd8ee69.js";import{u as I}from"./use-page-search.d97bdd00.js";import{u as i,w as H}from"./xlsx.ed122d16.js";import"./basic-descriptions.bd1e983e.js";import"./porder.386fe03e.js";import"./tootip.bb80052f.js";const U=[{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(m,"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(x,"qrdSend")},{label:"\u5165\u5E93\u72B6\u6001",prop:"sendStatus",width:95,...a(h,"sendStatus")},{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"}],W={title:"\u91C7\u8D2D\u5355\u7BA1\u7406",columns:U,apis:{httpList:V,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},{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}]},Y={\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:""},$=T({__name:"index",setup(z){const A="porder",N=j(!1),r=f([]),D=f(null),{permissions:J,hasPermissionWithCode:v}=M("porder"),S={pageSearchHook:()=>I(void 0,void 0,y)},k={content:{preview:t=>D.value.onDisplay(t)}};async function P(){if(r.value.length===0){R.warning("\u8BF7\u9009\u62E9\u4E00\u6761\u91C7\u8D2D\u5355");return}const t=Y,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&&(m.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&&(x.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=i.book_new(),d=i.json_to_sheet(p);i.book_append_sheet(s,d,"sheet"),H(s,`${l}.xlsx`,{bookType:"xlsx"})}return(t,l)=>{const p=c("ElButton"),s=c("PageContainer"),d=c("PageAuth");return g(),_(d,{pageName:A},{default:F(()=>[b(s,{hooks:S,events:k,contentConfig:n(W),"search-config":n(y),onContentSelectChange:l[0]||(l[0]=u=>r.value=u)},{content_header:F(()=>[n(v)("048")?(g(),_(p,{key:0,type:"primary",onClick:P,loading:n(N)},{default:F(()=>[O("\u5BFC\u51FA")]),_:1},8,["loading"])):L("v-if",!0)]),_:1},8,["contentConfig","search-config"]),b(G,{ref_key:"purchaseModalRef",ref:D},null,512)]),_:1})}}});var pu=q($,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/purchase/porder/index.vue"]]);export{pu as default};
|