From 3b1f96e2e11432af84bb0edd58ee8c44d8c2ac82 Mon Sep 17 00:00:00 2001 From: lzp <1747191978@qq.com> Date: Tue, 8 Jul 2025 10:40:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E8=AF=8A=E7=96=97=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E4=B8=80=E8=BF=9B=E6=9D=A5=E8=B0=83=E7=94=A8=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E4=BA=BA=E4=BD=93=E6=88=90=E5=88=86=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=B9=B6=E6=8F=90=E4=BA=A4=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- acupuncture-前台/src/views/medicalFile/details.vue | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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) => {