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