瀏覽代碼

推荐匹配修改

wyq 3 年之前
父節點
當前提交
46289dfb0b
共有 1 個文件被更改,包括 9 次插入6 次删除
  1. 9 6
      src/components/common/LtModal.vue

+ 9 - 6
src/components/common/LtModal.vue

@@ -165,7 +165,7 @@ import config from '@api/config.js';
 import utils from '@api/utils.js';
 import utils from '@api/utils.js';
 export default {
 export default {
   name: 'lt-modal',
   name: 'lt-modal',
-  props: ['modalVisiable', 'meal', 'detail', 'standard', 'type', 'data'],
+  props: ['modalVisiable', 'meal', 'detail', 'standard', 'type', 'data','tip'],
   data() {
   data() {
     return {
     return {
       form: {
       form: {
@@ -199,7 +199,7 @@ export default {
       getIndex: 6,
       getIndex: 6,
       ty: this.type,
       ty: this.type,
       searchType: '',
       searchType: '',
-      title: '添加'
+      title: '添加',
     };
     };
   },
   },
   created() {
   created() {
@@ -220,12 +220,15 @@ export default {
       this.form.form = this.data.form;
       this.form.form = this.data.form;
       this.form.source = this.data.source;
       this.form.source = this.data.source;
       this.form.hisCode = this.data.hisCode;
       this.form.hisCode = this.data.hisCode;
-      if (this.data.hisDetailName != '') {
+      let name
+      if (this.data.hisName !== '' && this.data.hisDetailName === '') {
+        this.ty = 1; // 1-化验大项、2-化验小项
+        name = this.data.hisName;
+      } else if (this.data.hisName !== '' && this.data.hisDetailName !== '') {
         this.ty = 2;
         this.ty = 2;
-      } else {
-        this.ty = 1;
+        name = this.data.hisDetailName;
       }
       }
-      this.getTermMatching();
+      this.getTermMatching(this.ty,name);
       this.getRelatedMapping();
       this.getRelatedMapping();
     }
     }
   },
   },