import{_ as y,d as h,n as p,r,o as C,c as F,e as c,h as e,y as a,H as m,a as D,F as k,i as v}from"./index.js";import g from"./invoice-form.54a7c9.js";import"./_details.7c6ddbaa.js";import"./_rules.1ebcf188.js";import"./global.9ad647c8.js";const x={flex:"","w-full":"","justify-end":"","mb-5":""},A={class:"flex w-full justify-end"},E=h({__name:"invoice-table",emits:["change"],setup(N,{emit:_}){const u=_,l=p([]),i=p(null);function f(t){l.value=[...l.value,...Array.isArray(t)?t:[t]],u("change",v(l))}function d({$index:t}){l.value.splice(t,1),u("change",v(l))}return(t,n)=>{const s=r("el-button"),o=r("el-table-column"),b=r("el-table");return C(),F(k,null,[c("div",x,[e(s,{type:"primary",link:"",onClick:n[0]||(n[0]=()=>i.value.onDisplay())},{default:a(()=>n[1]||(n[1]=[m("\u6DFB\u52A0")])),_:1})]),e(b,{size:"small",data:l.value,border:""},{default:a(()=>[e(o,{type:"index",width:"50"}),D(` <el-table-column label="\u53D1\u7968\u4E0A\u4F20\u65B9\u5F0F" prop="invType" show-overflow-tooltip>\r
      <template #="{ row }">\r
        <el-tag>{{\r
          invTypeOptions.find(t => t.value === row.invType)?.label\r
        }}</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":""}),e(o,{label:"\u7A0E\u524D\u91D1\u989D",prop:"subtotal_amount"}),e(o,{label:"\u5F00\u7968\u65E5\u671F",prop:"open_time","show-overflow-tooltip":""}),e(o,{label:"\u64CD\u4F5C"},{default:a(w=>[c("div",A,[e(s,{link:"",type:"primary",onClick:()=>d(w)},{default:a(()=>n[2]||(n[2]=[m("\u5220\u9664")])),_:2},1032,["onClick"])])]),_:1})]),_:1},8,["data"]),e(g,{ref_key:"invoceFormRef",ref:i,onChange:f},null,512)],64)}}});var R=y(E,[["__file","D:/work/jiesuan/settle-vue3/src/views/supplierOrder/sendOrderInvoiceRelive/components/invoice-table.vue"]]);export{R as default};
