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