Authored by mali

2.商品库存信息—库存详情,希望优化可以跳出二级页面。新建标签页

... ... @@ -316,7 +316,8 @@
var str = '';
if (typeof(rowData.bidStorePrice) != 'undefined' && typeof(rowData.bidStorePrice.bidTotal) != 'undefined' && rowData.bidStorePrice.bidTotal > 0) {
str += "<a role='cancel' href=" + contextPath + "/html/goods/storage/bidDetail.html?productId=" + rowData.id + "&midSortId=" + rowData.midSortId + "&time_version=" + new Date().getTime() + ">求购详情</a>";
//str += "<a role='cancel' href=" + contextPath + "/html/goods/storage/bidDetail.html?productId=" + rowData.id + "&midSortId=" + rowData.midSortId + "&time_version=" + new Date().getTime() + ">求购详情</a>";
str += "<a role='edit' dataId='" + rowData.id + "' sortId = '" + rowData.midSortId + "'>求购详情</a>";
}
str += "<a role='edit' dataId='" + rowData.id + "' sortId = '" + rowData.midSortId + "'>库存详情</a>";
return str;
... ... @@ -343,7 +344,7 @@
onClick: function () {
var id = $(this).attr("dataId");
var midSortId = $(this).attr("sortId");
detailStorage(id, midSortId);
detailBidStorage(id, midSortId);
}
});
}
... ... @@ -526,6 +527,11 @@
window.open(contextPath + "/html/goods/storage/storageDetail.html?productId=" + id + "&midSortId=" + midSortId + "&time_version=" + new Date().getTime());
}
function detailBidStorage(id, midSortId) {
//this.location.href = contextPath + "/html/goods/storage/storageDetail.html?productId=" + id + "&midSortId=" + midSortId + "&time_version=" + new Date().getTime();
window.open(contextPath + "/html/goods/storage/bidDetail.html?productId=" + id + "&midSortId=" + midSortId + "&time_version=" + new Date().getTime());
}
// 上传EXCEL
function uploadExcel() {
... ...