From bfff831304d65d948613e3774364bb29bebaeb0c Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 15 六月 2026 09:20:18 +0800
Subject: [PATCH] pro 1.数据模拟前端页面
---
src/views/reportAnalysis/dataDashboard/index0.vue | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/src/views/reportAnalysis/dataDashboard/index0.vue b/src/views/reportAnalysis/dataDashboard/index0.vue
index 5c318c8..ff92e41 100644
--- a/src/views/reportAnalysis/dataDashboard/index0.vue
+++ b/src/views/reportAnalysis/dataDashboard/index0.vue
@@ -316,14 +316,12 @@
getWorkInProcessTurnover
} from "@/api/viewIndex.js";
import {staffOnJobListPage} from "@/api/personnelManagement/employeeRecord.js";
-import {listCustomer} from "@/api/basicData/customerFile.js";
+import { listCustomer } from '@/api/basicData/customer.js'
import {listSupplier} from "@/api/basicData/supplierManageFile.js";
import {getLedgerPage} from "@/api/equipmentManagement/ledger.js";
import {getRepairPage} from "@/api/equipmentManagement/repair.js";
import {getUpkeepPage} from "@/api/equipmentManagement/upkeep.js";
import {measuringInstrumentListPage} from "@/api/equipmentManagement/measurementEquipment.js";
-import {listPageAnalysis} from "@/api/financialManagement/expenseManagement.js";
-import {productOrderListPage} from "@/api/productionManagement/productionOrder.js";
// 鍏ㄥ睆鐩稿叧鐘舵��
const isFullscreen = ref(false);
@@ -927,15 +925,18 @@
})
}
// 搴斾粯搴旀敹缁熻
-const statisticsReceivable = (type) => {
- statisticsReceivablePayable({type: radio1.value}).then((res) => {
+const statisticsReceivable = (type = radio1.value) => {
+ statisticsReceivablePayable({ type }).then((res) => {
+ const data = res?.data || {}
+ const payableMoney = Number(data.payableMoney ?? 0)
+ const receivableMoney = Number(data.receivableMoney ?? 0)
// 璁剧疆搴斾粯閲戦鏁版嵁
barSeries.value[0].data = [
- { value: res.data.payableMoney }
+ { value: payableMoney }
]
// 璁剧疆搴旀敹閲戦鏁版嵁
barSeries.value[1].data = [
- { value: res.data.receivableMoney }
+ { value: receivableMoney }
]
})
}
@@ -2033,4 +2034,4 @@
color: #B8C8E0;
font-size: 11px;
}
-</style>
\ No newline at end of file
+</style>
--
Gitblit v1.9.3