1 |
- import{cs as l,bb as N,aZ as _,dK as M,dL as R,dM as O,ct as m,dN as f,b3 as b,cb as A,cr as P,c9 as x,ca as y,_ as U,d as j,aP as z,x as C,aM as I,y as L,z as G,r as B,o as V,G as H,D,l as E,m as h,M as K,bd as Y}from"./index.js";import{h as Z}from"./index.07e03c86.js";import $ from"./purchase-modal.8d461f.js";import{u as g,w as J}from"./xlsx.ed122d16.js";import"./porder.9a85976d.js";import"./index.142d2268.js";const Q=[{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:"\u5BF9\u8D26\u7F16\u53F7",prop:"payNo",width:"150px"},{label:"\u539F\u91C7\u8D2D\u5355\u53F7",prop:"mainCode",width:"150px"},{label:"\u9500\u552E\u8BA2\u5355\u7F16\u7801",prop:"qrdCode",width:"155px"},{label:"\u56DE\u7968\u6807\u7B7E\u91D1\u989D",prop:"inv_tag_fee",width:100},{label:"\u4ED8\u6B3E\u6807\u7B7E\u91D1\u989D",prop:"pay_tag_fee",width:100},{label:"\u4F9B\u5E94\u5546\u7AEF",prop:"has_account",width:80,...l(m,"has_account")},{label:"\u72B6\u6001",prop:"status",width:95,...l(f,"status")},{label:"\u9500\u552E\u5355\u53D1\u8D27\u72B6\u6001",prop:"qrdSend",width:105,...l(b,"qrdSend")},{label:"\u91C7\u8D2D\u5355\u72B6\u6001",prop:"sendStatus",width:120,...l(A,"cgd_status")},{label:"\u4E1A\u52A1\u7C7B\u578B",width:95,...l(P,"is_comon")},{label:"\u8BA2\u5355\u6765\u6E90",prop:"cgdSource",width:95,...l(x,"cgdSource")},{label:"\u5546\u54C1\u6765\u6E90",prop:"cgdType",width:95,...l(y,"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",...N("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",...N("companyNo","companyName","\u4E70\u5165\u516C\u53F8\u7F16\u7801:")},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",width:155},{label:"\u64CD\u4F5C",fixed:"right",width:170,slot:"operation"}];function v(t){return t.is_comon=="1"?(_.warning("\u901A\u7528\u8BA2\u5355\u4E0D\u5141\u8BB8\u6DFB\u52A0\u6807\u7B7E"),!1):t.payNo&&M(R(t.payNo))?(_.warning("\u5BF9\u8D26\u5355\u521B\u5EFA\u65F6\u95F4\u5728"+O()+"\u524D\u7684\u4E0D\u5141\u8BB8\u6DFB\u52A0\u6807\u7B7E"),!1):!0}const W={title:"\u91C7\u8D2D\u5355\u7BA1\u7406",columns:Q,notReuqiredInit:!0,payProps:{prop:"sequenceNo",type:"5",callback:v},returnProps:{prop:"sequenceNo",type:"6",callback:v},showPayTagFn:({status:t,is_comon:s},a)=>a.includes("013"),showReturnTagFn:({status:t,is_comon:s},a)=>a.includes("014"),showUnPayTagFn:({status:t,is_comon:s},a)=>a.includes("055"),showUnReturnTagFn:({status:t,is_comon:s},a)=>a.includes("056"),apis:{httpList:Z,httpAdd:!0}},T={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:"payNo",label:"\u5BF9\u8D26\u7F16\u53F7"},{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:f},{type:"select",field:"is_comon",placeholder:"\u4E1A\u52A1\u7C7B\u578B",options:P},{field:"sendstatus",type:"select",placeholder:"\u53D1\u8D27\u72B6\u6001",options:b},{field:"cgd_status",type:"select",placeholder:"\u91C7\u8D2D\u5355\u72B6\u6001",options:A},{field:"cgdsource",type:"select",placeholder:"\u8BA2\u5355\u6765\u6E90",options:x},{field:"cgdtype",type:"select",placeholder:"\u5546\u54C1\u7C7B\u578B",options:y},{field:"total",type:"select",placeholder:"\u603B\u8D27\u6B3E\u662F\u5426\u4E3A\u96F6",defaultValue:"2",options:[{value:"2",label:"\u603B\u8D27\u6B3E\u4E0D\u4E3A\u96F6"},{value:"1",label:"\u603B\u8D27\u6B3E\u4E3A\u96F6"}]}]},X={\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:"",\u91C7\u8D2D\u5355\u72B6\u6001:"",\u8BA2\u5355\u6765\u6E90:"",\u5546\u54C1\u6765\u6E90:"",\u652F\u4ED8\u65B9\u5F0F:"",\u5546\u54C1\u7F16\u7801:"",\u5546\u54C1\u540D\u79F0:"",\u7A0E\u7387:"",\u7C7B\u76EE\u7F16\u7801:"",\u8D27\u7269\u548C\u52B3\u52A1\u540D\u79F0:"",\u5546\u54C1\u548C\u670D\u52A1\u5206\u7C7B\u7B80\u79F0:"",\u5F00\u7968\u7A0E\u7387:"",\u5F00\u7968\u7C7B\u578B:"",\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:""},uu=j({__name:"index",setup(t){const s="porder",a=z(!1),c=C([]),w=C(null),F=C(null);I("porder");const k={pageSearchHook:()=>Y(void 0,void 0,T)},S={content:{preview:p=>w.value.onDisplay(p)},search:{reset:()=>F.value.onSearchPro({size:15,page:1,total:"2"})}};async function q(){if(c.value.length===0){_.warning("\u8BF7\u9009\u62E9\u4E00\u6761\u91C7\u8D2D\u5355");return}const p=X,n="\u91C7\u8D2D\u5355\u5BFC\u51FA",r=[];c.value.forEach(u=>{const e={...p};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&&(f.find(o=>o.value==u.status+"")||{}).label||"",e.\u9500\u552E\u5355\u53D1\u8D27\u72B6\u6001=u.qrdSend&&(b.find(o=>o.value==u.qrdSend+"")||{}).label||"",e.\u91C7\u8D2D\u5355\u72B6\u6001=u.cgd_status&&(A.find(o=>o.value==u.cgd_status+"")||{}).label||"",e.\u8BA2\u5355\u6765\u6E90=u.cgdSource&&(x.find(o=>o.value==u.cgdSource+"")||{}).label||"",e.\u5546\u54C1\u6765\u6E90=u.cgdType&&(y.find(o=>o.value==u.cgdType+"")||{}).label||"",e.\u5546\u54C1\u7F16\u7801=u.goodNo,e.\u5546\u54C1\u540D\u79F0=u.goodName,e.\u5546\u54C1\u540D\u79F0=u.goodName,e.\u7A0E\u7387=u.tax,e.\u7C7B\u76EE\u7F16\u7801=u.orderTax?u.orderTax.cat_code:"",e.\u8D27\u7269\u548C\u52B3\u52A1\u540D\u79F0=u.orderTax?u.orderTax.cat_name:"",e.\u5546\u54C1\u548C\u670D\u52A1\u5206\u7C7B\u7B80\u79F0=u.orderTax?u.orderTax.short_name:"",e.\u5F00\u7968\u7A0E\u7387=u.orderTax&&u.orderTax.tax?u.orderTax.tax+"%":"",e.\u5F00\u7968\u7C7B\u578B=u.orderTax?u.open_type=="1"?"\u539F\u5546\u54C1\u5F00\u7968":u.open_type==="2"?"\u5B50\u5546\u54C1\u5F00\u7968":"":"",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,r.push(e)});const d=g.book_new(),i=g.json_to_sheet(r);g.book_append_sheet(d,i,"sheet"),J(d,`${n}.xlsx`,{bookType:"xlsx"})}return L(()=>{G(()=>F.value.onSearchPro({size:15,page:1,total:"2"}))}),(p,n)=>{const r=B("ElButton"),d=B("PageContainer"),i=B("PageAuth");return V(),H(i,{pageName:s},{default:D(()=>[E(d,{hooks:k,events:S,contentConfig:h(W),"search-config":h(T),"get-content-ref":u=>F.value=u,onContentSelectChange:n[0]||(n[0]=u=>c.value=u)},{content_header:D(()=>[E(r,{onClick:q,loading:h(a),size:"small"},{default:D(()=>[K("\u91C7\u8D2D\u5355\u5BFC\u51FA")]),_:1},8,["loading"])]),_:1},8,["contentConfig","search-config","get-content-ref"]),E($,{ref_key:"purchaseModalRef",ref:w},null,512)]),_:1})}}});var pu=U(uu,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/purchase/porder/index.vue"]]);export{pu as default};
|