From 0b5311c23e88abe2d3199efe32fcc63d6e9d9b15 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期一, 29 六月 2026 13:56:50 +0800
Subject: [PATCH] fix(account):新增一次收款单后,再次新增剩余金额查询不到对应单据问题修复;
---
src/views/officeProcessAutomation/ReimburseManage/travel-reimburse/useTravelReimburse.js | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/src/views/officeProcessAutomation/ReimburseManage/travel-reimburse/useTravelReimburse.js b/src/views/officeProcessAutomation/ReimburseManage/travel-reimburse/useTravelReimburse.js
index 4726117..c92d88c 100644
--- a/src/views/officeProcessAutomation/ReimburseManage/travel-reimburse/useTravelReimburse.js
+++ b/src/views/officeProcessAutomation/ReimburseManage/travel-reimburse/useTravelReimburse.js
@@ -11,6 +11,8 @@
import { computed, getCurrentInstance, nextTick, onMounted, reactive, ref } from "vue";
import {
buildFinReimbursementListParams,
+ filterReimbursementRowsBySearch,
+ hasActiveReimbursementSearch,
buildTravelReimbursementSaveDto,
canDeleteReimbursementRow,
canEditReimbursementRow,
@@ -61,7 +63,7 @@
const allRows = ref([]);
- const searchForm = reactive({ applicantKeyword: "", travelStartFrom: "", travelEndTo: "" });
+ const searchForm = reactive({ applicantKeyword: "" });
const tableLoading = ref(false);
const page = reactive({ current: 1, size: 10, total: 0 });
const importInputRef = ref(null);
@@ -100,10 +102,17 @@
mapped,
FIN_REIMBURSEMENT_TYPE.TRAVEL
);
+ if (hasActiveReimbursementSearch(searchForm)) {
+ mapped = filterReimbursementRowsBySearch(mapped, searchForm);
+ }
allRows.value = mapped;
const dropped = records.length - filtered.length;
- page.total =
+ let nextTotal =
dropped > 0 ? Math.max(0, Number(total) - dropped) : Number(total);
+ if (hasActiveReimbursementSearch(searchForm)) {
+ nextTotal = mapped.length;
+ }
+ page.total = nextTotal;
} catch {
allRows.value = [];
page.total = 0;
@@ -376,8 +385,6 @@
function resetSearch() {
searchForm.applicantKeyword = "";
- searchForm.travelStartFrom = "";
- searchForm.travelEndTo = "";
handleQuery();
}
--
Gitblit v1.9.3