Browse Source

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

intex
zhang_li 7 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
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';
});
if(isHave){
@ -233,13 +234,16 @@ const formsSuccess = async (formType,data) => {
await CustomerdockApi.updateCustomerdock(data)
message.success(t('common.updateSuccess'))
}
basicFormRef.value.formLoading = false
basicFormRef.value.dialogVisible = false
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} catch {
basicFormRef.value.formLoading = false
}
}
//

Loading…
Cancel
Save