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
<%@ 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",true); */
    /* $.loadComboboxData($("#eqpId"),"ALLEQPS",true); */
});
 
 
$.ajax( {
    type:'POST',
    url:'${pageContext.request.contextPath}/pms/stopmaintain/getEqp.do',// 跳转到 action
    data:{"type":"${eqpStopMaintainBean.eqptype}"},
    asyn:false,
    dataType:'json',
    success:function(data) {
        $("#eqpId1").html("");
        var str="";
        var dataObj=data;
        for(var i=0;i<dataObj.length;i++){
            if (dataObj[i].id == '${eqpStopMaintainBean.eqpId}') {
                str=str+"<option value='"+dataObj[i].id+"' selected>"+dataObj[i].name+"</option>";
                $("#equipment").attr("value",dataObj[i].name);
            } else {
               str=str+"<option value='"+dataObj[i].id+"'>"+dataObj[i].name+"</option>";
            }
        }
        $("#eqpId1").html(str);
    },error:function() {
        alert("异常!");
    }
});
 
 
$.ajax( {
    type:'POST',
    url:'${pageContext.request.contextPath}/pms/stopmaintain/getEqpty.do',// 跳转到 action
    data:null,
    asyn:false,
    dataType:'json',
    success:function(data) {
        $("#teamId1").html("");
        var str="";
        var dataObj=data;
        for(var i=0;i<dataObj.length;i++){
            if (dataObj[i].id == '${eqpStopMaintainBean.teamId}') {
                str=str+"<option value='"+dataObj[i].id+"' selected>"+dataObj[i].name+"</option>";
                $("#equipment").attr("value",dataObj[i].name);
            } else {
               str=str+"<option value='"+dataObj[i].id+"'>"+dataObj[i].name+"</option>";
            }
        }
        $("#teamId1").html(str);
    },error:function() {
        alert("异常!");
    }
});
 
 
 
 
function  spePersonVal(){
    var eqpId=$("#eqpId1").find("option:selected").text();
    $("#eqpId").attr("value",eqpId);
 
}
 
function  spePersonVal1(){
    var teamId=$("#teamId1").find("option:selected").text();
    $("#teamId").attr("value",teamId);
 
}
 
 
</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>
                <legend>编辑内容</legend>
                <table class="table" style="width: 100%;">
                    <tr>
                    <tr>
                        <th>设备类型</th>
                        <td>
                            ${eqpStopMaintainBean.free2}
                        </td>
                        <input name="eqptype" type="hidden" value="${eqpStopMaintainBean.eqptype}"/>
 
                    </tr>
                    <th>日期</th>
                        <td>
                            <input name="id" type="hidden" value="${eqpStopMaintainBean.id}"/>
                            <input name="actualDate" type="text" class="easyui-my97" datefmt="yyyy-MM-dd" style="width:130px" value="${eqpStopMaintainBean.actualDate}"/>
                        </td>
                        </tr>
                    <tr>
                        <th>班组</th>
                        <td>
                             <select id="teamId1" name="teaid" onchange="spePersonVal1()"  data-options="panelHeight:'auto',width:130,editable:false,required:true" >
                     <input type="hidden" id="teamId" name="teamId" value="${eqpStopMaintainBean.teamId}" class="easyui-validatebox"/>
 
                    </select>
                          </td>
                    </tr>
 
                    <tr>
                        <th>机台</th>
                        <td>
                            <select id="eqpId1" name="eqd"  onchange="spePersonVal()"   data-options="panelHeight:'auto',width:130,editable:false,required:true" ></select>
                        <input type="hidden" id="eqpId" name="eqpId" value="${eqpStopMaintainBean.eqpId}" class="easyui-validatebox"/>
 
                        </td>
                    </tr>
 
                    <tr>
                        <th>${eqpStopMaintainBean.content}(分钟)</th>
                        <td>
                            <input name="num" class="easyui-numberspinner" precision="2"
                            required="required"
                            value="${eqpStopMaintainBean.num}"/>
                        </td>
                        <input name="content" type="hidden" value="${eqpStopMaintainBean.content}"/>
 
                    </tr>
                        <tr>
                        <th>备注</th>
                        <td>
                            <input  name="free" data-options="panelHeight:'auto',width:130,editable:false,required:true" value="${eqpStopMaintainBean.free}">
                        </td>
                    </tr>
                    <tr>
                        <th>启用状态</th>
                        <td>
                            <select name="free1" class="easyui-combobox" data-options="panelHeight:'100',width:130,editable:false,required:true">
                                 <option value="1" <c:if test="${eqpStopMaintainBean.free1=='1'}">selected="selected"</c:if>>启用</option>
                                 <option value="0" <c:if test="${eqpStopMaintainBean.free1=='0'}">selected="selected"</c:if>>禁用</option>
                            </select>
                        </td>
                    </tr>
                </table>
            </fieldset>
        </form>
    </div>
</div>