This commit is contained in:
2025-08-09 18:04:15 +08:00
17 changed files with 266 additions and 205 deletions

View File

@ -67,7 +67,7 @@
<el-dialog draggable :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="请选择计划月份" />
@ -124,6 +124,8 @@ const initFormData: MonthPlanForm = {
completeValue: undefined,
differenceValue: undefined,
planMonth: undefined,
isDesign: true,
valueType: undefined,
planAuditStatus: undefined,
completeAuditStatus: undefined
@ -217,6 +219,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 {