invoice-table.80760800.js 1.9 KB

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