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() {