Browse Source

客户月台

hella_online_20250109
王宇飞 1 month ago
parent
commit
7bb1225933
  1. 17
      src/views/wms/basicDataManage/customerManage/customerdock/index.vue

17
src/views/wms/basicDataManage/customerManage/customerdock/index.vue

@ -191,14 +191,17 @@ 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
if (formType === 'create') { try {
await CustomerdockApi.createCustomerdock(data) if (formType === 'create') {
message.success(t('common.createSuccess')) await CustomerdockApi.createCustomerdock(data)
} else { message.success(t('common.createSuccess'))
await CustomerdockApi.updateCustomerdock(data) } else {
message.success(t('common.updateSuccess')) await CustomerdockApi.updateCustomerdock(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