index.2f6c3723.js 8.3 KB

1
  1. import{aj as p,aF as r,aG as m,_ as S,d as P,E as v,x as c,o as q,N as R,K as E,y as _,u as D,W as T,aS as k}from"./index.1417328f.js";import{a as O}from"./index.1bf16971.js";import{a as w,s as g,x as C}from"./status.727086c1.js";import{u as I}from"./use-page-search.7e7b4728.js";import M from"./sheet-modal.49034b84.js";import{e as W}from"./export.0c2421ad.js";import"./sale.c2f2872d.js";import"./tootip.8c37fa8a.js";import"./purchase.3d919a80.js";import"./basic-descriptions.cadaf928.js";import"./xlsx.ed122d16.js";const h=[{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"}],L=[{value:"1",label:"\u5E93\u5B58\u54C1"},{value:"2",label:"\u975E\u5E93\u5B58"},{value:"3",label:"\u54A8\u8BE2"}],j=[{value:"1",label:"\u76F4\u63A5\u4E0B\u5355"},{value:"2",label:"\u54A8\u8BE2"},{value:"3",label:"\u9879\u76EE"},{value:"4",label:"\u5E73\u53F0"},{value:"5",label:"\u6709\u8D5E"},{value:"6",label:"\u552E\u540E\u8865\u6362\u8D27"},{value:"7",label:"\u62A5\u5907\u8F6C\u5355"},{value:"8",label:"\u652F\u4ED8\u6E20\u9053"},{value:"9",label:"\u91C7\u9500\u5F55\u5355"},{value:"10",label:"\u7ED3\u7B97\u5F55\u5355"}],J=[{value:"1",label:"\u672A\u53D1\u8D27"},{value:"2",label:"\u90E8\u5206\u53D1\u8D27"},{value:"3",label:"\u5DF2\u53D1\u8D27"}],U=[{value:"0",label:"\u672A\u8BBE\u7F6E"},{value:"1",label:"\u5DF2\u8BBE\u7F6E"}],V=[{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"}],y={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:"sequenceNo",type:"input",placeholder:"\u8BA2\u5355\u7F16\u53F7"},{field:"cxCode",type:"input",placeholder:"\u9500\u552E\u8BA2\u5355\u4E3B\u7F16\u53F7"},{field:"customerNo",type:"input",placeholder:"\u5BA2\u6237\u7F16\u7801"},{field:"customer",type:"input",placeholder:"\u5BA2\u6237\u540D\u79F0"},{field:"platName",type:"input",placeholder:"\u5E73\u53F0\u540D\u79F0",span:4},{field:"department",type:"input",placeholder:"\u90E8\u95E8",span:4},{field:"saler",type:"input",placeholder:"\u9500\u552E\u5458",span:4},{field:"inv_status",type:"select",placeholder:"\u5F00\u7968\u72B6\u6001",options:h,span:6},{field:"qrdtype",type:"select",placeholder:"\u5546\u54C1\u7C7B\u578B",options:L,span:4},{field:"qrdsource",type:"select",placeholder:"\u8BA2\u5355\u6765\u6E90",options:j,span:4},{field:"pay_status",type:"select",placeholder:"\u56DE\u6B3E\u72B6\u6001",options:B,span:4},{field:"sendstatus",type:"select",placeholder:"\u53D1\u8D27\u72B6\u6001",options:J,span:4},{field:"cat_status",type:"select",placeholder:"\u662F\u5426\u8BBE\u7F6E\u7C7B\u76EE",options:U,span:4},{field:"tag_id",type:"select",placeholder:"\u6807\u7B7E\u7C7B\u578B",options:V,span:4}]},z=[{type:"selection",width:40},{label:"\u4E1A\u52A1\u8BA2\u5355\u7F16\u53F7",prop:"sequenceNo",fixed:"left",width:160},{label:"\u9500\u552E\u8BA2\u5355\u4E3B\u7F16\u53F7",prop:"cxCode",width:160},{label:"\u5356\u65B9\u516C\u53F8\u7F16\u7801",prop:"companyNo",width:160},{label:"\u5356\u65B9\u516C\u53F8\u540D\u79F0",prop:"companyName",minWidth:160},{label:"\u5BA2\u6237\u7F16\u53F7",prop:"customerNo",width:160},{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,cellRenderer:({row:u})=>p(r,null,{default:()=>{var e;return((e=w.find(l=>l.value===u.qrdType))==null?void 0:e.label)||"--"}})},{label:"\u53D1\u8D27\u72B6\u6001",width:100,cellRenderer:({row:u})=>p(r,null,{default:()=>{var e;return((e=g.find(l=>l.value===u.sendStatus))==null?void 0:e.label)||"--"}})},{label:"\u8BA2\u5355\u6765\u6E90",width:100,cellRenderer:({row:u})=>p(r,null,{default:()=>{var e;return((e=C.find(l=>l.value===u.qrdSource))==null?void 0:e.label)||"--"}})},{label:"\u5F00\u7968\u72B6\u6001",width:100,cellRenderer:({row:u})=>p(r,null,{default:()=>{var e;return((e=h.find(l=>l.value===u.inv_status))==null?void 0:e.label)||"--"}})},{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:"\u6807\u7B7E\u56FE\u7247",width:"70px",cellRenderer({row:u}){return u.inv_tag_img?p(m,{src:u.inv_tag_img,previewSrcList:[u.inv_tag_img],previewTeleported:!0,style:{height:"20px",width:"20px"}}):null}},{label:"\u56DE\u6B3E\u72B6\u6001",width:100,cellRenderer:({row:u})=>p(r,null,{default:()=>{var e;return(e=B.find(l=>l.value===u.pay_status))==null?void 0:e.label}})},{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:"\u6807\u7B7E\u56FE\u7247",width:"70px",cellRenderer({row:u}){return u.pay_tag_img?p(m,{src:u.pay_tag_img,previewSrcList:[u.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"}],G={title:"\u786E\u8BA4\u5355\u516C\u6D77\u6C60",columns:z,superUserNoAction:!0,payProps:{prop:"sequenceNo",type:"3"},returnProps:{prop:"sequenceNo",type:"4"},showPayTagFn:(u,e)=>e.includes("016"),showReturnTagFn:(u,e)=>e.includes("015"),apis:{httpList:O}},H=[{label:"\u8BA2\u5355\u7F16\u53F7",prop:"sequenceNo",fixed:"left",width:160},{label:"\u5BA2\u6237\u7F16\u53F7",prop:"customerNo",width:160},{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=T("\u8BA2\u5355\u4FE1\u606F\u5BFC\u51FA"),$=P({__name:"index",setup(u){const e="sheetOrderPool",l=v([]),f=v(null),A={pageSearchHook:()=>I(void 0,void 0,y)},N={content:{preview:({sequenceNo:n})=>f.value.onDisplay(n)}};async function x(){if(l.value.length==0){k.error("\u8BF7\u9009\u62E9\u8BA2\u5355\u6570\u636E\uFF01");return}let n=[];l.value.forEach(a=>{var s,i,d,F,b;let o=JSON.parse(JSON.stringify(a));o.qrdType_name=((s=w.find(t=>t.value===a.qrdType))==null?void 0:s.label)||"--",o.sendStatus_name=((i=g.find(t=>t.value===a.sendStatus))==null?void 0:i.label)||"--",o.qrdSource_name=((d=C.find(t=>t.value===a.qrdSource))==null?void 0:d.label)||"--",o.inv_status_name=((F=h.find(t=>t.value===a.inv_status))==null?void 0:F.label)||"--",o.pay_status_name=(b=B.find(t=>t.value===a.pay_status))==null?void 0:b.label,n.push(o)}),W({type:"front",data:n,columns:H})}return(n,a)=>{const o=c("ElButton"),s=c("PageContainer"),i=c("PageAuth");return q(),R(i,{pageName:e},{default:E(()=>[_(s,{hooks:A,events:N,contentConfig:D(G),"search-config":D(y),onContentSelectChange:a[1]||(a[1]=d=>l.value=d)},{content_header:E(()=>[_(o,{size:"small",onClick:a[0]||(a[0]=()=>x())},{default:E(()=>[K]),_:1})]),_:1},8,["contentConfig","search-config"]),_(M,{ref_key:"sheetModalRef",ref:f},null,512)]),_:1})}}});var nu=S($,[["__file","/Users/apple/Desktop/Company Projects/accout-vue3-ui/src/views/InvoiceSales/sheetOrderPool/index.vue"]]);export{nu as default};