invoice-table.dbd73d.js 2.0 KB

1
  1. import{_ as y,d as h,x as _,r as u,o as D,c as C,h as g,l,D as a,M as i,L as m,F as k,m as v}from"./index.js";import w from"./invoice-form.13a609.js";import"./_rules.e8143b8f.js";import"./global.9ad647c8.js";const x={flex:"","w-full":"","justify-end":"","mb-5":""},F=h({__name:"invoice-table",emits:["change"],setup(A,{emit:r}){const t=_([]),c=_(null);function f(n){t.value=[...t.value,...Array.isArray(n)?n:[n]],r("change",v(t))}function d({$index:n}){t.value.splice(n,1),r("change",v(t))}return(n,s)=>{const p=u("el-button"),o=u("el-table-column"),b=u("el-table");return D(),C(k,null,[g("div",x,[l(p,{type:"primary",link:"",onClick:s[0]||(s[0]=()=>{var e;return(e=c.value)==null?void 0:e.onDisplay()})},{default:a(()=>[i(" \u6DFB\u52A0 ")]),_:1})]),l(b,{size:"small",data:t.value,border:""},{default:a(()=>[l(o,{type:"index",width:"50"}),l(o,{label:"\u53D1\u7968\u53F7\u7801",prop:"invNumber","show-overflow-tooltip":""}),l(o,{label:"\u53D1\u7968\u4EE3\u7801",prop:"invCode","show-overflow-tooltip":""}),l(o,{label:"\u6821\u9A8C\u7801",prop:"checkNumber","show-overflow-tooltip":""}),l(o,{label:"\u7A0E\u524D\u91D1\u989D",prop:"subtotal_amount"},{default:a(({row:e})=>[i(m(e.invoiceType==="fully_digitalized_special_electronic"||e.invoiceType==="fully_digitalized_normal_electronic"?"":e.subtotal_amount),1)]),_:1}),l(o,{label:"\u7A0E\u540E\u91D1\u989D",prop:"subtotal_amount"},{default:a(({row:e})=>[i(m(e.invoiceType==="fully_digitalized_special_electronic"||e.invoiceType==="fully_digitalized_normal_electronic"?e.subtotal_amount:""),1)]),_:1}),l(o,{label:"\u5F00\u7968\u65E5\u671F",prop:"open_time","show-overflow-tooltip":""}),l(o,{label:"\u64CD\u4F5C",width:"60px"},{default:a(e=>[l(p,{link:"",type:"primary",onClick:()=>d(e)},{default:a(()=>[i(" \u5220\u9664 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"]),l(w,{ref_key:"invoiceFormRef",ref:c,onChange:f},null,512)],64)}}});var B=y(F,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/supplyNew/inputInvoicePool/components/invoice-table.vue"]]);export{B as default};