12345678 |
- import{_ as y,d as h,E as p,x as a,o as w,c as C,b as c,y as e,K as n,a as F,L as k,W as m,u as _}from"./index.1bd4a40a.js";import D from"./invoice-form.60052467.js";import"./_details.0bc9f793.js";import"./_rules.b6cc96d5.js";import"./status.c5a3efde.js";import"./global.9ad647c8.js";const x={flex:"","w-full":"","justify-end":"","mb-5":""},g=m("\u6DFB\u52A0"),A={class:"flex w-full justify-end"},E=m("\u5220\u9664"),N=h({__name:"invoice-table",emits:["change"],setup(T,{emit:u}){const t=p([]),i=p(null);function v(l){t.value=[...t.value,...Array.isArray(l)?l:[l]],u("change",_(t))}function f({$index:l}){t.value.splice(l,1),u("change",_(t))}return(l,r)=>{const s=a("el-button"),o=a("el-table-column"),d=a("el-table");return w(),C(k,null,[c("div",x,[e(s,{type:"primary",link:"",onClick:r[0]||(r[0]=()=>i.value.onDisplay())},{default:n(()=>[g]),_:1})]),e(d,{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>
- <template #="{ row }">
- <el-tag>{{
- invTypeOptions.find(t => t.value === row.invType)?.label
- }}</el-tag>
- </template>
- </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(b=>[c("div",A,[e(s,{link:"",type:"primary",onClick:()=>f(b)},{default:n(()=>[E]),_:2},1032,["onClick"])])]),_:1})]),_:1},8,["data"]),e(D,{ref_key:"invoceFormRef",ref:i,onChange:v},null,512)],64)}}});var K=y(N,[["__file","/Users/apple/Desktop/Company Projects/accout-vue3-ui/src/views/supply/ticketReturnRelive/components/invoice-table.vue"]]);export{K as default};
|