invoice-table.cd887915.js 2.7 KB

1
  1. import{_ as C,d as x,E as b,x as a,o as i,c as s,b as y,y as e,K as l,W as _,T as p,u as r,L as T}from"./index.1417328f.js";import{i as E}from"./_opitons.2a65e7c0.js";import{I as A}from"./invoice-form.0539c193.js";import"./_details.af0a3d2a.js";import"./status.727086c1.js";import"./global.9ad647c8.js";const N={flex:"","w-full":"","justify-end":"","mb-5":""},B=_("\u6DFB\u52A0"),j={key:0},I={key:1},R={key:0},S={key:1},V={class:"flex w-full justify-end"},z=_("\u5220\u9664"),K=x({__name:"invoice-table",emits:["change"],setup(L,{emit:c}){const n=b([]),v=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,m)=>{const f=a("el-button"),t=a("el-table-column"),w=a("el-tag"),D=a("el-image"),k=a("el-table");return i(),s(T,null,[y("div",N,[e(f,{type:"primary",link:"",onClick:m[0]||(m[0]=()=>v.value.onDisplay())},{default:l(()=>[B]),_:1})]),e(k,{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(E).find(F=>F.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",j,p(o.subtotal_amount),1)):(i(),s("span",I))]),_:1}),e(t,{label:"\u7A0E\u540E\u91D1\u989D",prop:"subtotal_amount"},{default:l(({row:o})=>[o.invoiceType==="31"||o.invoiceType==="32"?(i(),s("span",R,p(o.subtotal_amount),1)):(i(),s("span",S))]),_:1}),e(t,{label:"\u5F00\u7968\u65E5\u671F",prop:"open_time","show-overflow-tooltip":""}),e(t,{label:"\u64CD\u4F5C"},{default:l(o=>[y("div",V,[e(f,{link:"",type:"primary",onClick:()=>g(o)},{default:l(()=>[z]),_:2},1032,["onClick"])])]),_:1})]),_:1},8,["data"]),e(A,{ref_key:"invoceFormRef",ref:v,onChange:h},null,512)],64)}}});var H=C(K,[["__file","/Users/apple/Desktop/Company Projects/accout-vue3-ui/src/views/supply/ticketReturn/components/invoice-table.vue"]]);export{H as default};