12345678910111213 |
- import{_ as ee,d as le,x as m,W as te,Z as ue,aO as ae,aZ as k,r as a,aD as oe,o as i,G as f,D as u,l as t,m as v,cS as ne,a as se,c as V,F as A,E as W,cT as re,M as E,H as ie,bz as pe,bJ as de,L as U,h as M,cU 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=le({__name:"choose-modal",props:{supplierNo:{type:String,required:!0},customerNo:{type:String,required:!0},platformType:{type:String,required:!0}},emits:["choose"],setup(R,{expose:T,emit:L}){const g=R,y=m(!1),N=m([]),b=m([]);te();const s=ue({total:0,size:15,page:1,background:!0}),n=m({inv_status:"0",supplierNo:"",currentValue:"",tag_id:"",timer:[]}),B=m(null),F=m("payNo"),h=m(!1),O=ae();async function D(){const{size:o,page:e}=s;h.value=!0;const{currentValue:p,timer:r,...C}=n.value,{code:_,message:d,data:c}=await me({inv_status:"0",status:"2",is_comon:"1",[F.value]:p,startTime:r[0],endTime:r[1],platform_type:g.platformType,...C,noRela:!0,companyNo:g.customerNo,supplierNo:g.supplierNo,page:e,size:o});O({code:_,message:d,handler:()=>{s.total=c.count,N.value=c.list}}),h.value=!1}function q(){const[o]=b.value;if(!o)return k.warning("\u8BF7\u9009\u62E9\u4E00\u4E2A\u5BF9\u8D26\u5355");L("choose",o.payNo),y.value=!1}function P(o){var e,p;if(o.length>1){const r=o.pop();(e=B.value)==null||e.clearSelection(),(p=B.value)==null||p.toggleRowSelection(r,!0),b.value=[r]}else b.value=[o[0]]}const H=[{value:"1",label:"\u672A\u56DE\u7968"},{value:"2",label:"\u90E8\u5206\u56DE\u7968"},{value:"3",label:"\u5DF2\u56DE\u7968"}];function j(){s.page=1,D()}function x(o){o&&(n.value={currentValue:"",inv_status:"0",supplierNo:"",tag_id:"",timer:[]}),s.page=1,D()}return T({onDisplay:()=>{if(!g.customerNo){k.warning("\u8BF7\u9009\u62E9\u9500\u552E\u65B9\u516C\u53F8\u62AC\u5934\u548C\u8D2D\u4E70\u65B9\u516C\u53F8\u62AC\u5934");return}y.value=!0}}),(o,e)=>{const p=a("el-option"),r=a("el-select"),C=a("el-input"),_=a("el-form-item"),d=a("el-col"),c=a("el-button"),I=a("el-row"),Z=a("el-form"),w=a("el-table-column"),G=a("el-tag"),J=a("el-pagination"),K=a("ChooseEditModal"),Q=a("el-dialog"),X=oe("loading");return i(),f(Q,{"close-on-click-modal":!1,"close-on-press-escape":!1,modelValue:y.value,"onUpdate:modelValue":e[9]||(e[9]=l=>y.value=l),title:"\u8BA2\u5355\u5BF9\u8D26",center:"",width:"1040px",top:"10px",onOpen:e[10]||(e[10]=()=>D())},{default:u(()=>[t(Z,{size:"small"},{default:u(()=>[t(I,{gutter:8},{default:u(()=>[t(d,{span:8,style:{"margin-bottom":"10px"}},{default:u(()=>[t(_,null,{default:u(()=>[t(C,{clearable:"",modelValue:n.value.currentValue,"onUpdate:modelValue":e[1]||(e[1]=l=>n.value.currentValue=l),placeholder:"\u8BF7\u8F93\u5165"},{prepend:u(()=>[t(r,{modelValue:F.value,"onUpdate:modelValue":e[0]||(e[0]=l=>F.value=l),style:{width:"130px"}},{default:u(()=>[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:u(()=>[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:u(()=>[t(v(ne),{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}),se(` <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:u(()=>[t(_,null,{default:u(()=>[t(r,{"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:u(()=>[(i(!0),V(A,null,W(v(re),l=>(i(),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:u(()=>[t(_,null,{default:u(()=>[t(c,{type:"primary",onClick:e[5]||(e[5]=()=>x())},{default:u(()=>[E("\u641C\u7D22")]),_:1}),t(c,{onClick:e[6]||(e[6]=()=>x(!0))},{default:u(()=>[E("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),ie((i(),f(v(pe),{border:"",ref_key:"tableRef",ref:B,data:N.value,size:"small","row-key":"id",onSelectionChange:P,"mb-2":"","max-height":"520px"},{default:u(()=>[t(w,{type:"selection",align:"center",width:"40",fixed:"left"}),(i(!0),V(A,null,W(v(_e),(l,Y)=>(i(),f(w,de({key:Y},l,{"show-overflow-tooltip":""}),{default:u(({row:S})=>[l.prop==="inv_status"?(i(),f(G,{key:0,size:"small"},{default:u(()=>{var z;return[E(U((z=H.find($=>$.value===String(S.inv_status)))==null?void 0:z.label),1)]}),_:2},1024)):(i(),V("span",fe,U(S[l.prop]),1))]),_:2},1040))),128))]),_:1},8,["data"])),[[X,h.value]]),M("div",ve,[t(J,{"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:D,onSizeChange:j},null,8,["current-page","page-size","total"]),M("div",ge,[t(c,{type:"primary",size:"small",onClick:q},{default:u(()=>[E("\u4FDD\u5B58")]),_:1})])]),t(K,{ref:"chooseEditModalRef"},null,512)]),_:1},8,["modelValue"])}}});var be=ee(ye,[["__scopeId","data-v-34c62dfc"],["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/InvoiceSales/invoiceApply/components/currentcy-form-wanyu/chooseForm/choose-modal.vue"]]);export{be as default};
|