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