Sfoglia il codice sorgente

质控详情在添加质控信息时获取接收人的参数在不同接口中获取blbh

liyanyan 3 settimane fa
parent
commit
53dd29fbac

+ 7 - 4
src/views/recordsRoom/qc/caseViews.vue

@@ -126,7 +126,7 @@
       </div>
       <!-- 添加质控结果 -->
       <CreateControlResultDialogVue v-if="dialogData.bSwitch" :AAA28="mainHomeData.AAA28" :data="dialogData"
-        @refresh="handelRefreshResults" :MED_REC_ID="mainHomeData.MED_REC_ID" :CWH="mainHomeData.CWH"
+        @refresh="handelRefreshResults" :MED_REC_ID="valData" :CWH="mainHomeData.CWH"
         :AAA29="mainHomeData.AAA29" :JSKS="mainHomeData.AAC11C" @close="handleUpdate" :currentTreeItem="currentTreeItem"/>
       <!-- 右键菜单 -->
       <div class="dialog-box">
@@ -229,7 +229,7 @@ export default {
   props: {},
   data() {
     return {
-      currentTreeItem: null,
+      currentTreeItem: {},
       currentTab: "1",
       mainHomeData: {},
       admissionRecord: {},
@@ -504,8 +504,7 @@ export default {
       })
     },
     clickTree(b, n, item) {
-      console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>', item)
-      this.currentTreeItem = {...item}
+      this.currentTreeItem.blbh = ''
       if (item) {
         if (item.blbh) {
           this.is_active_blbh = item.blbh
@@ -559,6 +558,7 @@ export default {
         }
         getCasePlatform(params).then(res => {
           this.admissionRecord = res.data
+          this.currentTreeItem.blbh = res.data.blbh
         })
       } else if (b == 1) {
         // 获取详情
@@ -571,6 +571,7 @@ export default {
         }
         getCasePlatform(params).then(res => {
           this.outHospitalRecordData = res.data;
+          this.currentTreeItem.blbh = res.data.blbh
         })
       }
       if (that.is_active == '长期医嘱') {
@@ -628,6 +629,7 @@ export default {
           getBcData(parm).then(res => {
             that.caseRecodeInfo = res.data[0].bc_data
             that.caseRecodeInfo.is_format = res.data[0].is_format
+            that.currentTreeItem.blbh = res.data[0].blbh
           })
         }
       }
@@ -643,6 +645,7 @@ export default {
           getSurgeryData(parm).then(res => {
             that.surgeryData = res.p[0].surgery_data
             that.surgeryData.is_format = res.p[0].is_format
+            that.currentTreeItem.blbh = res.p[0].blbh
           })
         }
       }

+ 3 - 2
src/views/recordsRoom/qc/components/CreateControlResultDialog.vue

@@ -348,11 +348,12 @@ export default {
     },
 
     getBlsy() {
+      console.log('===================currentTreeItem', this.$props.currentTreeItem)
       let params = this.$props.currentTreeItem && this.$props.currentTreeItem.blbh ? {
         blbh: this.$props.currentTreeItem.blbh,
-        zyh: this.$props.MED_REC_ID
+        zyh: this.$route.query.ZYH
       } : {
-        zyh: this.$props.MED_REC_ID
+        zyh: this.$route.query.ZYH
       }
       this.$axios.get('/get_bl_blsy', {
         params