wyq 4 роки тому
батько
коміт
24f40fc01d
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      src/components/base/LtModal.vue

+ 2 - 2
src/components/base/LtModal.vue

@@ -232,11 +232,11 @@ export default {
       this.form.source = this.data.source;
       this.form.hisCode = this.data.hisCode;
       let name
-      if (this.data.hisName !== '' && this.data.hisDetailName === '') {
+      if (this.data.hisName !== '' && this.data.hisDetailName === '' && this.type == 1) {
         this.ty = 1; // 1-化验大项、2-化验小项
         this.searchType = 1;
         name = this.data.hisName;
-      } else if (this.data.hisName !== '' && this.data.hisDetailName !== '') {
+      } else if (this.data.hisName !== '' && this.data.hisDetailName !== '' && this.type == 1) {
         this.ty = 2;
         this.searchType = 2;
         name = this.data.hisDetailName;