From 6cf2b652ec22f424e5192fde5a15db1331167c76 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 09 十二月 2025 16:57:27 +0800
Subject: [PATCH] 1.海川开心-对账号对应伟完成事项列如待审批,报修等做条幅提醒
---
src/views/index.vue | 23 ++++++++++++++++++++++-
src/api/viewIndex.js | 8 ++++++++
2 files changed, 30 insertions(+), 1 deletions(-)
diff --git a/src/api/viewIndex.js b/src/api/viewIndex.js
index 2d85171..2b4d883 100644
--- a/src/api/viewIndex.js
+++ b/src/api/viewIndex.js
@@ -44,4 +44,12 @@
url: '/sales/ledger/getAmountHalfYear',
method: 'get'
})
+}
+
+// 鍗忓悓寰呭鎵瑰拰鎶ヤ慨寰呭姙浜嬮」
+export const approveAndDeviceTodos = () => {
+ return request({
+ url: '/home/approveAndDeviceTodos',
+ method: 'get'
+ })
}
\ No newline at end of file
diff --git a/src/views/index.vue b/src/views/index.vue
index 5c6eb91..3618550 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -170,6 +170,7 @@
<script setup>
import { ref, reactive, onMounted } from 'vue'
+import { ElNotification } from 'element-plus'
import Echarts from "@/components/Echarts/echarts.vue";
import * as echarts from 'echarts';
import useUserStore from "@/store/modules/user.js";
@@ -179,7 +180,8 @@
getBusiness,
homeTodos,
qualityStatistics,
- statisticsReceivablePayable
+ statisticsReceivablePayable,
+ approveAndDeviceTodos
} from "@/api/viewIndex.js";
import { getCurrentUserLatestScheduling } from "@/api/personnelManagement/scheduling.js";
import dayjs from "dayjs";
@@ -370,6 +372,7 @@
qualityStatisticsInfo()
getAmountHalfYearNum()
getCurrentUserSchedule()
+ getApproveAndDeviceTodos()
})
// 鏁版嵁缁熻
const getBusinessData = () => {
@@ -525,6 +528,24 @@
}
]
}
+
+// 鍗忓悓寰呭鎵瑰拰鎶ヤ慨寰呭姙浜嬮」
+const getApproveAndDeviceTodos = async () => {
+ try {
+ const res = await approveAndDeviceTodos()
+ const { approveTodo, deviceRepairTodo } = res.data
+
+ // 鏄剧ず閫氱煡
+ ElNotification({
+ title: '寰呭姙浜嬮」鎻愰啋',
+ message: `褰撳墠鏈�${approveTodo}鏉″緟瀹℃壒浜嬮」锛�${deviceRepairTodo}鏉″緟缁翠慨浜嬮」`,
+ type: 'warning',
+ duration: 5000
+ })
+ } catch (error) {
+ console.error('鑾峰彇鍗忓悓寰呭姙浜嬮」澶辫触:', error)
+ }
+}
</script>
<style scoped>
--
Gitblit v1.9.3