<%@ 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">
|
$.loadComboboxDataQueryByEqpAll($("#eqp_id"),"ALLEQPS",false);
|
function loadToRhBuWei(rh){
|
$("#place").combobox('clear');
|
var equipmentId=rh.options[rh.selectedIndex].value;
|
if(equipmentId!=""&&equipmentId!=null){
|
rhbuwei(equipmentId);
|
}else{
|
$.messager.show('提示', "请选择设备类型!", 'error');
|
}
|
}
|
$('#blame_usr_name').searchbox({
|
searcher:function(value,name){
|
var dialog = parent.$.modalDialog({
|
title : '选择用户',
|
width : 430,
|
height : 420,
|
href : '${pageContext.request.contextPath}/pms/sys/user/userPicker.jsp',
|
buttons : [ {
|
text : '选择',
|
iconCls:'icon-standard-disk',
|
handler : function() {
|
var row = dialog.find("#userPickGrid").datagrid('getSelected');
|
if(row){
|
$("#blame_usr_id").attr("value",row.id);
|
$("#blame_usr_name").searchbox("setValue",row.name);
|
dialog.dialog('destroy');
|
}else{
|
$.messager.show('提示', '请选择人员', 'info');
|
}
|
}
|
} ]
|
});
|
}
|
});
|
|
function rhbuwei(equipmentId){
|
$("#place").empty();
|
$("#place").combobox({
|
url:'${pageContext.request.contextPath}/pms/overhaul/combobox.do?equipmentId='+equipmentId,
|
textField:'id',
|
valueField:'id',
|
multiple:true,//多选
|
required:true,
|
});
|
}
|
</script>
|
<div class="easyui-layout" data-options="fit:true,border:false">
|
<div data-options="region:'center',border:false" title="" style="overflow: auto;padding:5px">
|
<form id="form" method="post">
|
<fieldset>
|
<legend>设备检修项目基本信息</legend>
|
<table class="table" style="width: 100%;">
|
<tr>
|
<th>设备</th>
|
<td>
|
<!-- <input id="eqp_name" name="eqp_name" class="easyui-combobox" data-options="prompt: '请选择需要检修的设备',required:true"/>
|
<input id="eqp_id" name="eqp_id" style="display:none;" type="hidden"/> -->
|
<select id="eqp_id" name="eqp_id" style="width:140px;" onchange="loadToRhBuWei(this)" ,required="required" placeholder="asdasd">
|
<option value="" selected="selected">全部</option>
|
</select>
|
</td>
|
<th>责任人</th>
|
<td>
|
<input id="blame_usr_name" name="blame_usr_name" class="easyui-searchbox" data-options="prompt: '请选择检修责任人',required:true"/>
|
<input id="blame_usr_id" name="blame_usr_id" style="display:none;"/>
|
</td>
|
</tr>
|
<tr>
|
<th>检修日期</th>
|
<td>
|
<input name="date_plans" type="text" class="easyui-my97" datefmt="yyyy-MM-dd" style="width:140px" data-options="required:true,prompt:'请选择检修日期'"/>
|
</td>
|
<th>部位</th>
|
<td>
|
<input type="text" name="place" value="${bean.place}" data-options="required:true,prompt: '请输入设备部位'" style="width:169px;"/>
|
</td>
|
</tr>
|
<tr>
|
<th>项目内容</th>
|
<td colspan="3">
|
<textarea style="width:460px;height:30px;resize:none" name="contents"></textarea>
|
</td>
|
</tr>
|
<tr>
|
<th>解决措施</th>
|
<td colspan="3">
|
<textarea style="width:460px;height:30px;resize:none" name="solution"></textarea>
|
</td>
|
</tr>
|
<tr>
|
<th>检修后质量注意事项</th>
|
<td colspan="3">
|
<textarea style="width:460px;height:30px;resize:none" name="note"></textarea>
|
</td>
|
</tr>
|
<tr>
|
<th>复查情况</th>
|
<td colspan="3">
|
<textarea style="width:460px;height:30px;resize:none" name="review"></textarea>
|
</td>
|
</tr>
|
<tr>
|
<th>后期跟进</th>
|
<td colspan="3">
|
<textarea style="width:460px;height:30px;resize:none" name="followup"></textarea>
|
</td>
|
</tr>
|
<tr>
|
<th>备注</th>
|
<td colspan="3">
|
<textarea style="width:460px;height:30px;resize:none" name="remark"></textarea>
|
</td>
|
</tr>
|
</table>
|
</fieldset>
|
</form>
|
</div>
|
</div>
|