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) }