sales-modal.d458cf.js 12 KB

12345678910
  1. import{_ as fe,d as ce,x as k,Z as ve,W as _e,ah as be,bG as Ee,y as Be,r as d,aD as ge,o as s,G as i,D as a,l as u,m as t,bZ as r,a as B,c as _,F as b,E,bS as M,bJ as L,bT as W,b_ as z,b$ as N,b3 as Z,h as O,M as f,H as ye,bz as De,L as C,bP as Fe,aZ as Ce}from"./index.js";import{b as we}from"./index.4e61d38f.js";import{D as Ve}from"./date-range.4010f801.js";const Ue=[{label:"\u9500\u552E\u8BA2\u5355\u7F16\u7801",prop:"sequenceNo",width:150,align:"left",fixed:"left"},{label:"\u9500\u552E\u8BA2\u5355\u4E3B\u7F16\u7801",prop:"cxCode",width:150,align:"left"},{label:"\u5BA2\u6237\u540D\u79F0",prop:"customerName",minWidth:150,align:"left"},{label:"\u8BA2\u5355\u603B\u91D1\u989D",prop:"totalPrice",width:110,align:"left"},{prop:"apay_fee",width:110,label:"\u5DF2\u4ED8\u6B3E"},{prop:"pay_fee",width:110,label:"\u4ED8\u6B3E\u4E2D"},{prop:"wpay_fee",width:110,label:"\u672A\u4ED8\u6B3E"},{label:"\u5546\u54C1\u540D\u79F0",prop:"goodName",minWidth:150,align:"left"},{label:"\u5E73\u53F0\u540D\u79F0",prop:"platName",width:120,align:"left"},{label:"\u9500\u552E\u5458",prop:"saler",width:90,align:"left"},{label:"\u8D2D\u4E70\u65B9\u516C\u53F8",prop:"customerName",minWidth:150,align:"left"},{label:"\u9500\u552E\u65B9\u516C\u53F8",prop:"companyName",minWidth:150,align:"left"},{label:"\u6B64\u6B21\u8BA4\u9886",prop:"cchx",width:110,align:"left"},{label:"\u4EA4\u6613\u65F6\u95F4",prop:"addtime",width:140,align:"left"}],Pe=[{value:"0",label:"\u672A\u5BF9\u8D26"},{value:"1",label:"\u53C2\u4E0E\u5BF9\u8D26"},{value:"2",label:"\u4E0D\u53C2\u4E0E\u6838\u9500\u5BF9\u8D26"},{value:"3",label:"\u53C2\u4E0E\u6838\u9500\u5BF9\u8D26"}],ze=[{type:"selection",width:40,align:"center",fixed:"left"},{field:"sequenceNo",label:"\u9500\u552E\u8BA2\u5355\u7F16\u7801",width:150,fixed:"left"},{label:"\u9500\u552E\u8BA2\u5355\u4E3B\u7F16\u7801",field:"cxCode",width:160,align:"left"},{label:"\u5E73\u53F0\u8BA2\u5355\u53F7",field:"poCode",width:160},{field:"goodName",label:"\u5546\u54C1\u540D\u79F0",width:140},{field:"goodNo",label:"\u5546\u54C1\u7F16\u7801",width:140},{field:"cat_status",label:"\u7C7B\u76EE\u8BBE\u7F6E\u72B6\u6001",width:120},{field:"qrdSource",label:"\u8BA2\u5355\u6765\u6E90",width:100},{field:"inv_status",label:"\u5F00\u7968\u72B6\u6001",width:100},{field:"qrdType",label:"\u5546\u54C1\u7C7B\u578B",width:100},{label:"\u5E73\u53F0\u7C7B\u578B",field:"platform_type",width:80},{label:"\u53D1\u8D27\u72B6\u6001",field:"sendStatus",width:80},{label:"\u5E73\u53F0\u540D\u79F0",field:"platName",width:130,align:"left"},{label:"\u5BA2\u6237\u540D\u79F0",field:"customerName",width:180,align:"left"},{field:"totalPrice",width:100,label:"\u8BA2\u5355\u603B\u91D1\u989D"},{field:"apay_fee",label:"\u5DF2\u4ED8\u6B3E"},{field:"pay_fee",label:"\u4ED8\u6B3E\u4E2D"},{field:"wpay_fee",label:"\u672A\u4ED8\u6B3E"},{field:"ownerName",label:"\u9500\u552E\u5458"},{field:"companyNo",label:"\u4E1A\u52A1\u516C\u53F8\u7F16\u7801",width:140},{field:"companyName",width:120,label:"\u4E1A\u52A1\u516C\u53F8\u540D\u79F0"}],Ne={flex:"","gap-2":"","justify-end":"","mb-1":""},Ae={flex:"","justify-between":"","mt-2":""},he=ce({__name:"sales-modal",props:{isCommon:{type:Boolean,required:!0}},emits:["save-click-button"],setup(G,{expose:I,emit:H}){const q=G,w=k(!1),c=ve({value:"",key:"cxCode"}),o=k({timer:[],poCode:"",goodNo:"",goodName:"",tag_id:"",cat_status:"",inv_status:"",sendstatus:"",sequenceNo:"",qrdtype:"",qrdsource:"",customer:"",platName:"",cxCode:"",platform_type:"1"}),{currentCompany:J}=_e(),$=k(null),A=k([]),K=be(()=>q.isCommon?"\u901A\u7528\u8BA2\u5355":"\u9500\u552E\u8BA2\u5355"),Q={pageSize:15,currentPage:1,total:0},{loading:X,run:Y,data:ee,pagination:v}=Ee({initalData:[],isList:!0,initalPagination:Q}),le=m=>A.value=m,V=()=>{const{currentPage:m,pageSize:l}=v,{timer:h,...U}=o.value;Y(we({companyNo:J.value.companyNo,...q.isCommon?{customerNo:"GS2404151642335170"}:{},pay_status:"0",start:h[0],end:h[1],status:"3",is_comon:q.isCommon?"1":"0",size:l,page:m,...U,[c.key]:c.value}))};function ue(){const m=A.value.filter(({wpay_fee:l})=>Number(l)===0);if(m.length!==0){Ce.warning("\u6DFB\u52A0\u5931\u8D25,\u8BA2\u5355 "+m.map(({sequenceNo:l})=>l).join("\u3001")+" \u672A\u4ED8\u6B3E\u91D1\u989D\u4E3A0");return}H("save-click-button",t(A)),w.value=!1}const T=m=>{v.currentPage=1,m&&(o.value={timer:[],poCode:"",goodNo:"",goodName:"",tag_id:"",cat_status:"",inv_status:"",sendstatus:"",sequenceNo:"",qrdtype:"",qrdsource:"",customer:"",platName:"",cxCode:"",platform_type:"1"},c.key="sequenceNo",c.value=""),V()};function ae(){v.currentPage=1,V()}const R=[{value:"1",label:"\u672A\u5F00\u7968"},{value:"2",label:"\u90E8\u5206\u5F00\u7968"},{value:"3",label:"\u5DF2\u5F00\u7968"}],j=[{value:"0",label:"\u5F85\u91C7\u8D2D\u8BBE\u7F6E"},{value:"1",label:"\u5F85\u8D22\u52A1\u8BBE\u7F6E"},{value:"2",label:"\u5DF2\u8BBE\u7F6E\u5B8C\u6210"}],te=[{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"}],oe=[{value:"cxCode",label:"\u9500\u552E\u8BA2\u5355\u4E3B\u7F16\u7801"},{value:"sequenceNo",label:"\u8BA2\u5355\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"}];return I({onDisplay:m=>{w.value=!0,V()}}),Be(()=>V()),(m,l)=>{const h=d("ElOption"),U=d("ElSelect"),g=d("el-option"),y=d("el-select"),P=d("ElRow"),x=d("el-input"),se=d("el-row"),ne=d("el-switch"),S=d("el-button"),D=d("el-tag"),de=d("el-table-column"),ie=d("el-pagination"),re=d("ElDialog"),pe=ge("loading");return s(),i(re,{"close-on-click-modal":!1,"close-on-press-escape":!1,onClose:l[18]||(l[18]=()=>A.value=[]),modelValue:w.value,"onUpdate:modelValue":l[19]||(l[19]=e=>w.value=e),width:"1040px",title:t(K),top:"10px",center:""},{default:a(()=>[u(P,{gutter:10,style:{"margin-bottom":"10px"}},{default:a(()=>[u(t(r),{span:8},{default:a(()=>[u(t(Ve),{size:"small",modelValue:o.value.timer,"onUpdate:modelValue":l[0]||(l[0]=e=>o.value.timer=e)},null,8,["modelValue"])]),_:1}),B(` <ElCol :span="8">\r
  2. <ElInput v-model="data.sequenceNo" placeholder="\u8BA2\u5355\u7F16\u7801" size="small" />\r
  3. </ElCol> `),u(t(r),{span:8},{default:a(()=>[u(U,{size:"small",class:"w-full",modelValue:o.value.qrdsource,"onUpdate:modelValue":l[1]||(l[1]=e=>o.value.qrdsource=e),placeholder:"\u8BA2\u5355\u6765\u6E90",clearable:""},{default:a(()=>[(s(!0),_(b,null,E(t(M),e=>(s(),i(h,L({key:e.value},e),null,16))),128))]),_:1},8,["modelValue"])]),_:1}),u(t(r),{span:8},{default:a(()=>[u(y,{class:"w-full",size:"small",clearable:"",modelValue:o.value.qrdtype,"onUpdate:modelValue":l[2]||(l[2]=e=>o.value.qrdtype=e),placeholder:"\u5546\u54C1\u7C7B\u578B"},{default:a(()=>[(s(!0),_(b,null,E(t(W),e=>(s(),i(g,L({key:e.value},e),null,16))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),u(P,{gutter:10,style:{"margin-bottom":"10px"}},{default:a(()=>[u(t(r),{span:8},{default:a(()=>[u(y,{placeholder:"\u5F00\u7968\u72B6\u6001",size:"small",style:{width:"100%"},modelValue:o.value.inv_status,"onUpdate:modelValue":l[3]||(l[3]=e=>o.value.inv_status=e),clearable:""},{default:a(()=>[(s(),_(b,null,E(R,e=>u(g,z(N(e)),null,16)),64))]),_:1},8,["modelValue"])]),_:1}),u(t(r),{span:8},{default:a(()=>[u(y,{placeholder:"\u53D1\u8D27\u72B6\u6001",size:"small",style:{width:"100%"},modelValue:o.value.sendstatus,"onUpdate:modelValue":l[4]||(l[4]=e=>o.value.sendstatus=e),clearable:""},{default:a(()=>[(s(!0),_(b,null,E(t(Z),e=>(s(),i(g,z(N(e)),null,16))),256))]),_:1},8,["modelValue"])]),_:1}),u(t(r),{span:8},{default:a(()=>[u(y,{placeholder:"\u7C7B\u76EE\u8BBE\u7F6E\u72B6\u6001",size:"small",style:{width:"100%"},modelValue:o.value.cat_status,"onUpdate:modelValue":l[5]||(l[5]=e=>o.value.cat_status=e),clearable:""},{default:a(()=>[(s(),_(b,null,E(j,e=>u(g,z(N(e)),null,16)),64))]),_:1},8,["modelValue"])]),_:1}),B(` <el-col :span="8">\r
  4. <el-input placeholder="\u5BA2\u6237\u540D\u79F0" size="small" v-model="data.customer" />\r
  5. </el-col>\r
  6. <el-col :span="8">\r
  7. <el-input placeholder="\u5E73\u53F0\u540D\u79F0" size="small" v-model="data.platName" />\r
  8. </el-col> `)]),_:1}),u(se,{gutter:10},{default:a(()=>[u(t(r),{span:8},{default:a(()=>[u(y,{placeholder:"\u6807\u7B7E\u7C7B\u578B",size:"small",style:{width:"100%"},modelValue:o.value.tag_id,"onUpdate:modelValue":l[6]||(l[6]=e=>o.value.tag_id=e),clearable:""},{default:a(()=>[(s(),_(b,null,E(te,e=>u(g,z(N(e)),null,16)),64))]),_:1},8,["modelValue"])]),_:1}),u(t(r),{span:8},{default:a(()=>[u(x,{size:"small",placeholder:"\u5546\u54C1\u7F16\u7801",modelValue:o.value.goodNo,"onUpdate:modelValue":l[7]||(l[7]=e=>o.value.goodNo=e)},null,8,["modelValue"])]),_:1}),u(t(r),{span:8},{default:a(()=>[u(x,{size:"small",placeholder:"\u5546\u54C1\u540D\u79F0",modelValue:o.value.goodName,"onUpdate:modelValue":l[8]||(l[8]=e=>o.value.goodName=e)},null,8,["modelValue"])]),_:1}),B(` <el-col :span="8">\r
  9. <el-input v-model="data.cxCode" placeholder="\u9500\u552E\u8BA2\u5355\u4E3B\u7F16\u7801" size="small" />\r
  10. </el-col> `)]),_:1}),u(P,{gutter:10,style:{"margin-top":"10px"}},{default:a(()=>[u(t(r),{span:8},{default:a(()=>[u(x,{size:"small",placeholder:"\u5E73\u53F0\u8BA2\u5355\u53F7",modelValue:o.value.poCode,"onUpdate:modelValue":l[9]||(l[9]=e=>o.value.poCode=e)},null,8,["modelValue"])]),_:1}),u(t(r),{span:8},{default:a(()=>[u(x,{size:"small",modelValue:c.value,"onUpdate:modelValue":l[11]||(l[11]=e=>c.value=e)},{prepend:a(()=>[u(y,{modelValue:c.key,"onUpdate:modelValue":l[10]||(l[10]=e=>c.key=e),size:"small",style:{width:"120px"}},{default:a(()=>[(s(),_(b,null,E(oe,e=>u(g,z(N(e)),null,16)),64))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),u(t(r),{span:8},{default:a(()=>[u(ne,{modelValue:o.value.platform_type,"onUpdate:modelValue":l[12]||(l[12]=e=>o.value.platform_type=e),size:"small","active-text":"toC","inactive-text":"toB","active-value":"2","inactive-value":"1"},null,8,["modelValue"])]),_:1})]),_:1}),O("div",Ne,[u(S,{size:"small",type:"primary",onClick:l[13]||(l[13]=()=>T())},{default:a(()=>[f("\u641C\u7D22")]),_:1}),u(S,{size:"small",onClick:l[14]||(l[14]=()=>T(!0))},{default:a(()=>[f("\u91CD\u7F6E")]),_:1})]),ye((s(),i(t(De),{data:t(ee),onSelectionChange:le,ref_key:"tableRef",ref:$,border:"",size:"small","row-key":"sequenceNo","max-height":"520px"},{default:a(()=>[(s(!0),_(b,null,E(t(ze),(e,me)=>(s(),i(de,{prop:e.field,label:e.label,key:me,width:e.width+"px",fixed:e.fixed,type:e.type,"show-overflow-tooltip":""},{default:a(({row:F})=>[e.field==="qrdType"?(s(),i(D,{key:0,size:"small"},{default:a(()=>{var n;return[f(C(((n=t(W).find(p=>p.value===F.qrdType))==null?void 0:n.label)||"--"),1)]}),_:2},1024)):B("v-if",!0),e.field==="cat_status"?(s(),i(D,{key:1,size:"small"},{default:a(()=>{var n;return[f(C(((n=j.find(p=>p.value===F.cat_status))==null?void 0:n.label)||"--"),1)]}),_:2},1024)):B("v-if",!0),e.field==="inv_status"?(s(),i(D,{key:2,size:"small"},{default:a(()=>{var n;return[f(C(((n=R.find(p=>p.value===F.inv_status))==null?void 0:n.label)||"--"),1)]}),_:2},1024)):e.field==="qrdSource"?(s(),i(D,{key:3,size:"small"},{default:a(()=>{var n;return[f(C(((n=t(M).find(p=>p.value===F.qrdSource))==null?void 0:n.label)||"--"),1)]}),_:2},1024)):e.field==="sendStatus"?(s(),i(D,{key:4},{default:a(()=>{var n;return[f(C((n=t(Z).find(p=>String(F.sendStatus)===p.value))==null?void 0:n.label),1)]}),_:2},1024)):B("v-if",!0),e.field==="platform_type"?(s(),i(D,{key:5,size:"small"},{default:a(()=>{var n;return[f(C(((n=t(Fe).find(p=>p.value===F.platform_type))==null?void 0:n.label)||"--"),1)]}),_:2},1024)):B("v-if",!0)]),_:2},1032,["prop","label","width","fixed","type"]))),128))]),_:1},8,["data"])),[[pe,t(X)]]),O("div",Ae,[u(ie,{"current-page":t(v).currentPage,"onUpdate:currentPage":l[15]||(l[15]=e=>t(v).currentPage=e),"page-size":t(v).pageSize,"onUpdate:pageSize":l[16]||(l[16]=e=>t(v).pageSize=e),total:t(v).total,"page-sizes":[15,50,100],onSizeChange:ae,layout:"sizes, prev, pager, next",onCurrentChange:V,size:"small"},null,8,["current-page","page-size","total"]),O("div",null,[u(S,{type:"primary",onClick:ue,size:"small"},{default:a(()=>[f("\u4FDD\u5B58")]),_:1}),u(S,{onClick:l[17]||(l[17]=()=>w.value=!1),size:"small"},{default:a(()=>[f("\u53D6\u6D88")]),_:1})])])]),_:1},8,["modelValue","title"])}}});var xe=fe(he,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/InvoiceSales/capitalPool/base-form/sales-modal.vue"]]),Oe=Object.freeze(Object.defineProperty({__proto__:null,default:xe},Symbol.toStringTag,{value:"Module"}));export{xe as S,Pe as a,Ue as o,Oe as s};