瀏覽代碼

术语映射

wyq 4 年之前
父節點
當前提交
d3de033c2f
共有 1 個文件被更改,包括 3 次插入39 次删除
  1. 3 39
      src/components/base/LtModal.vue

+ 3 - 39
src/components/base/LtModal.vue

@@ -195,8 +195,6 @@ export default {
           { required: true, message: '请选择' + this.meal, trigger: 'change' }
         ]
       },
-      ty: this.type,
-      searchType: '',
       isEdit: false,
       editId: '',
       drugList: [],
@@ -208,7 +206,6 @@ export default {
   created() {
     //修改
     if (this.data != {}) {
-      console.log(this.data)
       this.isEdit = true;
       this.editId = this.data.id;
       this.form.hisName = this.data.hisName;
@@ -254,17 +251,9 @@ export default {
         this.uniqueNameList = [];
         return;
       }
-      if (this.type == 1) {
-        const { hisName, hisDetailName } = this.form;
-        this.ty = 2; // 1-化验大项、2-化验小项
-        if (hisName !== '' && hisDetailName === '') {
-          this.ty = 1;
-        }
-        this.searchType = this.ty;
-      }
       this.showDrop = true;
       let params = {
-        type: this.ty ? this.ty : this.type,
+        type: this.type,
         inputStr: query,
         sex: 3,
         age: 0
@@ -272,11 +261,7 @@ export default {
       api.retrievalSearch(params).then(res => {
         this.showDrop = false;
         if (res.data.code === '0') {
-          if (this.ty == 2 && this.ty) {
-            this.uniqueNameList = res.data.data.lisDetailNames;
-          } else {
-            this.uniqueNameList = res.data.data.nameList;
-          }
+          this.uniqueNameList = res.data.data.nameList;
         }
       });
     },
@@ -304,14 +289,8 @@ export default {
     },
     getRelatedMapping() {
       const { hisName, hisDetailName } = this.form;
-      if (this.type == 1) {
-        this.ty = 2; // 1-化验大项、2-化验小项
-        if (hisName !== '' && hisDetailName === '') {
-          this.ty = 1;
-        }
-      }
       let params = {
-        type: this.ty ? this.ty : this.type,
+        type: this.type,
         hisDetailName: hisDetailName,
         hisName: hisName,
         hospitalId: this.hospitalId
@@ -370,21 +349,6 @@ export default {
             source
           } = this.form;
           // 当标准术语是套餐时,细项必须为空
-          if (this.searchType === 1 && hisDetailName !== '') {
-            this.warning('医院术语与标准术语类型不匹配,请修改');
-            return;
-          }
-
-          // 当标准术语是细项时,医院术语套餐和细项均不能为空
-          if (this.searchType === 2) {
-            if (hisName === '') {
-              this.warning('医院术语与标准术语类型不匹配,请修改');
-              return;
-            } else if (hisDetailName === '') {
-              this.warning('医院术语与标准术语类型不匹配,请修改');
-              return;
-            }
-          }
           let params = {
             hisName: hisName,
             uniqueName: searchText,