1 |
- import{_ as Y,d as Z,E as y,a5 as $,br as ee,F as le,x as n,aA as ae,o as s,N as i,K as a,y as t,c as V,M as x,u,L as z,b as k,O as te,bj as oe,W as m,bs as F,T as E,a as ue}from"./index.743f0c80.js";import{b as ne}from"./index.52029f71.js";import{s as U,c as se}from"./configs.f1e22553.js";import{c as P}from"./status.868e86c0.js";const re={flex:"","gap-2":"","justify-end":"","mb-1":""},de=m("\u641C\u7D22"),ie=m("\u91CD\u7F6E"),pe={flex:"","justify-between":"","mt-2":""},me=m("\u4FDD\u5B58"),ce=m("\u53D6\u6D88"),_e=Z({__name:"sales-modal",emits:["save-click-button"],setup(fe,{expose:h,emit:A}){const c=y(!1),o=y({sequenceNo:"",qrdtype:"",qrdsource:"",customer:"",platName:"",cxCode:""}),{currentCompany:L}=$(),b=y([]),T=y(null),j={pageSize:15,currentPage:1,total:0},{loading:M,run:O,data:R,pagination:r}=ee({initalData:[],isList:!0,initalPagination:j}),I=d=>b.value=d,_=()=>{const{currentPage:d,pageSize:l}=r;O(ne({pay_status:"0",size:l,page:d,companyNo:L.value.companyNo,...o.value}))};function K(){A("save-click-button",u(b)),c.value=!1}const S=d=>{r.currentPage=1,d&&(o.value={}),_()};function W(){r.currentPage=1,_()}return h({onDisplay:d=>{c.value=!0,_()}}),le(()=>_()),(d,l)=>{const v=n("el-input"),p=n("el-col"),q=n("el-option"),w=n("el-select"),D=n("el-row"),g=n("el-button"),N=n("el-tag"),G=n("el-table-column"),H=n("el-pagination"),J=n("el-dialog"),Q=ae("loading");return s(),i(J,{modelValue:c.value,"onUpdate:modelValue":l[11]||(l[11]=e=>c.value=e),title:"\u9500\u552E\u5355",width:"1040px",onClose:l[12]||(l[12]=()=>b.value=[]),center:""},{default:a(()=>[t(D,{gutter:10,style:{"margin-bottom":"10px"}},{default:a(()=>[t(p,{span:8},{default:a(()=>[t(v,{modelValue:o.value.sequenceNo,"onUpdate:modelValue":l[0]||(l[0]=e=>o.value.sequenceNo=e),placeholder:"\u8BA2\u5355\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),t(p,{span:8},{default:a(()=>[t(w,{class:"w-full",modelValue:o.value.qrdsource,"onUpdate:modelValue":l[1]||(l[1]=e=>o.value.qrdsource=e),placeholder:"\u8BA2\u5355\u6765\u6E90"},{default:a(()=>[(s(!0),V(z,null,x(u(P),e=>(s(),i(q,F({key:e.value},e),null,16))),128))]),_:1},8,["modelValue"])]),_:1}),t(p,{span:8},{default:a(()=>[t(w,{class:"w-full",modelValue:o.value.qrdtype,"onUpdate:modelValue":l[2]||(l[2]=e=>o.value.qrdtype=e),placeholder:"\u5546\u54C1\u7C7B\u578B"},{default:a(()=>[(s(!0),V(z,null,x(u(U),e=>(s(),i(q,F({key:e.value},e),null,16))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),t(D,{gutter:10,style:{"margin-bottom":"10px"}},{default:a(()=>[t(p,{span:8},{default:a(()=>[t(v,{placeholder:"\u5BA2\u6237\u540D\u79F0",modelValue:o.value.customer,"onUpdate:modelValue":l[3]||(l[3]=e=>o.value.customer=e)},null,8,["modelValue"])]),_:1}),t(p,{span:8},{default:a(()=>[t(v,{placeholder:"\u5E73\u53F0\u540D\u79F0",modelValue:o.value.platName,"onUpdate:modelValue":l[4]||(l[4]=e=>o.value.platName=e)},null,8,["modelValue"])]),_:1}),t(p,{span:8},{default:a(()=>[t(v,{placeholder:"\u9500\u552E\u8BA2\u5355\u4E3B\u7F16\u53F7",modelValue:o.value.cxCode,"onUpdate:modelValue":l[5]||(l[5]=e=>o.value.cxCode=e)},null,8,["modelValue"])]),_:1})]),_:1}),k("div",re,[t(g,{size:"small",type:"primary",onClick:l[6]||(l[6]=()=>S())},{default:a(()=>[de]),_:1}),t(g,{size:"small",onClick:l[7]||(l[7]=()=>S(!0))},{default:a(()=>[ie]),_:1})]),te((s(),i(u(oe),{data:u(R),onSelectionChange:I,ref_key:"tableRef",ref:T,border:"",size:"small","row-key":"sequenceNo","max-height":"520px"},{default:a(()=>[(s(!0),V(z,null,x(u(se),(e,X)=>(s(),i(G,{prop:e.field,label:e.label,key:X,width:e.width+"px",fixed:e.fixed,type:e.type,"show-overflow-tooltip":""},{default:a(({row:B})=>[e.field==="qrdType"?(s(),i(N,{key:0},{default:a(()=>{var f;return[m(E((f=u(U).find(C=>C.value===B.qrdType))==null?void 0:f.label),1)]}),_:2},1024)):e.field==="qrdSource"?(s(),i(N,{key:1},{default:a(()=>{var f;return[m(E((f=u(P).find(C=>C.value===B.qrdSource))==null?void 0:f.label),1)]}),_:2},1024)):ue("v-if",!0)]),_:2},1032,["prop","label","width","fixed","type"]))),128))]),_:1},8,["data"])),[[Q,u(M)]]),k("div",pe,[t(H,{"current-page":u(r).currentPage,"onUpdate:current-page":l[8]||(l[8]=e=>u(r).currentPage=e),"page-size":u(r).pageSize,"onUpdate:page-size":l[9]||(l[9]=e=>u(r).pageSize=e),total:u(r).total,"page-sizes":[15,50,100],onSizeChange:W,layout:"sizes, prev, pager, next",onCurrentChange:_,size:"small"},null,8,["current-page","page-size","total"]),k("div",null,[t(g,{type:"primary",onClick:K,size:"small"},{default:a(()=>[me]),_:1}),t(g,{onClick:l[10]||(l[10]=()=>c.value=!1),size:"small"},{default:a(()=>[ce]),_:1})])])]),_:1},8,["modelValue"])}}});var Ce=Y(_e,[["__file","D:/work/accout-vue3-ui/src/views/InvoiceSales/capitalClaim/components/basic-claim/sales-modal.vue"]]);export{Ce as default};
|