Pārlūkot izejas kodu

修改年龄为空判断条件

zhangxc 6 gadi atpakaļ
vecāks
revīzija
540db5eac6
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/components/icss/AddMedicalInfo.vue

+ 1 - 1
src/components/icss/AddMedicalInfo.vue

@@ -486,7 +486,7 @@
         //   return;
         // }
         const  { primarySite,termClass,termCode,concept,conceptType,department,order,sex,termMiniClassName, maxAge, minAge, name, remark, stdName, twoLevelPosition } = this.form
-        if ( !primarySite || !termClass || !concept || !conceptType|| !department || !sex || !termMiniClassName || !maxAge || !minAge || !name || !stdName || !twoLevelPosition ) {
+        if ( !primarySite || !termClass || !concept || !conceptType|| !department || !sex || !termMiniClassName || (!maxAge&&maxAge != 0) || (!minAge &&minAge != 0) || !name || !stdName || !twoLevelPosition ) {
           this.warning('请填写必填项');
           return
         }