import{_ as w,d as h,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.8160a6.js";import"./_details.31e45633.js";import"./global.9ad647c8.js";const k={flex:"","w-full":"","justify-end":"","mb-5":""},T=h({__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(` <el-table-column label="\u53D1\u7968\u7C7B\u578B" prop="invType" show-overflow-tooltip>\r
     <template #="{ row }">\r
       <el-tag>{{ inv_type_ls_cg.find(t => t.value === row.invType)?.label}}</el-tag>\r
      </template>\r
    </el-table-column> `),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(' <el-table-column label="\u53D1\u7968\u540D\u79F0" prop="invName" show-overflow-tooltip /> '),r(` <el-table-column label="\u53D1\u7968\u56FE\u7247" prop="inv_img" show-overflow-tooltip>\r
      <template #="{ row }">\r
        <el-image\r
          :src="row.inv_img"\r
          :preview-src-list="[row.inv_img]"\r
          style="height: 30px"\r
          preview-teleported\r
        />\r
      </template>\r
    </el-table-column> `),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=w(T,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/supply/invoiceRelation/components/invoice-table.vue"]]);export{V as default};
