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