import{_ as E,d as I,E as f,br as c,x as l,aA as U,o as i,N as d,K as r,O as q,u as a,y as u,c as F,M as j,L as K,b as M,W as y,bs as O}from"./index.743f0c80.js";import{h as T}from"./index.8212cab4.js";import{i as W}from"./configs.80dd5359.js";import{a as G,b as H}from"./index.398a38e6.js";const J={"w-full":"",flex:"","justify-end":"","mt-2":""},Q=y("\u786E\u5B9A"),X=y("\u53D6\u6D88"),Y=I({__name:"create-redink",emits:["reload"],setup(Z,{expose:h,emit:b}){const s=f(!1),g=f([]),k=o=>g.value=o,m=()=>{s.value=!1,b("reload")},z={pageSize:15,currentPage:1,total:0},{data:C,pagination:n,getPaginationParams:x,run:A,loading:B}=c({initalData:[],isList:!0,initalPagination:z}),p=()=>{A(T({status:"3",...x()}))},{run:w,loading:$}=c({success:m}),{run:D,loading:ee}=c({success:m}),P=()=>{const o=g.value.map(({invNo:e})=>e);if(o.length===1)return D(G({invNo:o[0]}));w(H({invArr:o}))};function R(){n.currentPage=1,p()}return h({onDisplay(){s.value=!0,p()}}),(o,e)=>{const _=l("el-table-column"),S=l("el-table"),L=l("el-pagination"),v=l("el-button"),N=l("el-dialog"),V=U("loading");return i(),d(N,{title:"\u521B\u5EFA\u7EA2\u51B2\u53D1\u7968",center:"",modelValue:s.value,"onUpdate:modelValue":e[4]||(e[4]=t=>s.value=t)},{default:r(()=>[q((i(),d(S,{data:a(C),"row-key":"invNo",onSelectionChange:k,"max-height":"520px"},{default:r(()=>[u(_,{type:"selection"}),(i(!0),F(K,null,j(a(W),t=>(i(),d(_,O({key:t.prop},t,{"show-overflow-tooltip":"","reserve-selection":""}),null,16))),128))]),_:1},8,["data"])),[[V,a(B)]]),u(L,{"current-page":a(n).currentPage,"onUpdate:current-page":e[0]||(e[0]=t=>a(n).currentPage=t),"page-size":a(n).pageSize,"onUpdate:page-size":e[1]||(e[1]=t=>a(n).pageSize=t),total:a(n).total,onCurrentChange:e[2]||(e[2]=()=>p()),onSizeChange:R,layout:"sizes, prev, pager, next","page-sizes":[15,50,100]},null,8,["current-page","page-size","total"]),M("div",J,[u(v,{type:"primary",size:"small",onClick:P},{default:r(()=>[Q]),_:1}),u(v,{size:"small",onClick:e[3]||(e[3]=()=>s.value=!1)},{default:r(()=>[X]),_:1})])]),_:1},8,["modelValue"])}}});var se=E(Y,[["__file","D:/work/accout-vue3-ui/src/views/InvoiceSales/redInk/components/create-redink.vue"]]);export{se as default};