From 22eb908397bd3adf6fda1bb0822a0f14bf06edf4 Mon Sep 17 00:00:00 2001 From: zwq Date: Fri, 13 Dec 2024 12:58:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../warehouseStorehouseGoodsSpecification.js | 7 +-- src/layout/components/Sidebar/SidebarItem.vue | 6 ++- src/layout/index.vue | 2 +- src/views/asrs/product-mini.vue | 10 +++- src/views/asrs/rollTimeRemind/index.vue | 50 +++++++++++-------- src/views/asrs/rollTimeRemind/indexb.vue | 8 ++- .../index.vue | 16 ++++++ .../indexb.vue | 16 ++++++ .../asrs/warehouseStorehouseStorage/index.vue | 14 ++++++ .../warehouseStorehouseStorage/indexb.vue | 16 +++++- src/views/wcsAlarm/real.vue | 2 +- 11 files changed, 116 insertions(+), 31 deletions(-) diff --git a/src/api/asrs/warehouseStorehouseGoodsSpecification.js b/src/api/asrs/warehouseStorehouseGoodsSpecification.js index 2790f2d..bae3fd5 100644 --- a/src/api/asrs/warehouseStorehouseGoodsSpecification.js +++ b/src/api/asrs/warehouseStorehouseGoodsSpecification.js @@ -17,10 +17,11 @@ export function inventoryOverview(id) { }) } // 熟化时间提醒 -export function rollTimeRemind(day) { +export function rollTimeRemind(query) { return request({ - url: '/asrs/warehouse-storehouse-goods-specification/xday?xDays=' + day, - method: 'get' + url: '/asrs/warehouse-storehouse-goods-specification/xday', + method: 'get', + params: query }) } // 导出熟化时间提醒 Excel diff --git a/src/layout/components/Sidebar/SidebarItem.vue b/src/layout/components/Sidebar/SidebarItem.vue index a7774ae..6d88a30 100644 --- a/src/layout/components/Sidebar/SidebarItem.vue +++ b/src/layout/components/Sidebar/SidebarItem.vue @@ -102,7 +102,11 @@ export default { }; listData(queryParams).then((response) => { if (response.data.list.length > 0) { - rollTimeRemind(response.data.list[0].value).then((response) => { + const params = { + xDays:response.data.list[0].value, + warehouseId:componentName==='rollTimeRemind'?'1696803324030865409':'1698950657556340737' + } + rollTimeRemind(params).then((response) => { remindCount = response.length; console.log(componentName); const elx = document diff --git a/src/layout/index.vue b/src/layout/index.vue index ea8d563..55a672d 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -122,7 +122,7 @@ export default { }, getRealAlarm() { axios - .post('http://172.22.22.190/wcs-njlm/business/wcsTask/isAlarm34') + .post('http://172.22.22.190/wcs-njlm/business/wcsTask/isAlarm') .then((res) => { res.data.forEach((item, index) => { if (index < 4) { diff --git a/src/views/asrs/product-mini.vue b/src/views/asrs/product-mini.vue index 534ff42..7beefe7 100644 --- a/src/views/asrs/product-mini.vue +++ b/src/views/asrs/product-mini.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2023-08-24 14:47:58 * @LastEditors: zwq - * @LastEditTime: 2024-04-19 14:30:04 + * @LastEditTime: 2024-10-30 13:52:15 * @Description: -->