浏览代码

增加最小年龄不能小于最大年龄判断

zhangxc 6 年之前
父节点
当前提交
13f7f46764

+ 9 - 1
src/components/icss/AddIndeptLabel.vue

@@ -98,6 +98,13 @@
           });
           return;
         }
+        if(this.dataPub.region8 > this.dataPub.region9) {
+          this.$message({
+            message: '最小年龄不能大于最大年龄',
+            type: 'warning'
+          });
+          return;
+        }
         const {isEdit,data} = this.$route.params;
         let param = {
           "questionWrapper": {
@@ -121,7 +128,8 @@
             "minValue": this.dataPub.minNormalVal,        //化验最小正常值
             "maxValue": this.dataPub.maxNormalVal,         //化验最大正常值
             "questionDetails": this.options,
-            "questionMappings": []       //映射关系,
+            "questionMappings": [],      //映射关系,
+            "formulaCode": isEdit?data.formulaCode : ''
           }
         };
         this.showSaveDialog(param);

+ 0 - 2
src/components/icss/AddPhysicalExamTemp.vue

@@ -165,7 +165,6 @@
             return RightTagListIds
         },
         changeDepart(){
-            console.log(this.form.department)
             this.getTagList()
         },
         selectLeftTag(tag, index, e) {
@@ -256,7 +255,6 @@
             }
             this.showConfirmDialog('是否保存该模板?', () => {
                 api.savePhysicalExamTemp(param).then((res) => {
-                console.log('resssss', res)
                 if (res.data.code  === '0') {
                     this.warning(res.data.msg || '保存成功', 'success','1000')
                     setTimeout(() => {

+ 8 - 0
src/components/icss/NoiseTemplate.vue

@@ -176,6 +176,14 @@ export default {
         });
         return;
       }
+      console.log('this.dataPub', this.dataPub)
+      if(this.dataPub.region8 > this.dataPub.region9) {
+          this.$message({
+            message: '最小年龄不能大于最大年龄',
+            type: 'warning'
+          });
+          return;
+      }
       let detailLis = utils.dataRecombination(this.sendIds, this.dataPub.region2)
       let param = {
         "questionWrapper": {