From 8136178e56f99a3871128a4e18b5a37bcd44968b Mon Sep 17 00:00:00 2001 From: pengjun <158915633@qq.com> Date: Sun, 21 Apr 2024 00:33:52 +0800 Subject: [PATCH] sum --- src/components/sumDoctorCheck/SumSug.vue | 225 ++++++++++++----------- 1 file changed, 119 insertions(+), 106 deletions(-) diff --git a/src/components/sumDoctorCheck/SumSug.vue b/src/components/sumDoctorCheck/SumSug.vue index 244afa0..53ea788 100644 --- a/src/components/sumDoctorCheck/SumSug.vue +++ b/src/components/sumDoctorCheck/SumSug.vue @@ -32,7 +32,7 @@
+ border size="small" ref="tableSuggestion"> @@ -42,113 +42,118 @@ +
-
-
诊断
- - - - - - - - - - - - - - - -
-
-
医学解释
- - - - - - - - - - - -
-
-
常见原因
- - - - - - - - - - - -
-
-
健康指导
- - - - - - - - - - - +
+
+
诊断
+ + + +
+
+
医学解释
+ + + + + + + + + + + + + + + +
+
+
常见原因
+ + + + + + + + + + + + + + + +
+
+
健康指导
+ + + + + + + + + + + + + + + +
@@ -231,6 +236,13 @@ export default { }) }, + btnCollapse(index) { + this.sumDoctorCheck.suggestionList[index]['collapse'] = !this.sumDoctorCheck.suggestionList[index]['collapse'] + this.$nextTick(() => { + this.$refs['tableSuggestion'].doLayout() + }) + }, + // 获取人员是否已总检过 getHaveSumData(patientRegisterId) { this.sumDoctorCheck.summaryList = []; @@ -246,7 +258,7 @@ export default { .then(async (res) => { if (res.code > -1) { let isGetExistData = res.data - if (res.data == 'Y') { + if (res.data == 'Y') { try { await this.$confirm('检测到该人员已经生成过总检信息。', '确认信息', { distinguishCancelAndClose: true, @@ -256,7 +268,7 @@ export default { isGetExistData = 'N' } catch (error) { //console.log() - } + } } this.summaryList(patientRegisterId, isGetExistData) this.suggestionList(patientRegisterId, isGetExistData) @@ -335,6 +347,7 @@ export default { // 处理拖动排序使用 this.sumDoctorCheck.suggestionList.forEach((e, i) => { e.id = `suggestion_${i}` + e.collapse = true if (e.medicalInterpretations) { e.medicalInterpretations.forEach((e0, i0) => { e0.sumSuggestionHeaderId = `suggestion_${i}`