choose-modal.0cc4add4.js 5.1 KB

1
  1. import{aj as W,aM as G,aL as J,_ as Q,d as X,E as r,a7 as Y,aI as Z,a5 as $,x as i,aA as ee,o as p,N as y,K as n,b as m,y as s,O as ae,u as F,bj as te,c as L,M as ue,L as le,W as b,aS as oe,bs as ne,T as M}from"./index.743f0c80.js";import{s as se}from"./_options.fdd6a561.js";import{c as V}from"./tootip.48acd346.js";import{p as ie}from"./reconciliation.d0aed753.js";import{c as re}from"./index.17b89a60.js";const xe=[{field:"returnCode",label:"\u9000\u6B3E\u7F16\u53F7"},{field:"payNo",label:"\u5BF9\u8D26\u7533\u8BF7\u7F16\u53F7"},{field:"apply_name",label:"\u7533\u8BF7\u4EBA",render:(t,{apply_id:l})=>V(t,"\u7533\u8BF7\u4EBAID : "+l,90)},{field:"supplierName",label:"\u5356\u65B9\u516C\u53F8",render:(t,{supplierNo:l})=>V(t,"\u5356\u65B9\u516C\u53F8\u7F16\u53F7 : "+l,360)},{field:"companyName",label:"\u4E70\u65B9\u516C\u53F8",render:(t,{companyNo:l})=>V(t,"\u4E70\u65B9\u516C\u53F8\u7F16\u53F7 : "+l,360)},{field:"pay_fee",label:"\u7533\u8BF7\u4ED8\u6B3E\u989D\u5EA6"},{field:"addtime",label:"\u7533\u8BF7\u65F6\u95F4"},{field:"returnImg",label:"\u9000\u6B3E\u56DE\u6267",render(t){return W(G,{src:t,previewSrcList:[t],style:{height:"20px"}})}},{field:"status",label:"\u72B6\u6001",render(t){return W(J,null,{default:()=>{var l;return((l=se.find(B=>String(t)===String(B.value)))==null?void 0:l.label)||"--"}})}},{field:"remark",label:"\u5907\u6CE8"}],pe=[{label:"\u5BF9\u8D26\u7F16\u53F7",prop:"payNo",minWidth:160,align:"left"},{label:"\u5356\u65B9\u516C\u53F8\u7F16\u53F7",prop:"supplierNo",minWidth:150,align:"left"},{label:"\u4E70\u65B9\u516C\u53F8\u7F16\u53F7",prop:"companyNo",minWidth:150},{label:"\u4E70\u65B9\u516C\u53F8\u540D\u79F0",prop:"companyName",minWidth:180},{label:"\u603B\u989D\u6B3E",prop:"total_fee",minWidth:110,align:"total_fee"},{label:"\u672C\u6B21\u4ED8\u6B3E\u91D1\u989D",prop:"dpay_fee",minWidth:110,align:"left"},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name",minWidth:90,align:"total_fee"}];const de={flex:"","justify-between":"","mb-2":""},ce={flex:"","gap-2":""},me=b("\u641C\u7D22"),_e=b("\u91CD\u7F6E"),fe={key:1},ge={flex:""},ve={"w-full":"",flex:"","justify-end":"","mt-2":""},ye=b("\u4FDD\u5B58"),Fe=X({__name:"choose-modal",emits:["choose"],setup(t,{expose:l,emit:B}){const _=r(!1),w=r([]),h=r([]),o=Y({total:0,size:15,page:1,background:!0}),f=r({pay_status:"",currentValue:""}),C=r(null),E=r("payNo"),D=r(!1),j=Z(),{currentCompany:R}=$();async function g(){const{size:u,page:e}=o;D.value=!0;const{currentValue:v,...x}=f.value,{code:N,message:d,data:c}=await re({status:"3",[E.value]:v,supplierNo:R.value.companyNo,...x,page:e,size:u});j({code:N,message:d,handler:()=>{o.total=c.count,w.value=c.list}}),D.value=!1}function T(){const[u]=h.value;if(!u)return oe.warning("\u9009\u62E9\u4E00\u6761\u91C7\u8D2D\u4ED8\u6B3E");B("choose",F(u.dzNo)),_.value=!1}function A(u){if(u.length>1){const e=u.pop();C.value.clearSelection(),C.value.toggleRowSelection(e,!0),h.value=[e]}else h.value=[u[0]]}function I(){o.page=1,g()}function k(u){u&&(f.value={}),o.page=1,g()}return l({onDisplay:()=>_.value=!0}),(u,e)=>{const v=i("el-option"),x=i("el-select"),N=i("el-input"),d=i("el-button"),c=i("el-table-column"),O=i("el-tag"),P=i("el-pagination"),U=i("el-dialog"),H=ee("loading");return p(),y(U,{modelValue:_.value,"onUpdate:modelValue":e[6]||(e[6]=a=>_.value=a),title:"\u91C7\u8D2D\u4ED8\u6B3E",center:"",width:"1040px",onOpen:e[7]||(e[7]=()=>g())},{default:n(()=>[m("div",de,[m("div",ce,[s(N,{clearable:"",modelValue:f.value.currentValue,"onUpdate:modelValue":e[1]||(e[1]=a=>f.value.currentValue=a),placeholder:"\u5BF9\u8D26\u7F16\u53F7"},{prepend:n(()=>[s(x,{modelValue:E.value,"onUpdate:modelValue":e[0]||(e[0]=a=>E.value=a),style:{width:"130px"}},{default:n(()=>[s(v,{label:"\u5BF9\u8D26\u7F16\u53F7",value:"payNo"}),s(v,{label:"\u4E70\u65B9\u516C\u53F8\u7F16\u53F7",value:"companyNo"})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),m("div",null,[s(d,{type:"primary",onClick:e[2]||(e[2]=()=>k())},{default:n(()=>[me]),_:1}),s(d,{onClick:e[3]||(e[3]=()=>k(!0))},{default:n(()=>[_e]),_:1})])]),ae((p(),y(F(te),{border:"",ref_key:"tableRef",ref:C,data:w.value,size:"small","row-key":"id",onSelectionChange:A,"mb-2":"","max-height":"520px"},{default:n(()=>[s(c,{type:"selection",width:"55"}),(p(!0),L(le,null,ue(F(pe),(a,K)=>(p(),y(c,ne({key:K},a,{"show-overflow-tooltip":""}),{default:n(({row:z})=>[a.prop==="pay_status"?(p(),y(O,{key:0},{default:n(()=>{var S;return[b(M((S=F(ie).find(q=>q.value===z.pay_status))==null?void 0:S.label),1)]}),_:2},1024)):(p(),L("span",fe,M(z[a.prop]),1))]),_:2},1040))),128))]),_:1},8,["data"])),[[H,D.value]]),m("div",ge,[s(P,{"current-page":o.page,"onUpdate:current-page":e[4]||(e[4]=a=>o.page=a),"page-size":o.size,"onUpdate:page-size":e[5]||(e[5]=a=>o.size=a),total:o.total,"page-sizes":[15,50,100],layout:"sizes, prev, pager, next",onCurrentChange:g,onSizeChange:I},null,8,["current-page","page-size","total"]),m("div",ve,[s(d,{type:"primary",onClick:T},{default:n(()=>[ye]),_:1})])])]),_:1},8,["modelValue"])}}});var be=Q(Fe,[["__scopeId","data-v-33b568bd"],["__file","D:/work/accout-vue3-ui/src/views/supply/purchPayRelive/component/choose-modal.vue"]]),Ne=Object.freeze(Object.defineProperty({__proto__:null,default:be},Symbol.toStringTag,{value:"Module"}));export{be as C,Ne as c,xe as p};