🦄 refactor: 封装统一表格组件,便于批量扩展表格能力
This commit is contained in:
@@ -20,12 +20,12 @@
|
||||
</div>
|
||||
|
||||
<!-- 凭证明细表格 -->
|
||||
<el-table :data="voucher.detailList || []" border style="width: 100%;">
|
||||
<KLPTable :data="voucher.detailList || []" border style="width: 100%;">
|
||||
<el-table-column label="摘要" prop="voucherNo" />
|
||||
<el-table-column label="科目" prop="accountId" />
|
||||
<el-table-column label="借方金额" prop="debitAmount" align="right" />
|
||||
<el-table-column label="贷方金额" prop="creditAmount" align="right" />
|
||||
</el-table>
|
||||
</KLPTable>
|
||||
|
||||
<!-- 总计行 -->
|
||||
<div class="total-row">
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
</el-row>
|
||||
|
||||
<el-row>
|
||||
<el-table :data="tableData" style="width: 100%" empty-text="暂无数据">
|
||||
<KLPTable :data="tableData" style="width: 100%" empty-text="暂无数据">
|
||||
<el-table-column label="序号" type="index" width="50" align="center" />
|
||||
<el-table-column prop="voucherNo" label="摘要">
|
||||
<template slot-scope="scope">
|
||||
@@ -68,7 +68,7 @@
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</KLPTable>
|
||||
</el-row>
|
||||
|
||||
<!-- 合计部分 -->
|
||||
|
||||
@@ -113,7 +113,7 @@
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="journalEntryList" @selection-change="handleSelectionChange">
|
||||
<KLPTable v-loading="loading" :data="journalEntryList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="分录ID" align="center" prop="entryId" v-if="true"/>
|
||||
<el-table-column label="凭证编号" align="center" prop="voucherNo" />
|
||||
@@ -146,7 +146,7 @@
|
||||
>删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</KLPTable>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
|
||||
Reference in New Issue
Block a user