Browse Source

生产计划bug修改

master
zhaoxuebing 11 months ago
parent
commit
1c8d074524
  1. 25
      src/views/wms/productionManage/productionplan/productionMain/index.vue

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)
}

Loading…
Cancel
Save