Commit 28d9ff60 authored by LiXuyang's avatar LiXuyang

企业认证

parent e7509004
......@@ -16,6 +16,7 @@ export const enterpriseFormSchema: FormSchema[] = [
label: '营业执照:',
slot: 'license',
required: true,
r
},
{
field: 'logo',
......
......@@ -194,8 +194,8 @@
</div>
</div>
<div class="agree-bg">
<a-button class="button" type="primary">提交认证</a-button>
<a-button class="button">保存</a-button>
<a-button class="button" type="primary" @click="handleSubmit">提交认证</a-button>
<a-button class="button" @click="handleSave">保存</a-button>
</div>
</div>
</div>
......@@ -204,7 +204,14 @@
<script lang="ts" setup>
import { PageWrapper } from '@/components/Page';
import { CheckboxGroup, Divider, UploadDragger, Input, RadioGroup, Checkbox } from 'ant-design-vue';
import {
CheckboxGroup,
Divider,
UploadDragger,
Input,
RadioGroup,
Checkbox,
} from 'ant-design-vue';
import { identityOptions, typeOptions } from './ecData';
import { ApiOutlined, PlusOutlined } from '@ant-design/icons-vue';
import { useRouter } from 'vue-router';
......@@ -238,10 +245,23 @@
function handleAgreement() {
createMessage.success('下载成功!');
}
async function handleSubmit() {
if (!checkedAgree.value) {
createMessage.warning('请阅读并勾选平台协议!');
return;
}
// await identityValidate();
// await enterpriseValidate();
// await applicantValidate();
createMessage.success('提交成功!');
}
function handleSave() {
createMessage.success('保存成功!');
}
/**
* form
*/
const [identityForm] = useForm({
const [identityForm, { validate: identityValidate }] = useForm({
labelWidth: 100,
baseColProps: { span: 24 },
schemas: identityFormSchema,
......@@ -250,7 +270,7 @@
span: 23,
},
} as FormProps);
const [enterpriseForm] = useForm({
const [enterpriseForm, { validate: enterpriseValidate }] = useForm({
labelWidth: 150,
baseColProps: { span: 24 },
schemas: enterpriseFormSchema,
......@@ -259,7 +279,7 @@
span: 23,
},
} as FormProps);
const [applicantForm] = useForm({
const [applicantForm, { validate: applicantValidate }] = useForm({
labelWidth: 150,
baseColProps: { span: 24 },
schemas: applicantFormSchema,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment