1 |
- import{_ as q,d as T,aP as O,w as D,aL as M,r as i,o as _,G as b,C as F,l as y,u as n,M as L,a as R,aY as j}from"./index.88f7d256.js";import{h as V}from"./index.0866c7f6.js";import{a,r as w}from"./columnRenderHelper.1232bcd4.js";import{E as h,o as A,s as x,e as r,c as B,d as E,h as G}from"./status.2df4810d.js";import I from"./purchase-modal.f70c534a.js";import{u as H}from"./use-page-search.63ad89ed.js";import{u as C,w as W}from"./xlsx.ed122d16.js";import"./basic-descriptions.5c20357d.js";import"./porder.b626a198.js";import"./tootip.514b092e.js";const Y=[{width:40,type:"selection",align:"center",fixed:"left"},{label:"\u91C7\u8D2D\u5355\u7F16\u7801",prop:"sequenceNo",width:"150px"},{label:"\u91C7\u8D2D\u4E3B\u5355\u7F16\u7801",prop:"cxCode",width:"150px"},{label:"\u9500\u552E\u8BA2\u5355\u7F16\u7801",prop:"qrdCode",width:"150px"},{label:"\u72B6\u6001",prop:"status",width:95,...a(h,"status")},{label:"\u4E1A\u52A1\u7C7B\u578B",width:95,...a(A,"is_comon")},{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(r,"sendStatus")},{label:"\u72B6\u6001",prop:"sendStatus",width:95,...a(r,"sendStatus")},{label:"\u8BA2\u5355\u6765\u6E90",prop:"cgdSource",width:95,...a(B,"cgdSource")},{label:"\u5546\u54C1\u6765\u6E90",prop:"cgdType",width:95,...a(E,"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:"\u4E70\u5165\u65B9\u516C\u53F8",prop:"companyName",width:"150px",...w("companyNo","companyName","\u4E70\u5165\u65B9\u516C\u53F8\u7F16\u7801:")},{label:"\u5356\u51FA\u65B9\u516C\u53F8",prop:"supplierNo",width:"150px",...w("supplierNo","supplierName","\u4E70\u53A8\u623F\u516C\u53F8\u7F16\u7801:")},{label:"\u5907\u5E93\u5355",prop:"bkCode",width:"150px"},{label:"\u91C7\u8D2D\u5458",prop:"ownerName",width:75},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",width:140},{label:"\u64CD\u4F5C",fixed:"right",width:55,slot:"operation"}],$={title:"\u91C7\u8D2D\u5355\u7BA1\u7406",columns:Y,companyProp:"supplierNo",listNoRelation:!0,apis:{httpList:V,httpAdd:!0}},m={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:"cgder",label:"\u4E70\u5165\u65B9\u91C7\u8D2D\u5458"}]}},{field:"companyNo",type:"business-query"},{field:"status",type:"select",placeholder:"\u662F\u5426\u5BF9\u8D26",options:h},{field:"sendstatus",type:"select",placeholder:"\u72B6\u6001",options:r},{field:"cgdsource",type:"select",placeholder:"\u8BA2\u5355\u6765\u6E90",options:B},{field:"cgdtype",type:"select",placeholder:"\u5546\u54C1\u7C7B\u578B",options:E},{field:"is_comon",type:"select",placeholder:"\u4E1A\u52A1\u7C7B\u578B",span:4,options:A}]},z={\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:""},J=T({__name:"index",setup(K){const f="supplyPorder",N=O(!1),d=D([]),g=D(null),{hasPermissionWithCode:v}=M(f),S={pageSearchHook:()=>H(void 0,void 0,m)},P={content:{preview:t=>g.value.onDisplay(t)}};async function k(){if(d.value.length===0){j.warning("\u8BF7\u9009\u62E9\u4E00\u6761\u91C7\u8D2D\u5355");return}const t=z,l="\u91C7\u8D2D\u5355\u5BFC\u51FA",s=[];d.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&&(G.find(o=>o.value==u.has_account+"")||{}).label||"",e.\u72B6\u6001=u.status&&(h.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&&(r.find(o=>o.value==u.sendStatus+"")||{}).label||"",e.\u8BA2\u5355\u6765\u6E90=u.cgdSource&&(B.find(o=>o.value==u.cgdSource+"")||{}).label||"",e.\u5546\u54C1\u6765\u6E90=u.cgdType&&(E.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,s.push(e)});const p=C.book_new(),c=C.json_to_sheet(s);C.book_append_sheet(p,c,"sheet"),W(p,`${l}.xlsx`,{bookType:"xlsx"})}return(t,l)=>{const s=i("ElButton"),p=i("PageContainer"),c=i("PageAuth");return _(),b(c,{pageName:f},{default:F(()=>[y(p,{hooks:S,events:P,contentConfig:n($),"search-config":n(m),onContentSelectChange:l[0]||(l[0]=u=>d.value=u)},{content_header:F(()=>[n(v)("048")?(_(),b(s,{key:0,type:"primary",onClick:k,loading:n(N)},{default:F(()=>[L("\u5BFC\u51FA")]),_:1},8,["loading"])):R("v-if",!0)]),_:1},8,["contentConfig","search-config"]),y(I,{ref_key:"purchaseModalRef",ref:g},null,512)]),_:1})}}});var su=q(J,[["__file","D:/work/accout-vue3-ui2/settle-vue3/src/views/supply/porder/index.vue"]]);export{su as default};
|