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