|
|
@ -150,6 +150,29 @@ const buttonTableClick = async (val, row) => { |
|
|
|
const basicFormRef = ref() |
|
|
|
const openForm = (type: string, row?: any) => { |
|
|
|
basicFormRef.value.open(type, row) |
|
|
|
if(type == "update"){ |
|
|
|
ProductionitemcodeSpareitemcode.allSchemas.formSchema.forEach((item) => { |
|
|
|
if (item.field == 'productionItemCode') { |
|
|
|
item.componentProps.disabled = true |
|
|
|
item.componentProps.isSearchList = false |
|
|
|
} |
|
|
|
if (item.field == 'spareItemCode') { |
|
|
|
item.componentProps.disabled = true |
|
|
|
item.componentProps.isSearchList = false |
|
|
|
} |
|
|
|
}) |
|
|
|
}else { |
|
|
|
ProductionitemcodeSpareitemcode.allSchemas.formSchema.forEach((item) => { |
|
|
|
if (item.field == 'productionItemCode') { |
|
|
|
item.componentProps.disabled = false |
|
|
|
item.componentProps.isSearchList = true |
|
|
|
} |
|
|
|
if (item.field == 'spareItemCode') { |
|
|
|
item.componentProps.disabled = false |
|
|
|
item.componentProps.isSearchList = true |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// form表单提交 |
|
|
|