From a6efe02046796ce9119dba27c6a61ee6a7da0c1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Tue, 10 Mar 2026 17:02:11 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E9=80=8F=E8=A7=86=E8=A1=A8):=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=A3=80=E6=9F=A5=E4=BB=8A=E6=97=A5=E9=80=8F=E8=A7=86?= =?UTF-8?q?=E8=A1=A8=E6=98=AF=E5=90=A6=E5=AD=98=E5=9C=A8=E7=9A=84=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=B9=B6=E4=BC=98=E5=8C=96=E7=A9=BA=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加checkCoilStatisticsSummaryExist接口检查今日是否已创建同类型透视表 在创建透视表前进行校验并提示用户是否覆盖 优化空状态显示为el-empty组件 --- klp-ui/src/api/wms/coilStatisticsSummary.js | 13 ++++++ .../src/views/wms/coil/perspective/index.vue | 44 ++++++++++++++++--- 2 files changed, 52 insertions(+), 5 deletions(-) diff --git a/klp-ui/src/api/wms/coilStatisticsSummary.js b/klp-ui/src/api/wms/coilStatisticsSummary.js index b4ee3a6c..60726407 100644 --- a/klp-ui/src/api/wms/coilStatisticsSummary.js +++ b/klp-ui/src/api/wms/coilStatisticsSummary.js @@ -42,3 +42,16 @@ export function delCoilStatisticsSummary(summaryId) { method: 'delete' }) } + +// 检查今天是否已经创建过该类型的透视表 +// 如果已经创建过,返回该透视表的id +// 如果没有创建过,返回null +export function checkCoilStatisticsSummaryExist(statType) { + return request({ + url: '/wms/coilStatisticsSummary/checkToday', + method: 'get', + params: { + statType + } + }) +} diff --git a/klp-ui/src/views/wms/coil/perspective/index.vue b/klp-ui/src/views/wms/coil/perspective/index.vue index 949336c3..bd3bc517 100644 --- a/klp-ui/src/views/wms/coil/perspective/index.vue +++ b/klp-ui/src/views/wms/coil/perspective/index.vue @@ -15,7 +15,9 @@
-
钢卷生产统计详情
+
+ +
@@ -33,7 +35,9 @@
-
钢卷生产统计详情
+
+ +
@@ -41,7 +45,7 @@