|
@ -443,6 +443,23 @@ const openForm =async (type: string, row?: number) => { |
|
|
defaultButtons.formSaveBtn({ hide : mainStatus.value != 1 }), // 保存 |
|
|
defaultButtons.formSaveBtn({ hide : mainStatus.value != 1 }), // 保存 |
|
|
defaultButtons.formCloseBtn(null) // 关闭 |
|
|
defaultButtons.formCloseBtn(null) // 关闭 |
|
|
] |
|
|
] |
|
|
|
|
|
if(type == 'create'){ |
|
|
|
|
|
ProductdismantleRequestMain.allSchemas.formSchema.forEach((item) => { |
|
|
|
|
|
if (item.field == 'workshopCode') { |
|
|
|
|
|
item.componentProps.disabled = true |
|
|
|
|
|
item.componentProps.isSearchList = true |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
if(type == 'update'){ |
|
|
|
|
|
ProductdismantleRequestMain.allSchemas.formSchema.forEach((item) => { |
|
|
|
|
|
if (item.field == 'workshopCode') { |
|
|
|
|
|
item.componentProps.disabled = true |
|
|
|
|
|
item.componentProps.isSearchList = false |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
formRef.value.open(type, row) |
|
|
formRef.value.open(type, row) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|