2 changed files with 93 additions and 1 deletions
			
			
		@ -0,0 +1,90 @@ | 
				
			|||
<template>   | 
				
			|||
  <div style="display: flex;width:100%;"> | 
				
			|||
    <table width="1000" height="680">    | 
				
			|||
      <tbody v-for="(item,index) of tableData" :key="index"> | 
				
			|||
        <tr height="40"> | 
				
			|||
          <td width="200">体检次数:{{ item.medicalTimes }}</td> | 
				
			|||
          <td width="200">总检医生:{{ item.summaryDoctor }}</td> | 
				
			|||
          <td>总检日期:{{ item.summaryDate }}</td> | 
				
			|||
        </tr> | 
				
			|||
        <tr height="40"> | 
				
			|||
          <td width="200">检查综述:</td> | 
				
			|||
          <td colspan="2">{{ item.sumSummarys }}</td> | 
				
			|||
        </tr> | 
				
			|||
        <tr height="40"> | 
				
			|||
          <td width="200">医生建议:</td> | 
				
			|||
          <td colspan="2">{{ item.sumSuggestions }}</td> | 
				
			|||
        </tr> | 
				
			|||
      </tbody> | 
				
			|||
    </table>     | 
				
			|||
  </div> | 
				
			|||
</template> | 
				
			|||
<script lang="ts"> | 
				
			|||
import { mapState } from 'vuex'; | 
				
			|||
import Sortable from "sortablejs"; | 
				
			|||
import { getapi, postapi, putapi, deletapi } from "@/api/api"; | 
				
			|||
import { arrayExistObj } from '@/utlis/proFunc'; | 
				
			|||
export default { | 
				
			|||
  components: {}, | 
				
			|||
  data() { | 
				
			|||
    return { | 
				
			|||
      tableData:[],   //显示数据 | 
				
			|||
    }; | 
				
			|||
  }, | 
				
			|||
 | 
				
			|||
  created() { }, | 
				
			|||
 | 
				
			|||
  //挂载完成 | 
				
			|||
  mounted() {  | 
				
			|||
 | 
				
			|||
  }, | 
				
			|||
 | 
				
			|||
  computed: { | 
				
			|||
    ...mapState(['dict', 'doctorCheck', 'sumDoctorCheck']), | 
				
			|||
  }, | 
				
			|||
 | 
				
			|||
  methods: { | 
				
			|||
    //获取历次综述 | 
				
			|||
    // { | 
				
			|||
    //   "medicalTimes": 3, | 
				
			|||
    //   "summaryDoctor": "admin", | 
				
			|||
    //   "summaryDate": "7/24/2023", | 
				
			|||
    //   "sumSummarys": "*  乙肝两对半:\n(01)无免疫\n*  身高体重:\n(01)重度脂肪肝\n*  血常规:\n(01)白细胞计数升高\n*  心电图:\n(01)右眼近视\n", | 
				
			|||
    //   "sumSuggestions": "*  乙肝两对半:\n(01)接种疫苗\n*  身高体重:\n(01)减肥、锻炼\n*  血常规:\n(01)注意休息\n*  心电图:\n(01)护眼及注意用眼卫生\n" | 
				
			|||
    // },     | 
				
			|||
    SumHistory(patientId) {    | 
				
			|||
      console.log(`/api/app/sum-summary-report/historical-review-list/${patientId}`) | 
				
			|||
      getapi(`/api/app/sum-summary-report/historical-review-list/${patientId}`) | 
				
			|||
        .then((res) => { | 
				
			|||
          console.log("获取历次综述 SumHistory", res.data); | 
				
			|||
          if (res.code != -1) { | 
				
			|||
            this.tableData = res.data; | 
				
			|||
          } | 
				
			|||
        }) | 
				
			|||
        .catch((err) => { | 
				
			|||
          this.$message({ type: "error", message: `操作失败,原因:${err}` }); | 
				
			|||
        }); | 
				
			|||
    }, | 
				
			|||
 | 
				
			|||
 | 
				
			|||
  }, | 
				
			|||
 | 
				
			|||
  //监听事件 | 
				
			|||
  watch: { | 
				
			|||
    //检查项目切换 | 
				
			|||
    "sumDoctorCheck.sumPREdit.patientId"(newVal, oldVal) { | 
				
			|||
      console.log("watch sumDoctorCheck.sumPREdit.patientId newVal:", newVal, " oldVal:", oldVal); | 
				
			|||
      if (newVal != oldVal && newVal != '') { | 
				
			|||
        this.SumHistory(newVal)         | 
				
			|||
      } | 
				
			|||
    }, | 
				
			|||
  }, | 
				
			|||
}; | 
				
			|||
</script> | 
				
			|||
<style scoped> | 
				
			|||
::v-deep .el-table td.el-table__cell, | 
				
			|||
.el-table th.el-table__cell.is-leaf { | 
				
			|||
  padding: 0; | 
				
			|||
} | 
				
			|||
</style> | 
				
			|||
   | 
				
			|||
						Write
						Preview
					
					
					Loading…
					
					Cancel
						Save
					
		Reference in new issue