1 |
- import{i as C}from"./_opitons.854186b3.js";import{I as x}from"./invoice-form.1662bc83.js";import{d as E,F as b,y as a,o as i,c as s,a as y,z as e,L as l,Z as _,U as p,u as r,M as T}from"./index.a584ddad.js";import"./_details.2e254640.js";import"./status.25ea5e43.js";import"./global.9ad647c8.js";const A={flex:"","w-full":"","justify-end":"","mb-5":""},N=_("\u6DFB\u52A0"),B={key:0},S={key:1},V={key:0},j={key:1},z={class:"flex w-full justify-end"},I=_("\u5220\u9664"),G=E({__name:"invoice-table",emits:["change"],setup(R,{emit:c}){const n=b([]),m=b(null);function h(u){n.value=[...n.value,...Array.isArray(u)?u:[u]],c("change",r(n))}function g({$index:u}){n.value.splice(u,1),c("change",r(n))}return(u,v)=>{const f=a("el-button"),t=a("el-table-column"),w=a("el-tag"),D=a("el-image"),F=a("el-table");return i(),s(T,null,[y("div",A,[e(f,{type:"primary",link:"",onClick:v[0]||(v[0]=()=>m.value.onDisplay())},{default:l(()=>[N]),_:1})]),e(F,{size:"small",data:n.value,border:""},{default:l(()=>[e(t,{type:"index",width:"50"}),e(t,{label:"\u53D1\u7968\u4E0A\u4F20\u65B9\u5F0F",prop:"invType","show-overflow-tooltip":""},{default:l(({row:o})=>[e(w,null,{default:l(()=>{var d;return[_(p((d=r(C).find(k=>k.value===o.invType))==null?void 0:d.label),1)]}),_:2},1024)]),_:1}),e(t,{label:"\u53D1\u7968\u53F7\u7801",prop:"invNumber","show-overflow-tooltip":""}),e(t,{label:"\u53D1\u7968\u4EE3\u7801",prop:"invCode","show-overflow-tooltip":""}),e(t,{label:"\u6821\u9A8C\u7801",prop:"checkNumber","show-overflow-tooltip":""}),e(t,{label:"\u53D1\u7968\u540D\u79F0",prop:"invName","show-overflow-tooltip":""}),e(t,{label:"\u53D1\u7968\u56FE\u7247",prop:"inv_img","show-overflow-tooltip":""},{default:l(({row:o})=>[e(D,{src:o.inv_img,"preview-src-list":[o.inv_img],style:{height:"30px"},"preview-teleported":""},null,8,["src","preview-src-list"])]),_:1}),e(t,{label:"\u7A0E\u524D\u91D1\u989D",prop:"subtotal_amount"},{default:l(({row:o})=>[String(o.invoiceType)!=="31"&&String(o.invoiceType)!=="32"?(i(),s("span",B,p(o.subtotal_amount),1)):(i(),s("span",S))]),_:1}),e(t,{label:"\u7A0E\u540E\u91D1\u989D",prop:"subtotal_amount"},{default:l(({row:o})=>[o.invoiceType==="31"||o.invoiceType==="32"?(i(),s("span",V,p(o.subtotal_amount),1)):(i(),s("span",j))]),_:1}),e(t,{label:"\u5F00\u7968\u65E5\u671F",prop:"open_time","show-overflow-tooltip":""}),e(t,{label:"\u64CD\u4F5C"},{default:l(o=>[y("div",z,[e(f,{link:"",type:"primary",onClick:()=>g(o)},{default:l(()=>[I]),_:2},1032,["onClick"])])]),_:1})]),_:1},8,["data"]),e(x,{ref_key:"invoceFormRef",ref:m,onChange:h},null,512)],64)}}});export{G as default};
|