فهرست منبع

标签界面名称添加搜索

zhangxc 6 سال پیش
والد
کامیت
c8fe1615b5
3فایلهای تغییر یافته به همراه103 افزوده شده و 35 حذف شده
  1. 1 0
      src/api/config.js
  2. 3 0
      src/api/icss.js
  3. 99 35
      src/components/icss/PubIndeptTag.vue

+ 1 - 0
src/api/config.js

@@ -199,6 +199,7 @@ export default {
     'getknowledgeList': 'api/knowledgeman/dictionaryInfo/getList', //量表结构字典信息
     'getModuleType': 'api/icssman/moduleInfo/getModuleType',  //模板维护 -- 类型筛选
     'indexByLexicon': 'api/icssman/questionInfo/indexByLexicon',  //知识库标准化-根据名称和术语库词性类型搜索
+    'indexByLexiconStandWord':'api/knowledgeman//commonconcept/indexByLexicon',  //知识库标准化-根据名称搜索
     'getAssaySon': 'api/knowledgeman/lisSonContact/lisSonContactList',  //化验子项维护
     'getAssaySonDetail': 'api/knowledgeman/lisSonContact/relationContactDetail',  //化验子项维护-详情
     'getConceptInfoAssay': '/api/knowledgeman/concept/getAllForRelation',  //化验子项维护-搜索术语

+ 3 - 0
src/api/icss.js

@@ -97,6 +97,9 @@ export default {
     indexByLexicon(param) {
         return axios.post(urls.indexByLexicon, param)
     },
+    indexByLexiconStandWord(param) {
+        return axios.post(urls.indexByLexiconStandWord, param)
+    },
     getGroupParams(val){
       if(val == 2){
         return groupParams[0]

+ 99 - 35
src/components/icss/PubIndeptTag.vue

@@ -48,14 +48,18 @@
                 </el-select>
             </el-form-item>
             <el-form-item
-              v-show="form.region1 == 4 "
-              :label="'当为查体推送项时,需要检索标准术语'"
+              v-show="form.region1 == 4 || form.region1 == 5"
+              :label="(form.region1 == 4)?'当为查体推送项时,需要检索标准术语':(form.region1 == 5)?'是否当化验推送项':''"
               prop="region12"
             >
               <span
                 v-if="form.region1 == 4"
                 class="changeTips changeTipsName"
               >当为查体推送项时,标签系统名称需要检索医学标准术语内容并与之相对应,才可保证系统正常使用,如果未对应上可能造成系统显示异常!如果在搜索中没有可以先在医学标准术语中建立相关信息!</span>
+              <span
+                v-if="form.region1 == 5"
+                class="changeTips changeTipsName"
+              >当为化验推送项时,标签系统名称需要检索医学标准术语内容并与之相对应,才可保证系统正常使用,如果未对应上可能造成系统显示异常!如果在搜索中没有可以先在医学标准术语中建立相关信息!</span>
               <el-select
                 v-model="form.region12"
                 @change="sendData"
@@ -107,7 +111,7 @@
                         @change="sendData"
                 ></el-input> -->
                  <span
-                  v-if="form.region1 == 4"
+                  v-if="form.region1 == 4 || form.region1 == 5"
                   class="changeTips changeTipsName"
                 >标签系统名称需要与医学标准术语内容相对应,如果没有可以先在医学标准术语中建立相关信息!未建立相关信息可能会影响系统使用!当为查体推送项时标签系统名称应当检索医学术语库内容;</span>
             </el-form-item>
@@ -120,10 +124,22 @@
                         v-model="form.region4"
                         maxLength="30"
                         placeholder="请输入标签界面名称"
+                        @focus="focusInterfaceName"
                         @change="sendData"
                 ></el-input>
+                <ul
+                  class="systemNames"
+                  v-if="interfaceNameShow"
+                >
+                  <li
+                    v-for="item in interfacemNameLis"
+                    class="ellipsis"
+                    :key="item.conceptId"
+                    @click="pushInterfaceName(item.name)"
+                  >{{item.name}}</li>
+                </ul>
                 <span
-                  v-if="form.region1 == 4"
+                  v-if="form.region1 == 4 || form.region1 == 5"
                   class="changeTips changeTipsName"
                 >为在界面上检索不受影响,标签界面名称应与标签系统名称和医学标准术语内容相对应, 未建立相关信息可能会影响系统使用!</span>
             </el-form-item>
@@ -326,7 +342,6 @@
           prefix:'',            //前缀
           suffix:'',            //后缀
           tipLis:[],           //提示列表
-          isNeedSearch: false, //是否需要查询(系统名称)
         },
         labelTypesMaps: {       //// 归属和填写单类型限制
           '1':['1','2','5','6','7','11'], //联合推送暂时不用
@@ -379,7 +394,12 @@
         AdscriptionsList:[],
         labelTypes: [],
         labelTypesList: [],
-        systemNameShow: false,//系统名称列表显示
+        isNeedSearchSys: false, //是否需要查询(系统名称)
+        isNeedSearchInterface: false, //是否需要查询(界面名称)
+        systemNameShow: false,//系统名称显示
+        systemNameLis: [], //系统名称列表
+        interfacemNameLis: [],  //界面名称列表
+        interfaceNameShow: false, //界面名称显示
         type:'',
         systom:null,      //标签系统名称存在与否
       }
@@ -397,6 +417,9 @@
       newName() {
         return this.form.region3;
       },
+      newInterfaceName() {
+        return this.form.region4;
+      }
     },
     mounted() {
       
@@ -418,10 +441,15 @@
         this.tmpSex = prevVal;
       },
       newName(nextVal, prevVal) {
-        if (this.isNeedSearch && nextVal != prevVal && (this.form.region12 == 0)) {
+        if (this.isNeedSearchSys && nextVal != prevVal && (this.form.region12 == 0)) {
           this.focusSystemName()
         }
       },
+      newInterfaceName(nextVal, prevVal) {
+        if (this.isNeedSearchInterface && nextVal != prevVal && (this.form.region12 == 0)) {
+          this.focusInterfaceName()
+        }
+      }
     },
     methods: {
       getDropList() {
@@ -489,42 +517,78 @@
         });
       },
       focusSystemName() {
-        this.isNeedSearch = true
-        if (this.form.region3.trim() == '') {
-          this.systemNameShow = false
-          this.systemNameLis = []
-          return
-        }
-        if (this.form.region12 == 0) {
-          let tmpArr = [];
-          if (this.form.region1 == 1 && this.form.region2 == 4) {//症状
-            tmpArr = [1]
-          } else if (this.form.region1 == 4) {//查体
-            tmpArr = [33]
-          } else if (this.form.region1 == 5) {//化验
-            tmpArr = [12]
-          }
-          let params = {
-            "libType": tmpArr,
-            "name": this.form.region3,
-            "type":this.form.region1
+        if(this.form.region1 == 4) {
+          this.isNeedSearchSys = true
+          if (this.form.region3.trim() == '') {
+            this.systemNameShow = false
+            this.systemNameLis = []
+            return
           }
-          api.indexByLexicon(params).then((res) => {
-            if (res.data.code === '0') {
-              this.systemNameLis = res.data.data
-              if (res.data.data.length > 0) {
-                this.systemNameShow = true
-              } else {
-                this.systemNameShow = false
+          if (this.form.region12 == 0) {
+            let tmpArr = [];
+            if (this.form.region1 == 1 && this.form.region2 == 4) {//症状
+              tmpArr = [1]
+            } else if (this.form.region1 == 4) {//查体
+              tmpArr = [33]
+            } else if (this.form.region1 == 5) {//化验
+              tmpArr = [12]
+            }
+            let params = {
+              "libType": tmpArr,
+              "name": this.form.region3,
+              "type":this.form.region1
+            }
+            api.indexByLexicon(params).then((res) => {
+              if (res.data.code === '0') {
+                this.systemNameLis = res.data.data
+                if (res.data.data.length > 0) {
+                  this.systemNameShow = true
+                } else {
+                  this.systemNameShow = false
+                }
               }
+            })
+          }
+        }
+        
+      },
+      focusInterfaceName() {
+        if(this.form.region1 == 5) {
+          this.isNeedSearchInterface = true
+          if (this.form.region4.trim() == '') {
+            this.interfaceNameShow = false
+            this.interfacemNameLis = []
+            return
+          }
+          if (this.form.region12 == 0) {
+            let params = {
+              "libType": [13],
+              "name": this.form.region4,
             }
-          })
+            api.indexByLexiconStandWord(params).then((res) => {
+              if (res.data.code === '0') {
+                this.interfacemNameLis = res.data.data
+                if (res.data.data.length > 0) {
+                  this.interfaceNameShow = true
+                } else {
+                  this.interfaceNameShow = false
+                }
+              }
+            })
+          }
+
         }
+        
       },
       pushSystemName(val) {
         this.form.region3 = val
         this.systemNameShow = false
-        this.isNeedSearch = false
+        this.isNeedSearchSys = false
+      },
+      pushInterfaceName(val) {
+        this.form.region4 = val
+        this.interfaceNameShow = false
+        this.isNeedSearchInterface = false
       },
       closeNameLis(flg) {
         if (flg == 1) {