1234567 |
- import{_ as d,d as h,x as i,r as a,o as w,c as y,h as C,l as e,D as n,M as c,a as F,F as D,m}from"./index.js";import{I as k}from"./invoice-form.a2d84e.js";import"./_details.0f4a1772.js";import"./global.9ad647c8.js";const x={flex:"","w-full":"","justify-end":"","mb-5":""},g=h({__name:"invoice-table",emits:["change"],setup(A,{emit:u}){const l=i([]),r=i(null);function v(t){l.value=[...l.value,...Array.isArray(t)?t:[t]],u("change",m(l))}function _({$index:t}){l.value.splice(t,1),u("change",m(l))}return(t,s)=>{const p=a("el-button"),o=a("el-table-column"),f=a("el-table");return w(),y(D,null,[C("div",x,[e(p,{type:"primary",link:"",onClick:s[0]||(s[0]=()=>r.value.onDisplay())},{default:n(()=>[c("\u6DFB\u52A0")]),_:1})]),e(f,{size:"small",data:l.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>\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(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(p,{link:"",type:"primary",onClick:()=>_(b)},{default:n(()=>[c("\u5220\u9664")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"]),e(k,{ref_key:"invoceFormRef",ref:r,onChange:v},null,512)],64)}}});var I=d(g,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/supply/sellInvoiceQuery/components/invoice-table.vue"]]);export{I as default};
|