...
|
...
|
@@ -429,17 +429,17 @@ grid.prototype = { |
|
|
var index = $(this).data("index");
|
|
|
if (checked) {
|
|
|
/**************业务控制 特殊情况**************/
|
|
|
if(batchOperateShelve){
|
|
|
if($.inArray(g.rows[index]['productSkn'], batchOperateShelve) == -1 ){
|
|
|
batchOperateShelve.push(g.rows[index]['productSkn']);
|
|
|
if(window.batchOperateShelve){
|
|
|
if($.inArray(g.rows[index]['productSkn'], window.batchOperateShelve) == -1 ){
|
|
|
window.batchOperateShelve.push(g.rows[index]['productSkn']);
|
|
|
}
|
|
|
}
|
|
|
/*********************************************/
|
|
|
g.selected.push(g.rows[index]);
|
|
|
}else{
|
|
|
/**************业务控制 特殊情况**************/
|
|
|
if(batchOperateShelve){
|
|
|
batchOperateShelve.splice($.inArray(g.rows[index]['productSkn'],batchOperateShelve),1);
|
|
|
if(window.batchOperateShelve){
|
|
|
window.batchOperateShelve.splice($.inArray(g.rows[index]['productSkn'],window.batchOperateShelve),1);
|
|
|
}
|
|
|
/********************************************/
|
|
|
}
|
...
|
...
|
@@ -452,13 +452,13 @@ grid.prototype = { |
|
|
var selected = true;
|
|
|
|
|
|
/************业务控制 特殊情况****************/
|
|
|
if(batchOperateShelve){
|
|
|
if(window.batchOperateShelve){
|
|
|
if($(this).prop("checked")){
|
|
|
if($.inArray(g.rows[$(this).attr("data-index")]['productSkn'], batchOperateShelve) == -1 ){
|
|
|
batchOperateShelve.push(g.rows[$(this).attr("data-index")]['productSkn']);
|
|
|
if($.inArray(g.rows[$(this).attr("data-index")]['productSkn'], window.batchOperateShelve) == -1 ){
|
|
|
window.batchOperateShelve.push(g.rows[$(this).attr("data-index")]['productSkn']);
|
|
|
}
|
|
|
}else{
|
|
|
batchOperateShelve.splice($.inArray(g.rows[$(this).attr("data-index")]['productSkn'],batchOperateShelve),1);
|
|
|
window.batchOperateShelve.splice($.inArray(g.rows[$(this).attr("data-index")]['productSkn'],window.batchOperateShelve),1);
|
|
|
}
|
|
|
}
|
|
|
/********************************************/
|
...
|
...
|
|