|
|
@ -188,6 +188,7 @@ const formsSuccess = async (formType,data) => { |
|
|
|
} |
|
|
|
if(data.activeTime==0)data.activeTime = null; |
|
|
|
if(data.expireTime==0)data.expireTime = null; |
|
|
|
basicFormRef.value.formLoading = true |
|
|
|
if (formType === 'create') { |
|
|
|
await ProductionitemcodeSpareitemcodeApi.createProductionitemcodeSpareitemcode(data) |
|
|
|
message.success(t('common.createSuccess')) |
|
|
@ -195,6 +196,7 @@ const formsSuccess = async (formType,data) => { |
|
|
|
await ProductionitemcodeSpareitemcodeApi.updateProductionitemcodeSpareitemcode(data) |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
} |
|
|
|
basicFormRef.value.formLoading = false |
|
|
|
basicFormRef.value.dialogVisible = false |
|
|
|
getList() |
|
|
|
} |
|
|
|