Browse Source

解决雪冰隐藏隔离转合格字段,导致库存移动缺失字段

hella_online_20240815
wangyufei 4 months ago
parent
commit
da56874ce7
  1. 16
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue
  2. 7
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts

16
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

7
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts

@ -702,7 +702,6 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
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' }
],

Loading…
Cancel
Save