1234567 |
- import{_ as C,d as w,w as m,r as i,o as u,c as s,b as v,l as e,C as a,M as f,a as D,L as d,F,u as b}from"./index.42bf163d.js";import{I as g}from"./invoice-form.f063b2be.js";import"./_details.930f66d0.js";import"./global.9ad647c8.js";import"./status.d6b2a53d.js";const T={flex:"","w-full":"","justify-end":"","mb-5":""},x={key:0},A={key:1},E={key:0},N={key:1},B={class:"flex w-full justify-end"},V=w({__name:"invoice-table",emits:["change"],setup(j,{emit:r}){const l=m([]),p=m(null);function y(n){l.value=[...l.value,...Array.isArray(n)?n:[n]],r("change",b(l))}function h({$index:n}){l.value.splice(n,1),r("change",b(l))}return(n,c)=>{const _=i("el-button"),t=i("el-table-column"),k=i("el-table");return u(),s(F,null,[v("div",T,[e(_,{type:"primary",link:"",onClick:c[0]||(c[0]=()=>p.value.onDisplay())},{default:a(()=>[f("\u6DFB\u52A0")]),_:1})]),e(k,{size:"small",data:l.value,border:""},{default:a(()=>[e(t,{type:"index",width:"50"}),D(` <el-table-column label="\u53D1\u7968\u4E0A\u4F20\u65B9\u5F0F" prop="invType" show-overflow-tooltip>\r
- <template #="{ row }">\r
- <el-tag>{{\r
- invTypeOptions.find(t => t.value === row.invType)?.label\r
- }}</el-tag>\r
- </template>\r
- </el-table-column> `),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:"\u7A0E\u524D\u91D1\u989D",prop:"subtotal_amount"},{default:a(({row:o})=>[String(o.invoiceType)!=="31"&&String(o.invoiceType)!=="32"?(u(),s("span",x,d(o.subtotal_amount),1)):(u(),s("span",A))]),_:1}),e(t,{label:"\u7A0E\u540E\u91D1\u989D",prop:"subtotal_amount"},{default:a(({row:o})=>[o.invoiceType==="31"||o.invoiceType==="32"?(u(),s("span",E,d(o.subtotal_amount),1)):(u(),s("span",N))]),_:1}),e(t,{label:"\u5F00\u7968\u65E5\u671F",prop:"open_time","show-overflow-tooltip":""}),e(t,{label:"\u64CD\u4F5C"},{default:a(o=>[v("div",B,[e(_,{link:"",type:"primary",onClick:()=>h(o)},{default:a(()=>[f("\u5220\u9664")]),_:2},1032,["onClick"])])]),_:1})]),_:1},8,["data"]),e(g,{ref_key:"invoceFormRef",ref:p,onChange:y},null,512)],64)}}});var M=C(V,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/supply/ticketReturn/components/invoice-table.vue"]]);export{M as default};
|