import{_ as g,d as h,n as m,r,o as D,c as C,e as F,h as e,y as a,H as u,a as p,G as v,F as k,i as f}from"./index.js";import x from"./invoice-form.21edf8.js";import"./_details.2f15a3c7.js";import"./global.9ad647c8.js";const T={flex:"","w-full":"","justify-end":"","mb-5":""},E=h({__name:"invoice-table",emits:["change"],setup(N,{emit:b}){const s=b,t=m([]),c=m(null);function d(n){t.value=[...t.value,...Array.isArray(n)?n:[n]],s("change",f(t))}function y({$index:n}){t.value.splice(n,1),s("change",f(t))}return(n,i)=>{const _=r("el-button"),o=r("el-table-column"),w=r("el-table");return D(),C(k,null,[F("div",T,[e(_,{type:"primary",link:"",onClick:i[0]||(i[0]=()=>c.value.onDisplay())},{default:a(()=>i[1]||(i[1]=[u("\u6DFB\u52A0")])),_:1})]),e(w,{size:"small",data:t.value,border:""},{default:a(()=>[e(o,{type:"index",width:"50"}),p(` <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":""}),p(' <el-table-column label="\u53D1\u7968\u540D\u79F0" prop="invName" show-overflow-tooltip /> '),p(` <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})=>[u(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})=>[u(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:()=>y(l)},{default:a(()=>i[2]||(i[2]=[u("\u5220\u9664")])),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"]),e(x,{ref_key:"invoceFormRef",ref:c,onChange:d},null,512)],64)}}});var R=g(E,[["__file","D:/work/jiesuan/settle-vue3/src/views/purchaseNew/invoiceRelation/components/invoice-table.vue"]]);export{R as default};
