From 6f52366df141666d165706ee4ce3d7e293ae1f14 Mon Sep 17 00:00:00 2001 From: shidongli Date: Fri, 12 Apr 2024 11:13:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/followup/index.vue | 2 +- src/views/system/followupdetails/index.vue | 28 +++++++++++++++------- 2 files changed, 21 insertions(+), 9 deletions(-) diff --git a/src/views/system/followup/index.vue b/src/views/system/followup/index.vue index 43ccf00..c9a5f28 100644 --- a/src/views/system/followup/index.vue +++ b/src/views/system/followup/index.vue @@ -793,7 +793,7 @@ export default { visitRecordId:row.visitRecordId, taskExecuteRecordId:row.taskExecuteRecordId, - routeHandleRemark:row.routeHandleRemark, + routeHandleRemark:row.routeHandleRemark?row.routeHandleRemark:null, }, }); console.log(row) diff --git a/src/views/system/followupdetails/index.vue b/src/views/system/followupdetails/index.vue index 0194d24..e93c538 100644 --- a/src/views/system/followupdetails/index.vue +++ b/src/views/system/followupdetails/index.vue @@ -70,6 +70,7 @@ > { if (response.data) { @@ -322,18 +334,15 @@ }, methods: { // 问卷和随访 - selectlist() { + selectlist() { selectPatientQuestionSubmit(this.$route.query.taskExecuteRecordId).then((res) => { - console.log(res, "res"); this.questiondata = res.data; if (this.$route.query.routeHandleRemark) { this.questiondata.routeHandleRemark = this.$route.query.routeHandleRemark; } - this.questiondata.subjectResultList.forEach((e) => { e.optionResults.forEach((el) => { - // console.log(el, "el"); if ( (el.optionChooseSign == "0" && e.questionType == "MULTIPLE_CHOICE") || @@ -341,9 +350,8 @@ ) { e.checked = el.id; } else if ( - (el.optionChooseSign == "0" && - e.questionType == "MULTIPLE_CHOICE_QUESTIONS") || - e.questionType == "COMBINATION_MULTIPLE_SUBJECT" + el.optionChooseSign == "0" && + e.questionType == "MULTIPLE_CHOICE_QUESTIONS" ) { this.checkeddata.push(el.id); } else if ( @@ -351,6 +359,11 @@ e.questionType == "SCORING_QUESTIONS" ) { e.checked = el.id; + } else if ( + e.questionType == "COMBINATION_MULTIPLE_SUBJECT" && + el.optionChooseSign == "0" + ) { + this.checkeddata.push(el.id); } }); }); @@ -364,7 +377,6 @@ timepickerselect(e, index) { this.questiondata.subjectResultList[index].fillBlanksAnswer = e }, - // 选中某个单选框时,由radio时触发 radioChange(e, item, index) { console.log(e, item, index, '选中某个单选框时')