From f79b69b4ddd46146347c4f52ebfd2227162dfb62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Wed, 10 Dec 2025 13:17:41 +0800 Subject: [PATCH 1/2] =?UTF-8?q?refactor(wms):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E7=BA=BF=E5=9C=88=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=9D=A1=E4=BB=B6=E5=92=8C=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 统一原料和成品页面的itemType参数配置 - 调整基础面板的查询表单字段,移除不常用字段 - 优化表格操作按钮的布局和显示条件 - 清理冗余代码并格式化代码样式 --- klp-ui/src/views/wms/coil/index.vue | 4 +- klp-ui/src/views/wms/coil/panels/base.vue | 55 ++++++++++++----------- klp-ui/src/views/wms/coil/product.vue | 3 +- 3 files changed, 33 insertions(+), 29 deletions(-) diff --git a/klp-ui/src/views/wms/coil/index.vue b/klp-ui/src/views/wms/coil/index.vue index da51480b..3a17a477 100644 --- a/klp-ui/src/views/wms/coil/index.vue +++ b/klp-ui/src/views/wms/coil/index.vue @@ -14,8 +14,8 @@ export default { qrcode: true, querys: { dataType: 1, - // itemType: 'raw_material' - materialType: '原料' + itemType: 'raw_material', + materialType: '原料', }, labelType: '2', hideType: true diff --git a/klp-ui/src/views/wms/coil/panels/base.vue b/klp-ui/src/views/wms/coil/panels/base.vue index fe34a1cb..02b17ae5 100644 --- a/klp-ui/src/views/wms/coil/panels/base.vue +++ b/klp-ui/src/views/wms/coil/panels/base.vue @@ -19,32 +19,30 @@ - - - - - + - - - - + + + + + + + + + + + - - - - - - - 搜索 重置 @@ -69,7 +67,8 @@ - + @@ -507,14 +510,14 @@ export default { this.$message.error('保存图片失败,请稍后重试'); } }, - handleAbnormal (row) { + handleAbnormal(row) { this.$router.push({ path: '/quality/detail', query: { coilId: row.coilId, } }) - }, + }, // 取消按钮 cancel() { this.open = false; diff --git a/klp-ui/src/views/wms/coil/product.vue b/klp-ui/src/views/wms/coil/product.vue index eeb865aa..78dff59f 100644 --- a/klp-ui/src/views/wms/coil/product.vue +++ b/klp-ui/src/views/wms/coil/product.vue @@ -15,11 +15,12 @@ export default { querys: { dataType: 1, materialType: '成品', + itemType: 'product', status: 0 }, labelType: '3', showStatus: true, - hideType: false, + hideType: true, } } } From 9905d689f2bb9c71b3229de7fe40d71fcb1a8736 Mon Sep 17 00:00:00 2001 From: 86156 <823267011@qq.com> Date: Wed, 10 Dec 2025 14:02:50 +0800 Subject: [PATCH 2/2] =?UTF-8?q?js=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- klp-ui/src/api/ems/warehouseProduction.js | 25 +++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 klp-ui/src/api/ems/warehouseProduction.js diff --git a/klp-ui/src/api/ems/warehouseProduction.js b/klp-ui/src/api/ems/warehouseProduction.js new file mode 100644 index 00000000..4e2977ac --- /dev/null +++ b/klp-ui/src/api/ems/warehouseProduction.js @@ -0,0 +1,25 @@ +import request from '@/utils/request' + +export function listWarehouseProductionStats(query) { + return request({ + url: '/ems/energy/report/warehouseProduction/stats', + method: 'get', + params: query + }) +} + +export function listWarehouseProductionDetail(query) { + return request({ + url: '/ems/energy/report/warehouseProduction/detail', + method: 'get', + params: query + }) +} + +export function getWarehouseProductionCoilDetail(coilId) { + return request({ + url: '/ems/energy/report/warehouseProduction/coilDetail', + method: 'get', + params: { coilId } + }) +}