You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

95 lines
3.0 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. <template>
  2. <div :style="'overflow: scroll;width:100%;height:'+(window.pageHeight < 600 ? 300:window.pageHeight-300)+'px;'">
  3. <table width="800">
  4. <tbody v-for="(item,index) of tableData" :key="index">
  5. <tr height="40">
  6. <td width="100">体检次数</td>
  7. <td width="100">{{ item.medicalTimes }}</td>
  8. <td width="200">总检医生{{ item.summaryDoctor }}</td>
  9. <td>总检日期{{ item.summaryDate }}</td>
  10. </tr>
  11. <tr height="10"><td colspan="4"></td></tr>
  12. <tr height="40">
  13. <td width="100" style="vertical-align: top;">检查综述</td>
  14. <td colspan="3" v-html="item.sumSummarys"></td>
  15. </tr>
  16. <tr height="20"><td colspan="4"></td></tr>
  17. <tr height="40">
  18. <td width="100" style="vertical-align: top;">医生建议</td>
  19. <td colspan="3" v-html="item.sumSuggestions"></td>
  20. </tr>
  21. </tbody>
  22. </table>
  23. </div>
  24. </template>
  25. <script lang="ts">
  26. import { mapState } from 'vuex';
  27. import Sortable from "sortablejs";
  28. import { getapi, postapi, putapi, deletapi } from "@/api/api";
  29. import { arrayExistObj } from '@/utlis/proFunc';
  30. export default {
  31. components: {},
  32. data() {
  33. return {
  34. tableData:[], //显示数据
  35. };
  36. },
  37. created() { },
  38. //挂载完成
  39. mounted() {
  40. },
  41. computed: {
  42. ...mapState(['window','dict', 'doctorCheck', 'sumDoctorCheck']),
  43. },
  44. methods: {
  45. //获取历次综述
  46. // {
  47. // "medicalTimes": 3,
  48. // "summaryDoctor": "admin",
  49. // "summaryDate": "7/24/2023",
  50. // "sumSummarys": "* 乙肝两对半:\n(01)无免疫\n* 身高体重:\n(01)重度脂肪肝\n* 血常规:\n(01)白细胞计数升高\n* 心电图:\n(01)右眼近视\n",
  51. // "sumSuggestions": "* 乙肝两对半:\n(01)接种疫苗\n* 身高体重:\n(01)减肥、锻炼\n* 血常规:\n(01)注意休息\n* 心电图:\n(01)护眼及注意用眼卫生\n"
  52. // },
  53. SumHistory(patientId) {
  54. console.log(`/api/app/sumsummaryreport/gethistoricalreviewlist?PatientId=${patientId}`)
  55. getapi(`/api/app/sumsummaryreport/gethistoricalreviewlist?PatientId=${patientId}`)
  56. .then((res) => {
  57. console.log("获取历次综述 SumHistory", res.data);
  58. if (res.code != -1) {
  59. this.tableData = res.data;
  60. }
  61. })
  62. .catch((err) => {
  63. this.$message({ type: "error", message: `操作失败,原因:${err}` });
  64. });
  65. },
  66. lreplaceAll(str){
  67. return str.replaceAll('*',"<br/>")
  68. },
  69. },
  70. //监听事件
  71. watch: {
  72. //检查项目切换
  73. "sumDoctorCheck.sumPREdit.patientId"(newVal, oldVal) {
  74. console.log("watch sumDoctorCheck.sumPREdit.patientId newVal:", newVal, " oldVal:", oldVal);
  75. if (newVal != oldVal && newVal != '') {
  76. this.SumHistory(newVal)
  77. }
  78. },
  79. },
  80. };
  81. </script>
  82. <style scoped>
  83. ::v-deep .el-table td.el-table__cell,
  84. .el-table th.el-table__cell.is-leaf {
  85. padding: 0;
  86. }
  87. </style>