Browse Source

生产计划bug修改

master
zhaoxuebing 10 months ago
parent
commit
1c8d074524
  1. 25
      src/views/wms/productionManage/productionplan/productionMain/index.vue
  2. 2
      src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts

25
src/views/wms/productionManage/productionplan/productionMain/index.vue

@ -280,6 +280,31 @@ const buttonTableClick = async (val, row) => {
const formRef = ref()
const openForm =async (type: string, row?: number) => {
tableData.value = [] //
// 线
if(type == 'create'){
ProductionMain.allSchemas.formSchema.forEach((itemColumn) =>{
if(itemColumn.field == 'workshop'){
itemColumn.componentProps.isSearchList=true
itemColumn.componentProps.disabled=true
}
if(itemColumn.field == 'productionLine'){
itemColumn.componentProps.isSearchList=true
itemColumn.componentProps.disabled=true
}
})
}
if(type == 'update'){
ProductionMain.allSchemas.formSchema.forEach((itemColumn) =>{
if(itemColumn.field == 'workshop'){
itemColumn.componentProps.isSearchList=false
itemColumn.componentProps.disabled=true
}
if(itemColumn.field == 'productionLine'){
itemColumn.componentProps.isSearchList=false
itemColumn.componentProps.disabled=true
}
})
}
formRef.value.open(type, row)
}

2
src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts

@ -789,4 +789,4 @@ export const ProductionDetailRules = reactive({
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
})
})

Loading…
Cancel
Save