pengjun 2 years ago
parent
commit
b569e6d7ac
  1. 90
      src/components/sumDoctorCheck/SumHistory.vue
  2. 4
      src/views/doctorCheck/sumDoctorCheck.vue

90
src/components/sumDoctorCheck/SumHistory.vue

@ -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>

4
src/views/doctorCheck/sumDoctorCheck.vue

@ -31,7 +31,7 @@
</el-tab-pane>
<el-tab-pane label="历次综述" name="6">
<SumHistory/>
</el-tab-pane>
</el-tabs>
</td>
@ -51,6 +51,7 @@ import SumSug from "../../components/sumDoctorCheck/SumSug.vue";
import SumPREdit from "../../components/sumDoctorCheck/SumPREdit.vue";
import CheckDetails from "../../components/sumDoctorCheck/CheckDetails.vue";
import SumItems from "../../components/sumDoctorCheck/SumItems.vue";
import SumHistory from "../../components/sumDoctorCheck/SumHistory.vue";
export default {
components: {
PatientRegisterBase,
@ -59,6 +60,7 @@ export default {
SumPREdit,
CheckDetails,
SumItems,
SumHistory,
},
data() {
return {

Loading…
Cancel
Save