From c7aebff7f6184b2d8da2669d2db5656e2bc09ec4 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 21 四月 2026 15:49:45 +0800
Subject: [PATCH] 湟水峡 1.反馈登记删减字段 2.售后服务字段匹配错误问题

---
 src/views/index.vue |   30 ++++++++++++++++++++++++++----
 1 files changed, 26 insertions(+), 4 deletions(-)

diff --git a/src/views/index.vue b/src/views/index.vue
index 336c6a1..31319e8 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -249,13 +249,15 @@
 import Echarts from "@/components/Echarts/echarts.vue";
 import * as echarts from 'echarts';
 import useUserStore from "@/store/modules/user.js";
+import { ElNotification } from 'element-plus'
 import {
   analysisCustomerContractAmounts, getAmountHalfYear,
   getBusiness,
   homeTodos,
   processDataProductionStatistics,
   statisticsReceivablePayable,
-  qualityInspectionStatistics
+  qualityInspectionStatistics,
+	overdueReceivable
 } from "@/api/viewIndex.js";
 import { list } from '@/api/productionManagement/productionProcess';
 
@@ -446,11 +448,32 @@
   getBusinessData()
   analysisCustomer()
   todoInfoS()
+	notifyOverdueReceivable()
   statisticsReceivable()
   qualityStatisticsInfo()
   getAmountHalfYearNum()
   getProcessList()
 })
+
+// 寰呭洖娆炬彁閱�
+const notifyOverdueReceivable = async () => {
+	try {
+		const res = await overdueReceivable()
+		const data = res.data
+
+		if (data > 0) {
+			ElNotification({
+				title: '寰呭洖娆炬彁閱�',
+				message: `褰撳墠鏈�${data}鏉″緟鍥炴`,
+				type: 'warning',
+				duration: 6000,
+			})
+		}
+	} catch (e) {
+		// 涓嶅奖鍝嶉椤垫甯稿姞杞�
+		console.error('overdueReceivable error:', e)
+	}
+}
 // 鏁版嵁缁熻
 const getBusinessData = () => {
   getBusiness().then((res) => {
@@ -552,7 +575,7 @@
     {
       name: '寮�绁�',
       type: 'line',
-      data: receiptAmount,
+      data: invoiceAmount,
       stack: 'Total',
       areaStyle: {
         color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
@@ -581,7 +604,7 @@
     {
       name: '鍥炴',
       type: 'line',
-      data: invoiceAmount,
+      data: receiptAmount,
       stack: 'Total',
       lineStyle: {
         width: 0
@@ -728,7 +751,6 @@
 
 <style scoped>
 .dashboard {
-  background: #f5f7fa;
   min-height: 100vh;
   padding: 20px;
   box-sizing: border-box;

--
Gitblit v1.9.3