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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
<%@ 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($("#teamId"),"TEAM",false);
        // $.loadComboboxData($("#eqpId"),"ALLROLLERS",false);
 
 
       initTeam();
       initEqpType();
 
        $("#eqptype").combobox({
            onSelect: function () {
                console.info($("#eqptype").combobox('getText'));
                var selectText = $("#eqptype").combobox('getText');
                if(selectText=="卷接机组"){
                    initEqp("ALLROLLERS");
                    $('#tscore').show();
 
                    $('#tmassDefect').show();
 
                    $('#tnoInnerLine').hide();
                    $('#tjkDefect').hide();
                } else if(selectText=="成型机组"){
                    initEqp("ALLFILTERS");
                    $('#tscore').show();
                    $('#tmassDefect').show();
                    $('#tnoInnerLine').show();
                    $('#tjkDefect').show();
 
 
                }
            }
        })
 
        var eqptype = $("#eqptype").combobox('getText');
 
        if(eqptype == '卷接机组'){
            initEqp("ALLROLLERS");
            $('#tscore').show();
 
            $('#tmassDefect').show();
 
            $('#tnoInnerLine').hide();
            $('#tjkDefect').hide();
        }else if(eqptype == '成型机组'){
            initEqp("ALLFILTERS");
            $('#tscore').show();
            $('#tmassDefect').show();
            $('#tnoInnerLine').show();
            $('#tjkDefect').show();
 
 
        }
    /*    $("#eqptype").on('change',function(){
            var selectText = $(this).find('option:selected').text();
            console.log(selectText);
 
            if(selectText=="卷接机组"){
                $.loadComboboxData($("#eqpId"),"ALLROLLERS",false);
                $('#tscore').show();
                $('#tprocessFault').show();
                $('#tmassDefect').show();
 
                $('#tnoInnerLine').hide();
                $('#tjkDefect').hide();
                $("#noInnerLine").val(null);
                $("#jkDefect").val(null);
 
            }else if(selectText=="成型机组"){
                $.loadComboboxData($("#eqpId"),"ALLFILTERS",false);
 
                $('#tscore').show();
                $('#tmassDefect').show();
                $('#tnoInnerLine').show();
                $('#tjkDefect').show();
 
                $('#tprocessFault').hide();
                $("#processFault").val(null);
 
 
            }
            
        })*/
    });
 
 
    function initTeam(){
        var url=$.basePath+"/plugin/combobox/load.do";
        url+=("?type="+"TEAM"+"&setAll="+false);
        $("#teamId").combobox({
            url:url,
            textField:'name',
            valueField:'id',
            required:false,
            onLoadSuccess: function(data){
                $('#teamId').combobox('setValue', '${wage.team}');
            }
        });
    }
 
    function initEqpType(){
 
        $("#eqptype").combobox({
            textField:'name',
            valueField:'id',
            data: [{
                name: '卷接机组',
                id: '4028998349c6880e0149c688e9fb0001'
            },{
                name: '成型机组',
                id: '4028998349c6880e0149c688e9fb0003'
            } ],
            onLoadSuccess: function(data){
                $('#eqptype').combobox('setValue','${wage.eqpType}');
            }
        });
    }
 
    function initEqp(type){
        var url2=$.basePath+"/plugin/combobox/load.do";
        url2+=("?type="+ type+"&setAll="+false);
        $("#eqpId").combobox({
            url:url2,
            textField:'name',
            valueField:'id',
            required:false,
            onLoadSuccess: function(data){
                $('#eqpId').combobox('setValue','${wage.eqp}');
            }
        });
    }
 
 
</script>
<div class="easyui-layout" data-options="fit:true,border:false">
    <div data-options="region:'center',border:false" title="" style="overflow: hidden;padding:5px; height:1000px;">
        <form id="form" method="post">
            <fieldset>
                <!-- <legend>添加</legend> -->
                <table class="table" style="width: 100%;">
                    <tr>
                        <th>日期</th>
                        <td>
                            <input name="id" type="hidden" value="${wage.id}"/>
                            <input name="dat" type="text" value="${wage.dat}" class="easyui-my97" datefmt="yyyy-MM-dd" style="width:130px"/>
                        </td>
                    </tr>
                    <tr>
                        <th><span class="label">班组</span></th>
                        <td>
                            <select id="teamId"  name="team" class="easyui-combobox" data-options="panelHeight:'auto',width:130,editable:false,required:true">
                            </select>
                        </td>
                    </tr>
                    <tr>
                    <tr>
                        <th><span class="label">设备类型:</span></th>
                    <td>
                        <select id="eqptype" name="eqpType" disabled="true" class="easyui-combobox" data-options="panelHeight:'100',width:130,editable:false,required:true">
                        </select>
                    </td>
                        
                    </tr>
                    <tr>
                        <th><span class="label">机台</span></th>
                        <td>
                            <select id="eqpId" name="eqp" class="easyui-combobox" data-options="panelHeight:'100',width:130,editable:false,required:true">
                            </select>
                        </td>
                    </tr>
                    <tr id="tscore">
                        <th>检验得分奖罚</th>
                        <td>
                            <input id="score" name="score"  value="${wage.score}" type="text" style="width:130px" class="easyui-validatebox" />
                        </td>
                    </tr>
                    <tr id="tprocessFault">
                        <th>工序过失奖罚</th>
                        <td>
                            <input id="processFault"  value="${wage.processFault}" name="processFault" type="text" style="width:130px" class="easyui-validatebox" />
                        </td>
                    </tr>
                    <tr id="tmassA">
                        <th>A类质量缺陷</th>
                        <td>
                            <input id="massA" value="${wage.massA}" name="massA" type="text" style="width:130px" class="easyui-validatebox"  />
                        </td>
                    </tr>
                    <tr id="tmassB">
                        <th>B类质量缺陷</th>
                        <td>
                            <input id="massB" value="${wage.massB}" name="massB" type="text" style="width:130px" class="easyui-validatebox"  />
                        </td>
                    </tr>
                    <tr id="tmassDefect">
                        <th>C/D类质量缺陷</th>
                        <td>
                            <input id="massDefect" value="${wage.massDefect}" name="massDefect" type="text" style="width:130px" class="easyui-validatebox"  />
                        </td>
                    </tr>
                    <%--<tr id="tnoInnerLine">
                        <th>无内粘线</th>
                        <td>
                            <input id="noInnerLine" value="${wage.noInnerLine}" name="noInnerLine" type="text" style="width:130px" class="easyui-validatebox"  />
                        </td>
                    </tr>
                    <tr id="tjkDefect">
                        <th>胶孔缺陷</th>
                        <td>
                            <input id="jkDefect" value="${wage.jkDefect}" name="jkDefect" type="text" style="width:130px" class="easyui-validatebox"/>
                        </td>
                    </tr>--%>
 
                </table>
            </fieldset>
        </form>
    </div>
</div>