Browse Source

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

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

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

@ -214,6 +214,7 @@ const openForm = (type: string, row?: any) => {
// form // form
const formsSuccess = async (formType,data) => { const formsSuccess = async (formType,data) => {
try {
var isHave =Customerdock.allSchemas.formSchema.some(function (item) { var isHave =Customerdock.allSchemas.formSchema.some(function (item) {
return item.field === 'activeTime' || item.field === 'expireTime'; return item.field === 'activeTime' || item.field === 'expireTime';
}); });
@ -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