[update] 打包项目维护

This commit is contained in:
zhaoxiao
2021-09-14 13:47:12 +08:00
parent 17162396d2
commit 5542f6cb12
2 changed files with 16 additions and 4 deletions
+2 -2
View File
@@ -31,7 +31,7 @@
<!-- 操作按钮区域-->
<div class="table-operator">
<a-button type="primary" icon="plus" @click="handleAdd">新增</a-button>
<a-button type="primary" icon="export" @click="handleExportXls('企业管理')">导出</a-button>
<a-button type="primary" icon="export" @click="handleExportXls('打包企业列表')">导出</a-button>
<a-button type="danger" icon="delete" @click="batchDel">批量删除</a-button>
</div>
<!-- 操作按钮区域-end-->
@@ -150,7 +150,7 @@ export default {
list: '/pack/payPackCompany/list',
delete: '/pack/payPackCompany/delete',
deleteBatch: '/pack/payPackCompany/deleteBatch',
exportXlsUrl: ''
exportXlsUrl: '/pack/payPackCompany/exportXls'
}
}
},
@@ -68,7 +68,7 @@
<a-button type="danger" icon="close-circle" @click="batchCancelPack">批量取消打包</a-button>
<a-button type="primary" icon="pay-circle" @click="batchIncomePayment">批量来款</a-button>
<a-button type="primary" icon="file-text" @click="batchInvoicing">批量开票</a-button>
<a-button type="primary" icon="export" @click="handleExportXls('企业管理')">导出</a-button>
<a-button type="primary" icon="export" @click="handleExportXls('打包项目列表')">导出</a-button>
</div>
<!-- 操作按钮区域-end-->
@@ -183,7 +183,7 @@ export default {
dataIndex: 'receiptExpense'
}, {
title: '已开票金额',
dataIndex: ''
dataIndex: 'invoiceAmount'
}, {
title: '已来款未开票金额',
dataIndex: 'uninvoicedAmount'
@@ -350,7 +350,14 @@ export default {
batchRemovePackProject(param).then(res => {
if (res.success) {
that.$message.success(res.message)
// 判断当前删除的数据是否是最后一页的全部数据,如果是的话页码减一
if (that.ipagination.current > 1 && (that.ipagination.current === Math.ceil(that.ipagination.total / that.ipagination.pageSize)) &&
that.selectedRowKeys.length === that.dataSource.length
) {
that.ipagination.current -= 1
}
that.loadData()
that.onClearSelected()
} else {
that.$message.warn(res.message)
}
@@ -395,7 +402,12 @@ export default {
removePackProject(param).then(res => {
if (res.success) {
that.$message.success(res.message)
// 判断当前删除的数据是否是最后一页的最后一条数据,如果是的话页码减一
if (that.ipagination.current > 1 && ((that.ipagination.current - 1) * that.ipagination.pageSize) + 1 === that.ipagination.total) {
that.ipagination.current -= 1
}
that.loadData()
that.onClearSelected()
} else {
that.$message.warn(res.message)
}