zhuguifei
2026-03-10 58402bd5e762361363a0f7d7907153c77dbb819f
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!-- 用户新增 -->
<script type="text/javascript" src="${pageContext.request.contextPath }/pms/pub/combobox/comboboxUtil.js" charset="utf-8"></script>
<script type="text/javascript">
$(function(){
    $.loadComboboxData($("#shift"),"SHIFT",false);
    var today = new Date();
    var month=today.getMonth()+1;
    if(month<10){month=("0"+month);}
    var date=today.getFullYear()+"-"+month+"-"+(today.getDate()<10?'0'+today.getDate():today.getDate());
    $("#date").val(date);
    $("#shift").combobox({
        onSelect: function () {
            searchmat();
        },
        onChange: function () {
            $('#mat').combobox({data: []});
        }
    })
 
    $("#date").my97({
        onChange: function () {
            $("#shift").combobox("clear");
            $('#mat').combobox({data: []});
        }
    });
 
});
 
/*
$("#date").bind("input propertychange change",function(event){
    alert();
});
*/
 
function searchmat(){
    var date = $("#date").combobox("getValue") ;
    var shift =  $("#shift").combobox("getValue") ;
    if(date!=null&&date!=""&&shift!=null&&shift!=""){
        $("#mat").combobox("clear");
        $.post('${pageContext.request.contextPath}/pms/onlineCheck/getorderRoller.do',
            {
                "date":date,
                "shift":shift
            }, function(json) {
                console.info(json);
                if (json!=null&&json!="") {
                     $("#mat").combobox({
                         data:json,
                         valueField: 'id',
                         textField: 'text'
                     });
                }
            },"JSON"
        );
 
    }
}
 
 
</script>
<div class="easyui-layout" data-options="fit:true,border:false">
    <div data-options="region:'center',border:false" title="" style="overflow: hidden;padding:5px">
        <form id="form" method="post" enctype = "multipart/form-data" >
           <input name="param" id="param" value="hsl" type="hidden"/>
            <fieldset>
            <!--     <legend>含水率数据录入<font style="color:red;">***牌号必选***</font></legend> -->
                <table class="table" style="width: 100%;">
                    <tr>
                        <th>日期</th>
                        <td>
                            <input id="date" name="date" type="text" class="easyui-my97" datefmt="yyyy-MM-dd" style="width:130px"/>
                        </td>
                    </tr>
                    <tr>
                        <th>班次</th>
                        <td>
                            <select id="shift" name="shift" class="easyui-combobox" data-options="panelHeight:'auto',width:130,editable:false"></select>
                        </td>
                    </tr>
 
                    <tr>
                        <th>牌号</th>
                        <td>
                            <select id="mat" name="orderNumber" class="easyui-combobox" data-options="panelHeight:'auto',width:130,editable:false"></select>
                            <input name="inspectionType" id="type" value =1 type="hidden">
                        </td>
                    </tr>
                    <tr>
                        <th>样本数</th>
                        <td>
                            <input name="sampleNumber" id="sampleNumber" type="text" style="width:130px">
                        </td>
 
                    </tr>
                </table>
            </fieldset>
        </form>
        <s:debug/>
    </div>
</div>