From 7340260cb23f29142a9b4b9e396ece32b88c6da4 Mon Sep 17 00:00:00 2001
From: yangzifeng <2547435354@qq.com>
Date: Tue, 3 Feb 2026 11:40:02 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/index.js | 44 ++--------
src/views/index.vue | 120 ++++++++++++----------------
src/views/wisdom/bill/index.vue | 21 ++---
src/views/wisdom/outbound/index.vue | 15 ++--
src/views/wisdom/record/index.vue | 2 +
src/views/wisdom/stock/index.vue | 1 +
6 files changed, 80 insertions(+), 123 deletions(-)
diff --git a/src/api/index.js b/src/api/index.js
index 7e51c75..448cad7 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -8,18 +8,10 @@ export const getMonthCount = () => {
})
}
-// 预警
-export const getInventoryAge = () => {
- return request({
- url: '/stat/age',
- method: 'get'
- })
-}
-
-// 库龄统计(库龄超过30/60天统计)
+// 预警 + 库龄统计(库龄超过30/60天统计)
export const getAgeLong = () => {
return request({
- url: '/stat/age/count',
+ url: '/stat/stockAge/stat',
method: 'get'
})
}
@@ -27,27 +19,19 @@ export const getAgeLong = () => {
// 仓库使用率
export const getInventoryReview = () => {
return request({
- url: '/stat/warehouseScene',
+ url: '/stat/warehouse/slot',
method: 'get'
})
}
// 待办事项(应到未到统计)
-export const getWaitIn = (params) => {
+export const getWait = (params) => {
return request({
- url: '/stat/undelivered',
+ url: '/stat/todo',
method: 'get',
params
})
-}
-// 待办事项(应出未出统计)
-export const getWaitOut = (params) => {
- return request({
- url: '/stat/age/gt30',
- method: 'get',
- params
- })
-}
+}
// 当前入库类型统计(根据入库类型统计项目数,条目数,总金额)
export const getInStorage = () => {
@@ -65,14 +49,6 @@ export const getGoodsType = () => {
})
}
-// 县局统计(根据县局统计项目数,条目数,总金额)
-// export const getCounty = () => {
-// return request({
-// url: '/stat/county/summary',
-// method: 'get'
-// })
-// }
-
// 入/出库指标统计(天级出入库统计)
export const getDailyInventory = (params) => {
return request({
@@ -100,11 +76,3 @@ export const getOutInventoryType = (params) => {
})
}
-// (每一种入库类型的统计)
-// export const getEveryInventory = () => {
-// return request({
-// url: '/stat/type/pie',
-// method: 'get'
-// })
-// }
-
diff --git a/src/views/index.vue b/src/views/index.vue
index c5835d8..83fec86 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -187,9 +187,8 @@
-
-
-
+
+
@@ -398,7 +397,7 @@