zhuguifei
2026-03-10 2c1fd10c6fbabb8e9f0e9f07fe66fb36c008e883
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
<%@ 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">
 
var zjId =$("#EqpLubriBeanId").val();
/**请求所有角色名称 */
var roleId = '${bean.roleId}';
$.ajax( {
    type:'POST',
    url:'${pageContext.request.contextPath}/pms/eqMaintain/getRoleAll.do',// 跳转到 action
    data:null,
    asyn:false,
    dataType:'json',
    success:function(data) {
        data.unshift({name:"全部",id:""});
        $("#roleId").combobox({
            data:data,
            textField:'name',
            valueField:'id',
            onSelect: function () {
                $("#spePerson").attr("value",$("#roleId").combobox('getText'));
            }
        })
        $("#roleId").combobox('setValue',roleId);
    },error:function() {
        alert("异常!");
    }
});
</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">
            <fieldset>
                <table class="table" style="width:97%;">
                    <tr>
                        <th>一级名称</th>
                        <td>                                
                            <samp>${bean.categoryName }</samp>
                            <input type="hidden" name="categoryId"  value="${bean.categoryId }"/>    
                        </td>
                        <th>是否启用</th>
                        <td>
                               <c:if test="${bean.enable==1}">
                                <select name="enable" class="easyui-combobox fselect"
                                    data-options="panelHeight:'auto',width:176,editable:false,required:true"
                                    value="${bean.enable}">
                                        <option value="1" selected="selected">启用</option>
                                        <option value="0" >禁用</option>
                                </select>
                            </c:if>
                            <c:if test="${bean.enable==0}">
                                <select name="enable" class="easyui-combobox fselect"
                                    data-options="panelHeight:'auto',width:176,editable:false,required:true"
                                    value="${bean.enable}">
                                        <option value="1" >启用</option>
                                        <option value="0" selected="selected">禁用</option>
                                </select>
                            </c:if>
                        </td>
                    </tr>
                    <tr>
                        <th>润滑序号</th>                        
                        <td>
                            <input name="id" id="EqpLubriBeanId" type="hidden"  value="${bean.id}"/>
                            <input name="num" id="num" type="text" class="easyui-validatebox" data-options="width:176,editable:true,prompt:'请输入设备序号'"  value="${bean.num}"/>
                        
                        </td>
                        <th>设备部位</th>
                        <td>
                            <input id="equLocation" name="equLocation" type="text" class="easyui-validatebox"  data-options="width:176,editable:true,prompt:'请输入设备部位'" value="${bean.equLocation}"/>
                        </td>                        
                        
                    </tr>
                    <tr>
                        <th>润滑部位</th>
                        <td>
                            <input id="lubPosition" name="lubPosition" type="text" class="easyui-validatebox" data-options="panelHeight:'auto',width:175,editable:false,prompt:'请输入润滑部位'" value="${bean.lubPosition}"/>
                        </td>
                        <th>定点点数</th>
                        <td>
                            <input id="fixedPoints" name="fixedPoints" type="text" class="easyui-validatebox" data-options="panelHeight:'auto',width:175,editable:false,prompt:'请输入定点点数'" value="${bean.fixedPoints}"/>
                        </td>
                    </tr>
                    <tr>
                        <th>定质润滑油(脂)</th>
                        <td>
                            <input id="lubOil" name="lubOil" type="text" class="easyui-validatebox" data-options="width:176,editable:false,prompt:'请输入定质润滑油(脂)'" value="${bean.lubOil}"/>
                        </td>
                        <th>定法润滑方式</th>
                        <td>
                            <input id="lubMethod" name="lubMethod" type="text" class="easyui-validatebox" data-options="panelHeight:'auto',width:175,editable:false,prompt:'请输入定法润滑方式'" value="${bean.lubMethod}"/>
                        </td>
                    </tr>
                    <tr>
                        <th>标准用量</th>
                        <td>
                            <input id="changeOilDosage" name="changeOilDosage" type="text" class="easyui-validatebox" data-options="width:176,editable:false,prompt:'请输入标准用量'" value="${bean.changeOilDosage}"/>
                        </td>
                        <th>标准周期</th>
                        <td>
                            <input id="changeOilCycle" name="changeOilCycle" type="text" class="easyui-validatebox" data-options="panelHeight:'auto',width:175,editable:false,prompt:'请输入标准周期'" value="${bean.changeOilCycle}"/>
                        </td>
                    </tr>
                   <tr>
                        <th>定量数量</th>
                        <td>
                            <input id="quaQuantity" name="quaQuantity" type="text" class="easyui-validatebox" data-options="width:176,editable:false,prompt:'请选择定量数量'" value="${bean.quaQuantity}"/>
                        </td>
                        <th>定量单位</th>
                        <td>
                            <input id="quaUnit" name="quaUnit" type="text" class="easyui-validatebox" data-options="panelHeight:'auto',width:175,editable:false,prompt:'请选择定量单位'" value="${bean.quaUnit}"/>
                        </td>
                    </tr>
                    <tr>
                        <th>备注</th>
                        <td>
                            <input id="des" name="des" type="text" class="easyui-validatebox" data-options="required:false'" value="${bean.des}"/>
                        </td>
                        <%-- <th>最后修改人</th>
                        <td>
                            <input id="lastUpdateName" name="lastUpdateName" class="easyui-combobox" data-options="required:true" value="${bean.lastUpdateName}"/>
                        </td> --%>
                        <th>指定人</th>
                        <td >
                            <select id="roleId" name="roleId" class="easyui-combobox"   data-options="width:176,editable:false" >
                              <option value="">全选</option>
                              <option value="111111">操作工</option>
                              <option value="22222">润滑工</option>
                            </select>
                            <input type="hidden" id="spePerson" name="spePerson" value="${bean.spePerson}" class="easyui-validatebox"/>                        
                        </td>
                    </tr>                   
                    <!--  <tr>
                         <th>角色ID</th>
                        <td>
                            <input id="roleId" name="roleId" class="easyui-combobox" data-options="panelHeight:'auto',width:175,editable:false,required:true,prompt:'请选择角色ID'"/>
                        </td> 
                    </tr> -->
                    <tr>
                        
                        <th>班次</th>
                        <td>
                            <input id="shiftId" name="shiftId" class="easyui-combobox" value="${bean.shiftId }" data-options="panelHeight:'auto',width:175,editable:false,required:true,prompt:'请选择班次',
                                valueField: 'value',
                                textField: 'label',
                                data: [{
                                    label: '全部',
                                    value: 0
                                },{
                                    label: '早班',
                                    value: 1
                                },{
                                    label: '中班',
                                    value: 2
                                },{
                                    label: '晚班',
                                    value: 3
                                }]"
                                
                                />
                        </td> 
                    </tr> 
                </table>
            </fieldset>
        </form>
    </div>
</div>