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' } ],