...
|
...
|
@@ -310,7 +310,7 @@ var g = new common.grid({ |
|
|
}
|
|
|
HtmArr.push('<a href="/goods/netsale/info/' + item.productSkn + editPostion + '" class="btn btn-info btn-xs info-btn">查看</a>');
|
|
|
HtmArr.push('<a href="javascript:;" class="btn btn-success btn-xs chima-btn" data-index="' + item.__index + '">尺码</a>');
|
|
|
HtmArr.push('<br><br><input type="text" style="width:100px" name="brandSort" />');
|
|
|
HtmArr.push('<br><br><input type="text" style="width:100px" name="brandSort" class="brandSortText" data-index="' + item.__index + '" />');
|
|
|
HtmArr.push('<a href="javascript:;" class="btn btn-success btn-xs brandSort-btn" data-index="' + item.__index + '" >品牌排序</a>');
|
|
|
return HtmArr.join('');
|
|
|
}
|
...
|
...
|
@@ -642,7 +642,7 @@ $(document).on("click", ".brandSort-btn", function () { |
|
|
var item = g.rows[$(this).data("index")];
|
|
|
var num = $("input:text[name='brandSort']").eq($(this).data("index")).val();
|
|
|
var searchSortList = [];
|
|
|
for (var i = 0; i < 3; i++) {
|
|
|
for (var i = 0; i < 1; i++) {
|
|
|
searchSortList[i] = {
|
|
|
id:item.productSearchId,
|
|
|
productSkn: item.productSkn,
|
...
|
...
|
@@ -658,5 +658,27 @@ $(document).on("click", ".brandSort-btn", function () { |
|
|
}
|
|
|
});
|
|
|
});
|
|
|
|
|
|
$(document).on("change", ".brandSortText", function () {
|
|
|
var item = g.rows[$(this).data("index")];
|
|
|
var num = $("input:text[name='brandSort']").eq($(this).data("index")).val();
|
|
|
var searchSortList = [];
|
|
|
for (var i = 0; i < 1; i++) {
|
|
|
searchSortList[i] = {
|
|
|
id:item.productSearchId,
|
|
|
productSkn: item.productSkn,
|
|
|
modelId: i + 1,
|
|
|
projectId: 1,
|
|
|
intValue: num
|
|
|
};
|
|
|
}
|
|
|
common.util.__ajax({
|
|
|
url: '/netSale/saveSearchSort',
|
|
|
data: {
|
|
|
searchSortList: JSON.stringify(searchSortList)
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
|
|
|
//当点击“无需测量”,该列输入框不可编辑
|
|
|
common.sizeInfo.check(); |
|
|
\ No newline at end of file |
...
|
...
|
|