...
|
...
|
@@ -133,15 +133,18 @@ e.on("bind",function(){ |
|
|
//item.supplierId
|
|
|
var i=0;
|
|
|
$.each(g2.__rows,function(index1,item1){
|
|
|
if(__feild=="unqid"){
|
|
|
if((item1["brandId"]+"_"+item1["supplierId"])==(item["brandId"]+"_"+item["supplierId"])){
|
|
|
// if(__feild=="unqid"){
|
|
|
// if((item1["brandId"]+"_"+item1["supplierId"])==(item["brandId"]+"_"+item["supplierId"])){
|
|
|
// i++;
|
|
|
// }
|
|
|
// }else{
|
|
|
// if(item1["brandId"]==item["brandId"]){
|
|
|
// i++;
|
|
|
// }
|
|
|
// }
|
|
|
if((item1["brandId"]+"_"+item1["supplierId"])==(item["brandId"]+"_"+item["supplierId"])){
|
|
|
i++;
|
|
|
}
|
|
|
}else{
|
|
|
if(item1["brandId"]==item["brandId"]){
|
|
|
i++;
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
if(i==0){
|
|
|
item.method="add";
|
...
|
...
|
|