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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<%@ 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);
        $.loadComboboxData($("#eqp"),"ALLROLLERS",false);
        var today = new Date();
        var month=today.getMonth()+1;
        if(month<10){month=("0"+month);}
        var date=today.getFullYear()+"-"+month+"-"+today.getDate();
        $("#date").val(date);
        $("#eqpType").combobox({
            onSelect: function () {
                var myOptValue = $("#eqpType").combobox("getValue") ;
                $("#eqp").combobox("clear");
                if( myOptValue != null && myOptValue==1){
                    $.loadComboboxData($("#eqp"),"ALLROLLERS",false);
                }else if(myOptValue != null && myOptValue==0){
                    $.loadComboboxData($("#eqp"),"ALLFILTERS",false);
                }
            }
        })
 
        $("#eqp").combobox({
            onSelect: function () {
                searchmat();
            }
        })
        $("#shift").combobox({
            onSelect: function () {
                searchmat();
            }
        })
        $("#date").my97({
            onChange: function () {
                $("#shift").combobox("clear");
                $("#eqpType").combobox("clear");
                $("#eqp").combobox({data: []});
                $('#mat').combobox({data: []});
            }
        })
 
    })
    function searchmat(){
        console.info(123);
        var equipment = $("#eqp").combobox("getValue") ;
        var date = $("#date").combobox("getValue") ;
        var shift =  $("#shift").combobox("getValue") ;
        if(equipment!=null&&equipment!=""&&date!=null&&date!=""&&shift!=null&&shift!=""){
            $("#mat").combobox("clear");
            $.post('${pageContext.request.contextPath}/pms/onlineCheck/getorder.do',
                    {
                        "equipment" :equipment,
                        "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="eqpType" name="type" class="easyui-combobox" data-options="panelHeight:'auto',width:130,editable:false">
                                <option value = 1>卷接</option>
                                <option value = 0>成型</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th>机台</th>
                        <td>
                            <select id="eqp" name="eqp" 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 =3 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>