import{_ as D,d as g,n as c,r,o as h,c as C,e as w,h as o,y as a,H as u,G as m,F as k,i as v}from"./index.js";import F from"./invoice-form.2bad9e.js";import"./_rules.e8143b8f.js";import"./global.9ad647c8.js";const x={flex:"","w-full":"","justify-end":"","mb-5":""},A=g({__name:"invoice-table",emits:["change"],setup(E,{emit:f}){const s=f,t=c([]),p=c(null);function d(n){t.value=[...t.value,...Array.isArray(n)?n:[n]],s("change",v(t))}function b({$index:n}){t.value.splice(n,1),s("change",v(t))}return(n,i)=>{const _=r("el-button"),l=r("el-table-column"),y=r("el-table");return h(),C(k,null,[w("div",x,[o(_,{type:"primary",link:"",onClick:i[0]||(i[0]=()=>{var e;return(e=p.value)==null?void 0:e.onDisplay()})},{default:a(()=>i[1]||(i[1]=[u(" \u6DFB\u52A0 ")])),_:1})]),o(y,{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})=>[u(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})=>[u(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:()=>b(e)},{default:a(()=>i[2]||(i[2]=[u(" \u5220\u9664 ")])),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"]),o(F,{ref_key:"invoiceFormRef",ref:p,onChange:d},null,512)],64)}}});var I=D(A,[["__file","D:/work/jiesuan/settle-vue3/src/views/supplyNew/inputInvoicePool/components/invoice-table.vue"]]);export{I as default};
