fix(material): 修复物料表单质检方案名称加载时机问题

This commit is contained in:
zxy 2026-05-07 17:37:19 +08:00
parent 45f7d0406f
commit 1eb9857142

View File

@ -154,14 +154,14 @@ const open = async (type: string, id?: number) => {
formLoading.value = true
try {
const data = await MaterialApi.getMaterial(id)
//
//
resetForm()
formData.value = data
// resetForm
if (data.schemeId) {
const inspPlan = await InspPlanApi.getInspPlan(data.schemeId)
schemeName.value = inspPlan.schemeName
}
//
resetForm()
formData.value = data
} finally {
formLoading.value = false
}