Browse Source

YT-834WMS 客户月台 新增时,应该校验代码不能一样

intex
zhang_li 3 days ago
parent
commit
900d9eb0da
  1. 8
      src/views/wms/basicDataManage/customerManage/customerdock/index.vue

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

@ -214,7 +214,8 @@ const openForm = (type: string, row?: any) => {
// form // form
const formsSuccess = async (formType,data) => { const formsSuccess = async (formType,data) => {
var isHave =Customerdock.allSchemas.formSchema.some(function (item) { try {
var isHave =Customerdock.allSchemas.formSchema.some(function (item) {
return item.field === 'activeTime' || item.field === 'expireTime'; return item.field === 'activeTime' || item.field === 'expireTime';
}); });
if(isHave){ if(isHave){
@ -233,13 +234,16 @@ const formsSuccess = async (formType,data) => {
await CustomerdockApi.updateCustomerdock(data) await CustomerdockApi.updateCustomerdock(data)
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
} }
basicFormRef.value.formLoading = false
basicFormRef.value.dialogVisible = false basicFormRef.value.dialogVisible = false
if (formType === 'create') { if (formType === 'create') {
getList() getList()
}else{ }else{
buttonBaseClick('refresh',null) buttonBaseClick('refresh',null)
} }
} catch {
basicFormRef.value.formLoading = false
}
} }
// //

Loading…
Cancel
Save