index.7d03f07c.js 8.7 KB

1
  1. import{al as o,aS as n,aT as D,_ as R,d as O,w as y,r as c,o as k,G as I,C as E,l as B,u as g,M as L,aY as M}from"./index.56c69f5a.js";import{u as W}from"./use-page-search.27df6d7f.js";import G from"./sheet-modal.3f9fa9b9.js";import{e as J}from"./export.61b14108.js";import{a as U}from"./index.0bded34d.js";import{x as f,n as A,s as h,u as N,b as x}from"./status.2df4810d.js";import{r as _,a as V}from"./columnRenderHelper.6c05b86e.js";import"./sale.07797b41.js";import"./tootip.fe6ea468.js";import"./basic-descriptions.5f176484.js";import"./xlsx.ed122d16.js";const m=[{value:"1",label:"\u672A\u5F00\u7968"},{value:"2",label:"\u90E8\u5206\u5F00\u7968"},{value:"3",label:"\u5DF2\u5F00\u7968"}],b=[{value:"1",label:"\u672A\u56DE\u6B3E"},{value:"2",label:"\u90E8\u5206\u56DE\u6B3E"},{value:"3",label:"\u5DF2\u56DE\u6B3E"}],j=[{value:"1",label:"\u5E93\u5B58\u54C1"},{value:"2",label:"\u975E\u5E93\u5B58"},{value:"3",label:"\u54A8\u8BE2"}],S=[{value:"0",label:"\u5F85\u91C7\u8D2D\u8BBE\u7F6E"},{value:"1",label:"\u5F85\u8D22\u52A1\u8BBE\u7F6E"},{value:"2",label:"\u5DF2\u8BBE\u7F6E\u5B8C\u6210"}],z=[{value:"1",label:"\u5F00\u7968\u6807\u7B7E"},{value:"2",label:"\u56DE\u6B3E\u6807\u7B7E"},{value:"3",label:"\u5F00\u7968\u6216\u56DE\u6B3E\u6807\u7B7E\u6700\u5C11\u6709\u4E00\u4E2A"},{value:"4",label:"\u5F00\u7968\u548C\u56DE\u6B3E\u6807\u7B7E\u540C\u65F6\u6709"}],C={formItems:[{field:"order_timer",type:"date_picker",otherOptions:{type:"daterange",startProp:"start",endProp:"end",startPlaceholder:"\u4E0B\u5355\u8D77\u59CB\u65F6\u95F4",endPlaceholder:"\u4E0B\u5355\u7ED3\u675F\u65F6\u95F4"}},{field:"qrdsource",type:"select",placeholder:"\u8BA2\u5355\u6765\u6E90",options:f,span:4},{field:"qrdtype",type:"select",placeholder:"\u5546\u54C1\u7C7B\u578B",options:j,span:4},{field:"is_comon",type:"select",placeholder:"\u8BA2\u5355\u7C7B\u578B",options:A,span:4},{field:"inv_status",type:"select",placeholder:"\u5F00\u7968\u72B6\u6001",options:m,span:4},{field:"pay_status",type:"select",placeholder:"\u56DE\u6B3E\u72B6\u6001",options:b,span:4},{field:"group",type_field:"group_type",type:"input_group",span:8,otherOptions:{inputGroupOptions:[{value:"sequenceNo",label:"\u8BA2\u5355\u7F16\u7801"},{value:"cxCode",label:"\u9500\u552E\u8BA2\u5355\u4E3B\u7F16\u7801"},{value:"customerNo",label:"\u5BA2\u6237\u7F16\u7801"},{value:"customer",label:"\u5BA2\u6237\u540D\u79F0"},{value:"platName",label:"\u5E73\u53F0\u540D\u79F0"},{value:"department",label:"\u90E8\u95E8"},{value:"saler",label:"\u9500\u552E\u5458"}]}},{field:"sendstatus",type:"select",placeholder:"\u53D1\u8D27\u72B6\u6001",options:h,span:4},{field:"cat_status",type:"select",placeholder:"\u7C7B\u76EE\u8BBE\u7F6E\u72B6\u6001",options:S,span:4},{field:"platform_type",type:"select",placeholder:"\u5E73\u53F0\u7C7B\u578B",options:N,span:4},{field:"tag_id",type:"select",placeholder:"\u6807\u7B7E\u7C7B\u578B",options:z,span:4}]},H=[{type:"selection",width:40,align:"center",fixed:"left"},{label:"\u9500\u552E\u8BA2\u5355\u7F16\u7801",prop:"sequenceNo",width:150},{label:"\u9500\u552E\u8BA2\u5355\u4E3B\u7F16\u7801",prop:"cxCode",width:150},{label:"\u5E73\u53F0\u7C7B\u578B",width:70,cellRenderer:({row:e})=>o(n,null,{default:()=>{var u;return((u=N.find(l=>l.value===e.platform_type))==null?void 0:u.label)||"--"}})},{label:"\u5356\u51FA\u65B9\u516C\u53F8",prop:"companyName",minWidth:130,..._("companyNo","companyName","\u5356\u51FA\u65B9\u516C\u53F8\u7F16\u7801:")},{label:"\u5BA2\u6237\u516C\u53F8",prop:"customerName",minWidth:130,..._("customerNo","customerName","\u5BA2\u6237\u516C\u53F8\u7F16\u7801:")},{label:"\u5546\u54C1\u540D\u79F0",prop:"goodName",minWidth:130,..._("goodNo","goodName","\u5546\u54C1\u7F16\u7801:")},{label:"\u5E73\u53F0\u540D\u79F0",prop:"platName",width:90},{label:"\u7C7B\u76EE\u8BBE\u7F6E\u72B6\u6001",width:100,cellRenderer:({row:e})=>o(n,null,{default:()=>{var u;return((u=S.find(l=>l.value===e.cat_status))==null?void 0:u.label)||"--"}})},{label:"\u8BA2\u5355\u7C7B\u578B",width:80,...V(A,"is_comon")},{label:"\u5546\u54C1\u7C7B\u578B",width:100,cellRenderer:({row:e})=>o(n,null,{default:()=>{var u;return((u=x.find(l=>l.value===e.qrdType))==null?void 0:u.label)||"--"}})},{label:"\u53D1\u8D27\u72B6\u6001",width:100,cellRenderer:({row:e})=>o(n,null,{default:()=>{var u;return((u=h.find(l=>l.value===e.sendStatus))==null?void 0:u.label)||"--"}})},{label:"\u8BA2\u5355\u6765\u6E90",width:100,cellRenderer:({row:e})=>o(n,null,{default:()=>{var u;return((u=f.find(l=>l.value===e.qrdSource))==null?void 0:u.label)||"--"}})},{label:"\u5F00\u7968\u72B6\u6001",width:100,cellRenderer:({row:e})=>o(n,null,{default:()=>{var u;return((u=m.find(l=>l.value===e.inv_status))==null?void 0:u.label)||"--"}})},{label:"\u5DF2\u5F00\u7968",prop:"ainv_fee",width:110},{label:"\u5F00\u7968\u4E2D",prop:"inv_fee",width:110},{label:"\u672A\u5F00\u7968",prop:"winv_fee",width:110},{label:"\u5F00\u7968\u6807\u7B7E\u91D1\u989D",prop:"inv_tag_fee",width:110},{label:"\u6807\u7B7E\u56FE\u7247",width:"70px",cellRenderer({row:e}){return e.inv_tag_img?o(D,{src:e.inv_tag_img,previewSrcList:[e.inv_tag_img],previewTeleported:!0,style:{height:"20px",width:"20px"}}):null}},{label:"\u56DE\u6B3E\u72B6\u6001",width:100,cellRenderer:({row:e})=>o(n,null,{default:()=>{var u;return(u=b.find(l=>l.value===e.pay_status))==null?void 0:u.label}})},{label:"\u5DF2\u56DE\u6B3E",prop:"apay_fee",width:110},{label:"\u56DE\u6B3E\u4E2D",prop:"pay_fee",width:110},{label:"\u672A\u56DE\u6B3E",prop:"wpay_fee",width:110},{label:"\u56DE\u6B3E\u6807\u7B7E\u91D1\u989D",prop:"pay_tag_fee",width:110},{label:"\u6807\u7B7E\u56FE\u7247",width:"70px",cellRenderer({row:e}){return e.pay_tag_img?o(D,{src:e.pay_tag_img,previewSrcList:[e.pay_tag_img],previewTeleported:!0,style:{height:"20px",width:"20px"}}):null}},{label:"\u9500\u552E\u5458",prop:"ownerName",width:70},{label:"\u90E8\u95E8",prop:"department",width:70},{label:"\u64CD\u4F5C",fixed:"right",width:120,slot:"operation"}],Y={title:"\u9500\u552E\u8BA2\u5355\u516C\u6D77\u6C60",columns:H,superUserNoAction:!0,payProps:{prop:"sequenceNo",type:"3"},returnProps:{prop:"sequenceNo",type:"4"},showPayTagFn:({is_comon:e},u)=>u.includes("016")&&String(e)!=="1",showReturnTagFn:({is_comon:e},u)=>u.includes("015")&&String(e)!=="1",apis:{httpList:U}},$=[{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:"\u5546\u54C1\u7C7B\u578B",width:100,prop:"qrdType_name"},{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}],K=O({__name:"index",setup(e){const u="sheetOrderPool",l=y([]),F=y(null),P={pageSearchHook:()=>W(void 0,void 0,C)},q={content:{preview:({sequenceNo:r})=>F.value.onDisplay(r)}};async function T(){if(l.value.length==0){M.error("\u8BF7\u9009\u62E9\u8BA2\u5355\u6570\u636E\uFF01");return}let r=[];l.value.forEach(a=>{var s,i,d,v,w;let p=JSON.parse(JSON.stringify(a));p.qrdType_name=((s=x.find(t=>t.value===a.qrdType))==null?void 0:s.label)||"--",p.sendStatus_name=((i=h.find(t=>t.value===a.sendStatus))==null?void 0:i.label)||"--",p.qrdSource_name=((d=f.find(t=>t.value===a.qrdSource))==null?void 0:d.label)||"--",p.inv_status_name=((v=m.find(t=>t.value===a.inv_status))==null?void 0:v.label)||"--",p.pay_status_name=(w=b.find(t=>t.value===a.pay_status))==null?void 0:w.label,r.push(p)}),J({data:r,type:"front",columns:$})}return(r,a)=>{const p=c("ElButton"),s=c("PageContainer"),i=c("PageAuth");return k(),I(i,{pageName:u},{default:E(()=>[B(s,{hooks:P,events:q,contentConfig:g(Y),"search-config":g(C),onContentSelectChange:a[1]||(a[1]=d=>l.value=d)},{content_header:E(()=>[B(p,{size:"small",onClick:a[0]||(a[0]=()=>T())},{default:E(()=>[L(" \u8BA2\u5355\u4FE1\u606F\u5BFC\u51FA ")]),_:1})]),_:1},8,["contentConfig","search-config"]),B(G,{ref_key:"sheetModalRef",ref:F},null,512)]),_:1})}}});var re=R(K,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSales/sheetOrderPool/index.vue"]]);export{re as default};