Commit 81316f88 by 朱继来

调整

parent c399f924
Showing with 32 additions and 32 deletions
......@@ -753,38 +753,38 @@
var product_use_classtwo_sn = $('.product_use_classtwo_sn').val();
var customer_website = $('.customer_website').val();
// if (!customer_cn) {
// layer.msg('请填写终端中文名称');
// return false;
// }
// if (customer_type == '') {
// layer.msg('请选择客户类型');
// return false;
// }
// if (customer_type == 1) { // 若客户类型为终端,则外文名称,产品用途和网址为必填
// if (!customer_en) {
// layer.msg('请填写终端英文名称');
// return false;
// }
// var en_reg = /^[a-zA-Z0-9\.\s\,\(\)]+$/;
// if(!en_reg.test(customer_en)){
// layer.msg('请填写全英文名称');
// return false;
// }
// if (product_use_classone_sn == '') {
// layer.msg('请选择产品用途一级分类');
// return false;
// }
// if (!customer_website) {
// layer.msg('请填写客户网址');
// return false;
// }
// }
if (!customer_cn) {
layer.msg('请填写终端中文名称');
return false;
}
if (customer_type == '') {
layer.msg('请选择客户类型');
return false;
}
if (customer_type == 1) { // 若客户类型为终端,则外文名称,产品用途和网址为必填
if (!customer_en) {
layer.msg('请填写终端英文名称');
return false;
}
var en_reg = /^[a-zA-Z0-9\.\s\,\(\)]+$/;
if(!en_reg.test(customer_en)){
layer.msg('请填写全英文名称');
return false;
}
if (product_use_classone_sn == '') {
layer.msg('请选择产品用途一级分类');
return false;
}
if (!customer_website) {
layer.msg('请填写客户网址');
return false;
}
}
datax.customer_cn = customer_cn;
datax.customer_en = customer_en;
......
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 sign in to comment