|
@@ -2,7 +2,7 @@ var Register = {
|
|
registData: {},
|
|
registData: {},
|
|
validateFields: {
|
|
validateFields: {
|
|
username: {validators: {notEmpty: {message: '登录账号不能为空'}}},
|
|
username: {validators: {notEmpty: {message: '登录账号不能为空'}}},
|
|
- name: {validators: {notEmpty: {message: '单位/企业名称不能为空'}}},//, regexp: {regexp: /^([\u4E00-\u9FA5]|\(|\)){1,100}$/, message: "单位/企业名称只允许中文"}
|
|
|
|
|
|
+ name: {validators: {notEmpty: {message: '单位/企业名称不能为空'}}}, //, regexp: {regexp: /^([\u4E00-\u9FA5]|\(|\)){1,100}$/, message: "单位/企业名称只允许中文"}
|
|
//idCard: {validators: {notEmpty: {message: '统一社会信用代码不能为空'}}},
|
|
//idCard: {validators: {notEmpty: {message: '统一社会信用代码不能为空'}}},
|
|
agentName: {validators: {notEmpty: {message: '人才联络员不能为空'}}},
|
|
agentName: {validators: {notEmpty: {message: '人才联络员不能为空'}}},
|
|
agentPhone: {
|
|
agentPhone: {
|
|
@@ -135,7 +135,7 @@ Register.enterpriseUserRegister = function () {
|
|
$("#tab-4 .form-control").attr("disabled", "disabled");
|
|
$("#tab-4 .form-control").attr("disabled", "disabled");
|
|
$("#tab-5 .form-control").attr("disabled", "disabled");
|
|
$("#tab-5 .form-control").attr("disabled", "disabled");
|
|
$('#ep_form').bootstrapValidator("addField", "idCard", {validators: {notEmpty: {message: '统一社会信用代码不能为空'}}});
|
|
$('#ep_form').bootstrapValidator("addField", "idCard", {validators: {notEmpty: {message: '统一社会信用代码不能为空'}}});
|
|
- $('#ep_form').bootstrapValidator("addField", "legal", {validators: {notEmpty: {message: '法人代表不能为空'}, regexp: {regexp: /^[\u4e00-\u9fa5]{1,50}$/, message: "法人代表只允许中文"}}});
|
|
|
|
|
|
+ $('#ep_form').bootstrapValidator("addField", "legal", {validators: {notEmpty: {message: '法人代表不能为空'}}});//, regexp: {regexp: /^[\u4e00-\u9fa5]{1,50}$/, message: "法人代表只允许中文"}
|
|
$('#ep_form').bootstrapValidator("addField", "bankCard", {validators: {notEmpty: {message: '开户银行账号不能为空'}}});
|
|
$('#ep_form').bootstrapValidator("addField", "bankCard", {validators: {notEmpty: {message: '开户银行账号不能为空'}}});
|
|
$('#ep_form').bootstrapValidator("addField", "bankNetwork", {validators: {notEmpty: {message: '开户银行网点不能为空'},
|
|
$('#ep_form').bootstrapValidator("addField", "bankNetwork", {validators: {notEmpty: {message: '开户银行网点不能为空'},
|
|
regexp: {
|
|
regexp: {
|
|
@@ -153,7 +153,7 @@ Register.enterpriseUserRegister = function () {
|
|
$("#tab-4 .form-control").attr("disabled", "disabled");
|
|
$("#tab-4 .form-control").attr("disabled", "disabled");
|
|
$("#tab-3 .form-control").attr("disabled", "disabled");
|
|
$("#tab-3 .form-control").attr("disabled", "disabled");
|
|
$('#ep_form').bootstrapValidator("addField", "idCard", {validators: {notEmpty: {message: '统一社会信用代码不能为空'}}});
|
|
$('#ep_form').bootstrapValidator("addField", "idCard", {validators: {notEmpty: {message: '统一社会信用代码不能为空'}}});
|
|
- $('#ep_form').bootstrapValidator("addField", "legal", {validators: {notEmpty: {message: '法人代表不能为空'}, regexp: {regexp: /^[\u4e00-\u9fa5]{1,50}$/, message: "法人代表只允许中文"}}});
|
|
|
|
|
|
+ $('#ep_form').bootstrapValidator("addField", "legal", {validators: {notEmpty: {message: '法人代表不能为空'}}});//, regexp: {regexp: /^[\u4e00-\u9fa5]{1,50}$/, message: "法人代表只允许中文"}
|
|
$('#ep_form').bootstrapValidator("addField", "bankCard", {validators: {notEmpty: {message: '开户银行账号不能为空'}}});
|
|
$('#ep_form').bootstrapValidator("addField", "bankCard", {validators: {notEmpty: {message: '开户银行账号不能为空'}}});
|
|
$('#ep_form').bootstrapValidator("addField", "bankNetwork", {validators: {notEmpty: {message: '开户银行网点不能为空'},
|
|
$('#ep_form').bootstrapValidator("addField", "bankNetwork", {validators: {notEmpty: {message: '开户银行网点不能为空'},
|
|
regexp: {
|
|
regexp: {
|
|
@@ -272,10 +272,10 @@ Register.enterpriseUserRegister = function () {
|
|
Feng.info("请填写" + prefix + "名称!");
|
|
Feng.info("请填写" + prefix + "名称!");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- if (!/^([\u4E00-\u9FA5]|\(|\)|\(|\)){1,100}$/.test(name)) {
|
|
|
|
- Feng.info(prefix + "名称只能输入中文 !");
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
|
|
+ /*if (!/^([\u4E00-\u9FA5]|\(|\)|\(|\)){1,100}$/.test(name)) {
|
|
|
|
+ Feng.info(prefix + "名称只能输入中文 !");
|
|
|
|
+ return;
|
|
|
|
+ }*/
|
|
if (name.length > 100) {
|
|
if (name.length > 100) {
|
|
Feng.info(prefix + "名称最多100个字符!");
|
|
Feng.info(prefix + "名称最多100个字符!");
|
|
return;
|
|
return;
|
|
@@ -309,10 +309,10 @@ Register.enterpriseUserRegister = function () {
|
|
Feng.info("请填写法人代表!");
|
|
Feng.info("请填写法人代表!");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- if (!/^[\u4e00-\u9fa5]{1,50}$/.test(legal)) {
|
|
|
|
- Feng.info("法人代表只能输入中文 !");
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
|
|
+ /*if (!/^[\u4e00-\u9fa5]{1,50}$/.test(legal)) {
|
|
|
|
+ Feng.info("法人代表只能输入中文 !");
|
|
|
|
+ return;
|
|
|
|
+ }*/
|
|
if (bankCard == null || bankCard == '') {
|
|
if (bankCard == null || bankCard == '') {
|
|
Feng.info("请填写企业银行账号!");
|
|
Feng.info("请填写企业银行账号!");
|
|
return;
|
|
return;
|
|
@@ -407,10 +407,10 @@ Register.enterpriseUserRegister = function () {
|
|
Feng.info("请填写法人代表!");
|
|
Feng.info("请填写法人代表!");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- if (!/^[\u4e00-\u9fa5]{1,50}$/.test(legal)) {
|
|
|
|
- Feng.info("法人代表只能输入中文 !");
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
|
|
+ /*if (!/^[\u4e00-\u9fa5]{1,50}$/.test(legal)) {
|
|
|
|
+ Feng.info("法人代表只能输入中文 !");
|
|
|
|
+ return;
|
|
|
|
+ }*/
|
|
if (bankCard == null || bankCard == '') {
|
|
if (bankCard == null || bankCard == '') {
|
|
Feng.info("请填写机构银行账号!");
|
|
Feng.info("请填写机构银行账号!");
|
|
return;
|
|
return;
|