From a1608963e20b629330b29dd9289c9b1bbe6d8745 Mon Sep 17 00:00:00 2001 From: "zangch@mesnac.com" Date: Mon, 25 Aug 2025 14:35:14 +0800 Subject: [PATCH] =?UTF-8?q?refactor(wms):=20=E4=BC=98=E5=8C=96=E5=A4=9A?= =?UTF-8?q?=E4=B8=AA=E7=BB=84=E4=BB=B6=E7=9A=84=E4=BB=A3=E7=A0=81=E7=BB=93?= =?UTF-8?q?=E6=9E=84=E5=92=8C=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 调整字典项循环中的变量命名,提高代码可读性 - 优化客户信息获取和展示逻辑 - 改进仓库列表获取方法 -调整表格列的显示逻辑- 优化表单结构和字段 --- src/api/wms/instockRecord/types.ts | 5 + src/views/wms/baseMaterialInfo/index.vue | 19 +-- src/views/wms/instockRecord/index.vue | 18 ++- src/views/wms/outstockOrderCopy/index.vue | 57 +++++--- src/views/wms/outstockRecord/index.vue | 4 +- src/views/wms/wmsCheckTask/index.vue | 13 +- src/views/wms/wmsPurchaseOrderCopy/index.vue | 140 +++++++++---------- 7 files changed, 150 insertions(+), 106 deletions(-) diff --git a/src/api/wms/instockRecord/types.ts b/src/api/wms/instockRecord/types.ts index 5658e69..f889155 100644 --- a/src/api/wms/instockRecord/types.ts +++ b/src/api/wms/instockRecord/types.ts @@ -80,6 +80,11 @@ export interface InstockRecordVO { } export interface InstockRecordForm extends BaseEntity { + /** + * 入库记录ID + */ + instockRecordId?: string | number; + /** * 入库单号 */ diff --git a/src/views/wms/baseMaterialInfo/index.vue b/src/views/wms/baseMaterialInfo/index.vue index e1743af..0d2432e 100644 --- a/src/views/wms/baseMaterialInfo/index.vue +++ b/src/views/wms/baseMaterialInfo/index.vue @@ -212,10 +212,10 @@ @@ -224,10 +224,10 @@ @@ -267,7 +267,8 @@ const { apply_flag, inner_tube_flag, auto_outstock_flag, mes_batch_flag, active_flag, sale_type, deleted_flag, tire_markings, material_classfication, mes_low_value_consumable_flag, is_high_value,inspection_request -} = toRefs(proxy?.useDict('apply_flag', 'inner_tube_flag', 'always_flag', 'mes_accessories_flag', 'auto_outstock_flag', 'mes_batch_flag', 'active_flag', 'sale_type', 'deleted_flag', 'tire_markings', 'material_classfication', 'mes_low_value_consumable_flag', +} = toRefs(proxy?.useDict('apply_flag', 'inner_tube_flag', 'always_flag', 'mes_accessories_flag', + 'auto_outstock_flag', 'mes_batch_flag', 'active_flag', 'sale_type', 'deleted_flag', 'tire_markings', 'material_classfication', 'mes_low_value_consumable_flag', 'is_high_value', 'inspection_request' )); diff --git a/src/views/wms/instockRecord/index.vue b/src/views/wms/instockRecord/index.vue index aacb110..57f9165 100644 --- a/src/views/wms/instockRecord/index.vue +++ b/src/views/wms/instockRecord/index.vue @@ -223,15 +223,17 @@ const columns = ref([ { key: 9, label: `物料大类`, visible: true }, { key: 10, label: `入库人`, visible: true }, { key: 11, label: `创建时间`, visible: true }, - { key: 12, label: `erp同步状态`, visible: true }, - { key: 13, label: `erp同步数量`, visible: true }, + { key: 12, label: `erp同步状态`, visible: false }, + { key: 13, label: `erp同步数量`, visible: false }, // { key: 14, label: `修改人`, visible: true }, { key: 14, label: `同步时间`, visible: true }, + { key: 15, label: `特殊标识`, visible: true }, // { key: 16, label: `创建部门`, visible: true }, // { key: 17, label: `租户号`, visible: true }, ]); const initFormData: InstockRecordForm = { + instockRecordId: undefined, instockCode: undefined, batchCode: undefined, materialId: undefined, @@ -303,10 +305,7 @@ const handleQuery = () => { queryParams.value.pageNum = 1; getList(); } -// 获取仓库 -getBaseWarehouseList().then(e => { - baseStoreList.value = e.data -}) + /** 重置按钮操作 */ const resetQuery = () => { dateRangeCreateTime.value = ['', '']; @@ -378,8 +377,15 @@ const getMaterialCategorySelect = async () => { mategoryOptions.value = res.data; }; +// 获取仓库列表 +const getBaseWarehouseData = async () => { + const res = await getBaseWarehouseList(null); + baseStoreList.value = res.data; +}; + onMounted(() => { getMaterialCategorySelect(); + getBaseWarehouseData(); getList(); }); diff --git a/src/views/wms/outstockOrderCopy/index.vue b/src/views/wms/outstockOrderCopy/index.vue index c79989c..dab1c32 100644 --- a/src/views/wms/outstockOrderCopy/index.vue +++ b/src/views/wms/outstockOrderCopy/index.vue @@ -75,6 +75,7 @@ + + + + + --> - + - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + + + + + + + + + + @@ -382,17 +382,17 @@ > - - - - - - + + + + + + + + + + + + + + + + + + + + +