From 564086c72a109babe216453df46a1501231fad6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Wed, 25 Mar 2026 17:22:21 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix(wms=E6=8A=A5=E8=A1=A8):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8DfetchLossList=E5=8F=82=E6=95=B0=E4=BC=A0=E9=80=92?= =?UTF-8?q?=E5=8F=8A=E8=A7=84=E6=A0=BC=E5=88=86=E5=89=B2=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复fetchLossList函数未正确处理传入的actionTypes参数问题,并添加时间参数。同时处理规格分割时的空值情况,避免报错。 --- klp-ui/src/views/wms/coil/do/correntAll.vue | 1494 +++++++++++++++++++ klp-ui/src/views/wms/report/js/fetch.js | 8 +- 2 files changed, 1499 insertions(+), 3 deletions(-) create mode 100644 klp-ui/src/views/wms/coil/do/correntAll.vue diff --git a/klp-ui/src/views/wms/coil/do/correntAll.vue b/klp-ui/src/views/wms/coil/do/correntAll.vue new file mode 100644 index 00000000..56611c9b --- /dev/null +++ b/klp-ui/src/views/wms/coil/do/correntAll.vue @@ -0,0 +1,1494 @@ + + + + + \ No newline at end of file diff --git a/klp-ui/src/views/wms/report/js/fetch.js b/klp-ui/src/views/wms/report/js/fetch.js index 243bb71a..3a9bb626 100644 --- a/klp-ui/src/views/wms/report/js/fetch.js +++ b/klp-ui/src/views/wms/report/js/fetch.js @@ -26,7 +26,7 @@ export async function fetchOutputList(queryParams) { (a, b) => new Date(b.createTime) - new Date(a.createTime) ).map(item => { // 计算宽度和厚度,将规格按照*分割,*前的是厚度,*后的是宽度 - const [thickness, width] = item.specification.split('*') + const [thickness, width] = item.specification?.split('*') || [0, 0] return { ...item, computedThickness: parseFloat(thickness), @@ -36,12 +36,14 @@ export async function fetchOutputList(queryParams) { return sortedList } -export async function fetchLossList(queryParams) { - const resultList = await Promise.all(this.actionTypes.map(actionType => { +export async function fetchLossList(actionTypes, queryParams) { + const resultList = await Promise.all(actionTypes.map(actionType => { return listPendingAction({ ...queryParams, actionStatus: 2, actionType, + startTime: queryParams.byCreateTimeStart, + endTime: queryParams.byCreateTimeEnd, pageSize: 99999, pageNum: 1, }) From feb50e038ded0225fe936cccf68a5ceb07c05a11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Thu, 26 Mar 2026 10:41:27 +0800 Subject: [PATCH 2/2] =?UTF-8?q?refactor(ems/dashboard):=20=E9=87=8D?= =?UTF-8?q?=E6=9E=84=E8=83=BD=E6=BA=90=E7=B1=BB=E5=9E=8B=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E4=B8=BA=E6=A0=87=E7=AD=BE=E9=A1=B5=E5=BD=A2=E5=BC=8F=E5=B9=B6?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将能源类型选择从下拉框改为标签页形式,提升用户体验 移除未使用的标签页代码,并设置默认选中的能源类型 --- klp-ui/src/views/ems/dashboard/index.vue | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/klp-ui/src/views/ems/dashboard/index.vue b/klp-ui/src/views/ems/dashboard/index.vue index 1340f8d1..2fc2a28f 100644 --- a/klp-ui/src/views/ems/dashboard/index.vue +++ b/klp-ui/src/views/ems/dashboard/index.vue @@ -1,11 +1,11 @@