Authored by weiqingting

Merge branch 'yohobuy-shop-dev-4.6-20160606'

... ... @@ -437,9 +437,15 @@ e.on("validate",function(){
map3=map3.filter(function(item){
return $.trim(item.factoryCode)?true:false;
});
var __m={};
map3.forEach(function(item){
if(!__m.hasOwnProperty(item.factoryCode)){
__m[item.factoryCode]=true;
}
});
var ispass=true;
if(len==map3.length){
if(len==map3.length&&len==Object.keys(__m).length){
common.util.__ajax2({
url:'/product/checkSkuBarCodeExist',
async:false,
... ... @@ -450,7 +456,7 @@ e.on("validate",function(){
}
},true);
}else{
ispass="商品条码不可为空";
ispass="商品条码不可为空或者条码重复";
}
return ispass;
... ...