invoice-table.978289d2.js 2.0 KB

12345678
  1. import{_ as w,d as y,w as p,r as a,o as h,c as C,b as c,l as e,C as n,M as _,a as F,F as k,u as m}from"./index.0bc83371.js";import D from"./invoice-form.ed8c1b84.js";import"./_details.8934beca.js";import"./_rules.b6cc96d5.js";import"./status.d6b2a53d.js";import"./global.9ad647c8.js";const g={flex:"","w-full":"","justify-end":"","mb-5":""},x={class:"flex w-full justify-end"},A=y({__name:"invoice-table",emits:["change"],setup(E,{emit:u}){const l=p([]),r=p(null);function v(t){l.value=[...l.value,...Array.isArray(t)?t:[t]],u("change",m(l))}function f({$index:t}){l.value.splice(t,1),u("change",m(l))}return(t,i)=>{const s=a("el-button"),o=a("el-table-column"),b=a("el-table");return h(),C(k,null,[c("div",g,[e(s,{type:"primary",link:"",onClick:i[0]||(i[0]=()=>r.value.onDisplay())},{default:n(()=>[_("\u6DFB\u52A0")]),_:1})]),e(b,{size:"small",data:l.value,border:""},{default:n(()=>[e(o,{type:"index",width:"50"}),F(` \r
  2. <el-table-column label="\u53D1\u7968\u4E0A\u4F20\u65B9\u5F0F" prop="invType" show-overflow-tooltip>\r
  3. <template #="{ row }">\r
  4. <el-tag>{{\r
  5. invTypeOptions.find(t => t.value === row.invType)?.label\r
  6. }}</el-tag>\r
  7. </template>\r
  8. </el-table-column> `),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:"\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:n(d=>[c("div",x,[e(s,{link:"",type:"primary",onClick:()=>f(d)},{default:n(()=>[_("\u5220\u9664")]),_:2},1032,["onClick"])])]),_:1})]),_:1},8,["data"]),e(D,{ref_key:"invoceFormRef",ref:r,onChange:v},null,512)],64)}}});var z=w(A,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/supply/ticketReturnRelive/components/invoice-table.vue"]]);export{z as default};