1 |
- import{_ as D,d as F,E as m,x as i,o as C,c as k,b as f,y as e,K as l,W as r,T as x,u as a,L as E}from"./index.743f0c80.js";import{i as A}from"./_opitons.90d80463.js";import T from"./invoice-form.4163ed00.js";import"./_details.7ed0eccb.js";import"./status.868e86c0.js";import"./_rules.1a544eb3.js";import"./global.9ad647c8.js";const N={flex:"","w-full":"","justify-end":"","mb-5":""},B=r("\u6DFB\u52A0"),R={class:"flex w-full justify-end"},V=r("\u5220\u9664"),j=F({__name:"invoice-table",emits:["change"],setup(z,{emit:s}){const t=m([]),p=m(null);function d(n){t.value=[...t.value,...Array.isArray(n)?n:[n]],s("change",a(t))}function b({$index:n}){t.value.splice(n,1),s("change",a(t))}return(n,c)=>{const _=i("el-button"),o=i("el-table-column"),h=i("el-tag"),w=i("el-image"),y=i("el-table");return C(),k(E,null,[f("div",N,[e(_,{type:"primary",link:"",onClick:c[0]||(c[0]=()=>p.value.onDisplay())},{default:l(()=>[B]),_:1})]),e(y,{size:"small",data:t.value,border:""},{default:l(()=>[e(o,{type:"index",width:"50"}),e(o,{label:"\u53D1\u7968\u4E0A\u4F20\u65B9\u5F0F",prop:"invType","show-overflow-tooltip":""},{default:l(({row:u})=>[e(h,null,{default:l(()=>{var v;return[r(x((v=a(A).find(g=>g.value===u.invType))==null?void 0:v.label),1)]}),_:2},1024)]),_:1}),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:"\u53D1\u7968\u540D\u79F0",prop:"invName","show-overflow-tooltip":""}),e(o,{label:"\u53D1\u7968\u56FE\u7247",prop:"inv_img","show-overflow-tooltip":""},{default:l(({row:u})=>[e(w,{src:u.inv_img,"preview-src-list":[u.inv_img],style:{height:"30px"},"preview-teleported":""},null,8,["src","preview-src-list"])]),_:1}),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:l(u=>[f("div",R,[e(_,{link:"",type:"primary",onClick:()=>b(u)},{default:l(()=>[V]),_:2},1032,["onClick"])])]),_:1})]),_:1},8,["data"]),e(T,{ref_key:"invoceFormRef",ref:p,onChange:d},null,512)],64)}}});var G=D(j,[["__file","D:/work/accout-vue3-ui/src/views/purchase/ticketReturnRelive/components/invoice-table.vue"]]);export{G as default};
|