296 lines
17 KiB
Plaintext
296 lines
17 KiB
Plaintext
<%@ page language="java" pageEncoding="UTF-8"%>
|
|
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
|
|
<%String contextPath = request.getContextPath();%>
|
|
<%String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath();%>
|
|
<%String serverPath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort();%>
|
|
<style type="text/css">
|
|
.select2-container .select2-selection--single{
|
|
height:34px;
|
|
line-height: 34px;
|
|
}
|
|
.select2-selection__arrow{
|
|
margin-top:3px;
|
|
}
|
|
.div-row{
|
|
margin-left:3px;
|
|
margin-right:3px;
|
|
}
|
|
.div-border{
|
|
border-style:solid;
|
|
border-width:1px;
|
|
text-align:center;
|
|
}
|
|
.right-border{
|
|
border-right:none;
|
|
}
|
|
.top-right-border{
|
|
border-top:none;
|
|
border-right:none;
|
|
}
|
|
.top-border{
|
|
border-top:none;
|
|
|
|
}
|
|
</style>
|
|
<script type="text/javascript">
|
|
var printpage = function (myDiv){
|
|
var printHtml = document.getElementById(myDiv).innerHTML;
|
|
var wind = window.open("", "newwin", "width=1550,height=565,top=80,left=80,toolbar=no,scrollbars=yes,menubar=no");
|
|
var ss = ".coversheet-pageBoder{"
|
|
+" padding: 10px;"
|
|
+" margin-top: 10px;"
|
|
+" border: 1px solid gray;"
|
|
+" page-break-after: always;"
|
|
+" border-radius: 5px;"
|
|
+" box-shadow: 0 1px 2px 1px rgba(0,0,0,.08), 0 3px 6px rgba(0,0,0,.08);"
|
|
+"}"
|
|
+".noprint{display: none;}"
|
|
+".select2-container .select2-selection--single{ "
|
|
+" height:34px; "
|
|
+" line-height: 34px; "
|
|
+" }"
|
|
+" .select2-selection__arrow{"
|
|
+" margin-top:3px;"
|
|
+" } "
|
|
+" .div-row{"
|
|
+" margin-left:3px;"
|
|
+" margin-right:3px;"
|
|
+" }"
|
|
+" .div-border{"
|
|
+" border-style:solid;"
|
|
+" border-width:1px;"
|
|
+" text-align:center;"
|
|
+" }"
|
|
+" .right-border{"
|
|
+" border-right:none;"
|
|
+" }"
|
|
+" .top-right-border{"
|
|
+" border-top:none;"
|
|
+" border-right:none;"
|
|
+" }"
|
|
+" .top-border{"
|
|
+" border-top:none;"
|
|
+" }";
|
|
|
|
//for Chrome Firefox Opera Safari
|
|
|
|
//wind.document.body.innerHTML = printHtml;
|
|
var link = document.createElement('link');
|
|
link.type = 'text/css';
|
|
link.rel = 'stylesheet';
|
|
link.href = '<%=serverPath%><%=contextPath%>/plugins/bootstrap-ext/dist/bootstrap.min.css';
|
|
wind.document.head.appendChild(link);
|
|
|
|
var style = document.createElement('style');
|
|
style.type = 'text/css';
|
|
style.rel = 'stylesheet';
|
|
style.appendChild(document.createTextNode(ss));
|
|
wind.document.head.appendChild(style);
|
|
|
|
wind.document.body.innerHTML = printHtml;
|
|
console.log(wind.document);
|
|
wind.print();
|
|
wind.close();
|
|
};
|
|
$(function(){
|
|
|
|
})
|
|
|
|
|
|
|
|
</script>
|
|
<div class="modal fade" id="subRepairModal" aria-labelledby="printSheet" aria-hidden="true" data-backdrop="static" data-keyboard="false">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
<span aria-hidden="true">×</span></button>
|
|
<h4 class="modal-title">查看维修记录</h4>
|
|
</div>
|
|
<div class="modal-body" >
|
|
<!-- 新增界面formid强制为subForm -->
|
|
<form class="form-horizontal" id="subForm">
|
|
<!-- 界面提醒div强制id为alertDiv -->
|
|
<div id="alertDiv"></div>
|
|
<h3 class="modal-title" style="text-align:center;padding-bottom :3%;">${mDetail.company.sname}维修单</h3>
|
|
<table border="2" style="border: solid 1px" cellspacing="0" width="100%">
|
|
<tr>
|
|
<td style="border-right: solid 1px;border-bottom: solid 1px;height:30px;line-height:30px;text-align:center" >填报日期</td>
|
|
<td style="border-right: solid 1px;border-bottom: solid 1px;line-height:30px;text-align:center">${mDetail.insdt.substring(0,10)}</td>
|
|
<td style="border-right: solid 1px;border-bottom: solid 1px;height:30px;line-height:30px;text-align:center">序号</td>
|
|
<td style="border-bottom: solid 1px;height:30px;line-height:15px;text-align:center">${mDetail.detailNumber}</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="border-right: solid 1px;border-bottom: solid 1px;height:40px;line-height:40px;text-align:center">填报部门</td>
|
|
<td style="border-right: solid 1px;border-bottom: solid 1px;height:40px;line-height:40px;text-align:center">${mDetail.company.sname}</td>
|
|
<td style="border-right: solid 1px;border-bottom: solid 1px;height:40px;line-height:40px;text-align:center">工作任务地</td>
|
|
<td style="border-bottom: solid 1px;height:40px;line-height:40px;text-align:center">${mDetail.processSection.name}</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="border-right: solid 1px;border-bottom: solid 1px;height:60px;line-height:30px;text-align:center">设备编号</td>
|
|
<td style="border-right: solid 1px;border-bottom: solid 1px;height:60px;line-height:30px;text-align:center">${mDetail.equipmentCardIds}</td>
|
|
<td style="border-right: solid 1px;border-bottom: solid 1px;height:60px;line-height:60px;text-align:center">设备名称</td>
|
|
<td style="border-bottom: solid 1px;height:60px;line-height:30px;text-align:center">${mDetail.equipmentNames}</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="border-right: solid 1px;border-bottom: solid 1px;height:30px;line-height:30px;text-align:center" >开始时间</td>
|
|
<td style="border-right: solid 1px;border-bottom: solid 1px;line-height:30px;text-align:center">${mDetail.insdt.substring(0,19)}</td>
|
|
<td style="border-right: solid 1px;border-bottom: solid 1px;height:30px;line-height:30px;text-align:center">结束时间</td>
|
|
<td style="border-bottom: solid 1px;height:30px;line-height:15px;text-align:center">${mDetail.actualFinishDate.substring(0,19)}</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="border-right: solid 1px;border-bottom: solid 1px;height:60px;line-height:30px;text-align:center">维修内容</td>
|
|
<td colspan="3" style="border-bottom: solid 1px;height:60px;line-height:30px;text-align:center">${mDetail.problemcontent}</td>
|
|
</tr>
|
|
<tr >
|
|
<td style="border-right: solid 1px;border-bottom: solid 1px;height:30px;line-height:30px;text-align:center">维修人员</td>
|
|
<td colspan="3" style="border-bottom: solid 1px;height:30px;line-height:30px;text-align:center">${mDetail._solverName}</td>
|
|
</tr>
|
|
<tr >
|
|
<td style="border-right: solid 1px;border-bottom: solid 1px;height:60px;line-height:60px;text-align:center">设备专责意见</td>
|
|
<td colspan="3" style="border-bottom: solid 1px;height:60px;line-height:60px;text-align:center">${mDetail.equipmentOpinion}</td>
|
|
</tr>
|
|
<c:if test="${not empty equipmentTeam.id}">
|
|
<tr >
|
|
<td style="border-right: solid 1px;border-bottom: solid 1px;text-align:center" >工作记录(维修班填写)</td>
|
|
<td style="border-bottom: solid 1px;" colspan="3" border="0">
|
|
<table cellspacing="0" width="100%" height="100%">
|
|
<tr >
|
|
<td style="border-bottom:solid 1px;border-right:solid 1px;height:30px;width:120px;line-height:30px;text-align:center">维修人</td>
|
|
<td style="border-bottom:solid 1px;border-right:solid 1px;height:30px;line-height:30px;text-align:center">${equipmentTeam.insuserName}</td>
|
|
<td style="border-bottom:solid 1px;border-right:solid 1px;height:30px;width:120px;line-height:30px;text-align:center">维修日期</td>
|
|
<td style="border-bottom:solid 1px;height:30px;line-height:30px;text-align:center">${equipmentTeam.handledt.substring(0,10)}</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="border-bottom:solid 1px;border-right:solid 1px;height:60px;width:120px;line-height:60px;text-align:center">维修情况</td>
|
|
<td colspan="3" style="border-bottom:solid 1px;height:60px;line-height:30px;text-align:center">${equipmentTeam.handledetail}</td>
|
|
</tr>
|
|
<tr >
|
|
<td style="height:60px;line-height:60px;text-align:center;border-right:solid 1px;width:120px;">维修材料</td>
|
|
<td colspan="3" style="height:60px;line-height:30px;text-align:center">${equipmentTeam.detailsupplement}</td>
|
|
</tr>
|
|
</table>
|
|
|
|
</td>
|
|
</div>
|
|
</c:if>
|
|
<c:if test="${not empty mDetail.baseOpinion}">
|
|
<tr >
|
|
<td style="border-right: solid 1px;border-bottom: solid 1px;height:30px;line-height:30px;text-align:center;">基层领导意见</td>
|
|
<td colspan="3" style="border-bottom: solid 1px;height:30px;line-height:30px;text-align:center;">${mDetail.baseOpinion}</td>
|
|
</tr>
|
|
</c:if>
|
|
<c:if test="${not empty mDetail.productOpinion}">
|
|
<tr >
|
|
<td style="border-right: solid 1px;border-bottom: solid 1px;height:30px;line-height:30px;text-align:center;">生产运营中心</td>
|
|
<td colspan="3" style="border-bottom: solid 1px;height:30px;line-height:30px;text-align:center;">${mDetail.productOpinion}</td>
|
|
</tr>
|
|
</c:if>
|
|
<c:if test="${not empty mDetail.middleOpinion}">
|
|
<tr >
|
|
<td style="border-right: solid 1px;border-bottom: solid 1px;height:30px;line-height:30px;text-align:center;">中层领导意见</td>
|
|
<td colspan="3" style="border-bottom: solid 1px;height:30px;line-height:30px;text-align:center;">${mDetail.middleOpinion}</td>
|
|
</tr>
|
|
</c:if>
|
|
<c:if test="${not empty equipmentOffice.id}">
|
|
<tr >
|
|
<td style="border-right: solid 1px;border-bottom: solid 1px;text-align:center;" >工作记录(设备办填写)</td>
|
|
<td colspan="3" style="border-bottom: solid 1px;" border="0" >
|
|
<table style="border: none;" cellspacing="0" width="100%" height="100%">
|
|
<tr >
|
|
<td style="border-bottom:solid 1px;border-right:solid 1px;height:30px;width:120px;line-height:30px;text-align:center;">维修人</td>
|
|
<td style="border-bottom:solid 1px;border-right:solid 1px;height:30px;line-height:30px;text-align:center;">${equipmentOffice.insuserName}</td>
|
|
<td style="border-bottom:solid 1px;border-right:solid 1px;height:30px;width:120px;line-height:30px;text-align:center;">维修日期</td>
|
|
<td style="border-bottom:solid 1px;height:30px;line-height:30px;text-align:center;">${equipmentOffice.handledt.substring(0,10)}</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="border-bottom:solid 1px;border-right:solid 1px;height:60px;width:120px;line-height:60px;text-align:center;">维修情况</div>
|
|
<td colspan="3" style="border-bottom:solid 1px;height:60px;line-height:30px;text-align:center;">${equipmentOffice.handledetail}</td>
|
|
</tr>
|
|
<tr >
|
|
<td style="border-right:solid 1px;height:60px;line-height:60px;text-align:center;width:120px;">维修材料</td>
|
|
<td colspan="3" style="height:60px;line-height:30px;text-align:center;">${equipmentOffice.detailsupplement}</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</c:if>
|
|
<c:if test="${not empty outsource.id}">
|
|
<tr >
|
|
<td style="border-right: solid 1px;border-bottom: solid 1px;text-align:center;">工作记录(外包填写)</td>
|
|
<td style="border-bottom: solid 1px;" colspan="3" border="0">
|
|
<table style="border: none;" cellspacing="0" width="100%" height="100%">
|
|
<tr>
|
|
<td style="border-bottom:solid 1px;border-right:solid 1px;height:30px;width:120px;line-height:30px;text-align:center;">维修人</td>
|
|
<td style="border-bottom:solid 1px;border-right:solid 1px;height:30px;line-height:30px;text-align:center;">${outsource.insuserName}</td>
|
|
<td style="border-bottom:solid 1px;border-right:solid 1px;height:30px;width:120px;line-height:30px;text-align:center;">维修日期</td>
|
|
<td style="border-bottom:solid 1px;height:30px;line-height:30px;text-align:center;">${outsource.handledt.substring(0,10)}</td>
|
|
</tr>
|
|
<tr >
|
|
<td style="border-bottom:solid 1px;border-right:solid 1px;height:60px;width:120px;line-height:60px;text-align:center;">维修情况</td>
|
|
<td colspan="3" style="border-bottom:solid 1px;height:60px;line-height:30px;text-align:center;">${outsource.handledetail}</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="border-right:solid 1px;height:60px;line-height:60px;width:120px;text-align:center;">维修材料</td>
|
|
<td colspan="3" style="height:60px;line-height:30px;text-align:center;">${outsource.detailsupplement}</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</c:if>
|
|
<tr >
|
|
<td style="text-align:center;border-right: solid 1px;">验收意见</td>
|
|
<td colspan="3">
|
|
<table style="border: none;" cellspacing="0" width="100%" height="100%">
|
|
<tr>
|
|
<td style="border-bottom:solid 1px;border-right:solid 1px;height:45px;width:120px;line-height:45px;text-align:center;">维修质量验收</td>
|
|
<td style="border-bottom:solid 1px;height:45px;text-align:center;">${mDetail.qualityOpinion}</td>
|
|
</tr>
|
|
<tr >
|
|
<td style="border-right:solid 1px;height:45px;line-height:45px;width:120px;text-align:center;">使用材料数量验收</td>
|
|
<td style="height:45px;text-align:center;">${mDetail.materialOpinion}</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<c:if test="${outStockRecordDetailConsumeSize!='0'}">
|
|
<tr >
|
|
<td style="text-align:center;border-top: solid 1px;border-right: solid 1px;">消耗品</td>
|
|
<td colspan="3">
|
|
<table style="border:none;" cellspacing="0" width="100%" height="100%">
|
|
|
|
<tr>
|
|
<td style="border-top: solid 1px;border-right: solid 1px;height:45px;line-height:45px;text-align:center;">物品名称</td>
|
|
<td style="border-top: solid 1px;border-right: solid 1px;height:45px;line-height:45px;text-align:center;">规格型号</td>
|
|
<td style="border-top: solid 1px;border-right: solid 1px;height:45px;line-height:45px;text-align:center;">品牌</td>
|
|
<td style="border-top: solid 1px;border-right: solid 1px;height:45px;line-height:45px;text-align:center;">单位</td>
|
|
<td style="border-top: solid 1px;height:45px;line-height:45px;text-align:center;">消耗数量</td>
|
|
</tr>
|
|
|
|
<c:forEach var="mlist" items="${outStockRecordDetailConsume}">
|
|
<tr>
|
|
<td style="border-top: solid 1px;border-right: solid 1px;height:45px;line-height:45px;text-align:center;">${mlist.goods.name}</td>
|
|
<td style="border-top: solid 1px;border-right: solid 1px;height:45px;line-height:45px;text-align:center;">${mlist.goods.model}</td>
|
|
<td style="border-top: solid 1px;border-right: solid 1px;height:45px;line-height:45px;text-align:center;">${mlist.goods.brand}</td>
|
|
<td style="border-top: solid 1px;border-right: solid 1px;height:45px;line-height:45px;text-align:center;">${mlist.goods.unit}</td>
|
|
<td style="border-top: solid 1px;height:45px;line-height:45px;text-align:center;">${mlist.consumeNumber}</td>
|
|
</tr>
|
|
</c:forEach>
|
|
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</c:if>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default" onclick=" printpage('subForm');"><i class="fa fa-print"></i>打印</button>
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
|
|
</div>
|
|
</div>
|
|
<!-- /.modal-content -->
|
|
</div>
|
|
<!-- /.modal-dialog -->
|
|
</div>
|