Browse Source

检验修改时状态判断

wyq 3 years ago
parent
commit
a3f0d71261
2 changed files with 13 additions and 11 deletions
  1. 12 11
      src/components/common/LtModal.vue
  2. 1 0
      src/components/icss/operation/Operation.vue

+ 12 - 11
src/components/common/LtModal.vue

@@ -114,7 +114,7 @@
                   <el-form-item label="ICD编码:" v-if="type == 4">
                     <span class="previewInfo" style="minWidth: 240px">{{form.icdCode}}</span>
                   </el-form-item>
-                  <el-form-item :label="detail+':'" v-if="type == 12 || type == 13">
+                  <el-form-item :label="detail+':'" v-if="type == 12 || type == 13 || type == 6">
                     <span class="previewInfo" style="minWidth: 240px">{{form.icdCode}}</span>
                   </el-form-item>
                   <el-form-item label="药品剂型:" v-if="type == 5">
@@ -203,6 +203,9 @@ export default {
     };
   },
   created() {
+    if (this.type == 1) {
+      this.ty = 2; // 1-化验大项、2-化验小项
+    }
     //修改
     if (JSON.stringify(this.data) != '{}') {
       this.title = '修改';
@@ -218,9 +221,9 @@ export default {
       this.form.source = this.data.source;
       this.form.hisCode = this.data.hisCode;
       if (this.data.hisDetailName != '') {
-        this.searchType = 2;
-      }else{
-        this.searchType = 1;
+        this.ty = 2;
+      } else {
+        this.ty = 1;
       }
       this.getTermMatching();
       this.getRelatedMapping();
@@ -259,13 +262,11 @@ export default {
         this.uniqueNameList = [];
         return;
       }
-      if (this.type == 1 && !this.isEdit) {
-        const { hisName, hisDetailName } = this.form;
-        this.ty = 2; // 1-化验大项、2-化验小项
-        if (hisName !== '' && hisDetailName === '') {
-          this.ty = 1;
-        }
-        this.searchType = this.ty;
+      const { hisName, hisDetailName } = this.form;
+      if (hisName !== '' && hisDetailName === '') {
+        this.ty = 1;
+      }else if(hisName !== '' && hisDetailName !== ''){
+        this.ty = 2;
       }
       this.searchType = this.ty;
       this.showDrop = true;

+ 1 - 0
src/components/icss/operation/Operation.vue

@@ -78,6 +78,7 @@
       @func="getMsgFormSon"
       :meal="'手术/操作名称'"
       :standard="'手术/操作名称'"
+      :detail="'手术/操作代码'"
       :tip="'手术/操作关联'"
       :type="6"
       :data="data"