<template>
    <div>
        <el-form
            :model="addAndEditForm"
            label-width="auto"
            ref="addAndEditFormRef"
            :rules="addAndEditFormRules"
        >
            <el-row>
                <el-col :span="24">
                    <el-form-item label="计划日期" prop="projectName">
                        <el-date-picker
                            type="date"
                            v-model="addAndEditForm.projectName"
                            placeholder="请选择计划日期"
                            style="width: 100%"
                        />
                    </el-form-item>
                </el-col>
            </el-row>
            <el-row>
                <el-col :span="24">
                    <el-form-item label="计划支出费用">
                        <el-input
                            v-model.trim="addAndEditForm.projectName"
                            clearable
                            placeholder="请输入计划支出费用"
                        />
                    </el-form-item>
                </el-col>
            </el-row>
            <el-row>
                <el-col :span="24">
                    <el-form-item label="计划支出内容">
                        <el-input
                            v-model.trim="addAndEditForm.projectName"
                            clearable
                            placeholder="请输入计划支出内容"
                        />
                    </el-form-item>
                </el-col>
            </el-row>
        </el-form>
    </div>
</template>

<script>
import {
    addProjectManageAPI,
    editProjectManageAPI,
} from '@/api/dataAnalysis/projectManage'
export default {
    name: 'AddAndEditForm',
    data() {
        return {
            addAndEditForm: {
                projectName: '',
            },
            addAndEditFormRules: {
                projectName: [
                    {
                        required: true,
                        message: '请输入工程类型',
                        trigger: 'blur',
                    },
                ],
            },
        }
    },

    methods: {
        submitForm() {
            this.$refs.addAndEditFormRef.validate((valid) => {
                if (valid) {
                    console.log('submitForm')
                }
            })
        },
    },
}
</script>

<style></style>
