Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
web-site
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张冬
web-site
Commits
6e5d3a3b
Commit
6e5d3a3b
authored
Sep 28, 2020
by
吴冠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pd
parent
1f2868ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
143 deletions
+54
-143
examine.vue
pages/login/examine.vue
+54
-143
No files found.
pages/login/examine.vue
View file @
6e5d3a3b
...
...
@@ -16,12 +16,7 @@
placeholder=
"请输入单位名称"
style=
"width: 2.4rem"
maxlength=
"30"
@
keyup
.
native=
"
$event.target.value = $event.target.value.replace(
/^\s+|\s+$/gm,
''
)
"
@
keyup
.
native=
"$event.target.value = $event.target.value.replace(/^\s+|\s+$/gm,'')"
></el-input>
</el-form-item>
<el-form-item
label=
"区域选择"
prop=
"local"
class=
"item"
>
...
...
@@ -51,12 +46,7 @@
placeholder=
"请输入"
style=
"width: 2.4rem"
maxlength=
"30"
@
keyup
.
native=
"
$event.target.value = $event.target.value.replace(
/^\s+|\s+$/gm,
''
)
"
@
keyup
.
native=
"$event.target.value = $event.target.value.replace(/^\s+|\s+$/gm,'')"
></el-input>
</el-form-item>
<el-form-item
label=
"身份证"
prop=
"idNumber"
class=
"item"
>
...
...
@@ -401,13 +391,13 @@
<div
class=
"flex-between perfect-head"
>
<div
class=
"t2 flex"
>
<div>
单位名称:
</div>
<div>
腾讯
</div>
<div>
{{
form
.
companyName
}}
</div>
</div>
<div
class=
"t2 flex"
>
<div>
注册角色:
</div>
<div>
供应商
</div>
<div>
{{
form
.
type
}}
</div>
</div>
<div
class=
"t2 flex"
>
<div
class=
"t2 flex"
v-if =
"1
<0
"
>
<div>
行政区域:
</div>
<div>
浙江省 杭州市 滨江区
</div>
</div>
...
...
@@ -453,7 +443,7 @@
placeholder=
"请输入"
style=
"width: 2.4rem"
maxlength=
"18"
onkeyup=
"value=value.replace(/^[A-Za-z0-9]+$
,'')"
@
keyup
.
native=
"$event.target.value = $event.target.value.replace(/^\s+|\s+$/gm
,'')"
></el-input>
</el-form-item>
</div>
...
...
@@ -547,7 +537,12 @@
placeholder=
"请输入"
style=
"width: 2.4rem"
maxlength=
"10"
onkeyup=
"value=value.replace(/[^\d]/g,'')"
@
keyup
.
native=
"
$event.target.value = $event.target.value.replace(
/^\s+|\s+$/gm,
''
)
"
></el-input>
</el-form-item>
<el-form-item
label=
"联系地址"
prop=
"contactAddress"
class=
"item"
>
...
...
@@ -574,6 +569,7 @@
placeholder=
"请输入"
style=
"width: 2.4rem"
maxlength=
"300"
@
keyup
.
native=
"$event.target.value = $event.target.value.replace(/^\s+|\s+$/gm,'')"
></el-input>
</el-form-item>
<el-form-item
label=
"法人身份证正反面"
prop=
"identity"
class=
"item"
>
...
...
@@ -664,7 +660,6 @@ import Upload from "~/components/Upload/Upload";
import
imgUpload
from
"~/components/Upload/imgUpload"
;
import
Identify
from
"~/components/identify"
;
import
citySelect
from
"~/components/citySelect"
;
/* import {validateRealName} from '../../utils/validate.js' */
export
default
{
components
:
{
Identify
,
...
...
@@ -703,6 +698,7 @@ export default {
callback
();
}
};
// 测试三证合一是否上传
let
checkcardimg
=
(
rule
,
value
,
callback
)
=>
{
if
(
this
.
cardimg
.
length
===
0
)
{
...
...
@@ -749,126 +745,35 @@ export default {
}
}
};
//验证码验证
// let checkCode = (rule, value, callback) => {
// if (!value) {
// return callback(new Error('验证码不能为空'));
// } else {
// let code = this.code;
// if (value.toLowerCase() == code.toLowerCase()) {
// callback();
// } else {
// return callback(new Error('请输入正确的验证码'));
// }
// }
// };
//名字校验
/* let validateRealName = (rule, value, callback) => {
const realnameReg = /^[\u4e00-\u9fa5]{1,30}$/;
let
validateRealName
=
(
rule
,
value
,
callback
)
=>
{
const
realnameReg
=
/^
[\u
4E00-
\u
9FA5
]{1,30}
$/
;
if
(
!
realnameReg
.
test
(
value
))
{
var reg = new RegExp("[^\u4e00-\u9fa5]{1,30}");
let a = value.replace(reg, "");
this.perfectForm.legalPersonName = a;
this.form.companyName = a;
this.perfectForm.location = a;
this.adminform.name = a;
this.perfectForm.bankAccountName = a;
this.perfectForm.bankName = a;
this.perfectForm.contactAddress = a;
return
callback
(
new
Error
(
"您的输入有误,请重新输入!"
));
}
else
{
callback
();
}
};
}; */
//电话号校验
let
validateRealPhone
=
(
rule
,
value
,
callback
)
=>
{
const
realnameReg
=
/^
[
1
][
3,4,5,7,8
][
0-9
]{9}
$/
;
/* setTimeout(() => { */
if
(
!
realnameReg
.
test
(
value
))
{
var
reg
=
new
RegExp
(
"^[023456789A-z。?!,、 ; : “ ” ‘ ’ ( ) 《 》 〈 〉 【 】 『 』 「 」 ﹃ ﹄ 〔 〕 … — ~ ﹏ ¥.]"
);
let
a
=
value
.
replace
(
reg
,
""
);
console
.
log
(
a
+
"--------------"
);
this
.
perfectForm
.
legalPersonPhone
=
a
;
this
.
adminform
.
phonenumber
=
a
;
return
callback
(
new
Error
(
"您的输入有误,请重新输入!"
));
}
else
{
callback
();
}
/* }, 1000); */
};
//身份证号校验
let
validateRealId
=
(
rule
,
value
,
callback
)
=>
{
const
realnameReg
=
/^
[
1-9
]\d{7}((
0
\d)
|
(
1
[
0-2
]))(([
0|1|2
]\d)
|3
[
0-1
])\d{3}
$|^
[
1-9
]\d{5}[
1-9
]\d{3}((
0
\d)
|
(
1
[
0-2
]))(([
0|1|2
]\d)
|3
[
0-1
])\d{3}([
0-9
]
|X
)
$/
;
/* setTimeout(() => { */
const
realnameReg
=
/
(
^
\d{15}
$
)
|
(
^
\d{17}([
0-9
]
|X|x
)
$
)
/
;
if
(
!
realnameReg
.
test
(
value
))
{
var
reg
=
new
RegExp
(
"^[A-z。?!,、 ; : “ ” ‘ ’ ( ) 《 》 〈 〉 【 】 『 』 「 」 ﹃ ﹄ 〔 〕 … — ~ ﹏ ¥.]"
);
let
a
=
value
.
replace
(
reg
,
""
);
console
.
log
(
a
+
"--------------"
);
this
.
adminform
.
idNumber
=
a
;
return
callback
(
new
Error
(
"您的输入有误,请重新输入!"
));
}
else
{
callback
();
}
/* }, 1000); */
};
//统一社会代码
/* let validateRealSHid = (rule, value, callback) => {
const realnameReg = /^[_IOZSVa-z\W]{2}\d{6}[^_IOZSVa-z\W]{10}$/g;
//邮箱号校验
let
validateEmailId
=
(
rule
,
value
,
callback
)
=>
{
const
realnameReg
=
/^
([
a-zA-Z0-9
]
+
[
_|
\_
|
\.]?)
*
[
a-zA-Z0-9
]
+@
([
a-zA-Z0-9
]
+
[
_|
\_
|
\.]?)
*
[
a-zA-Z0-9
]
+
\.[
a-zA-Z
]{2,3}
$/
;
if
(
!
realnameReg
.
test
(
value
))
{
var reg = new RegExp(
"^[a-z。?!,、 ; : “ ” ‘ ’ ( ) 《 》 〈 〉 【 】 『 』 「 」 ﹃ ﹄ 〔 〕 … — ~ ﹏ ¥.]"
);
let a = value.replace(reg, "");
console.log(a + "--------------");
this.perfectForm.socialCode = a;
return
callback
(
new
Error
(
"您的输入有误,请重新输入!"
));
}
else
{
callback
();
}
};
*/
let
validateRealLast
=
(
rule
,
value
,
callback
)
=>
{
const
realnameReg
=
/^
([
1-9
]{1})(\d{14}
|
\d{18})
$/
;
/* setTimeout(() => { */
if
(
!
realnameReg
.
test
(
value
))
{
var
reg
=
new
RegExp
(
"^[a-z。?!,、 ; : “ ” ‘ ’ ( ) 《 》 〈 〉 【 】 『 』 「 」 ﹃ ﹄ 〔 〕 … — ~ ﹏ ¥.]"
);
let
a
=
value
.
replace
(
reg
,
""
);
this
.
perfectForm
.
bankAccount
=
a
;
return
callback
(
new
Error
(
"您的输入有误,请重新输入!"
));
}
else
{
callback
();
}
/* }, 1000); */
};
/* 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。?!,、 ; : “ ” ‘ ’ ( ) 《 》 〈 〉 【 】 『 』 「 」 ﹃ ﹄ 〔 〕 … — ~ ﹏ ¥]"
);
let a = value.replace(reg, "");
this.perfectForm.registeredCapital = a;
return callback(new Error("您的输入有误,请重新输入!"));
} else {
callback();
}
}; */
/* this.flag = false
clearInterval(timer);
this.flag = true; */
return
{
Verification
:
true
,
...
...
@@ -926,9 +831,9 @@ export default {
message
:
"请输入单位名称"
,
trigger
:
"blur"
,
},
/*
{
{
validator
:
validateRealName
,
},
*/
},
],
local
:
[
{
...
...
@@ -943,6 +848,7 @@ export default {
message
:
"请选择角色"
,
trigger
:
"blur"
,
},
],
name
:
[
{
...
...
@@ -950,9 +856,9 @@ export default {
message
:
"请输入管理者姓名"
,
trigger
:
"blur"
,
},
/*
{
{
validator
:
validateRealName
,
},
*/
},
],
idNumber
:
[
{
...
...
@@ -995,11 +901,9 @@ export default {
required
:
true
,
message
:
"请输入电子邮箱"
,
trigger
:
"blur"
,
},
{
pattern
:
/^
([
a-zA-Z0-9
]
+
[
_|
\_
|
\.]?)
*
[
a-zA-Z0-9
]
+@
([
a-zA-Z0-9
]
+
[
_|
\_
|
\.]?)
*
[
a-zA-Z0-9
]
+
\.[
a-zA-Z
]{2,3}
$/
,
message
:
"请输入正确的邮箱地址"
,
},
},{
validator
:
validateEmailId
}
],
phonenumber
:
[
{
...
...
@@ -1007,9 +911,6 @@ export default {
validator
:
checkPhone
,
trigger
:
"blur"
,
},
{
validator
:
validateRealPhone
,
},
],
code
:
[
{
...
...
@@ -1032,7 +933,7 @@ export default {
trigger
:
"blur"
,
},
{
validator
:
validateReal
Phone
,
validator
:
check
Phone
,
},
],
...
...
@@ -1042,9 +943,9 @@ export default {
message
:
"请输入法人姓名"
,
trigger
:
"blur"
,
},
/*
{
validator:
validateRealName,
},
*/
{
validator
:
validateRealName
},
],
location
:
[
{
...
...
@@ -1052,15 +953,18 @@ export default {
message
:
"请输入单位所在地"
,
trigger
:
"blur"
,
},
/*
{
{
validator
:
validateRealName
,
},
*/
},
],
bankAccount
:
[
{
required
:
true
,
message
:
"请输入结算账号"
,
trigger
:
"blur"
,
},{
pattern
:
/^
([
1-9
]{1})(\d{14}
|
\d{18})
$/
,
message
:
"你的输入有误,请重新输入!"
,
},
],
bankAccountName
:
[
...
...
@@ -1069,9 +973,9 @@ export default {
message
:
"请输入结算账号名"
,
trigger
:
"blur"
,
},
/*
{
{
validator
:
validateRealName
,
},
*/
},
],
contactAddress
:
[
{
...
...
@@ -1079,9 +983,9 @@ export default {
message
:
"请输入联系地址"
,
trigger
:
"blur"
,
},
/*
{
{
validator
:
validateRealName
,
},
*/
},
],
socialCode
:
[
...
...
@@ -1090,6 +994,10 @@ export default {
message
:
"请输入社会信用码"
,
trigger
:
"blur"
,
},
{
pattern
:
/^
[
0-9A-HJ-NPQRTUWXY
]{2}\d{6}[
0-9A-HJ-NPQRTUWXY
]{10}
$/
,
message
:
"您的输入有误,请重新输入!"
,
}
],
companyNature
:
[
{
...
...
@@ -1111,16 +1019,19 @@ export default {
message
:
"开户银行名称"
,
trigger
:
"blur"
,
},
/*
{
{
validator
:
validateRealName
,
},
*/
},
],
registeredCapital
:
[
{
required
:
true
,
message
:
"请输入注册资本"
,
trigger
:
"blur"
,
},
},{
pattern
:
/^
[
1-9
]
d*$/
,
message
:
"你的输入有误,请重新输入!"
,
}
],
businessScope
:
[
{
...
...
@@ -1130,7 +1041,7 @@ export default {
},
{
pattern
:
/
[\u
4e00-
\u
9fa5
]
|
[\(\)\《\》\—
—
\;\,\。\“\”
\<
\>\!]
/
,
message
:
"
请输入正确的经营范围
"
,
message
:
"
你得输入有误,请重新输入!
"
,
},
],
identity
:
[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment