Authored by liuyue

按照库存排序

... ... @@ -108,7 +108,7 @@ grid.prototype = {
});
$.each(urlParam, function(key, value) {
if (!param[key]) {
if (!param[key] && param[key] !== +param[key]) {
param[key] = value;
}
});
... ...
... ... @@ -83,7 +83,8 @@ var g = new common.grid({
size: common.util.__input("size"),
productStatusStr: t.value,
tab: $('#basicTab').find('.active').index(),
isInfoMiss: t.isInfoMiss
isInfoMiss: t.isInfoMiss,
sortFlag: t.sortFlag
};
},
columns: [{
... ... @@ -272,6 +273,12 @@ var t = new common.tab({
} else {
t.isInfoMiss = 'N';
}
if (t.active == 1 || t.active == 2 || t.active == 3) {
t.sortFlag = 2;
} else {
t.sortFlag = 1;
}
g.init($("#gridurl").val());
},
columns: [{
... ...
... ... @@ -82,6 +82,12 @@ exports.res = [{
}, {
name: 'isInfoMiss',
type: 'string'
}, {
name: 'sortFlag',
type: 'number'
}, {
name: 'descFlag',
type: 'string'
}]
}, {
//网销信息 -> tab页
... ...