审核工作流

This commit is contained in:
Teo
2025-08-09 18:02:06 +08:00
parent b6e4f84570
commit 6bbe8a83f7
16 changed files with 264 additions and 204 deletions

View File

@ -78,7 +78,7 @@
<el-dialog :title="dialog.title" v-model="dialog.visible" width="500px" append-to-body>
<el-form ref="monthPlanFormRef" :model="form" :rules="rules" label-width="80px">
<el-form-item label="计划产值" prop="planValue">
<el-input v-model="form.planValue" placeholder="请输入计划产值" />
<el-input v-model="form.planValue" placeholder="请输入计划产值" type="number" />
</el-form-item>
<el-form-item label="计划月份" prop="planMonth">
<el-date-picker v-model="form.planMonth" type="month" value-format="YYYY-MM" placeholder="请选择计划月份" />
@ -135,6 +135,8 @@ const initFormData: MonthPlanForm = {
completeValue: undefined,
differenceValue: undefined,
planMonth: undefined,
isDesign: true,
valueType: undefined,
planAuditStatus: undefined,
completeAuditStatus: undefined
@ -228,6 +230,8 @@ const submitForm = () => {
monthPlanFormRef.value?.validate(async (valid: boolean) => {
if (valid) {
buttonLoading.value = true;
form.value.isDesign = true;
if (form.value.id) {
await updateMonthPlan(form.value).finally(() => (buttonLoading.value = false));
} else {