invoice-table.9eb63e9a.js 2.2 KB

1
  1. import{i as D}from"./_opitons.f1de5cb6.js";import{I as F}from"./invoice-form.3ffcedf4.js";import{r as C,D as v,v as a,o as x,p as k,q as f,w as e,J as l,W as r,R as A,x as i,K as E}from"./index.ef4119aa.js";import"./_details.bedc9fa4.js";import"./index.c1c79beb.js";import"./status.4f7e5409.js";import"./global.9ad647c8.js";const N={flex:"","w-full":"","justify-end":"","mb-5":""},B=r("\u6DFB\u52A0"),T={class:"flex w-full justify-end"},R=r("\u5220\u9664"),S=C({__name:"invoice-table",emits:["change"],setup(V,{emit:s}){const t=v([]),p=v(null);function d(n){t.value=[...t.value,...Array.isArray(n)?n:[n]],s("change",i(t))}function b({$index:n}){t.value.splice(n,1),s("change",i(t))}return(n,_)=>{const c=a("el-button"),o=a("el-table-column"),h=a("el-tag"),w=a("el-image"),y=a("el-table");return x(),k(E,null,[f("div",N,[e(c,{type:"primary",link:"",onClick:_[0]||(_[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 m;return[r(A((m=i(D).find(g=>g.value===u.invType))==null?void 0:m.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",T,[e(c,{link:"",type:"primary",onClick:()=>b(u)},{default:l(()=>[R]),_:2},1032,["onClick"])])]),_:1})]),_:1},8,["data"]),e(F,{ref_key:"invoceFormRef",ref:p,onChange:d},null,512)],64)}}});export{S as default};