|
@ -199,6 +199,7 @@ const formsSuccess = async (formType,data) => { |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
basicFormRef.value.formLoading = true |
|
|
basicFormRef.value.formLoading = true |
|
|
|
|
|
try { |
|
|
if (formType === 'create') { |
|
|
if (formType === 'create') { |
|
|
await BomApi.createBom(data) |
|
|
await BomApi.createBom(data) |
|
|
message.success(t('common.createSuccess')) |
|
|
message.success(t('common.createSuccess')) |
|
@ -206,7 +207,9 @@ const formsSuccess = async (formType,data) => { |
|
|
await BomApi.updateBom(data) |
|
|
await BomApi.updateBom(data) |
|
|
message.success(t('common.updateSuccess')) |
|
|
message.success(t('common.updateSuccess')) |
|
|
} |
|
|
} |
|
|
|
|
|
} finally { |
|
|
basicFormRef.value.formLoading = false |
|
|
basicFormRef.value.formLoading = false |
|
|
|
|
|
} |
|
|
basicFormRef.value.dialogVisible = false |
|
|
basicFormRef.value.dialogVisible = false |
|
|
if (formType === 'create') { |
|
|
if (formType === 'create') { |
|
|
getList() |
|
|
getList() |
|
|