cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
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
68
69
70
71
72
73
<div class="event_fill sa_event_fill">
        <table style="width: 95%">
            <tr>
                <th width="85%">
                    <div class="fill_item">
                        <label>盘点单号:</label> 
                        <input type="text" id="pddh"  name="pddh"  class="name"/>  
                    </div>
                    <div class="fill_item">
                        <label>工单名称:</label> 
                        <input type="text" id="gdmc"  name="gdmc"  class="name"/>               
                    </div>
                    
                    <div id="selectDay">
                        <div class="fill_item">
                            <label>开始时间:</label> [@datepicker id="startDate" value="${startDate}" class="general" length=8 /]
                        </div>
                        <div class="fill_item">
                            <label>结束时间:</label> [@datepicker id="endDate" class="general" length=8 value="${endDate}" /]
                        </div>
                    </div>
                    <div class="fill_item">
                      <label>入库状态:</label>
                         <select id="state" class="mysel">
                           <option value="">请选择</option>
                           <option value="0">删除</option>
                           <option value="1">新增</option>
                           <option value="2">待审核</option>
                           <option value="3">审核通过</option>
                            <option value="4">审核不通过</option>
                      </select>
                    </div>
                </th>
                <td width="15%">
                    <a class="retrievebtn" href="javascript:window.location.reload(true);">重置</a><a class="retrievebtn focus" href="javascript:checkSel();">查询</a>
                </td>
            </tr>
        </table>
    </div>
 
<script>
$(function(){
    showNoData('report');
});
 
//无数据显示
function showNoData(containerId) {
    var strHrml = '<div id="noDailyReport" style="position:relative;width:100%;height:400px">';
    strHrml = strHrml + '<span class="nodata"></span>';
    strHrml = strHrml + '</div>';
    $('#'+containerId).html(strHrml);
}
 
function checkSel(){
    var start_time = $("#start_time").val();
    var end_time = $("#end_time").val();
    if(start_time>end_time) {
        window.top.popupTips("开始时间不能晚于结束时间");
        return ;
    }
    query();
}
 
function getDays(day1,day2){
    var newDay1 = new Date(day1.substring(0,4),day1.substring(4,6)-1,day1.substring(6,8));
    var newDay2 = new Date(day2.substring(0,4),day2.substring(4,6)-1,day2.substring(6,8));
    return parseInt(Math.abs(newDay2-newDay1)/1000/60/60/24);
}
 
 
 
 
</script>