From 6eccc6eab25345cc011041cd73f40919e3f5109e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=83=AD=E5=BA=86=E6=B3=B0?=
<12369755+htcloud1@user.noreply.gitee.com>
Date: Tue, 18 Aug 2026 01:01:36 +0800
Subject: [PATCH] =?UTF-8?q?feat(manager/plans):=20=E5=AE=A1=E6=A0=B8=20dia?=
=?UTF-8?q?log=20=E6=94=AF=E6=8C=81=E9=80=9A=E8=BF=87/=E9=80=80=E5=9B=9E?=
=?UTF-8?q?=20(=E4=B8=8D=E5=86=8D=E5=9B=BA=E5=AE=9A=E9=80=80=E5=9B=9E)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- template: 删"投稿ID"行(冗余); "审核结果"改 el-radio-group (通过 '2' / 退回 '3')
- auditForm: 加 result 字段 (默认 '2')
- auditRules: 加 result 必选校验; opinion 文案改为'请填写审核意见'
- onAudit: 重置 result='2'
- submitAudit: 用 auditForm.result 替换硬编码 '3'; 成功消息根据 result 显示'已通过'/'已退回'
---
ry-vue3/src/views/manager/Plans.vue | 25 +++++++++++++++----------
1 file changed, 15 insertions(+), 10 deletions(-)
diff --git a/ry-vue3/src/views/manager/Plans.vue b/ry-vue3/src/views/manager/Plans.vue
index 0849123..eed8d2f 100644
--- a/ry-vue3/src/views/manager/Plans.vue
+++ b/ry-vue3/src/views/manager/Plans.vue
@@ -80,16 +80,18 @@
-
+
{{ auditForm.planName }}
- {{ auditForm.planId }}
-
- 退回(审核不通过)
+
+
+ 通过
+ 退回
+
-
+
@@ -191,14 +193,16 @@ async function batchSettle() {
const auditOpen = ref(false)
const auditFormRef = ref(null)
-// 审核: 只能审核不通过, 固定写死 status='2'
-const auditForm = reactive({ planId: '', planName: '', opinion: '' })
+// 审核: 通过 '2' / 退回 '3' (BizAuditStatusEnum)
+const auditForm = reactive({ planId: '', planName: '', result: '2', opinion: '' })
const auditRules = {
- opinion: [{ required: true, message: '请填写审核不通过原因', trigger: 'blur' }]
+ result: [{ required: true, message: '请选择审核结果', trigger: 'change' }],
+ opinion: [{ required: true, message: '请填写审核意见', trigger: 'blur' }]
}
function onAudit(row) {
auditForm.planId = row.planId
auditForm.planName = row.planName
+ auditForm.result = '2'
auditForm.opinion = ''
auditOpen.value = true
}
@@ -206,8 +210,9 @@ async function submitAudit() {
try {
await auditFormRef.value.validate()
submitting.value = true
- await bizUpdate('projectPlan', { planId: auditForm.planId, status: '3', auditOpinion: auditForm.opinion })
- ElMessage.success('已退回')
+ const isPass = auditForm.result === '2'
+ await bizUpdate('projectPlan', { planId: auditForm.planId, status: auditForm.result, auditOpinion: auditForm.opinion })
+ ElMessage.success(isPass ? '已通过' : '已退回')
auditOpen.value = false
load()
} catch (e) { if (e?.message) ElMessage.error(e.message) }