فهرست منبع

血压类型去掉单选含自由输入项

Luolei 6 سال پیش
والد
کامیت
0f62f13826
2فایلهای تغییر یافته به همراه71 افزوده شده و 72 حذف شده
  1. 1 1
      src/api/config.js
  2. 70 71
      src/components/icss/NoiseTemplate.vue

+ 1 - 1
src/api/config.js

@@ -234,7 +234,7 @@ export default {
   },
   groupParams:[
     {controlType:[1,2],tagType:[1],notTagType:[8]},     //多列多选(杂音/初为)     notTagType为文字标签剔除
-    {controlType:[1,2,5,6,7,11],tagType:[1,2],notTagType:[8]},  //多项统一横铺标签(血压)
+    {controlType:[1,2,5,6,7],tagType:[1,2],notTagType:[8]},  //多项统一横铺标签(血压)
     {controlType:[0,1,2,5,6,7,11],tagType:[1,2],notTagType:[8]},  //症状详细(症状尾巴)
     {controlType:[0,1,2],tagType:[1,2,3,4],notTagType:[2,8]}, //组合项标签(既往史)
     {controlType:[1,6],tagType:[],notTagType:[8]},    //化验组合

+ 70 - 71
src/components/icss/NoiseTemplate.vue

@@ -110,7 +110,6 @@ import BloodPressTagGroup from './BloodPressTagGroup';
 import SymptomPush from './SymptomPush';
 import api from '@api/icss.js';
 import utils from '@api/utils.js';
-import { constants } from 'fs';
 
 export default {
   name: 'NoiseTemplateWrapper',
@@ -223,84 +222,84 @@ export default {
       this.showDelDialog(param)
     },
     showDelDialog(param) {
-      this.showConfirmDialog('是否保存该标签组?', () => {
-        api.saveOrUpdate(param).then((res) => {
-          if (res.data.code === '0') {
-            this.warning(res.data.msg || '保存成功', 'success','1000')
-            setTimeout(() => {
-              this.$router.push({
-                path:'/admin/LT-YXSJWH-BQZWH'
-              })
-            }, 1000);
-          } else {
-            this.warning(res.data.msg)
-          }
-        }).catch((err) => {
-          this.warning(err);
-        })
-      });
-      // const h = this.$createElement;
-      // const {isEdit} = this.$route.params;
-      // const addMsg = h('div',{style:'padding-bottom:10px'},[
-      //       h('p',{style:'font-size:15px;margin-bottom:10px'},'是否保存该标签组?')
-      //     ])
-      // const modMsg = h('div',{style:'padding-bottom:10px'},[
-      //       h('p',{style:'font-size:15px;margin-bottom:10px'},'是否保存该标签组?'),
-      //       h('span',{style:'color:red;font-size:12px'},'若标签系统名称已经改变,请去别名维护中修改相关信息'),
-      //     ])
-      // this.$msgbox({
-      //   title:'提示',
-      //   message:isEdit?modMsg:addMsg,
-      //   showCancelButton: true,
-      //   distinguishCancelAndClose:true,
-      //   confirmButtonText: '确认并前往别名维护',
-      //   cancelButtonText:'确认',
-      //   // type: 'warning',
-      //   cancelButtonClass:'toast-cancel'
-      // }).then(()=>{
+      // this.showConfirmDialog('是否保存该标签组?', () => {
       //   api.saveOrUpdate(param).then((res) => {
       //     if (res.data.code === '0') {
-      //       this.warning(res.data.msg || '保存成功', 'success');
-      //       // 判断是否已有别名--有(修改),无(新增)
-      //       const item = {'questionId':param.questionWrapper.id,'questionName':param.questionWrapper.tagName};
-      //       api.similarNameDetl(item).then((res)=>{
-      //         if(res.data.code=='0'){
-      //           this.$router.push({
-      //             name:'AddSimilarName',
-      //             params: {id:param.questionWrapper.id,name:param.questionWrapper.tagName}
-      //           })
-      //         }else{
-      //           this.$router.push({
-      //             name:'AddSimilarName',
-      //             params: {}
-      //           })
-      //         }
-      //       })
+      //       this.warning(res.data.msg || '保存成功', 'success','1000')
+      //       setTimeout(() => {
+      //         this.$router.push({
+      //           path:'/admin/LT-YXSJWH-BQZWH'
+      //         })
+      //       }, 1000);
       //     } else {
       //       this.warning(res.data.msg)
       //     }
       //   }).catch((err) => {
       //     this.warning(err);
       //   })
-      // }).catch((action)=>{
-      //   // action :cancel--取消,close--关闭
-      //   if(action=='cancel'){
-      //     api.saveOrUpdate(param).then((res) => {
-      //       if (res.data.code === '0') {
-      //         this.warning(res.data.msg || '保存成功', 'success');
-      //         setTimeout(() => {
-      //           this.$router.push({
-      //             path:'/admin/LT-YXSJWH-BQZWH'
-      //           })
-      //         }, 1000);
-      //       } else {
-      //         this.warning(res.data.msg)
-      //       }
-      //     }).catch((err) => {
-      //       this.warning(err);
-      //     })
-      //   }
-      // })
+      // });
+      const h = this.$createElement;
+      const {isEdit} = this.$route.params;
+      const addMsg = h('div',{style:'padding-bottom:10px'},[
+            h('p',{style:'font-size:15px;margin-bottom:10px'},'是否保存该标签组?')
+          ])
+      const modMsg = h('div',{style:'padding-bottom:10px'},[
+            h('p',{style:'font-size:15px;margin-bottom:10px'},'是否保存该标签组?'),
+            h('span',{style:'color:red;font-size:12px'},'若标签系统名称已经改变,请去别名维护中修改相关信息'),
+          ])
+      this.$msgbox({
+        title:'提示',
+        message:isEdit?modMsg:addMsg,
+        showCancelButton: true,
+        distinguishCancelAndClose:true,
+        confirmButtonText: '确认并前往别名维护',
+        cancelButtonText:'确认',
+        // type: 'warning',
+        cancelButtonClass:'toast-cancel'
+      }).then(()=>{
+        api.saveOrUpdate(param).then((res) => {
+          if (res.data.code === '0') {
+            this.warning(res.data.msg || '保存成功', 'success');
+            // 判断是否已有别名--有(修改),无(新增)
+            const item = {'questionId':param.questionWrapper.id,'questionName':param.questionWrapper.tagName};
+            api.similarNameDetl(item).then((res)=>{
+              if(res.data.code=='0'){
+                this.$router.push({
+                  name:'AddSimilarName',
+                  params: {id:param.questionWrapper.id,name:param.questionWrapper.tagName}
+                })
+              }else{
+                this.$router.push({
+                  name:'AddSimilarName',
+                  params: {}
+                })
+              }
+            })
+          } else {
+            this.warning(res.data.msg)
+          }
+        }).catch((err) => {
+          this.warning(err);
+        })
+      }).catch((action)=>{
+        // action :cancel--取消,close--关闭
+        if(action=='cancel'){
+          api.saveOrUpdate(param).then((res) => {
+            if (res.data.code === '0') {
+              this.warning(res.data.msg || '保存成功', 'success');
+              setTimeout(() => {
+                this.$router.push({
+                  path:'/admin/LT-YXSJWH-BQZWH'
+                })
+              }, 1000);
+            } else {
+              this.warning(res.data.msg)
+            }
+          }).catch((err) => {
+            this.warning(err);
+          })
+        }
+      })
     },
     showConfirmDialog(msg, resolve) {
       this.$alert(msg, '提示', {