From d8871cf73060ed5bfc4d742cf15f3576c582fd50 Mon Sep 17 00:00:00 2001 From: "han\\hanst" Date: Mon, 23 Mar 2026 17:28:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A6=82=E6=9E=9C=E5=AE=A1=E6=89=B9=E9=80=9A?= =?UTF-8?q?=E8=BF=87=E6=B2=A1=E6=9C=89=E8=BE=93=E5=85=A5=E5=AE=A1=E6=89=B9?= =?UTF-8?q?=E6=84=8F=E8=A7=81=EF=BC=8C=E9=BB=98=E8=AE=A4=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E4=B8=BA=E2=80=9C=E6=89=B9=E5=87=86=E9=80=9A=E8=BF=87=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/erf/expApplyApproval.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/modules/erf/expApplyApproval.vue b/src/views/modules/erf/expApplyApproval.vue index 8b86156..23ecc0e 100644 --- a/src/views/modules/erf/expApplyApproval.vue +++ b/src/views/modules/erf/expApplyApproval.vue @@ -740,7 +740,7 @@ export default { action: '', comment: '', operatorUserId: this.$store.state.user.id, - operatorName: this.$store.state.user.name + operatorName: this.$store.state.user.userDisplay } this.approvalDialogVisible = true } else { @@ -777,7 +777,10 @@ export default { */ doApproval() { this.approvalLoading = true - + // 如果审批通过没有输入审批意见,默认设置为“批准通过” + if (this.approvalData.action === '批准' && (!this.approvalData.comment || this.approvalData.comment.trim() === '')) { + this.approvalData.comment = '批准通过' + } approveExpApply(this.approvalData).then(({data}) => { this.approvalLoading = false if (data && data.code === 0) {