Helius
2021-06-16 5728be2af515b2200e782aa201ca5d4d67d9ea47
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!--#layout("/common/layout.html",{"jsBase":"/js/admin/order/warehouse/"}){ -->
<!--
<form class="layui-form" id="x1" action=""><button type="submit" class="layui-btn" lay-submit="" lay-filter="demo1">返回</button></form>
-->
<button type="submit" class="layui-btn" lay-submit="" lay-filter="demo1" onclick="javascript:history.go(-1);">返回</button>
<br/>
<div>
    <div class="layui-form-item" style="margin-top: 20px">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">回收员姓名:</label>
                <div class="layui-input-inline">
                    <input type="text" name="receiverName" id="receiverName" placeholder="回收员姓名" class="layui-input" style="float: right">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">仓库员姓名:</label>
                <div class="layui-input-inline">
                    <input type="text" name="storageUserName" id="storageUserName" placeholder="仓库员姓名" class="layui-input" style="float: right">
                </div>
            </div>
            <button type="button" id="search" class="layui-btn layui-btn-primary">搜索</button>
        </div>
    </div>
 
</div>
 
<table id="orderStatisTodayMore" lay-filter="orderStatisTodayMore"></table>
 
 
<!--#} -->
<script>
    var index;
    layui.use(['orderStatisticsTodayMore'], function(){
        index = layui.orderStatisticsTodayMore;
        index.init({'startTime':new Date().Format('yyyy-MM-dd ') + "00:00:00", 'endTime':new Date().Format('yyyy-MM-dd ') + "23:59:59"});
    });
 
    // 搜索
    $("#search").click(function () {
        data = {
            'startTime':new Date().Format('yyyy-MM-dd ') + "00:00:00", 'endTime':new Date().Format('yyyy-MM-dd ') + "23:59:59",
            'receiverName': $("#receiverName").val(),'storageUserName':$("#storageUserName").val()
        };
        index.init(data);
    });
 
   /* $("#x1").html($("#name").val());*/
    // $("#x1").attr('action', Common.ctxPath+'/admin/order/statistics/index.do');
 
    Date.prototype.Format = function (fmt) {
        var o = {
            "M+": this.getMonth() + 1, //月份
            "d+": this.getDate(), //日
            "H+": this.getHours(), //小时
            "m+": this.getMinutes(), //分
            "s+": this.getSeconds(), //秒
            "q+": Math.floor((this.getMonth() + 3) / 3), //季度
            "S": this.getMilliseconds() //毫秒
        };
        if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
        for (var k in o)
            if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
        return fmt;
    }
</script>
<!--今日统计--更多-->