From abb6d7f841c9a0fcd4ca2e1f9b5caaf849b40482 Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期五, 24 四月 2026 11:07:08 +0800
Subject: [PATCH] Merge branch 'dev_河南_鹤壁天沐玻璃厂' of http://114.132.189.42:9002/r/product-inventory-management into dev_河南_鹤壁天沐玻璃厂
---
src/views/salesManagement/receiptPayment/index.vue | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/src/views/salesManagement/receiptPayment/index.vue b/src/views/salesManagement/receiptPayment/index.vue
index 6ded92b..1354591 100644
--- a/src/views/salesManagement/receiptPayment/index.vue
+++ b/src/views/salesManagement/receiptPayment/index.vue
@@ -40,6 +40,7 @@
<el-table
:data="tableData"
border
+ ref="tableRef"
v-loading="tableLoading"
@selection-change="handleSelectionChange"
:row-key="(row) => row.id"
@@ -101,7 +102,6 @@
<el-button
link
type="primary"
- size="small"
@click="changeEditType(scope.row)"
v-if="!scope.row.editType"
>缂栬緫</el-button
@@ -109,7 +109,6 @@
<el-button
link
type="primary"
- size="small"
@click="saveReceiptPayment(scope.row)"
v-if="scope.row.editType"
>淇濆瓨</el-button
@@ -117,7 +116,6 @@
<el-button
link
type="primary"
- size="small"
@click="delReceiptRecord(scope.row)"
>鍒犻櫎</el-button
>
@@ -206,6 +204,8 @@
border
style="width: 100%"
size="small"
+ show-summary
+ :summary-method="summarizeFormTable"
>
<el-table-column type="index" label="搴忓彿" width="50" align="center"/>
<el-table-column label="閿�鍞悎鍚屽彿" prop="salesContractNo" show-overflow-tooltip />
@@ -313,6 +313,7 @@
});
const total = ref(0);
const expandedRowKeys = ref([]);
+const tableRef = ref(null);
// 鐢ㄦ埛淇℃伅琛ㄥ崟寮规鏁版嵁
const dialogFormVisible = ref(false);
@@ -404,7 +405,7 @@
const summarizeMainTable = (param) => {
return proxy.summarizeTable(
param,
- ["receiptPaymentAmountTotal", "noReceiptAmount"],
+ ["invoiceTotal", "pendingInvoiceTotal"],
{
ticketsNum: { noDecimal: true }, // 涓嶄繚鐣欏皬鏁�
futureTickets: { noDecimal: true }, // 涓嶄繚鐣欏皬鏁�
@@ -414,6 +415,10 @@
// 瀛愯〃鍚堣鏂规硶
const summarizeChildrenTable = (param) => {
return proxy.summarizeTable(param, ["receiptPaymentAmount"]);
+};
+// 鏂板鍥炴寮圭獥琛ㄥ悎璁℃柟娉�
+const summarizeFormTable = (param) => {
+ return proxy.summarizeTable(param, ["pendingInvoiceTotal", "receiptPaymentAmount"]);
};
// 鎵撳紑寮规
const openForm = () => {
@@ -491,6 +496,7 @@
dialogFormVisible.value = false;
// 閬垮厤浜屾鎵撳紑寮圭獥鏃朵粛鎼哄甫涓婁竴娆$殑閫夋嫨瀵艰嚧鈥滃鍑轰竴琛�/鑴忔暟鎹��
selectedRows.value = [];
+ tableRef.value?.clearSelection();
};
// 鍒犻櫎鍥炴璁板綍
--
Gitblit v1.9.3