1 |
- import{_ as Q,d as Y,w as i,Z,aO as J,W as X,r as o,aC as $,o as d,G as y,C as a,l,u as m,cb as ee,b as V,M as D,H as le,bo as te,c as x,F as ae,D as oe,bw as ue,L as S,aY as ne}from"./index.fd765376.js";import{q as se}from"./status.0f05917e.js";import{c as ie}from"./index.037c4df7.js";import{D as pe}from"./date-range.03e0d64c.js";const re=[{label:"\u5BF9\u8D26\u4ED8\u6B3E\u7F16\u7801",prop:"dzNo",minWidth:160,align:"left"},{label:"\u5BF9\u8D26\u7F16\u7801",prop:"payNo",minWidth:160,align:"left"},{label:"\u5356\u65B9\u516C\u53F8\u7F16\u7801",prop:"supplierNo",minWidth:150,align:"left"},{label:"\u5356\u65B9\u516C\u53F8\u540D\u79F0",prop:"supplierName",minWidth:150,align:"left"},{label:"\u4E70\u65B9\u516C\u53F8\u7F16\u7801",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},{label:"\u7533\u8BF7\u65F6\u95F4",prop:"addtime",minWidth:120}];const de={"w-full":"",flex:"","justify-end":""},me={key:1},ce={flex:""},_e={"w-full":"",flex:"","justify-end":"","mt-2":""},fe=Y({__name:"choose-modal",emits:["choose"],setup(ge,{expose:W,emit:U}){const c=i(!1),E=i([]),b=i([]),n=Z({total:0,size:15,page:1,background:!0}),s=i({pay_status:"",currentValue:"",supplierNo:"",timer:[]}),C=i(null),F=i("dzNo"),h=i(!1),R=J(),{currentCompany:L}=X();async function _(){const{size:u,page:e}=n;h.value=!0;const{currentValue:f,timer:g,...B}=s.value,{code:v,message:p,data:r}=await ie({status:"4",[F.value]:f,companyNo:L.value.companyNo,startTime:g[0],endTime:g[1],noRela:!0,...B,page:e,size:u});R({code:v,message:p,handler:()=>{n.total=r.count,E.value=r.list}}),h.value=!1}function P(){const[u]=b.value;if(!u)return ne.warning("\u9009\u62E9\u4E00\u6761\u91C7\u8D2D\u4ED8\u6B3E");U("choose",m(u.dzNo)),c.value=!1}function M(u){if(u.length>1){const e=u.pop();C.value.clearSelection(),C.value.toggleRowSelection(e,!0),b.value=[e]}else b.value=[u[0]]}function T(){n.page=1,_()}function z(u){u&&(s.value={pay_status:"",currentValue:"",supplierNo:"",timer:[]}),n.page=1,_()}return W({onDisplay:()=>c.value=!0}),(u,e)=>{const f=o("el-option"),g=o("el-select"),B=o("el-input"),v=o("el-form-item"),p=o("el-col"),r=o("el-button"),j=o("el-row"),H=o("el-form"),N=o("el-table-column"),O=o("el-tag"),q=o("el-pagination"),A=o("el-dialog"),G=$("loading");return d(),y(A,{"close-on-click-modal":!1,modelValue:c.value,"onUpdate:modelValue":e[8]||(e[8]=t=>c.value=t),title:"\u91C7\u8D2D\u4ED8\u6B3E",center:"",width:"1040px",onOpen:e[9]||(e[9]=()=>_())},{default:a(()=>[l(H,{size:"small"},{default:a(()=>[l(j,{gutter:10},{default:a(()=>[l(p,{span:8},{default:a(()=>[l(v,null,{default:a(()=>[l(B,{clearable:"",modelValue:s.value.currentValue,"onUpdate:modelValue":e[1]||(e[1]=t=>s.value.currentValue=t),placeholder:"\u5BF9\u8D26\u7F16\u7801"},{prepend:a(()=>[l(g,{modelValue:F.value,"onUpdate:modelValue":e[0]||(e[0]=t=>F.value=t),style:{width:"135px"}},{default:a(()=>[l(f,{label:"\u5BF9\u8D26\u4ED8\u6B3E\u7F16\u7801",value:"dzNo"}),l(f,{label:"\u5BF9\u8D26\u7F16\u7801",value:"payNo"})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1}),l(p,{span:8},{default:a(()=>[l(m(pe),{modelValue:s.value.timer,"onUpdate:modelValue":e[2]||(e[2]=t=>s.value.timer=t)},null,8,["modelValue"])]),_:1}),l(p,{span:8},{default:a(()=>[l(m(ee),{modelValue:s.value.supplierNo,"onUpdate:modelValue":e[3]||(e[3]=t=>s.value.supplierNo=t),placeholder:"\u5356\u51FA\u65B9\u516C\u53F8"},null,8,["modelValue"])]),_:1}),l(p,{span:24},{default:a(()=>[V("div",de,[l(v,null,{default:a(()=>[l(r,{size:"small",type:"primary",onClick:e[4]||(e[4]=()=>z())},{default:a(()=>[D("\u641C\u7D22")]),_:1}),l(r,{size:"small",onClick:e[5]||(e[5]=()=>z(!0))},{default:a(()=>[D("\u91CD\u7F6E")]),_:1})]),_:1})])]),_:1})]),_:1})]),_:1}),le((d(),y(m(te),{border:"",ref_key:"tableRef",ref:C,data:E.value,size:"small","row-key":"id",onSelectionChange:M,"mb-2":"","max-height":"520px"},{default:a(()=>[l(N,{type:"selection",align:"center",width:"40"}),(d(!0),x(ae,null,oe(m(re),(t,I)=>(d(),y(N,ue({key:I},t,{"show-overflow-tooltip":""}),{default:a(({row:w})=>[t.prop==="pay_status"?(d(),y(O,{key:0},{default:a(()=>{var k;return[D(S((k=m(se).find(K=>K.value===w.pay_status))==null?void 0:k.label),1)]}),_:2},1024)):(d(),x("span",me,S(w[t.prop]),1))]),_:2},1040))),128))]),_:1},8,["data"])),[[G,h.value]]),V("div",ce,[l(q,{"current-page":n.page,"onUpdate:currentPage":e[6]||(e[6]=t=>n.page=t),"page-size":n.size,"onUpdate:pageSize":e[7]||(e[7]=t=>n.size=t),total:n.total,"page-sizes":[15,50,100],layout:"sizes, prev, pager, next",onCurrentChange:_,onSizeChange:T},null,8,["current-page","page-size","total"]),V("div",_e,[l(r,{type:"primary",onClick:P},{default:a(()=>[D("\u4FDD\u5B58")]),_:1})])])]),_:1},8,["modelValue"])}}});var Ce=Q(fe,[["__scopeId","data-v-c9601462"],["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/purchase/purchPayRelive/component/choose-modal.vue"]]);export{Ce as default};
|