import{_ as h,d as w,x as m,r as u,o as g,c as D,h as C,l as e,D as a,M as i,a as r,L as v,F,m as f}from"./index.js";import x from"./invoice-form.585331.js";import"./_details.3c420194.js";import"./global.9ad647c8.js";const k={flex:"","w-full":"","justify-end":"","mb-5":""},T=w({__name:"invoice-table",emits:["change"],setup(E,{emit:p}){const t=m([]),c=m(null);function b(n){t.value=[...t.value,...Array.isArray(n)?n:[n]],p("change",f(t))}function d({$index:n}){t.value.splice(n,1),p("change",f(t))}return(n,s)=>{const _=u("el-button"),o=u("el-table-column"),y=u("el-table");return g(),D(F,null,[C("div",k,[e(_,{type:"primary",link:"",onClick:s[0]||(s[0]=()=>c.value.onDisplay())},{default:a(()=>[i("\u6DFB\u52A0")]),_:1})]),e(y,{size:"small",data:t.value,border:""},{default:a(()=>[e(o,{type:"index",width:"50"}),r(` \r
\r
{{ inv_type_ls_cg.find(t => t.value === row.invType)?.label}}\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":""}),r(' '),r(` \r
\r
\r
\r
`),e(o,{label:"\u7A0E\u524D\u91D1\u989D",prop:"subtotal_amount"},{default:a(({row:l})=>[i(v(l.invoiceType==="fully_digitalized_special_electronic"||l.invoiceType==="fully_digitalized_normal_electronic"?"":l.subtotal_amount),1)]),_:1}),e(o,{label:"\u7A0E\u540E\u91D1\u989D",prop:"subtotal_amount"},{default:a(({row:l})=>[i(v(l.invoiceType==="fully_digitalized_special_electronic"||l.invoiceType==="fully_digitalized_normal_electronic"?l.subtotal_amount:""),1)]),_:1}),e(o,{label:"\u5F00\u7968\u65E5\u671F",prop:"open_time","show-overflow-tooltip":""}),e(o,{label:"\u64CD\u4F5C",width:"60px"},{default:a(l=>[e(_,{link:"",type:"primary",onClick:()=>d(l)},{default:a(()=>[i("\u5220\u9664")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"]),e(x,{ref_key:"invoceFormRef",ref:c,onChange:b},null,512)],64)}}});var V=h(T,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/purchase/invoiceRelation/components/invoice-table.vue"]]);export{V as default};