Commit 1f2868ef authored by 吴冠's avatar 吴冠

先用

parent 29d29653
......@@ -79,7 +79,6 @@ export default {
this.cityId = ''
this.districtId = ''
this.$emit('sendprovinceId', this.provinceId)
},
getCity() {
this.getdistrictArr(this.cityId)
......
......@@ -401,15 +401,15 @@
<div class="flex-between perfect-head">
<div class="t2 flex">
<div>单位名称:</div>
<div>{{cpName}}</div>
<div>腾讯</div>
</div>
<div class="t2 flex">
<div>注册角色:</div>
<div>{{regName}}</div>
<div>供应商</div>
</div>
<div class="t2 flex">
<div>行政区域:</div>
<div>{{area}}</div>
<div>浙江省 杭州市 滨江区</div>
</div>
</div>
<el-form
......@@ -453,12 +453,7 @@
placeholder="请输入"
style="width: 2.4rem"
maxlength="18"
@keyup.native="
$event.target.value = $event.target.value.replace(
/^\s+|\s+$/gm,
''
)
"
onkeyup="value=value.replace(/^[A-Za-z0-9]+$,'')"
></el-input>
</el-form-item>
</div>
......@@ -522,12 +517,7 @@
style="width: 2.4rem"
minlength="12"
maxlength="30"
@keyup.native="
$event.target.value = $event.target.value.replace(
/^\s+|\s+$/gm,
''
)
"
onkeyup="value=value.replace(/[^\d]/g,'')"
></el-input>
</el-form-item>
<el-form-item label="结算账号名" prop="bankAccountName" class="item">
......@@ -557,12 +547,6 @@
placeholder="请输入"
style="width: 2.4rem"
maxlength="10"
@keyup.native="
$event.target.value = $event.target.value.replace(
/^\s+|\s+$/gm,
''
)
"
onkeyup="value=value.replace(/[^\d]/g,'')"
></el-input>
</el-form-item>
......@@ -780,9 +764,9 @@ export default {
// }
// };
//名字校验
let validateRealName = (rule, value, callback) => {
/* let validateRealName = (rule, value, callback) => {
const realnameReg = /^[\u4e00-\u9fa5]{1,30}$/;
/* setTimeout(() => { */
if (!realnameReg.test(value)) {
var reg = new RegExp("[^\u4e00-\u9fa5]{1,30}");
let a = value.replace(reg, "");
......@@ -798,8 +782,8 @@ export default {
} else {
callback();
}
/* }, 1000); */
};
}; */
//电话号校验
let validateRealPhone = (rule, value, callback) => {
const realnameReg = /^[1][3,4,5,7,8][0-9]{9}$/;
......@@ -810,7 +794,8 @@ export default {
);
let a = value.replace(reg, "");
console.log(a + "--------------");
this.adminform.phonenumber = a
this.perfectForm.legalPersonPhone = a;
this.adminform.phonenumber = a;
return callback(new Error("您的输入有误,请重新输入!"));
} else {
......@@ -826,7 +811,6 @@ export default {
var reg = new RegExp(
"^[A-z。?!,、 ; : “ ” ‘ ’ ( ) 《 》 〈 〉 【 】 『 』 「 」 ﹃ ﹄ 〔 〕 … — ~ ﹏ ¥.]"
);
console.log(value+'+++++++++++++++')
let a = value.replace(reg, "");
console.log(a + "--------------");
this.adminform.idNumber = a;
......@@ -837,14 +821,13 @@ export default {
/* }, 1000); */
};
//统一社会代码
let validateRealSHid = (rule, value, callback) => {
const realnameReg = /^[A-Z0-9]+$/;
/* setTimeout(() => { */
/* let validateRealSHid = (rule, value, callback) => {
const realnameReg = /^[_IOZSVa-z\W]{2}\d{6}[^_IOZSVa-z\W]{10}$/g;
if (!realnameReg.test(value)) {
var reg = new RegExp(
"^[a-z。?!,、 ; : “ ” ‘ ’ ( ) 《 》 〈 〉 【 】 『 』 「 」 ﹃ ﹄ 〔 〕 … — ~ ﹏ ¥.]/g"
"^[a-z。?!,、 ; : “ ” ‘ ’ ( ) 《 》 〈 〉 【 】 『 』 「 」 ﹃ ﹄ 〔 〕 … — ~ ﹏ ¥.]"
);
let a = value.replace(reg, "");
console.log(a + "--------------");
this.perfectForm.socialCode = a;
......@@ -852,9 +835,8 @@ export default {
} else {
callback();
}
/* }, 1000); */
};
*/
let validateRealLast = (rule, value, callback) => {
const realnameReg = /^([1-9]{1})(\d{14}|\d{18})$/;
/* setTimeout(() => { */
......@@ -870,29 +852,25 @@ export default {
}
/* }, 1000); */
};
let validateRealPrice = (rule, value, callback) => {
const realnameReg = /\s+/;
/* setInterval(() => { */
/* let validateRealPrice = (rule, value, callback) => {
const realnameReg = /^[1-9]{1}[0-9]{9}|^[1-9]{1}[0-9]{6}\.[0-9]{1,2}/;
if (!realnameReg.test(value)) {
var reg = new RegExp(
"^[A-z。?!,、 ; : “ ” ‘ ’ ( ) 《 》 〈 〉 【 】 『 』 「 」 ﹃ ﹄ 〔 〕 … — ~ ﹏ ¥.]"
"^[A-z。?!,、 ; : “ ” ‘ ’ ( ) 《 》 〈 〉 【 】 『 』 「 」 ﹃ ﹄ 〔 〕 … — ~ ﹏ ¥]"
);
let a = value.replace(reg, "");
this.perfectForm.registeredCapital = a;
/* return callback(new Error("您的输入有误,请重新输入!")); */
return callback(new Error("您的输入有误,请重新输入!"));
} else {
callback();
}
/* }, 1000); */
};
}; */
/* this.flag = false
clearInterval(timer);
this.flag = true; */
return {
cpName:"",
regName:'',
area:'',
Verification:true,
timer:60,
centerDialogVisible: false,
......@@ -948,9 +926,9 @@ export default {
message: "请输入单位名称",
trigger: "blur",
},
{
/* {
validator: validateRealName,
},
}, */
],
local: [
{
......@@ -972,9 +950,9 @@ export default {
message: "请输入管理者姓名",
trigger: "blur",
},
{
/* {
validator: validateRealName,
},
}, */
],
idNumber: [
{
......@@ -1064,9 +1042,9 @@ export default {
message: "请输入法人姓名",
trigger: "blur",
},
{
/* {
validator: validateRealName,
},
}, */
],
location: [
{
......@@ -1074,9 +1052,9 @@ export default {
message: "请输入单位所在地",
trigger: "blur",
},
{
/* {
validator: validateRealName,
},
}, */
],
bankAccount: [
{
......@@ -1084,9 +1062,6 @@ export default {
message: "请输入结算账号",
trigger: "blur",
},
{
validator: validateRealLast,
},
],
bankAccountName: [
{
......@@ -1094,9 +1069,9 @@ export default {
message: "请输入结算账号名",
trigger: "blur",
},
{
/* {
validator: validateRealName,
},
}, */
],
contactAddress: [
{
......@@ -1104,9 +1079,9 @@ export default {
message: "请输入联系地址",
trigger: "blur",
},
{
/* {
validator: validateRealName,
},
}, */
],
socialCode: [
......@@ -1115,9 +1090,6 @@ export default {
message: "请输入社会信用码",
trigger: "blur",
},
{
validator: validateRealSHid,
}
],
companyNature: [
{
......@@ -1139,9 +1111,9 @@ export default {
message: "开户银行名称",
trigger: "blur",
},
{
/* {
validator: validateRealName,
},
}, */
],
registeredCapital: [
{
......@@ -1149,9 +1121,6 @@ export default {
message: "请输入注册资本",
trigger: "blur",
},
{
validator: validateRealPrice,
},
],
businessScope: [
{
......@@ -1183,7 +1152,7 @@ export default {
},
methods: {
prev(){
this.active ==0
this.active--
},
back() {
this.$router.push("/");
......@@ -1252,10 +1221,6 @@ export default {
const { msg, code,data } = await verifyPhone(message);
if (code === 200) {
this.active++;
this.perfectForm.legalPersonPhone = this.adminform.phonenumber
this.cpName = this.form.companyName
this.regname = this.form.type
this.area = this.form.provinceId + this.form.cityId + this.form.districtId
} else {
this.$message.error(msg);
}
......
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