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