From 23a0ef26bde3fb764f69e471ef61fe11c9c3c22d Mon Sep 17 00:00:00 2001
From: weipengfei <2187978347@qq.com>
Date: Tue, 12 Sep 2023 09:32:31 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/finance/balance_details.vue | 19 +++++++++++++------
src/views/finance/company.vue | 7 -------
2 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/src/views/finance/balance_details.vue b/src/views/finance/balance_details.vue
index 93e4844..eb5f530 100644
--- a/src/views/finance/balance_details.vue
+++ b/src/views/finance/balance_details.vue
@@ -8,6 +8,7 @@
+
查询
重置
+
@@ -142,11 +149,9 @@ const queryParams = reactive({
end_time: "",
company_id: "",
});
-if (route.query?.company_id) {
- queryParams.company_id = route.query?.company_id;
- queryParams.start_time = route.query?.s_date;
- queryParams.end_time = route.query?.e_date;
-}
+if (route.query?.company_id) queryParams.company_id = route.query?.company_id;
+if (route.query?.s_date) queryParams.start_time = route.query?.s_date;
+if (route.query?.e_date) queryParams.end_time = route.query?.e_date;
const { pager, getLists, resetPage, resetParams } = usePaging({
fetchFun: accountLog,
@@ -186,7 +191,9 @@ const getTypeColor = (type: number) => {
return color;
};
-getLists();
+onMounted(() => {
+ getLists();
+});
diff --git a/src/views/finance/company.vue b/src/views/finance/company.vue
index ddb6dc8..2580a74 100644
--- a/src/views/finance/company.vue
+++ b/src/views/finance/company.vue
@@ -57,12 +57,6 @@
查询
重置
-
@@ -152,7 +146,6 @@ import { timeFormat } from "@/utils/util";
import { dictDataLists } from "@/api/setting/dict";
import { getRoutePath } from "@/router";
import { dictContractTypeList } from "@/utils/dict.ts";
-import { accountLog } from "@/api/finance";
const userStore = useUserStore();
// console.log(userStore.userInfo.company_id);