1 |
- import{_ as $,d as ee,x as c,W as le,Z as ae,aO as te,r as o,aD as ue,o as n,G as f,D as t,l as a,m as r,cS as oe,c as b,F as A,E as S,cT as ne,cr as I,M as v,H as se,bz as pe,bJ as ie,L as B,d5 as re,h as L,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:2},ge={key:4},ye={flex:""},be={"w-full":"",flex:"","justify-end":"","mt-2":""},Ee=ee({__name:"choose-modal",emits:["choose"],setup(Be,{expose:P,emit:R}){const D=c(!1),w=c([]),F=c([]),{currentCompany:M}=le(),p=ae({total:0,size:15,page:1,background:!0}),u=c({is_comon:"0",pay_status:"0",supplierNo:"",currentValue:"",tag_id:"",timer:[]}),h=c(null),C=c("payNo"),k=c(!1),H=te();async function V(){const{size:s,page:e}=p;k.value=!0;const{currentValue:d,timer:m,...x}=u.value,{code:g,message:i,data:y}=await de({status:"2",pay_status:"0",[C.value]:d,companyNo:M.value.companyNo,startTime:m[0],endTime:m[1],...x,page:e,size:s});H({code:g,message:i,handler:()=>{p.total=y.count,w.value=y.list}}),k.value=!1}function j(){const[s]=F.value;if(!s)return me.warning("\u8BF7\u9009\u62E9\u4E00\u4E2A\u5BF9\u8D26\u5355");R("choose",r(s)),D.value=!1}function Z(s){if(s.length>1){const e=s.pop();h.value.clearSelection(),h.value.toggleRowSelection(e,!0),F.value=[e]}else F.value=[s[0]]}function q(){p.page=1,V()}function N(s){s&&(u.value={is_comon:"0",pay_status:"0",supplierNo:"",currentValue:"",tag_id:"",timer:[]}),p.page=1,V()}return P({onDisplay:()=>D.value=!0}),(s,e)=>{const d=o("el-option"),m=o("el-select"),x=o("el-input"),g=o("el-form-item"),i=o("el-col"),y=o("el-button"),G=o("el-row"),J=o("el-form"),U=o("el-table-column"),W=o("el-tag"),T=o("IconifyIconOffline"),O=o("ElTooltip"),K=o("el-pagination"),Q=o("el-dialog"),X=ue("loading");return n(),f(Q,{top:"10vh","close-on-click-modal":!1,modelValue:D.value,"onUpdate:modelValue":e[12]||(e[12]=l=>D.value=l),title:"\u8BA2\u5355\u5BF9\u8D26",center:"",width:"1040px",onOpen:e[13]||(e[13]=()=>V())},{default:t(()=>[a(J,{size:"small"},{default:t(()=>[a(G,{gutter:8},{default:t(()=>[a(i,{span:8},{default:t(()=>[a(g,null,{default:t(()=>[a(x,{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(oe),{modelValue:u.value.supplierNo,"onUpdate:modelValue":e[3]||(e[3]=l=>u.value.supplierNo=l),placeholder:"\u5356\u51FA\u65B9\u516C\u53F8"},null,8,["modelValue"])]),_:1}),a(i,{span:6},{default:t(()=>[a(g,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(g,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),b(A,null,S(r(ne),l=>(n(),f(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]=()=>N(!1))},{default:t(()=>[(n(!0),b(A,null,S(r(I),l=>(n(),f(d,{label:l.label,value:l.value},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])]),_:1}),a(i,{span:6},{default:t(()=>[a(g,null,{default:t(()=>[a(y,{type:"primary",onClick:e[8]||(e[8]=()=>N())},{default:t(()=>[v("\u641C\u7D22")]),_:1}),a(y,{onClick:e[9]||(e[9]=()=>N(!0))},{default:t(()=>[v("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),se((n(),f(r(pe),{border:"",ref_key:"tableRef",ref:h,data:w.value,size:"small","row-key":"id",onSelectionChange:Z,"mb-2":"","max-height":"520px"},{default:t(()=>[a(U,{type:"selection",align:"center",width:"40",fixed:"left"}),(n(!0),b(A,null,S(r(ce),(l,Y)=>(n(),f(U,ie({key:Y},l,{"show-overflow-tooltip":""}),{default:t(({row:_})=>[l.prop==="pay_status"?(n(),f(W,{key:0,size:"small"},{default:t(()=>{var E;return[v(B((E=r(re).find(z=>z.value===String(_.pay_status)))==null?void 0:E.label),1)]}),_:2},1024)):l.prop==="supplierName"?(n(),b("span",fe,[a(O,{placement:"left",content:"\u4F9B\u5E94\u5546\u7F16\u7801:"+_.supplierNo},{default:t(()=>[a(T,{class:"inline-block mr-[2px] cursor-pointer",icon:"information-line"})]),_:2},1032,["content"]),v(" "+B(_.supplierName),1)])):l.prop==="companyName"?(n(),b("span",ve,[a(O,{placement:"left",content:"\u4E1A\u52A1\u516C\u53F8\u7F16\u7801:"+_.companyNo},{default:t(()=>[a(T,{class:"inline-block mr-[2px] cursor-pointer",icon:"information-line"})]),_:2},1032,["content"]),v(" "+B(_.companyName),1)])):l.prop==="is_comon"?(n(),f(W,{key:3},{default:t(()=>{var E;return[v(B((E=r(I).find(z=>z.value==_.is_comon))==null?void 0:E.label),1)]}),_:2},1024)):(n(),b("span",ge,B(_[l.prop]),1))]),_:2},1040))),128))]),_:1},8,["data"])),[[X,k.value]]),L("div",ye,[a(K,{"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:V,onSizeChange:q},null,8,["current-page","page-size","total"]),L("div",be,[a(y,{type:"primary",size:"small",onClick:j},{default:t(()=>[v(" \u4FDD\u5B58 ")]),_:1})])])]),_:1},8,["modelValue"])}}});var Fe=$(Ee,[["__scopeId","data-v-a54e4524"],["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/purchase/purchPay/component/choose-modal.vue"]]);export{Fe as default};
|