diff --git a/src/api/system/SatisfactionQuestionnaireDetails.js b/src/api/system/SatisfactionQuestionnaireDetails.js new file mode 100644 index 0000000..8a5ae40 --- /dev/null +++ b/src/api/system/SatisfactionQuestionnaireDetails.js @@ -0,0 +1,9 @@ +import request from '@/utils/request' + + +export function selectQuestionnaireResult(patientQuestionSubmitResultId) { + return request({ + url: `/system/patientQuestionSubmitResult/selectQuestionnaireResult?patientQuestionSubmitResultId=${patientQuestionSubmitResultId}`, + method: 'get', + }) +} \ No newline at end of file diff --git a/src/views/system/SatisfactionQuestionnaireDetails/index.vue b/src/views/system/SatisfactionQuestionnaireDetails/index.vue new file mode 100644 index 0000000..a8727a3 --- /dev/null +++ b/src/views/system/SatisfactionQuestionnaireDetails/index.vue @@ -0,0 +1,473 @@ + + + + diff --git a/src/views/system/satisfactionSurvey/index.vue b/src/views/system/satisfactionSurvey/index.vue index 0e95a6c..dbd4d21 100644 --- a/src/views/system/satisfactionSurvey/index.vue +++ b/src/views/system/satisfactionSurvey/index.vue @@ -22,7 +22,6 @@ - @@ -32,7 +31,6 @@ - - - - - - - - - + + + + @@ -111,14 +108,37 @@ export default { this.loading = true; this.queryParams.params = {}; satisfactionSurvey(this.queryParams).then(response => { - response.data.forEach(e => { + response.rows.forEach(e => { e.birthDate ? e.age = getAge(e.birthDate) : '' }) - this.patientInfoList = response.data; + this.patientInfoList = response.rows; this.total = response.total; this.loading = false; }); }, + //跳转详情 + goQuestionnaireDetails(row) { + this.$router.push({ + path: "/satisfactionSurvey/SatisfactionQuestionnaireDetails", + query: { + patientQuestionSubmitResultId: row.patientQuestionSubmitResultId, + taskContent: row.taskContent, + taskType: row.taskType, + templateId: row.templateId, + cardNo: row.cardNo, + patientName: row.patientName, + patientPhone: row.patientPhone, + sex: row.sex, + routeHandleRemark: row.routeHandleRemark, + textRemindContent: row.textRemindContent, + birthDate: row.birthDate, + address: row.address, + patientSource: row.patientSource, + createTime: row.createTime, + age: row.birthDate ? getAge(row.birthDate) : "", + }, + }); + }, /** 搜索按钮操作 */ handleQuery() { this.queryParams.pageNum = 1;