计划出图

This commit is contained in:
2025-08-14 10:49:13 +08:00
parent f6c21bf195
commit b45b57e0ab
12 changed files with 299 additions and 2132 deletions

View File

@ -1,5 +1,5 @@
<template>
<el-form ref="formRef" :model="formData" :rules="rules" label-width="120px" class="info-form" @validate="handleValidate">
<el-form ref="formRef" :model="formData" :rules="rules" label-width="120px" class="info-form">
<!-- 基本信息区域 -->
<div class="form-section">
<div class="section-title">
@ -157,7 +157,7 @@
<script setup name="ExamineForm" lang="ts">
import { ref, watch, reactive } from 'vue';
import { fillOutTheDesignVerificationForm } from '@/api/design/drawingreview';
import { fillOutTheDesignVerificationForm, drawingreviewReceipts } from '@/api/design/drawingreview';
import type { FormInstance, FormRules } from 'element-plus';
import { useUserStoreHook } from '@/store/modules/user';
import { computed } from 'vue';
@ -249,12 +249,6 @@ const getSubProject = async () => {
subProjectMap.set(item.id, item.projectName);
});
};
// 处理验证事件
const handleValidate = (prop: string, isValid: boolean, rule: any) => {
// 可根据需要处理验证事件
console.log(`字段 ${prop} 验证${isValid ? '通过' : '失败'}`);
};
// 验证表单
const validate = async () => {
if (formRef.value) {
@ -287,11 +281,11 @@ const submit = async (businessId) => {
const isValid = await validate();
if (isValid) {
formData.subprojectName = subProjectMap.get(formData.subprojectId);
formData.id = businessId;
const res = await fillOutTheDesignVerificationForm(formData);
formData.drawingreviewId = businessId;
const res = await drawingreviewReceipts(formData);
if (res.code === 200) {
// 提交成功处理逻辑
console.log('提交成功');
// // 提交成功处理逻辑
// console.log('提交成功');
}
}
} catch (error) {