import{_ as h,d as y,n as m,r as u,o as g,c as C,e as D,h as e,y as r,H as c,a as o,F,i as v}from"./index.js";import{I as k}from"./invoice-form.72bb24.js";import"./_details.fe0966e2.js";import"./global.9ad647c8.js";const x={flex:"","w-full":"","justify-end":"","mb-5":""},N=y({__name:"invoice-table",emits:["change"],setup(A,{emit:_}){const i=_,t=m([]),p=m(null);function b(n){t.value=[...t.value,...Array.isArray(n)?n:[n]],i("change",v(t))}function f({$index:n}){t.value.splice(n,1),i("change",v(t))}return(n,a)=>{const s=u("el-button"),l=u("el-table-column"),w=u("el-table");return g(),C(F,null,[D("div",x,[e(s,{type:"primary",link:"",onClick:a[0]||(a[0]=()=>p.value.onDisplay())},{default:r(()=>a[1]||(a[1]=[c("\u6DFB\u52A0")])),_:1})]),e(w,{size:"small",data:t.value,border:""},{default:r(()=>[e(l,{type:"index",width:"50"}),o('    <el-table-column label="\u53D1\u7968\u7C7B\u578B" prop="invType" show-overflow-tooltip>'),o('      <template #="{ row }">'),o("        <el-tag>{{"),o("          inv_type_ls_cg.find(t => t.value === row.invType)?.label"),o("        }}</el-tag>"),o("      </template>"),o("    </el-table-column>"),e(l,{label:"\u53D1\u7968\u53F7\u7801",prop:"invNumber","show-overflow-tooltip":""}),e(l,{label:"\u53D1\u7968\u4EE3\u7801",prop:"invCode","show-overflow-tooltip":""}),e(l,{label:"\u6821\u9A8C\u7801",prop:"checkNumber","show-overflow-tooltip":""}),o(' <el-table-column label="\u53D1\u7968\u540D\u79F0" prop="invName" show-overflow-tooltip /> '),o(` <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(l,{label:"\u7A0E\u524D\u91D1\u989D",prop:"subtotal_amount"}),e(l,{label:"\u5F00\u7968\u65E5\u671F",prop:"open_time","show-overflow-tooltip":""}),e(l,{label:"\u64CD\u4F5C",width:"60px"},{default:r(d=>[e(s,{link:"",type:"primary",onClick:()=>f(d)},{default:r(()=>a[2]||(a[2]=[c("\u5220\u9664")])),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"]),e(k,{ref_key:"invoceFormRef",ref:p,onChange:b},null,512)],64)}}});var V=h(N,[["__file","D:/work/jiesuan/settle-vue3/src/views/InvoiceSales/supplierTicketReturn/components/invoice-table.vue"]]);export{V as default};
