1 |
- import{_ as Y,d as $,x as _,W as ee,Z as le,aO as ae,r as o,aD as te,o as n,G as c,D as t,l as a,m as r,bI as ue,c as y,F as x,E as z,cT as oe,dO as O,M as b,H as ne,bz as se,bJ as pe,L as A,d5 as ie,a as re,h as I,d6 as de,aZ as me}from"./index.js";import{D as _e}from"./date-range.4010f801.js";const ce=[{label:"\u5BF9\u8D26\u7F16\u7801",prop:"payNo",minWidth:160,align:"left"},{label:"\u4E1A\u52A1\u7C7B\u578B",prop:"is_comon",minWidth:100},{label:"\u4F9B\u5E94\u5546\u540D\u79F0",prop:"supplierName",minWidth:180,align:"left"},{label:"\u4E1A\u52A1\u516C\u53F8\u540D\u79F0",prop:"companyName",minWidth:180},{label:"\u4ED8\u6B3E\u72B6\u6001",prop:"pay_status",minWidth:100},{label:"\u603B\u989D\u6B3E",prop:"total_fee",minWidth:110,align:"total_fee"},{label:"\u4ED8\u6B3E\u6807\u7B7E\u91D1\u989D",prop:"pay_tag_fee",minWidth:110,align:"left"},{label:"\u5DF2\u4ED8\u6B3E\u91D1\u989D",prop:"apay_fee",minWidth:110,align:"left"},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name",minWidth:90},{label:"\u7533\u8BF7\u65F6\u95F4",prop:"addtime",minWidth:120}];const fe={key:1},ve={key:3},ge={flex:""},ye={"w-full":"",flex:"","justify-end":"","mt-2":""},be=$({__name:"choose-modal",emits:["choose"],setup(Be,{expose:R,emit:T}){const B=_(!1),S=_([]),D=_([]),{currentCompany:L}=ee(),p=le({total:0,size:15,page:1,background:!0}),u=_({is_comon:"0",pay_status:"0",companyNo:"",currentValue:"",tag_id:"",timer:[]}),V=_(!1),C=_("payNo"),P=ae(),h=_(null);async function E(){const{size:s,page:e}=p;V.value=!0;const{currentValue:d,timer:m,...k}=u.value,{code:f,message:i,data:v}=await de({pay_status:"0",status:"2",[C.value]:d,supplierNo:L.value.companyNo,startTime:m[0],endTime:m[1],...k,noRela:!0,page:e,size:s});P({code:f,message:i,handler:()=>{p.total=v.count,S.value=v.list}}),V.value=!1}function M(){const[s]=D.value;if(!s)return me.warning("\u8BF7\u9009\u62E9\u4E00\u4E2A\u5BF9\u8D26\u5355");T("choose",r(s.payNo)),B.value=!1}function H(s){if(s.length>1){const e=s.pop();h.value.clearSelection(),h.value.toggleRowSelection(e,!0),D.value=[e]}else D.value=[s[0]]}function j(){p.page=1,E()}function F(s){s&&(u.value={is_comon:"0",pay_status:"0",companyNo:"",currentValue:"",tag_id:"",timer:[]}),p.page=1,E()}return R({onDisplay:()=>B.value=!0}),(s,e)=>{const d=o("el-option"),m=o("el-select"),k=o("el-input"),f=o("el-form-item"),i=o("el-col"),v=o("el-button"),Z=o("el-row"),q=o("el-form"),U=o("el-table-column"),W=o("el-tag"),G=o("IconifyIconOffline"),J=o("el-pagination"),K=o("el-dialog"),Q=te("loading");return n(),c(K,{onOpen:e[12]||(e[12]=()=>E()),"close-on-click-modal":!1,modelValue:B.value,"onUpdate:modelValue":e[13]||(e[13]=l=>B.value=l),title:"\u8BA2\u5355\u5BF9\u8D26",width:"1040px",center:""},{default:t(()=>[a(q,{size:"small"},{default:t(()=>[a(Z,{gutter:8},{default:t(()=>[a(i,{span:8},{default:t(()=>[a(f,null,{default:t(()=>[a(k,{clearable:"",modelValue:u.value.currentValue,"onUpdate:modelValue":e[1]||(e[1]=l=>u.value.currentValue=l),placeholder:"\u8BF7\u8F93\u5165"},{prepend:t(()=>[a(m,{modelValue:C.value,"onUpdate:modelValue":e[0]||(e[0]=l=>C.value=l),style:{width:"130px"}},{default:t(()=>[a(d,{label:"\u5BF9\u8D26\u7F16\u7801",value:"payNo"})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1}),a(i,{span:8},{default:t(()=>[a(r(_e),{modelValue:u.value.timer,"onUpdate:modelValue":e[2]||(e[2]=l=>u.value.timer=l)},null,8,["modelValue"])]),_:1}),a(i,{span:8},{default:t(()=>[a(r(ue),{modelValue:u.value.companyNo,"onUpdate:modelValue":e[3]||(e[3]=l=>u.value.companyNo=l),placeholder:"\u4E70\u5165\u65B9\u516C\u53F8"},null,8,["modelValue"])]),_:1}),a(i,{span:6},{default:t(()=>[a(f,null,{default:t(()=>[a(m,{"w-80":"",modelValue:u.value.pay_status,"onUpdate:modelValue":e[4]||(e[4]=l=>u.value.pay_status=l),placeholder:"\u4ED8\u6B3E\u72B6\u6001"},{default:t(()=>[a(d,{value:"0",label:"\u672A\u4ED8\u6B3E\u6216\u90E8\u5206\u4ED8\u6B3E"}),a(d,{value:"1",label:"\u672A\u4ED8\u6B3E"}),a(d,{value:"2",label:"\u90E8\u5206\u4ED8\u6B3E"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),a(i,{span:6},{default:t(()=>[a(f,null,{default:t(()=>[a(m,{"w-80":"",modelValue:u.value.tag_id,"onUpdate:modelValue":e[5]||(e[5]=l=>u.value.tag_id=l),placeholder:"\u6807\u7B7E\u72B6\u6001"},{default:t(()=>[(n(!0),y(x,null,z(r(oe),l=>(n(),c(d,{key:l.value,value:l.value,label:l.label},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),a(i,{span:6},{default:t(()=>[a(m,{modelValue:u.value.is_comon,"onUpdate:modelValue":e[6]||(e[6]=l=>u.value.is_comon=l),style:{width:"155px"},placeholder:"\u4E1A\u52A1\u7C7B\u578B",onChange:e[7]||(e[7]=()=>F(!1))},{default:t(()=>[(n(!0),y(x,null,z(r(O),l=>(n(),c(d,{label:l.label,value:l.value},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])]),_:1}),a(i,{span:6},{default:t(()=>[a(f,null,{default:t(()=>[a(v,{type:"primary",onClick:e[8]||(e[8]=()=>F())},{default:t(()=>[b("\u641C\u7D22")]),_:1}),a(v,{onClick:e[9]||(e[9]=()=>F(!0))},{default:t(()=>[b("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),ne((n(),c(r(se),{border:"",ref_key:"tableRef",ref:h,data:S.value,size:"small","row-key":"id",onSelectionChange:H,"mb-2":"","max-height":"520px"},{default:t(()=>[a(U,{type:"selection",align:"center",width:"40",fixed:"left"}),(n(!0),y(x,null,z(r(ce),(l,X)=>(n(),c(U,pe({key:X},l,{"show-overflow-tooltip":""}),{default:t(({row:N})=>[l.prop==="pay_status"?(n(),c(W,{key:0},{default:t(()=>{var g;return[b(A((g=r(ie).find(w=>w.value===String(N.pay_status)))==null?void 0:g.label),1)]}),_:2},1024)):re("v-if",!0),(l.prop="supplierNo")?(n(),y("span",fe,[a(G,{icon:"sort"})])):l.prop==="is_comon"?(n(),c(W,{key:2},{default:t(()=>{var g;return[b(A((g=r(O).find(w=>w.value===N.is_comon))==null?void 0:g.label),1)]}),_:2},1024)):(n(),y("span",ve,A(N[l.prop]),1))]),_:2},1040))),128))]),_:1},8,["data"])),[[Q,V.value]]),I("div",ge,[a(J,{"current-page":p.page,"onUpdate:currentPage":e[10]||(e[10]=l=>p.page=l),"page-size":p.size,"onUpdate:pageSize":e[11]||(e[11]=l=>p.size=l),total:p.total,"page-sizes":[15,50,100],layout:"sizes, prev, pager, next",onCurrentChange:E,onSizeChange:j},null,8,["current-page","page-size","total"]),I("div",ye,[a(v,{type:"primary",size:"small",onClick:M},{default:t(()=>[b("\u4FDD\u5B58")]),_:1})])])]),_:1},8,["modelValue"])}}});var Ve=Y(be,[["__scopeId","data-v-0fd29adc"],["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/supply/purchPay/component/choose-modal.vue"]]);export{Ve as default};
|