|
|
@ -560,6 +560,13 @@ const openForm =async (type: string, row?: number) => { |
|
|
|
if (type == 'update') { |
|
|
|
// 修改 tableform 属性 |
|
|
|
ProductionscrapRequestMain.allSchemas.formSchema.map(itemColumns => { |
|
|
|
if(itemColumns.field == 'productionLineCode') { |
|
|
|
//生产线不让编辑 |
|
|
|
itemColumns.componentProps.disabled = true |
|
|
|
itemColumns.componentProps.isSearchList = false |
|
|
|
itemColumns.componentProps.enterSearch = false |
|
|
|
|
|
|
|
} |
|
|
|
if(itemColumns.field == 'workshopCode') { |
|
|
|
itemColumns.componentProps.isSearchList = false |
|
|
|
itemColumns.componentProps.disabled = true |
|
|
@ -568,6 +575,13 @@ const openForm =async (type: string, row?: number) => { |
|
|
|
} else { |
|
|
|
// 修改 tableform 属性 |
|
|
|
ProductionscrapRequestMain.allSchemas.formSchema.map(itemColumns => { |
|
|
|
if(itemColumns.field == 'productionLineCode') { |
|
|
|
//生产线不让编辑 |
|
|
|
itemColumns.componentProps.disabled = false |
|
|
|
itemColumns.componentProps.isSearchList = true |
|
|
|
itemColumns.componentProps.enterSearch = true |
|
|
|
|
|
|
|
} |
|
|
|
if(itemColumns.field == 'workshopCode') { |
|
|
|
itemColumns.componentProps.isSearchList = true |
|
|
|
itemColumns.componentProps.disabled = false |
|
|
|