|
|
@ -505,6 +505,11 @@ const openForm =async (type: string, row?: number) => { |
|
|
|
if (type == 'update') { |
|
|
|
// 修改 tableform 属性 |
|
|
|
ProductionreturnRequestMain.allSchemas.formSchema.map(itemColumns => { |
|
|
|
//生产线代码 |
|
|
|
if(itemColumns.field == 'productionLineCode') { |
|
|
|
itemColumns.componentProps.isSearchList = false |
|
|
|
itemColumns.componentProps.disabled = true |
|
|
|
} |
|
|
|
if(itemColumns.field == 'workshopCode') { |
|
|
|
itemColumns.componentProps.isSearchList = false |
|
|
|
itemColumns.componentProps.disabled = true |
|
|
@ -513,6 +518,11 @@ const openForm =async (type: string, row?: number) => { |
|
|
|
} else { |
|
|
|
// 修改 tableform 属性 |
|
|
|
ProductionreturnRequestMain.allSchemas.formSchema.map(itemColumns => { |
|
|
|
//生产线代码 |
|
|
|
if(itemColumns.field == 'productionLineCode') { |
|
|
|
itemColumns.componentProps.isSearchList = true |
|
|
|
itemColumns.componentProps.disabled = false |
|
|
|
} |
|
|
|
if(itemColumns.field == 'workshopCode') { |
|
|
|
itemColumns.componentProps.isSearchList = true |
|
|
|
itemColumns.componentProps.disabled = false |
|
|
|