From da56874ce77d226471d8bdfa1a0b6ea2dad92e14 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Wed, 14 Aug 2024 13:09:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E9=9B=AA=E5=86=B0=E9=9A=90?= =?UTF-8?q?=E8=97=8F=E9=9A=94=E7=A6=BB=E8=BD=AC=E5=90=88=E6=A0=BC=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=EF=BC=8C=E5=AF=BC=E8=87=B4=E5=BA=93=E5=AD=98=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E7=BC=BA=E5=A4=B1=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inventorymoveRequestMain/index.vue | 16 +++++++++++++++- .../inventorymoveRequestMain.data.ts | 7 +++---- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue index ea9c14210..d3e3a6822 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue @@ -332,7 +332,21 @@ InventorymoveRequestDetail.allSchemas.tableFormColumns.map(item => { } } }) - +if(routeName.value == 'HoldtookRequestMain'){ + //解决雪冰隔离转合格的bug导致其他页面没有到库位代码的问题 + InventorymoveRequestDetail.allSchemas.tableFormColumns.forEach(item=>{ + if(item.field=='toLocationCode'){ + item.hidden = true + } + }) +}else{ + InventorymoveRequestDetail.allSchemas.tableFormColumns.forEach(item=>{ + if(item.field=='toLocationCode'){ + item.hidden = false + } + }) +} +console.log('tableFormColumns',InventorymoveRequestDetail.allSchemas.tableFormColumns) // 字段设置 更新主列表字段 const updataTableColumns = (val) => { tableColumns.value = val diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts index 28768dd0f..e6fe0cb00 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts @@ -702,7 +702,6 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive( table: { width: 150 }, - isTableForm:false, tableForm: { enterSearch: true, isInpuFocusShow: true, // 开启查询弹窗 @@ -939,9 +938,9 @@ export const InventorymoveRequestDetailRules = reactive({ fromInventoryStatus: [ { required: true, message: '请选择从库存状态', trigger: 'change' } ], - // toLocationCode: [ - // { required: true, message: '请选择到库位代码', trigger: 'change' } - // ], + toLocationCode: [ + { required: true, message: '请选择到库位代码', trigger: 'change' } + ], remark: [ { max: 50, message: '不得超过50个字符', trigger: 'blur' } ],