1 |
- import{_ as L,d as E,E as p,b3 as M,x as i,aA as O,o as c,N as v,K as u,b as m,y as n,O as T,u as o,b5 as I,c as R,M as j,L as q,W as C}from"./index.1417328f.js";import{d as K}from"./index.da2264ed.js";import{C as W,t as G}from"./tragelog.5720fe1a.js";const H={flex:"","mb-2":""},J={flex:"","flex-1":"",gap:"5",pr:"20px"},Q={flex:"",width:"120px"},X=C("\u641C\u7D22"),Y=C("\u91CD\u7F6E"),Z={flex:"","justify-between":"","mt-2":""},$=C("\u786E\u5B9A"),ee=E({__name:"capital-modal",emits:["on-add-order"],setup(te,{expose:y,emit:h}){const r=p(!1),_=p([]);W.filter(({field:a})=>a!=="status");const g=p(null),{run:N,data:S,loading:V,pagination:l}=M({initalData:[],isList:!0,initalPagination:{currentPage:1,pageSize:15,total:0}}),s=p({tradNo:"",logNo:""}),d=()=>{const{pageSize:a,currentPage:e}=l;N(K({status:"2",...s.value,page:e,size:a}))};function w(){r.value=!1,h("on-add-order",o(_.value[0]))}function D(a){if(a.length>1){const e=a.pop();g.value.clearSelection(),g.value.toggleRowSelection(e,!0),_.value=[e]}else _.value=[a[0]]}function z(a=!1){a&&(s.value={tradNo:"",logNo:""}),l.currentPage=1,d()}function k(){l.currentPage=1,d()}return y({onDisplay:()=>r.value=!0}),(a,e)=>{const b=i("el-input"),f=i("el-button"),x=i("el-table-column"),P=i("el-pagination"),A=i("el-dialog"),B=O("loading");return c(),v(A,{modelValue:r.value,"onUpdate:modelValue":e[6]||(e[6]=t=>r.value=t),title:"\u8D44\u91D1\u8BA4\u9886",center:"",onOpen:e[7]||(e[7]=()=>d())},{default:u(()=>[m("div",H,[m("div",J,[n(b,{placeholder:"\u8D44\u91D1\u7F16\u53F7",size:"small",modelValue:s.value.tradNo,"onUpdate:modelValue":e[0]||(e[0]=t=>s.value.tradNo=t)},null,8,["modelValue"]),n(b,{placeholder:"\u8BA4\u9886\u7F16\u53F7",size:"small",modelValue:s.value.logNo,"onUpdate:modelValue":e[1]||(e[1]=t=>s.value.logNo=t)},null,8,["modelValue"])]),m("div",Q,[n(f,{size:"small",type:"primary",onClick:e[2]||(e[2]=()=>z())},{default:u(()=>[X]),_:1}),n(f,{size:"small",onClick:e[3]||(e[3]=()=>z(!0))},{default:u(()=>[Y]),_:1})])]),T((c(),v(o(I),{border:"",ref_key:"tableRef",ref:g,data:o(S),size:"small","row-key":"id",onSelectionChange:D,"max-height":"520px"},{default:u(()=>[n(x,{type:"selection",width:"55"}),(c(!0),R(q,null,j(o(G),({field:t,label:U,width:F})=>(c(),v(x,{key:t,prop:t,label:U,width:F,"show-overflow-tooltip":""},null,8,["prop","label","width"]))),128))]),_:1},8,["data"])),[[B,o(V)]]),m("div",Z,[n(P,{total:o(l).total,"current-page":o(l).currentPage,"onUpdate:current-page":e[4]||(e[4]=t=>o(l).currentPage=t),"page-size":o(l).pageSize,"onUpdate:page-size":e[5]||(e[5]=t=>o(l).pageSize=t),onCurrentChange:d,onSizeChange:k,layout:"sizes, prev, pager, next","page-sizes":[15,50,100]},null,8,["total","current-page","page-size"]),n(f,{type:"primary",size:"small",onClick:w},{default:u(()=>[$]),_:1})])]),_:1},8,["modelValue"])}}});var ne=L(ee,[["__scopeId","data-v-31127b90"],["__file","/Users/apple/Desktop/Company Projects/accout-vue3-ui/src/views/InvoiceSales/refund/components/capital-modal.vue"]]);export{ne as default};
|