209 lines
9.8 KiB
Plaintext
209 lines
9.8 KiB
Plaintext
|
|
<%@ page language="java" pageEncoding="UTF-8"%>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<style type="text/css">
|
|||
|
|
.select2-container .select2-selection--single{
|
|||
|
|
height:34px;
|
|||
|
|
line-height: 34px;
|
|||
|
|
}
|
|||
|
|
</style>
|
|||
|
|
<script type="text/javascript">
|
|||
|
|
|
|||
|
|
var showUser4SelectsFun = function() {
|
|||
|
|
var userIds= $("#receiveUserIds").val();
|
|||
|
|
$.post(ext.contextPath + '/user/userForSelect.do', {formId:"subFormItemProject",hiddenId:"receiveUserIds",textId:"receiveUserIdsName",userIds:userIds} , function(data) {
|
|||
|
|
$("#user4SelectDiv").html(data);
|
|||
|
|
openModal("user4SelectModal");
|
|||
|
|
});
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
$("#subFormItemProject").bootstrapValidator({
|
|||
|
|
live: 'disabled',//验证时机,enabled是内容有变化就验证(默认),disabled和submitted是提交再验证
|
|||
|
|
fields: {
|
|||
|
|
passstatus: {
|
|||
|
|
validators: {
|
|||
|
|
notEmpty: {
|
|||
|
|
message: '请选择审核结果!'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
$('#planStartDate').html('${overhaulItemProject.planStartDate.substring(0, 10)}');
|
|||
|
|
$('#planFinishDate').html('${overhaulItemProject.planFinishDate.substring(0, 10)}');
|
|||
|
|
|
|||
|
|
//加载大修分项-项目table
|
|||
|
|
getWorkOverhaulItem('${overhaulItemProject.id}');
|
|||
|
|
//加载人员绩效table
|
|||
|
|
getWorkAchievements('${overhaulItemProject.id}');
|
|||
|
|
|
|||
|
|
processSelectNode("${businessUnitAudit.taskid}");
|
|||
|
|
|
|||
|
|
doCountWorkingHours();
|
|||
|
|
//计算总工时及剩余工时
|
|||
|
|
function doCountWorkingHours(){
|
|||
|
|
var id = '${overhaulItemProject.id}';
|
|||
|
|
var difficultyDegree = $('#difficultyDegree').val();
|
|||
|
|
var workEvaluateScore = $('#workEvaluateScore').val();
|
|||
|
|
$.post(ext.contextPath + '/workorder/overhaulItemProject/doCountWorkingHours.do', {id:id,difficultyDegree:difficultyDegree,workEvaluateScore:workEvaluateScore} , function(data) {
|
|||
|
|
var datastr = JSON.parse(data);
|
|||
|
|
$('#workAlltime').html(Math.floor(datastr.workAlltime * 100) / 100);//工单总工时
|
|||
|
|
$('#actAlltime').html(Math.floor(datastr.actAlltime * 100) / 100);//绩效总工时
|
|||
|
|
$('#surplustime').html(Math.floor(datastr.surplustime * 100) / 100);//剩余工时
|
|||
|
|
});
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
//异步修改难度系数和评价得分
|
|||
|
|
function doRevise(){
|
|||
|
|
var id = '${overhaulItemProject.id}';
|
|||
|
|
var difficultyDegree = $('#difficultyDegree').val();
|
|||
|
|
var workEvaluateScore = $('#workEvaluateScore').val();
|
|||
|
|
$.post(ext.contextPath + '/workorder/overhaulItemProject/doRevise.do', {id:id,difficultyDegree:difficultyDegree,workEvaluateScore:workEvaluateScore} , function(data) {
|
|||
|
|
var datastr = JSON.parse(data);
|
|||
|
|
if(datastr.res == 1){
|
|||
|
|
//修改成功
|
|||
|
|
doCountWorkingHours();//计算总工时及剩余工时
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
</script>
|
|||
|
|
<div class="modal fade" id="subModaloverhaulItemProject">
|
|||
|
|
<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强制为subFormItemProject -->
|
|||
|
|
<form class="form-horizontal" id="subFormItemProject">
|
|||
|
|
|
|||
|
|
<!-- 界面提醒div强制id为alertDiv -->
|
|||
|
|
<div id="alertDiv"></div>
|
|||
|
|
<!-- <input type="hidden" class="form-control" name ="id" value="${overhaulItemProject.id}"> -->
|
|||
|
|
<input type="hidden" class="form-control" name ="unitId" value="${overhaulItemProject.unitId}">
|
|||
|
|
<input type="hidden" class="form-control" name ="projectId" value="${overhaulItemProject.projectId}">
|
|||
|
|
|
|||
|
|
<input type="hidden" class="form-control" name ="id" value="${businessUnitAudit.id}">
|
|||
|
|
<input type="hidden" class="form-control" name ="processid" value="${businessUnitAudit.processid}">
|
|||
|
|
<input type="hidden" class="form-control" name ="taskid" value="${businessUnitAudit.taskid}">
|
|||
|
|
<input type="hidden" class="form-control" name ="businessid" value="${businessUnitAudit.businessid}">
|
|||
|
|
<input type="hidden" class="form-control" name =unitid value="${param.unitId}">
|
|||
|
|
<input type="hidden" class="form-control" name ="taskdefinitionkey" value="${businessUnitAudit.taskdefinitionkey}">
|
|||
|
|
<!-- 退回默认退给接单人 -->
|
|||
|
|
<input type="hidden" id="targetusers" name="targetusers" value="${overhaulItemProject.receiveUserId}"/>
|
|||
|
|
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">工单号</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p class="form-control-static">${overhaulItemProject.jobNumber}</p>
|
|||
|
|
</div>
|
|||
|
|
<label class="col-sm-2 control-label">项目名称</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p class="form-control-static">${overhaulItemProject.overhaulType.name}</p>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">计划开始时间</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p class="form-control-static" id="planStartDate"></p>
|
|||
|
|
</div>
|
|||
|
|
<label class="col-sm-2 control-label">计划完成时间</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p class="form-control-static" id="planFinishDate"></p>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">*难度系数</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<input type="number" class="form-control" id="difficultyDegree" name="difficultyDegree" value="${overhaulItemProject.difficultyDegree}"
|
|||
|
|
onchange="doRevise();" step = "0.01">
|
|||
|
|
</div>
|
|||
|
|
<label class="col-sm-2 control-label">*评级得分(%)</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<input type="number" class="form-control" id="workEvaluateScore" name="workEvaluateScore" value="${overhaulItemProject.workEvaluateScore}"
|
|||
|
|
onchange="doRevise();" step = "0.01">
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<!-- <div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">发送至</label>
|
|||
|
|
<div class="col-sm-10">
|
|||
|
|
<input type="text" class="form-control" id="receiveUserIdsName" name ="receiveUserIdsName" placeholder="请选择接收人员" onclick="showUser4SelectsFun();" value="${overhaulItemProject.receiveUsersName}" readonly>
|
|||
|
|
<input id="receiveUserIds" name="receiveUserIds" type="hidden" value="${overhaulItemProject.receiveUserIds}"/>
|
|||
|
|
</div>
|
|||
|
|
</div> -->
|
|||
|
|
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">*审核结果</label>
|
|||
|
|
<div class="col-sm-6">
|
|||
|
|
<select class="form-control select2" id="passstatus" name ="passstatus" style="width: 270px;">
|
|||
|
|
<option value= true>通过</option>
|
|||
|
|
<option value= false>驳回</option>
|
|||
|
|
</select>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">*下一节点</label>
|
|||
|
|
<div class="col-sm-6">
|
|||
|
|
<select class="form-control select2" id="routeNum" name ="routeNum" style="width: 270px;">
|
|||
|
|
</select>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">*审核意见</label>
|
|||
|
|
<div class="col-sm-10">
|
|||
|
|
<textarea class="form-control" rows="2" id ="auditopinion" name ="auditopinion" placeholder="审核意见"></textarea>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
</form>
|
|||
|
|
|
|||
|
|
<div class="box box-primary">
|
|||
|
|
<div class="box-header with-border">
|
|||
|
|
<h3 class="box-title">工单内容及进度</h3>
|
|||
|
|
<div class="box-tools pull-right">
|
|||
|
|
<a onclick="doItemAddContent('${overhaulItemProject.id}')" class="btn btn-box-tool" data-toggle="tooltip" title="新增"><i class="glyphicon glyphicon-plus"></i></a>
|
|||
|
|
<a onclick="deleteItemContentsFun()" class="btn btn-box-tool" data-toggle="tooltip" title="删除"><i class="glyphicon glyphicon-minus"></i></a>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="box-body ">
|
|||
|
|
<table id="table_overhaul_item_content" style="table-layout:fixed;"></table>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="box box-primary">
|
|||
|
|
<div class="box-header with-border">
|
|||
|
|
<h3 class="box-title">参与人员绩效 </h3>
|
|||
|
|
<span style="color: #6495ED;">工单工时:</span><span style="color: #6495ED;" id="workAlltime">0</span>
|
|||
|
|
<span style="color: #6495ED;">绩效工时:</span><span style="color: #6495ED;" id="actAlltime">0</span>
|
|||
|
|
<span style="color: #6495ED;">剩余工时:</span><span style="color: #6495ED;" id="surplustime">0</span>
|
|||
|
|
<div class="box-tools pull-right">
|
|||
|
|
<a onclick="doAchievementAdd('${overhaulItemProject.id}')" class="btn btn-box-tool" data-toggle="tooltip" title="新增"><i class="glyphicon glyphicon-plus"></i></a>
|
|||
|
|
<a onclick="deleteAchievementFun()" class="btn btn-box-tool" data-toggle="tooltip" title="删除"><i class="glyphicon glyphicon-minus"></i></a>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="box-body ">
|
|||
|
|
<table id="table_achievements" style="table-layout:fixed;"></table>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
<div class="modal-footer">
|
|||
|
|
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">关闭</button>
|
|||
|
|
<!-- <button type="button" class="btn btn-primary" onclick="doItemUpdateProject()">保存</button> -->
|
|||
|
|
<button type="button" class="btn btn-primary" onclick="doItemAudit()">审核</button>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
<!-- /.modal-content -->
|
|||
|
|
</div>
|
|||
|
|
<!-- /.modal-dialog -->
|
|||
|
|
</div>
|