...
|
...
|
@@ -387,6 +387,9 @@ var g = new common.grid({ |
|
|
return html.join('');
|
|
|
}
|
|
|
}, {
|
|
|
display: 'SKC个数',
|
|
|
name: 'skcNum'
|
|
|
},{
|
|
|
display: '操作',
|
|
|
render: function (item) {
|
|
|
var HtmArr = [];
|
...
|
...
|
@@ -407,7 +410,7 @@ var g = new common.grid({ |
|
|
}else{
|
|
|
intValue=item.productSearch.intValue;
|
|
|
}
|
|
|
HtmArr.push('<br><br><input type="text" style="width:100px" name="brandSort" class="brandSortText" data-index="' + item.__index + '" value='+intValue+'>');
|
|
|
HtmArr.push('<br><br><input type="text" style="width:100px" name="brandSort" id="brandSortId" class="brandSortText" data-index="' + item.__index + '" value='+intValue+'>');
|
|
|
HtmArr.push('<a href="javascript:;" class="btn btn-success btn-xs brandSort-btn" data-index="' + item.__index + '" >品牌排序</a>');
|
|
|
|
|
|
if(typeof(item.shopsSearchSort) == "undefined"){
|
...
|
...
|
@@ -415,7 +418,7 @@ var g = new common.grid({ |
|
|
}else{
|
|
|
intVal_shopsSearchSort = item.shopsSearchSort.intValue;
|
|
|
}
|
|
|
HtmArr.push('<br><br><input type="text" style="width:100px" name="shopsSort" class="brandSortText" data-index="' + item.__index + '" value='+ intVal_shopsSearchSort+'>');
|
|
|
HtmArr.push('<br><br><input type="text" style="width:100px" name="shopsSort" id="shopsSortId" class="brandSortText" data-index="' + item.__index + '" value='+ intVal_shopsSearchSort+'>');
|
|
|
HtmArr.push('<a href="javascript:;" class="btn btn-success btn-xs shopsSort-btn" data-index="' + item.__index + '" >店铺排序</a>');
|
|
|
return HtmArr.join('');
|
|
|
}
|
...
|
...
|
@@ -643,7 +646,8 @@ var shelveTable = new common.grid({ |
|
|
render: function (item) {
|
|
|
|
|
|
return 'SKC:' + item.productSkc + '<br>' +
|
|
|
'颜色:' + item.goodsName;
|
|
|
'颜色:' + item.goodsName+ '<br>' +
|
|
|
'厂家颜色:' + item.factoryGoodsName;
|
|
|
}
|
|
|
}, {
|
|
|
display: 'SKC上架操作(状态)',
|
...
|
...
|
@@ -799,6 +803,12 @@ $(document).on("click", ".chima-btn", function () { |
|
|
/**
|
|
|
*品牌排序
|
|
|
*/
|
|
|
|
|
|
/*验证 hack*/
|
|
|
$(document).on('keyup', '#brandSortId', function() {
|
|
|
$(this).val($(this).val().replace(/\D/g, ''));
|
|
|
});
|
|
|
|
|
|
$(document).on("click", ".brandSort-btn", function () {
|
|
|
var item = g.rows[$(this).data("index")];
|
|
|
var num = $("input:text[name='brandSort']").eq($(this).data("index")).val();
|
...
|
...
|
@@ -808,7 +818,7 @@ $(document).on("click", ".brandSort-btn", function () { |
|
|
productSkn: item.productSkn,
|
|
|
modelId: i + 1,
|
|
|
projectId: 1,
|
|
|
intValue: num
|
|
|
intValue: $.trim(num)
|
|
|
};
|
|
|
}
|
|
|
common.util.__ajax({
|
...
|
...
|
@@ -823,6 +833,11 @@ $(document).on("click", ".brandSort-btn", function () { |
|
|
/**
|
|
|
*店铺商品排序
|
|
|
*/
|
|
|
/*验证 hack*/
|
|
|
$(document).on('keyup', '#shopsSortId', function() {
|
|
|
$(this).val($(this).val().replace(/\D/g, ''));
|
|
|
});
|
|
|
|
|
|
$(document).on("click", ".shopsSort-btn", function () {
|
|
|
var item = g.rows[$(this).data("index")];
|
|
|
var num = $("input:text[name='shopsSort']").eq($(this).data("index")).val();
|
...
|
...
|
@@ -832,7 +847,7 @@ $(document).on("click", ".shopsSort-btn", function () { |
|
|
productSkn: item.productSkn,
|
|
|
modelId: 1,
|
|
|
projectId: 5,
|
|
|
intValue: num
|
|
|
intValue: $.trim(num)
|
|
|
});
|
|
|
|
|
|
common.util.__ajax({
|
...
|
...
|
|