From 21b7598896d9784e8e1703dcfa1ac1e44e92501f Mon Sep 17 00:00:00 2001 From: "zangch@mesnac.com" Date: Thu, 4 Sep 2025 10:33:03 +0800 Subject: [PATCH] =?UTF-8?q?feat(wms):=20=E4=BB=93=E5=BA=93=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E6=A1=86=E6=B7=BB=E5=8A=A0=E6=B8=85=E7=A9=BA=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=B9=B6=E4=BC=98=E5=8C=96=E5=BA=93=E5=AD=98=E6=8A=A5?= =?UTF-8?q?=E8=AD=A6=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在多个组件的仓库选择框中添加 clearable 属性,支持清空选择 - 在库存报警页面添加库存数量的红色高亮和提示功能 -修复部分组件中的仓库 ID 绑定错误 --- src/views/wms/instockOrderCopy/inAndOut.vue | 10 ++-- src/views/wms/instockOrderCopy/index.vue | 10 ++-- src/views/wms/inventoryAlarm/index.vue | 52 +++++++++++++++------ 3 files changed, 47 insertions(+), 25 deletions(-) diff --git a/src/views/wms/instockOrderCopy/inAndOut.vue b/src/views/wms/instockOrderCopy/inAndOut.vue index cdb5fe2..8488df9 100644 --- a/src/views/wms/instockOrderCopy/inAndOut.vue +++ b/src/views/wms/instockOrderCopy/inAndOut.vue @@ -21,7 +21,7 @@ --> - + - + @@ -194,7 +194,7 @@ - + @@ -208,8 +208,8 @@ /> --> - - + + - + --> - + - + @@ -194,7 +194,7 @@ - + @@ -209,7 +209,7 @@ --> - + --> - + @@ -39,7 +39,7 @@ --> - + - + - - - - + + + - + - - + + >({ form: {...initFormData}, @@ -234,13 +243,12 @@ const data = reactive>({ materialId: undefined, locationCode: undefined, materialCategoryId: undefined, - materialCategoryName: undefined,//字段映射 inventoryQty: undefined, lockState: undefined, inventoryStatus: undefined, storeId: undefined, - params: { - } + warehouseId: undefined, + params: {} }, rules: { inventoryId: [ @@ -309,6 +317,7 @@ const handleQuery = () => { /** 重置按钮操作 */ const resetQuery = () => { + reset() queryFormRef.value?.resetFields(); handleQuery(); } @@ -377,6 +386,13 @@ const getMaterialCategorySelect = async () => { mategoryOptions.value = res.data; }; +const getRowClass = (row: any) => { + if (row.row.inventoryQty > row.row.maxStockAmount || row.row.inventoryQty < row.row.minStockAmount) { + return 'alarm-row'; + } + return ''; +}; + onMounted(() => { getMaterialCategorySelect(); @@ -384,3 +400,9 @@ onMounted(() => { getList(); }); + +