From 308bce55dfbf71f7625548061bfa5a0ef2685818 Mon Sep 17 00:00:00 2001 From: git_rabbit Date: Wed, 14 Jan 2026 10:35:29 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E7=89=A9=E6=96=99=E7=AE=A1=E7=90=86):?= =?UTF-8?q?=20=E4=BC=98=E5=8C=96=E8=A1=A8=E6=A0=BC=E5=88=97=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=92=8C=E8=A1=A8=E5=8D=95=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将工单号字段从workOrderNo改为workorder以保持一致性 - 为库存量、出入库数量添加加粗样式提高可读性 - 优化出入库记录查询功能,增加"全部"选项 - 重构出入库类型切换处理逻辑 --- .../productionMaterial/MmInventory.vue | 75 +++++++++++++------ .../productionMaterial/MmRecordOutbound.vue | 4 +- 2 files changed, 53 insertions(+), 26 deletions(-) diff --git a/src/views/materialManagement/productionMaterial/MmInventory.vue b/src/views/materialManagement/productionMaterial/MmInventory.vue index 2545fb2..bac07e2 100644 --- a/src/views/materialManagement/productionMaterial/MmInventory.vue +++ b/src/views/materialManagement/productionMaterial/MmInventory.vue @@ -91,7 +91,11 @@ - + + + @@ -205,7 +209,7 @@ - + @@ -318,7 +322,7 @@ - + @@ -356,10 +360,16 @@ + + + + + + @@ -537,32 +547,29 @@ - + + - - - + + + {{ $t('btn.search') }} {{ $t('btn.reset') }} @@ -587,12 +594,16 @@ - + + + - - + + @@ -616,7 +627,11 @@ - + + + @@ -894,6 +909,15 @@ function queryRecord() { }) } +function handleRecordFlagChange(value) { + // 同步更新inoroutFlag + inoroutFlag.value = value + // 更新出入库类型列表 + getTypeOfWarehousingList(value) + // 重新查询记录 + queryRecord() +} + // 重置查询操作 function resetQueryRecord() { proxy.resetForm('queryRecordRef') @@ -973,6 +997,9 @@ function getMaterialCodeList() { // 获取出入库类型列表 function getTypeOfWarehousingList(data) { try { + // 当出入库切换时,重置出入库类别为"全部" + queryParamsRecord.transactionType = '' + listMmTransactionType({ transactionDirection: data, status: '启用' }).then((res) => { const { code, data } = res if (code == 200) { diff --git a/src/views/materialManagement/productionMaterial/MmRecordOutbound.vue b/src/views/materialManagement/productionMaterial/MmRecordOutbound.vue index ad926c7..7926465 100644 --- a/src/views/materialManagement/productionMaterial/MmRecordOutbound.vue +++ b/src/views/materialManagement/productionMaterial/MmRecordOutbound.vue @@ -89,8 +89,8 @@ - - + +