From 376cab4afba8fd1b8be67cae067ed917462c2e16 Mon Sep 17 00:00:00 2001
From: yaowanxin <3588231647@qq.com>
Date: 星期四, 18 十二月 2025 09:05:12 +0800
Subject: [PATCH] 添加设备报修和保养附件管理功能,维修保养过程描述
---
src/views/reportAnalysis/dataDashboard/index.vue | 58 ++++++++++++++++++++++++++--------------------------------
1 files changed, 26 insertions(+), 32 deletions(-)
diff --git a/src/views/reportAnalysis/dataDashboard/index.vue b/src/views/reportAnalysis/dataDashboard/index.vue
index 471ee97..afc4bee 100644
--- a/src/views/reportAnalysis/dataDashboard/index.vue
+++ b/src/views/reportAnalysis/dataDashboard/index.vue
@@ -104,14 +104,14 @@
<div class="quality-card one"></div>
<div class="quality-cardTitle">
<div>鍏ュ簱鏁伴噺</div>
- <div>{{qualityStatisticsObject.supplierNum}}浠�</div>
+ <div>{{supplierNum}}浠�</div>
</div>
</div>
<div class="quality-cardSec">
<div class="quality-card two"></div>
<div class="quality-cardTitle">
<div>鍑哄簱鏁伴噺</div>
- <div>{{qualityStatisticsObject.processNum}}浠�</div>
+ <div>{{factoryNum}}浠�</div>
</div>
</div>
<!-- <div class="quality-cardSec">-->
@@ -311,7 +311,7 @@
import useUserStore from '@/store/modules/user'
import {
analysisCustomerContractAmounts, getAmountHalfYear,
- homeTodos, qualityProductQualifiedRate,
+ homeTodos, inventoryStatistics, qualityProductQualifiedRate,
qualityStatistics,
statisticsReceivablePayable
} from "@/api/viewIndex.js";
@@ -388,6 +388,8 @@
const workListLength = ref(0)
const noListPageProcessLength = ref(0)
const listPageProcessLength = ref(0)
+const supplierNum = ref(0)
+const factoryNum = ref(0)
const pieTooltip = reactive({
trigger: 'item',
formatter: function (params) {
@@ -485,11 +487,6 @@
textStyle: { color: '#B8C8E0' },
data: ['搴斾粯閲戦', '搴旀敹閲戦']
}
-const barLegend = {
- show: true,
- textStyle: { color: '#B8C8E0' },
- data: ['鍘熸潗鏂欏悎鏍兼暟', '杩囩▼鍚堟牸鏁�', '鍑哄巶鍚堟牸鏁�']
-}
const barLegend1 = {
show: true,
textStyle: { color: '#B8C8E0' },
@@ -561,9 +558,14 @@
data: []
},
])
+const barLegend = {
+ show: true,
+ textStyle: { color: '#B8C8E0' },
+ data: ['鍏ュ簱鏁伴噺', '鍑哄簱鏁伴噺']
+}
const barSeries1 = ref([
{
- name: '鍘熸潗鏂欏悎鏍兼暟',
+ name: '鍏ュ簱鏁伴噺',
type: 'bar',
barGap: 0,
emphasis: {
@@ -585,7 +587,7 @@
data: []
},
{
- name: '杩囩▼鍚堟牸鏁�',
+ name: '鍑哄簱鏁伴噺',
type: 'bar',
emphasis: {
focus: 'series'
@@ -600,27 +602,6 @@
colorStops: [
{ offset: 1, color: '#3378FF' },
{ offset: 0, color: '#4E8AFF' }
- ]
- }
- },
- data: []
- },
- {
- name: '鍑哄巶鍚堟牸鏁�',
- type: 'bar',
- emphasis: {
- focus: 'series'
- },
- itemStyle: {
- color: {
- type: 'linear',
- x: 0,
- y: 0,
- x2: 0,
- y2: 1,
- colorStops: [
- { offset: 1, color: '#537EF5' },
- { offset: 0, color: '#9061F8' }
]
}
},
@@ -723,6 +704,18 @@
processQualifiedRate.value = res.data.processQualifiedRate
factoryQualifiedRate.value = res.data.factoryQualifiedRate
inventoryTurnoverRate.value = res.data.inventoryTurnoverRate
+ })
+}
+// 浜у搧鍚堟牸鐜�
+const inventoryStatisticsInfo = () => {
+ inventoryStatistics().then((res) => {
+ supplierNum.value = res.data.supplierNum
+ factoryNum.value = res.data.factoryNum
+ res.data.item.forEach(item => {
+ xAxis1.value[0].data.push(item.date)
+ barSeries1.value[0].data.push(item.supplierNum)
+ barSeries1.value[1].data.push(item.factoryNum)
+ })
})
}
// 璐㈠姟缁熻
@@ -1096,8 +1089,9 @@
window.addEventListener('resize', handleResize)
analysisCustomer()
- qualityStatisticsInfo()
+ // qualityStatisticsInfo()
qualityProductQualifiedRateInfo()
+ inventoryStatisticsInfo()
accountStatisticsInfo()
workListPageInfo()
getNum()
--
Gitblit v1.9.3