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