|
|
<%@page language="java" contentType="text/html;charset=utf-8" %>
|
|
|
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
|
|
|
|
|
<%
|
|
|
String path = request.getContextPath();
|
|
|
String basePath = request.getScheme() + "://"
|
|
|
+ request.getServerName() + ":" + request.getServerPort()
|
|
|
+ path + "/";
|
|
|
%>
|
|
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
|
<html lang="en">
|
|
|
<head>
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
|
|
|
|
<title>工单</title>
|
|
|
<link rel="stylesheet" href="<%=basePath %>css/unicorn.main.css"/>
|
|
|
<link rel="stylesheet" href="<%=basePath %>css/unicorn.grey.css"/>
|
|
|
<link rel="stylesheet" href="<%=basePath %>css/bootstrap.min.css"/>
|
|
|
<link href="<%=basePath%>css/style.default.css" rel="stylesheet">
|
|
|
<link href="<%=basePath%>css/morris.css" rel="stylesheet">
|
|
|
<link href="<%=basePath%>css/select2.css" rel="stylesheet"/>
|
|
|
<script>
|
|
|
var contextPath = '<%=basePath %>';
|
|
|
</script>
|
|
|
</head>
|
|
|
|
|
|
<body style="background-color: #444444;font-size: 14px">
|
|
|
|
|
|
<!-- 头部 -->
|
|
|
<div id="head">
|
|
|
</div>
|
|
|
<div id="content" style="background-color: white">
|
|
|
<div id="breadcrumb">
|
|
|
<a href="#" title="Go to Home" class="tip-bottom"><i
|
|
|
class="icon-home"></i> Home</a> <a href="#" class="current">工单详情</a>
|
|
|
</div>
|
|
|
<div>
|
|
|
<form class="form-horizontal form-bordered">
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-6 control-label"><strong>工单ID: </strong></label>
|
|
|
|
|
|
<div class="col-sm-8">
|
|
|
<input type="text" class="form-control" value=" ${workJob.id}"
|
|
|
style='border-left:0px;border-top:0px;border-right:0px;border-bottom:1px '
|
|
|
readonly="readonly"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-6 control-label"><strong>发布时间: </strong></label>
|
|
|
|
|
|
<div class="col-sm-8">
|
|
|
<input type="text" class="form-control" value=" ${workJob.createTime}"
|
|
|
style='border-left:0px;border-top:0px;border-right:0px;border-bottom:1px '
|
|
|
readonly="readonly"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-6 control-label"><strong>主题: </strong></label>
|
|
|
|
|
|
<div class="col-sm-8">
|
|
|
<input type="text" class="form-control" value=" ${workJob.title}"
|
|
|
style='border-left:0px;border-top:0px;border-right:0px;border-bottom:1px '
|
|
|
readonly="readonly"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-6 control-label"><strong>内容: </strong></label>
|
|
|
|
|
|
<div class="col-sm-8">
|
|
|
<textarea id="autoResizeTA" class="form-control" rows="10"
|
|
|
readonly="readonly">${workJob.text}</textarea>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-6 control-label"><strong>审批过程: </strong></label>
|
|
|
|
|
|
<div class="col-sm-8">
|
|
|
<table class="table table-striped mb30" style="width: 778px">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th>职责</th>
|
|
|
<th>操作人</th>
|
|
|
<th>操作</th>
|
|
|
<th>时间</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
<c:forEach items="${workJob.handleList }" var="handledJob">
|
|
|
<tr>
|
|
|
<td align="center">${handledJob.handlerRole}</td>
|
|
|
<td align="center">${handledJob.handler}</td>
|
|
|
<td align="center">${handledJob.handlecType}</td>
|
|
|
<td align="center">${handledJob.createTime}</td>
|
|
|
</tr>
|
|
|
</c:forEach>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<c:if test="${count > 0}">
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-6 control-label"><strong>操作: </strong></label>
|
|
|
|
|
|
<div class="col-sm-8">
|
|
|
<c:choose>
|
|
|
<c:when test="${pendingJob.status == 0}">
|
|
|
<button type="button" class="btn btn-success" onclick="editWork(${pendingJob.id},'${pendingJob.type}',2)">发起</button>
|
|
|
</c:when>
|
|
|
<c:otherwise>
|
|
|
<button type="button" class="btn btn-success" onclick="editWork(${pendingJob.id},'${pendingJob.type}',2)">通过</button>
|
|
|
<button type="button" class="btn btn-primary" onclick="editWork(${pendingJob.id},'${pendingJob.type}',3)">拒绝</button>
|
|
|
</c:otherwise>
|
|
|
</c:choose>
|
|
|
<button type="button" class="btn btn-danger" onclick="editWork(${pendingJob.id},'${pendingJob.type}',-1)">关闭</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</c:if>
|
|
|
<!-- form-group -->
|
|
|
</form>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<script src="<%=basePath%>js/jquery-2.1.4.min.js"></script>
|
|
|
<script src="<%=basePath%>js/bootstrap.min.js"></script>
|
|
|
<script src="<%=basePath%>js/select2.min.js"></script>
|
|
|
<script src="<%=basePath%>js/custom.js"></script>
|
|
|
<script src="<%=basePath %>/js/unicorn.js"></script>
|
|
|
<script src="<%=basePath %>script/common/genarate_left_panel.js"></script>
|
|
|
<script type="text/javascript">
|
|
|
$("#li_worksystem").addClass("active open");
|
|
|
|
|
|
/**
|
|
|
* 工单操作
|
|
|
* @param id
|
|
|
* @param handleType
|
|
|
*/
|
|
|
function editWork(id,type, handleType) {
|
|
|
var param = {
|
|
|
id: id,
|
|
|
type:type,
|
|
|
handleType: handleType
|
|
|
};
|
|
|
|
|
|
$.ajax({
|
|
|
url: contextPath + "/workSystem/handleJobsJobs",
|
|
|
type: 'post',
|
|
|
data: JSON.stringify(param),
|
|
|
dataType: "json",
|
|
|
contentType: "application/json",
|
|
|
success: function (data) {
|
|
|
if (data != 1) {
|
|
|
localAlert('处理结果', "处理失败");
|
|
|
} else {
|
|
|
window.location.href = contextPath + "/workSystem/toHandledWork";
|
|
|
}
|
|
|
},
|
|
|
error: function (e) {
|
|
|
console.log(e);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
</script>
|
|
|
</body>
|
|
|
</html> |
...
|
...
|
|