From 66d6872cd761911029dced57cce27c855d8267d2 Mon Sep 17 00:00:00 2001 From: "1747191978@qq.com" <1942943850@qq.com> Date: Thu, 24 Apr 2025 15:17:37 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AD=9B=E6=9F=A5=E6=9F=A5=E7=9C=8B=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E8=B0=83=E7=94=A8=E6=8F=90=E4=BA=A4=E7=AD=9B=E6=9F=A5?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=EF=BC=8C=E7=94=A8=E6=88=B7=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=95=B0=E6=8D=AE=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/screening/h5eva.vue | 48 ++++++++++++------- 1 file changed, 31 insertions(+), 17 deletions(-) diff --git a/acupuncture-前台/src/views/screening/h5eva.vue b/acupuncture-前台/src/views/screening/h5eva.vue index e2f628c8..11a4b389 100644 --- a/acupuncture-前台/src/views/screening/h5eva.vue +++ b/acupuncture-前台/src/views/screening/h5eva.vue @@ -666,24 +666,38 @@ export default { }, methods: { // 编辑信息 - handlePopupVerify() { - if (this.popupRadio === 1) { - this.form = { - ...this.form, - ...JSON.parse(JSON.stringify(this.detailList)), - }; - setTimeout(() => { - this.open = false; - }, 500); - } else { - this.$router.replace({ - path: "/screening/h5Result", - query: { - tenantName: this.tenantName, - data: JSON.stringify(this.detailList), - }, - }); + async handlePopupVerify() { + try { + if (this.popupRadio === 1) { + this.form = { + ...this.form, + ...JSON.parse(JSON.stringify(this.detailList)), + }; + setTimeout(() => { + this.open = false; + }, 500); + } else { + // ------ 提交筛查 ------ + const submitParams = { param: { detailId: this.detailId } }; + // 判断对象是否为空 this.detailList + if (Object.keys(this.detailList).length !== 0) { + submitParams.param.phone = this.detailList["SCWJ-PHONE"]; + submitParams.param.name = this.detailList["SCWJ-NAME"]; + } + await screenSubmit(submitParams).then((response) => { + this.$router.replace({ + path: "/screening/h5Result", + query: { + tenantName: this.tenantName, + data: JSON.stringify(this.detailList), + }, + }); + this.open = false; + }); + } + } catch (e) { this.open = false; + this.$message.error("操作失败,请稍后重试!"); } }, // 通过手机号查询