From 68e533f130ffc39fe110fd7b244079ae02385941 Mon Sep 17 00:00:00 2001 From: aixianling Date: Thu, 5 Jan 2023 15:35:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=BF=94=E5=9B=9E=E5=BC=B9?= =?UTF-8?q?=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/hljmz/AppRecoScore/rsApproval.vue | 25 ++++--------------- 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/src/project/hljmz/AppRecoScore/rsApproval.vue b/src/project/hljmz/AppRecoScore/rsApproval.vue index 29ec2c83..36510df1 100644 --- a/src/project/hljmz/AppRecoScore/rsApproval.vue +++ b/src/project/hljmz/AppRecoScore/rsApproval.vue @@ -17,8 +17,8 @@
-
审批拒绝
-
审批通过
+
审批拒绝
+
审批通过
@@ -72,33 +72,18 @@ export default { } }) }, - handleReject() { + handleExamine(pass) { if (this.check()) { uni.showLoading({title: "提交中..."}) const {$route: {query: {taskDetailId}}, detail: fields} = this this.$http.post("/app/appassessmentscorev2task/examine", { - taskDetailId, pass: false, fields - }).then(res => { - if (res?.code == 0) { - this.$u.toast("提交成功!") - setTimeout(() => uni.reLaunch({url: "./AppRecoScore"}), 1500) - - } - }).finally(uni.hideLoading) - } - }, - handlePass() { - if (this.check()) { - uni.showLoading({title: "提交中..."}) - const {$route: {query: {taskDetailId}}, detail: fields} = this - this.$http.post("/app/appassessmentscorev2task/examine", { - taskDetailId, pass: true, fields + taskDetailId, pass, fields }).then(res => { if (res?.code == 0) { this.$u.toast("提交成功!") setTimeout(() => uni.reLaunch({url: "./AppRecoScore"}), 1500) } - }).finally(uni.hideLoading) + }).catch(err => this.$u.toast(err)).finally(uni.hideLoading) } }, check() {