|
|
@ -152,25 +152,25 @@ const openForm = (type: string, row?: any) => { |
|
|
|
if(type == "update"){ |
|
|
|
Productionlineitem.allSchemas.formSchema.forEach((item) => { |
|
|
|
if (item.field == 'productionLineCode') { |
|
|
|
item.componentProps.disabled = true |
|
|
|
item.componentProps.isSearchList = false |
|
|
|
} |
|
|
|
if (item.field == 'itemCode') { |
|
|
|
item.componentProps.disabled = true |
|
|
|
item.componentProps.isSearchList = false |
|
|
|
} |
|
|
|
}) |
|
|
|
item.componentProps.disabled = true |
|
|
|
// item.componentProps.isSearchList = false |
|
|
|
} |
|
|
|
if (item.field == 'itemCode') { |
|
|
|
item.componentProps.disabled = true |
|
|
|
item.componentProps.isSearchList = false |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
}else { |
|
|
|
Productionlineitem.allSchemas.formSchema.forEach((item) => { |
|
|
|
if (item.field == 'productionLineCode') { |
|
|
|
item.componentProps.disabled = false |
|
|
|
item.componentProps.isSearchList = true |
|
|
|
// item.componentProps.isSearchList = true |
|
|
|
} |
|
|
|
if (item.field == 'itemCode') { |
|
|
|
item.componentProps.disabled = false |
|
|
|
item.componentProps.isSearchList = true |
|
|
|
} |
|
|
|
item.componentProps.disabled = false |
|
|
|
item.componentProps.isSearchList = true |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
basicFormRef.value.open(type, row) |
|
|
|