invoice-table.fadc3c.js 2.3 KB

12345678910
  1. import{_ as w,d as h,x as c,r as a,o as y,c as g,h as C,l as e,D as r,M as m,a as o,F as D,m as _}from"./index.js";import{I as F}from"./invoice-form.44f3bc.js";import"./_details.810a642a.js";import"./global.9ad647c8.js";const x={flex:"","w-full":"","justify-end":"","mb-5":""},k=h({__name:"invoice-table",emits:["change"],setup(N,{emit:u}){const t=c([]),i=c(null);function v(n){t.value=[...t.value,...Array.isArray(n)?n:[n]],u("change",_(t))}function b({$index:n}){t.value.splice(n,1),u("change",_(t))}return(n,p)=>{const s=a("el-button"),l=a("el-table-column"),f=a("el-table");return y(),g(D,null,[C("div",x,[e(s,{type:"primary",link:"",onClick:p[0]||(p[0]=()=>i.value.onDisplay())},{default:r(()=>[m("\u6DFB\u52A0")]),_:1})]),e(f,{size:"small",data:t.value,border:""},{default:r(()=>[e(l,{type:"index",width:"50"}),o(' <el-table-column label="\u53D1\u7968\u7C7B\u578B" prop="invType" show-overflow-tooltip>'),o(' <template #="{ row }">'),o(" <el-tag>{{"),o(" inv_type_ls_cg.find(t => t.value === row.invType)?.label"),o(" }}</el-tag>"),o(" </template>"),o(" </el-table-column>"),e(l,{label:"\u53D1\u7968\u53F7\u7801",prop:"invNumber","show-overflow-tooltip":""}),e(l,{label:"\u53D1\u7968\u4EE3\u7801",prop:"invCode","show-overflow-tooltip":""}),e(l,{label:"\u6821\u9A8C\u7801",prop:"checkNumber","show-overflow-tooltip":""}),o(' <el-table-column label="\u53D1\u7968\u540D\u79F0" prop="invName" show-overflow-tooltip /> '),o(` <el-table-column label="\u53D1\u7968\u56FE\u7247" prop="inv_img" show-overflow-tooltip>\r
  2. <template #="{ row }">\r
  3. <el-image\r
  4. :src="row.inv_img"\r
  5. :preview-src-list="[row.inv_img]"\r
  6. style="height: 30px"\r
  7. preview-teleported\r
  8. />\r
  9. </template>\r
  10. </el-table-column> `),e(l,{label:"\u7A0E\u524D\u91D1\u989D",prop:"subtotal_amount"}),e(l,{label:"\u5F00\u7968\u65E5\u671F",prop:"open_time","show-overflow-tooltip":""}),e(l,{label:"\u64CD\u4F5C",width:"60px"},{default:r(d=>[e(s,{link:"",type:"primary",onClick:()=>b(d)},{default:r(()=>[m("\u5220\u9664")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"]),e(F,{ref_key:"invoceFormRef",ref:i,onChange:v},null,512)],64)}}});var I=w(k,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/postSupplierOrder/sendOrderInvoice/components/invoice-table.vue"]]);export{I as default};