|
@@ -49,50 +49,39 @@
|
|
|
<a class="btn radius r" style="line-height:1.6em;margin-top:3px;background: #32a3d8;color: #fff;border:1px solid #32a3d8;" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont"></i></a>
|
|
|
</nav>
|
|
|
|
|
|
-<article class="page-container" style="padding: 10px;">
|
|
|
- <div class="pd-20 cl">
|
|
|
- <form action="" method="post" class="form form-horizontal" id="form-order-add" >
|
|
|
+<div class="page-container">
|
|
|
+ <div class="text-c">
|
|
|
+ <form action="${path}/admin/order_batch/batch_list" method="post">
|
|
|
|
|
|
+ <input type="text" class="my-input trim_input" style="margin-top: -3px;width:118px;margin-right: 0px;height: 28px;padding: 0px;" value="${orderBatch.batchId!}" placeholder="批次编号" name="batchId" id="batchId">
|
|
|
|
|
|
+ <input type="text" style="margin-top: -3px;width:120px;height:30px;margin-right: 0px;font-size: 9px;" name="startDate" id="startDate" class="input-text" placeholder="开始时间" onClick="WdatePicker({ dateFmt:'yyyy-MM-dd HH:mm:ss'})" value="${(orderBatch.startDate?string("yyyy-MM-dd HH:mm:ss"))!''}" readonly="readonly"/>-
|
|
|
+ <input type="text" style="margin-top: -3px;width:120px;height:30px;margin-right: 0px;font-size: 9px;" name="endDate" id="endDate" class="input-text" placeholder="结束时间" onClick="WdatePicker({ dateFmt:'yyyy-MM-dd HH:mm:ss'})" value="${(orderBatch.endDate?string("yyyy-MM-dd HH:mm:ss"))!''}" readonly="readonly"/>
|
|
|
|
|
|
- <div class="row cl">
|
|
|
- <label class="form-label col-3">
|
|
|
- <div class="tit-2">今日/昨日产品发货出库统计</div>
|
|
|
- </label>
|
|
|
- <div class="formControls col-9">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
-
|
|
|
- <div class="mt-20" style="">
|
|
|
- <table class="table table-border table-bg table-bordered">
|
|
|
- <tbody id="allDay">
|
|
|
-
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
-
|
|
|
-
|
|
|
- <div class="row cl">
|
|
|
- <label class="form-label col-3">
|
|
|
- <div class="tit-2">历史产品发货出库统计</div>
|
|
|
- </label>
|
|
|
- <div class="formControls col-9">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
-
|
|
|
- <div class="mt-20" style="">
|
|
|
- <table class="table table-border table-bg table-bordered">
|
|
|
- <tbody id="historyDay">
|
|
|
-
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
-
|
|
|
+ <button type="submit" class="my-btn-search" style="" id="" name=""><i class="Hui-iconfont"></i> 搜索</button>
|
|
|
</form>
|
|
|
</div>
|
|
|
-</article>
|
|
|
+
|
|
|
+ <div class="mt-20">
|
|
|
+ <table class="table table-border table-bordered table-bg table-hover table-sort">
|
|
|
+ <thead>
|
|
|
+ <tr class="text-c">
|
|
|
+ <th width="100">批次编号</th>
|
|
|
+ <th width="80">店铺</th>
|
|
|
+ <th width="50">订单数量</th>
|
|
|
+ <th width="50">待审核数量</th>
|
|
|
+ <th width="50">待发货数量</th>
|
|
|
+ <th width="50">已发货数量</th>
|
|
|
+ <th width="80">创建时间</th>
|
|
|
+ <th width="80">操作</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
|
|
|
<tfoot>
|
|
|
</tfoot>
|
|
@@ -103,7 +92,6 @@
|
|
|
|
|
|
/**
|
|
|
* 获取出库数量
|
|
|
- * type: 1:待发货总数 2:已出库数量
|
|
|
*/
|
|
|
function getdeliver(){
|
|
|
loadIndex = layer.load(1, {
|
|
@@ -111,50 +99,10 @@
|
|
|
});
|
|
|
$.ajax({
|
|
|
type:'POST',
|
|
|
- url: '${path}/admin/await_send/getDeliverNum',
|
|
|
+ url: '${path}/admin/await_send/getPostStatistics',
|
|
|
data:{},
|
|
|
dataType: 'json',
|
|
|
success:function(res) {
|
|
|
- for(var i=0;i<res.returnMsg.allList.length;i++){
|
|
|
- var list = res.returnMsg.allList[i].list;
|
|
|
- var date = res.returnMsg.allList[i].date;
|
|
|
- date = formatDate(date);
|
|
|
- var html = ' <tr class="text-c">'
|
|
|
- + ' <td width="10">'+ date +'</td>'
|
|
|
- + ' <td width="100">'
|
|
|
- + ' <table class="table table-border table-bg table-bordered">'
|
|
|
- + ' <tbody id="">'
|
|
|
- + ' <tr class="text-c"><td width="16">产品名称</td><td width="16">总数</td><td width="16">已打单</td><td width="16">已出库</td><td width="16">未出库</td></tr>';
|
|
|
- if(list.length < 1 ){
|
|
|
- html += '<tr class="text-c">'
|
|
|
- + '<td width="16" colspan="5">暂无数据</td>'
|
|
|
- + '</tr>';
|
|
|
- }
|
|
|
- for(var j=0;j<list.length;j++){
|
|
|
- var order = list[j];
|
|
|
- var notDeliver = parseInt(order.allNum) - parseInt(order.sendNum);
|
|
|
- var notWait = parseInt(order.allNum) - parseInt(order.waitNum);
|
|
|
- var style;
|
|
|
- if(notDeliver > 0){
|
|
|
- style = "bold";
|
|
|
- }
|
|
|
- if(i<2 || notDeliver > 0 || notWait > 0){
|
|
|
- html += '<tr class="text-c">'
|
|
|
- + '<td width="16">'+ order.productName + '('+ order.colorName +')' +'</td>'
|
|
|
- + '<td width="16">'+ order.allNum +'</td>'
|
|
|
- + '<td width="16" class="" >'+ order.waitNum +'</td>'
|
|
|
- + '<td width="16" class="">'+ order.sendNum +'</td>'
|
|
|
- + '<td width="16" class="'+ style +'">'+ notDeliver +'</td></tr>';
|
|
|
- }
|
|
|
- }
|
|
|
- html += ' </tbody></table></td></tr>';
|
|
|
- if(i == 0 || i== 1){
|
|
|
- $("#allDay").append(html);
|
|
|
- }else{
|
|
|
- $("#historyDay").append(html);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
if(loadIndex != 0 ){
|
|
|
layer.close(loadIndex);
|
|
|
}
|