Browse Source

HL-5688WMS物料清单管理,保存失败后,不应该一直loading

hella_online_20240828
wangyufei 3 months ago
parent
commit
418ed122e3
  1. 17
      src/views/wms/basicDataManage/itemManage/bom/index.vue

17
src/views/wms/basicDataManage/itemManage/bom/index.vue

@ -199,14 +199,17 @@ const formsSuccess = async (formType,data) => {
return return
} }
basicFormRef.value.formLoading = true basicFormRef.value.formLoading = true
if (formType === 'create') { try {
await BomApi.createBom(data) if (formType === 'create') {
message.success(t('common.createSuccess')) await BomApi.createBom(data)
} else { message.success(t('common.createSuccess'))
await BomApi.updateBom(data) } else {
message.success(t('common.updateSuccess')) await BomApi.updateBom(data)
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()

Loading…
Cancel
Save