？<template>
    <layout-form>
        <el-form :model="form" :loading="loading" :rules="rules" size='small' style="width:100%" label-width='120px' ref="form">
            <el-row>
                            <Field label="附件ID" prop="tid" v-model="form.tid" placeholder="请输入附件ID"/>
                <Field label="材料id 政务网" prop="datumid" v-model="form.datumid" placeholder="请输入材料id 政务网"/>
                <Field label="用户事项id(gra_matterdatum的id)" prop="fdatumid" v-model="form.fdatumid" placeholder="请输入用户事项id(gra_matterdatum的id)"/>
                <Field label="上传资料地址" prop="file" v-model="form.file" placeholder="请输入上传资料地址"/>
                <Field label="上传时间" prop="uploadtime" v-model="form.uploadtime" placeholder="请输入上传时间"/>
                <Field label="状态 1资料上传 2确认提交" prop="type" v-model="form.type" placeholder="请输入状态 1资料上传 2确认提交"/>
                <Field label="审核是否不通过 0待审核 1不通过 2通过" prop="examine" v-model="form.examine" placeholder="请输入审核是否不通过 0待审核 1不通过 2通过"/>
                <Field label="不通过原因" prop="summary" v-model="form.summary" placeholder="请输入不通过原因"/>
                <Field label="变更时间" prop="updateTime" v-model="form.updateTime" placeholder="请输入变更时间"/>
                <Field label="变更用户loginName" prop="updateUser" v-model="form.updateUser" placeholder="请输入变更用户loginName"/>
            </el-row>
            <form-buttons @submit='submitForm'/>
        </el-form>
    </layout-form>
</template>

<script>
    import form from "@/assets/mixins/form";
    export default {
        mixins: [form],
        data() {
            return {
                rules: {
                    file:[
                        {max: 255, message: '最多只能录入255个字符', trigger: 'blur'}],
                    uploadtime:[],
                    summary:[{required: true, message: '请输入不通过原因', trigger: 'blur'},
                        {max: 65535, message: '最多只能录入65535个字符', trigger: 'blur'}],
                    updatetime:[],
                    updateUser:[
                        {max: 50, message: '最多只能录入50个字符', trigger: 'blur'}],
                }
            };
        }
    };
</script>