Commit 60cbf7ca by guanzhenshan

修复冗余明细没有显示数据的问题

parent 3e2e6442
...@@ -154,19 +154,6 @@ ...@@ -154,19 +154,6 @@
if (i < 2) { //前100冗余金额sku分析,前100冗余个数sku分析模版 if (i < 2) { //前100冗余金额sku分析,前100冗余个数sku分析模版
var shtml = ''; var shtml = '';
for (var o in obj) { for (var o in obj) {
/*
<th>产品个数</th>
<th>库存总金额</th>
<th>日销产品个数</th>
<th>动销产品比例</th>
<th>日销金额</th>
<th>动销金额比例</th>
<th>冗余产品个数</th>
<th>冗余个数比例</th>
<th>冗余金额</th>
<th>冗余金额比例</th>
*/
shtml += '<tr><td>' + obj[o].bailun_sku + '</td>'; shtml += '<tr><td>' + obj[o].bailun_sku + '</td>';
shtml += '<td>' + obj[o].productcount + '</td>'; shtml += '<td>' + obj[o].productcount + '</td>';
shtml += '<td>' + obj[o].amount_total + '</td>'; shtml += '<td>' + obj[o].amount_total + '</td>';
...@@ -181,13 +168,44 @@ ...@@ -181,13 +168,44 @@
shtml += '</tr>'; shtml += '</tr>';
} }
$('#tb' + (i + 1)).append(shtml); $('#tb' + (parseInt(i) + 1)).append(shtml);
} }
else if(i>1 && i<4){ //前100个数动销最快sku分析,前100金额动销最快sku分析 else if(i>1 && i<4){ //前100个数动销最快sku分析,前100金额动销最快sku分析
var shtml = '';
/*
<th>sku</th>
<th>产品个数</th>
<th>库存总金额</th>
<th>昨日销量</th>
<th>昨日销售金额</th>
<th>过去3天日均</th>
<th>过去7天日均</th>
<th>过去14天日均</th>
<th>过去30天日均</th>
<th>日周转率</th>
<th>周周转率</th>
<th>月周转率</th>
<th>缺货数</th>
*/
for (var o in obj) {
shtml += '<tr><td>' + obj[o].bailun_sku + '</td>';
shtml += '<td>' + obj[o].productcount + '</td>';
shtml += '<td>' + obj[o].yesterdaysale_count + '</td>';
shtml += '<td>' + obj[o].yesterdaysale_amount + '</td>';
shtml += '<td>' + obj[o].sale_3d_avg + '</td>';
shtml += '<td>' + obj[o].sale_7d_avg + '</td>';
shtml += '<td>' + obj[o].sale_14d_avg + '</td>';
shtml += '<td>' + obj[o].sale_30d_avg + '</td>';
shtml += '<td>' + obj[o].day_turnover_rate + '</td>';
shtml += '<td>' + obj[o].week_turnover_rate + '</td>';
shtml += '<td>' + obj[o].month_turnover_rate + '</td>';
shtml += '<td>' + obj[o].stockout + '</td>';
shtml += '</tr>';
}
$('#tb' + (parseInt(i) + 1)).append(shtml);
} }
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment