import{_ as h,d as w,x as p,r as a,o as y,c as C,h as c,l as e,D as n,M as _,a as F,F as D,m}from"./index.js";import k from"./invoice-form.2be928.js";import"./_details.f4fcbef3.js";import"./_rules.1a544eb3.js";import"./global.9ad647c8.js";const x={flex:"","w-full":"","justify-end":"","mb-5":""},g={class:"flex w-full justify-end"},A=w({__name:"invoice-table",emits:["change"],setup(E,{emit:u}){const l=p([]),r=p(null);function v(t){l.value=[...l.value,...Array.isArray(t)?t:[t]],u("change",m(l))}function f({$index:t}){l.value.splice(t,1),u("change",m(l))}return(t,i)=>{const s=a("el-button"),o=a("el-table-column"),b=a("el-table");return y(),C(D,null,[c("div",x,[e(s,{type:"primary",link:"",onClick:i[0]||(i[0]=()=>r.value.onDisplay())},{default:n(()=>[_("\u6DFB\u52A0")]),_:1})]),e(b,{size:"small",data:l.value,border:""},{default:n(()=>[e(o,{type:"index",width:"50"}),F(` \r \r `),e(o,{label:"\u53D1\u7968\u53F7\u7801",prop:"invNumber","show-overflow-tooltip":""}),e(o,{label:"\u53D1\u7968\u4EE3\u7801",prop:"invCode","show-overflow-tooltip":""}),e(o,{label:"\u6821\u9A8C\u7801",prop:"checkNumber","show-overflow-tooltip":""}),e(o,{label:"\u7A0E\u524D\u91D1\u989D",prop:"subtotal_amount"}),e(o,{label:"\u5F00\u7968\u65E5\u671F",prop:"open_time","show-overflow-tooltip":""}),e(o,{label:"\u64CD\u4F5C"},{default:n(d=>[c("div",g,[e(s,{link:"",type:"primary",onClick:()=>f(d)},{default:n(()=>[_("\u5220\u9664")]),_:2},1032,["onClick"])])]),_:1})]),_:1},8,["data"]),e(k,{ref_key:"invoceFormRef",ref:r,onChange:v},null,512)],64)}}});var j=h(A,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/purchase/ticketReturnRelive/components/invoice-table.vue"]]);export{j as default};