diff --git a/acupuncture-前台/src/views/medicalFile/details.vue b/acupuncture-前台/src/views/medicalFile/details.vue index 4c2db457..7aee7e21 100644 --- a/acupuncture-前台/src/views/medicalFile/details.vue +++ b/acupuncture-前台/src/views/medicalFile/details.vue @@ -1414,13 +1414,14 @@ export default { humanBodyOpen: false, }; }, - created() { + async created() { this.form = JSON.parse(this.$route.query.data); let treatmentId = this.$route.query.treatmentId; this.treatmentId = treatmentId; this.handleDetails(treatmentId); this.getFollowupQuery(); // 获取随访队列信息 - + await this.getHumanBody(); // 查询人体成分 + await this.submitDetailsForm(); // 提交表单 this.userInfo = JSON.parse(localStorage.getItem("user")); }, methods: { @@ -1476,8 +1477,8 @@ export default { }); }, // 查询人体成分 - getHumanBody() { - selectByMemberId({ + async getHumanBody() { + await selectByMemberId({ id: this.form.id, }).then((res) => { if (!res.data.id) { @@ -1689,7 +1690,7 @@ export default { }, submitDetailsForm: function () { - this.$refs["detailsForm"].validate((valid) => { + this.$refs["detailsForm"].validate(async (valid) => { if (valid) { let codeAndAnswerList = []; for (let key in this.detailsForm) { @@ -1705,7 +1706,7 @@ export default { codeAndAnswerList.push(data); } - saveAidRecord({ + await saveAidRecord({ treatmentId: this.form.id, codeAndAnswerList, }).then((response) => {