|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div class="register">
|
|
|
- <el-form ref="registerForm" :model="registerForm" :rules="registerRules" class="register-form" label-width="160px">
|
|
|
+ <el-form ref="registerForm" :model="registerForm" :rules="registerRules" class="register-form" label-width="190px">
|
|
|
<h3 class="title">注册信息</h3>
|
|
|
<el-collapse v-model="activeName">
|
|
|
<el-collapse-item title="账户信息" name="1">
|
|
@@ -131,7 +131,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12">
|
|
|
+ <el-col :span="24">
|
|
|
<el-form-item label="企业所得税主管税务机关" prop="taxOffice">
|
|
|
<el-input v-model="registerForm.taxOffice" type="text" auto-complete="off" placeholder="请输入企业所得税主管税务机关">
|
|
|
</el-input>
|
|
@@ -228,7 +228,7 @@
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12">
|
|
|
+ <el-col :span="12" v-if="registerForm.listedFlag == 1">
|
|
|
<el-form-item label="企业上市代码" prop="listingCode">
|
|
|
<el-input v-model="registerForm.listingCode" type="text" auto-complete="off" placeholder="请输入企业上市代码">
|
|
|
</el-input>
|
|
@@ -245,7 +245,7 @@
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12">
|
|
|
+ <el-col :span="12" v-if="registerForm.investFlag == 1">
|
|
|
<el-form-item label="风险投资金额" prop="investCapital">
|
|
|
<el-input v-model="registerForm.investCapital" type="text" auto-complete="off" placeholder="请输入风险投资金额">
|
|
|
</el-input>
|
|
@@ -262,7 +262,7 @@
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12">
|
|
|
+ <el-col :span="12" v-if="registerForm.techFlag == 1">
|
|
|
<el-form-item label="高新企业编号" prop="techCode">
|
|
|
<el-input v-model="registerForm.techCode" type="text" auto-complete="off" placeholder="请输入高新企业编号">
|
|
|
</el-input>
|
|
@@ -273,7 +273,7 @@
|
|
|
<el-collapse-item title="上年度是否做加计扣除" name="9">
|
|
|
<el-row :gutter="40">
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="是否引入风险投资" prop="deductionFlag">
|
|
|
+ <el-form-item label="上年度是否做加计扣除" prop="deductionFlag">
|
|
|
<el-radio-group v-model="registerForm.deductionFlag">
|
|
|
<el-radio v-for="(item, index) in yesOrNoOptions" :key="index" :label="item.dictValue">{{item.dictLabel}}</el-radio>
|
|
|
</el-radio-group>
|
|
@@ -282,7 +282,7 @@
|
|
|
</el-row>
|
|
|
</el-collapse-item>
|
|
|
<el-collapse-item title="附件" name="10">
|
|
|
- <el-form-item label="企业营业执照" prop="licensePath">
|
|
|
+ <el-form-item label="企业营业执照" prop="licensePath" ref="licenseUpload">
|
|
|
<ImageUpload @input="handleLicenseSuccess" :params="params" :limit="limit" :value="registerForm.licensePath" :fileSize="fileSize"></ImageUpload>
|
|
|
<!-- <FileUpload :file="{url: registerForm.licensePath, name: registerForm.fileName}" @input="handleSuccess">上传材料</FileUpload> -->
|
|
|
</el-form-item>
|
|
@@ -294,7 +294,7 @@
|
|
|
<el-collapse-item title="文件水印" name="11">
|
|
|
<el-row :gutter="40">
|
|
|
<el-col :span="24">
|
|
|
- <el-form-item label="文件水印" prop="logo">
|
|
|
+ <el-form-item label="文件水印" prop="logo" ref="logoUpload">
|
|
|
<ImageUpload @input="handleLogoSuccess" :params="params" :limit="limit" :value="registerForm.logo" :fileSize="fileSize"></ImageUpload>
|
|
|
<!-- <ImageUpload @input="handleLogoSuccess"></ImageUpload> -->
|
|
|
</el-form-item>
|
|
@@ -318,7 +318,7 @@
|
|
|
<span v-if="!loading">注册</span>
|
|
|
<span v-else>注 册 中...</span>
|
|
|
</el-button>
|
|
|
- <el-button size="medium" type="primary" style="width: 100px;">取消</el-button>
|
|
|
+ <el-button size="medium" type="primary" style="width: 100px;" @click="cancel">取消</el-button>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -383,22 +383,124 @@ export default {
|
|
|
mainProducts: '',
|
|
|
userName: "",
|
|
|
password: "",
|
|
|
- confirmPassword: ""
|
|
|
+ confirmPassword: "",
|
|
|
+ techFlag: 1,
|
|
|
+ listedFlag: 1,
|
|
|
+ investFlag: 1,
|
|
|
+ deductionFlag: 1
|
|
|
},
|
|
|
registerRules: {
|
|
|
- userName: [
|
|
|
- { required: true, trigger: "blur", message: "请输入您的账号" },
|
|
|
- { min: 2, max: 20, message: '用户账号长度必须介于 2 和 20 之间', trigger: 'blur' }
|
|
|
- ],
|
|
|
- password: [
|
|
|
- { required: true, trigger: "blur", message: "请输入您的密码" },
|
|
|
- { min: 5, max: 20, message: '用户密码长度必须介于 5 和 20 之间', trigger: 'blur' }
|
|
|
- ],
|
|
|
- confirmPassword: [
|
|
|
- { required: true, trigger: "blur", message: "请再次输入您的密码" },
|
|
|
- { required: true, validator: equalToPassword, trigger: "blur" }
|
|
|
- ],
|
|
|
- code: [{ required: true, trigger: "change", message: "请输入验证码" }]
|
|
|
+ userName: [
|
|
|
+ { required: true, trigger: "blur", message: "请输入您的账号" },
|
|
|
+ { min: 2, max: 20, message: '用户账号长度必须介于 2 和 20 之间', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ password: [
|
|
|
+ { required: true, trigger: "blur", message: "请输入您的密码" },
|
|
|
+ { min: 5, max: 20, message: '用户密码长度必须介于 5 和 20 之间', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ confirmPassword: [
|
|
|
+ { required: true, trigger: "blur", message: "请再次输入您的密码" },
|
|
|
+ { required: true, validator: equalToPassword, trigger: "blur" }
|
|
|
+ ],
|
|
|
+ nickName: [
|
|
|
+ { required: true, trigger: "blur", message: "请输入姓名" },
|
|
|
+ {max: 30, message: '最多输入30个字符', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ phonenumber: [
|
|
|
+ { required: true, trigger: "blur", message: "请输入手机号" },
|
|
|
+ {
|
|
|
+ pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
|
|
|
+ message: "请输入正确的手机号码",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ email: [
|
|
|
+ { type: "email",required: true, trigger: ["blur", "change"], message: "请输入邮箱" },
|
|
|
+ ],
|
|
|
+ entName: [
|
|
|
+ { required: true, trigger: "blur", message: "请输入企业名称" },
|
|
|
+ ],
|
|
|
+ license: [
|
|
|
+ { required: true, trigger: "blur", message: "请输入统一社会信用代码" },
|
|
|
+ ],
|
|
|
+ regCapital: [
|
|
|
+ { required: true, trigger: "blur", message: "请输入注册资金" },
|
|
|
+ ],
|
|
|
+ regDate: [
|
|
|
+ { required: true, trigger: "change", message: "请选择工商注册时间" },
|
|
|
+ ],
|
|
|
+ regType: [
|
|
|
+ { required: true, trigger: "change", message: "请选择工商注册类型" },
|
|
|
+ ],
|
|
|
+ mainProductArray: [
|
|
|
+ { type: 'array', required: true, message: '请至少选择一个主营产品(服务)所属技术领域', trigger: 'change' }
|
|
|
+ ],
|
|
|
+ address: [
|
|
|
+ { required: true, trigger: "blur", message: "请输入通信地址" },
|
|
|
+ ],
|
|
|
+ zipCode: [
|
|
|
+ { required: true, trigger: "blur", message: "请输入邮政编码" },
|
|
|
+ ],
|
|
|
+ provinceId: [
|
|
|
+ { required: true, trigger: "change", message: "请选择省份" },
|
|
|
+ ],
|
|
|
+ cityId: [
|
|
|
+ { required: true, trigger: "change", message: "请选择市" },
|
|
|
+ ],
|
|
|
+ districtId: [
|
|
|
+ { required: true, trigger: "change", message: "请选择区" },
|
|
|
+ ],
|
|
|
+ taxOffice: [
|
|
|
+ { required: true, trigger: "blur", message: "企业所得税主管税务机关" },
|
|
|
+ ],
|
|
|
+ legalName: [
|
|
|
+ { required: true, trigger: "blur", message: "请输入姓名" },
|
|
|
+ ],
|
|
|
+ legalIdCard: [
|
|
|
+ { required: true, trigger: "blur", message: "请输入身份证号码" },
|
|
|
+ ],
|
|
|
+ legalMobile: [
|
|
|
+ { required: true, trigger: "blur", message: "请输入手机号码" },
|
|
|
+ ],
|
|
|
+ linkName: [
|
|
|
+ { required: true, trigger: "blur", message: "请输入姓名" },
|
|
|
+ ],
|
|
|
+ linkIdCard: [
|
|
|
+ { required: true, trigger: "blur", message: "请输入身份证号码" },
|
|
|
+ ],
|
|
|
+ linkMobile: [
|
|
|
+ { required: true, trigger: "blur", message: "请输入手机号码" },
|
|
|
+ ],
|
|
|
+ listedFlag: [
|
|
|
+ { required: true, trigger: "change", message: "请选择企业是否上市" },
|
|
|
+ ],
|
|
|
+ listingCode: [
|
|
|
+ { required: true, trigger: "blur", message: "请输入企业上市代码" },
|
|
|
+ ],
|
|
|
+ investFlag: [
|
|
|
+ { required: true, trigger: "change", message: "请选择是否引入风险投资" },
|
|
|
+ ],
|
|
|
+ investCapital: [
|
|
|
+ { required: true, trigger: "blur", message: "请输入风险投资金额" },
|
|
|
+ ],
|
|
|
+ techFlag: [
|
|
|
+ { required: true, trigger: "change", message: "请选择是否为高新企业" },
|
|
|
+ ],
|
|
|
+ techCode: [
|
|
|
+ { required: true, trigger: "blur", message: "请输入高新企业编号" },
|
|
|
+ ],
|
|
|
+ deductionFlag: [
|
|
|
+ { required: true, trigger: "change", message: "请选择是否做加计扣除" },
|
|
|
+ ],
|
|
|
+ licensePath: [
|
|
|
+ { required: true, trigger: "change", message: "请上传营业执照附件" },
|
|
|
+ ],
|
|
|
+ logo: [
|
|
|
+ { required: true, trigger: "change", message: "请上传文件水印" },
|
|
|
+ ],
|
|
|
+ serviceDate: [
|
|
|
+ { type: 'array', required: true, message: '请选择服务时间', trigger: 'change' }
|
|
|
+ ]
|
|
|
},
|
|
|
loading: false,
|
|
|
captchaOnOff: true
|
|
@@ -430,6 +532,7 @@ export default {
|
|
|
},
|
|
|
handleLicenseSuccess(file) {
|
|
|
this.registerForm.licensePath = file
|
|
|
+ this.$refs.licenseUpload.clearValidate()
|
|
|
},
|
|
|
//选择省份
|
|
|
getCityData() {
|
|
@@ -484,6 +587,9 @@ export default {
|
|
|
this.registerForm.uuid = res.uuid;
|
|
|
}
|
|
|
});
|
|
|
+ },
|
|
|
+ cancel() {
|
|
|
+ this.$router.go(-1);
|
|
|
},
|
|
|
handleRegister() {
|
|
|
this.registerForm.mainProducts = this.registerForm.mainProductArray.join(',')
|