Authored by linlong

update

... ... @@ -215,7 +215,11 @@ var g = new common.grid({
{
display: "申请类型",
render: function(item) {
return "<p>" + applyTypeEnum.applyType[item.applyType] + "</p>"
if((typeof(item.applyType) == "undefined")){
return "<p></p>"
}else{
return "<p>" + applyTypeEnum.applyType[item.applyType] + "</p>"
}
}
}, {
display: 'SKN',
... ...
... ... @@ -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
... ...
... ... @@ -162,12 +162,14 @@ if (window.NETSALEDATA) {
}
}
}
searchSortList = item;
searchSortList = item;
var sortList = [];
sortList.push(searchSortList[0])
$('#sort-save').on('click', function () {
common.util.__ajax({
url: '/netSale/saveSearchSort',
data: {
searchSortList: JSON.stringify(searchSortList)
searchSortList: JSON.stringify(sortList)
}
});
return false;
... ...