|
@ -196,6 +196,7 @@ const formsSuccess = async (formType,data) => { |
|
|
if(data.activeTime==0)data.activeTime = null; |
|
|
if(data.activeTime==0)data.activeTime = null; |
|
|
if(data.expireTime==0)data.expireTime = null; |
|
|
if(data.expireTime==0)data.expireTime = null; |
|
|
basicFormRef.value.formLoading = true |
|
|
basicFormRef.value.formLoading = true |
|
|
|
|
|
try { |
|
|
if (formType === 'create') { |
|
|
if (formType === 'create') { |
|
|
if(routeName.value.includes('SCP')){ |
|
|
if(routeName.value.includes('SCP')){ |
|
|
await SupplieritemApi.createSupplieritemSCP(data) |
|
|
await SupplieritemApi.createSupplieritemSCP(data) |
|
@ -211,7 +212,9 @@ const formsSuccess = async (formType,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() |
|
|