1087 lines
47 KiB
Plaintext
1087 lines
47 KiB
Plaintext
|
|
<%@ page language="java" pageEncoding="UTF-8" %>
|
|||
|
|
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
|
|||
|
|
|
|||
|
|
<%@page import="com.sipai.entity.maintenance.EquipmentPlanType" %>
|
|||
|
|
<%@page import="com.sipai.entity.workorder.Overhaul" %>
|
|||
|
|
<%@page import="com.sipai.entity.maintenance.MaintainCommStr" %>
|
|||
|
|
|
|||
|
|
<%request.setAttribute("Code_Type_Dx", EquipmentPlanType.Code_Type_Dx); %>
|
|||
|
|
|
|||
|
|
<% request.setAttribute("PlanType_IN", Overhaul.PlanType_IN);%>
|
|||
|
|
<% request.setAttribute("PlanType_OUT", Overhaul.PlanType_OUT);%>
|
|||
|
|
|
|||
|
|
<% request.setAttribute("Maintain_IN", MaintainCommStr.Maintain_IN);%>
|
|||
|
|
<% request.setAttribute("Maintain_OUT", MaintainCommStr.Maintain_OUT);%>
|
|||
|
|
|
|||
|
|
<jsp:include page="/jsp/workorder/workorderOverhaulItemProject.jsp"></jsp:include>
|
|||
|
|
|
|||
|
|
<style type="text/css">
|
|||
|
|
.select2-container .select2-selection--single {
|
|||
|
|
height: 34px;
|
|||
|
|
line-height: 34px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.select2-selection__arrow {
|
|||
|
|
margin-top: 3px;
|
|||
|
|
}
|
|||
|
|
</style>
|
|||
|
|
<script type="text/javascript">
|
|||
|
|
|
|||
|
|
|
|||
|
|
function dosave() {
|
|||
|
|
|
|||
|
|
$('#subForm').data('bootstrapValidator')
|
|||
|
|
.updateStatus('equipname', 'NOT_VALIDATED', null)
|
|||
|
|
.validateField('equipname');
|
|||
|
|
|
|||
|
|
$("#subForm").bootstrapValidator('validate');//提交验证
|
|||
|
|
if ($("#subForm").data('bootstrapValidator').isValid()) {//获取验证结果,如果成功,执行下面代码
|
|||
|
|
$.post(ext.contextPath + "/workorder/overhaul/doupdate.do", $("#subForm").serialize(), function (data) {
|
|||
|
|
if (data.res == 1) {
|
|||
|
|
showAlert('s', '保存成功');
|
|||
|
|
closeModal('subModal')
|
|||
|
|
$(".modal").hide();
|
|||
|
|
$(".fade").hide();
|
|||
|
|
$("#table").bootstrapTable('refresh');
|
|||
|
|
} else if (data.res == 0) {
|
|||
|
|
showAlert('d', '保存失败');
|
|||
|
|
} else {
|
|||
|
|
showAlert('d', data.res);
|
|||
|
|
}
|
|||
|
|
}, 'json');
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
$("#subForm").bootstrapValidator({
|
|||
|
|
live: 'enabled',//验证时机,enabled是内容有变化就验证(默认),disabled和submitted是提交再验证
|
|||
|
|
fields: {
|
|||
|
|
projectName: {
|
|||
|
|
validators: {
|
|||
|
|
notEmpty: {
|
|||
|
|
message: '项目名称不能为空'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
planDate: {
|
|||
|
|
validators: {
|
|||
|
|
notEmpty: {
|
|||
|
|
message: '计划日期不能为空'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
equipname: {
|
|||
|
|
validators: {
|
|||
|
|
notEmpty: {
|
|||
|
|
message: '设备不能为空'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
budgetCost: {
|
|||
|
|
validators: {
|
|||
|
|
notEmpty: {
|
|||
|
|
message: '预算金额不能为空'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
projectTypeName: {
|
|||
|
|
validators: {
|
|||
|
|
notEmpty: {
|
|||
|
|
message: '大修类型不能为空'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
var masterId_process = '${overhaul.id}';//业务Id
|
|||
|
|
var masterId = '${overhaul.id}';//业务Id
|
|||
|
|
|
|||
|
|
var tbName = 'TB_Overhaul_UploadFile'; //数据表
|
|||
|
|
var bucketName = 'maintenance';
|
|||
|
|
|
|||
|
|
var nameSpace = 'maintenance';//保存文件夹
|
|||
|
|
|
|||
|
|
var status = 'delete';//有删除权限
|
|||
|
|
var flag = '${flag}'
|
|||
|
|
|
|||
|
|
var previewConfigs = new Array()
|
|||
|
|
|
|||
|
|
$(function () {
|
|||
|
|
// getFileList_process()
|
|||
|
|
$('#resetMDialog').width(1200)
|
|||
|
|
var id = '${overhaul.id}';
|
|||
|
|
initViews(id, flag)
|
|||
|
|
//加载大修分项-项目
|
|||
|
|
getOverhaulItemProjectContent(id, true);
|
|||
|
|
|
|||
|
|
|
|||
|
|
getOverhaulItemDeviceContent(id, true);
|
|||
|
|
|
|||
|
|
$('#planDate').datepicker({
|
|||
|
|
language: 'zh-CN',
|
|||
|
|
autoclose: true,
|
|||
|
|
todayHighlight: true,
|
|||
|
|
format: 'yyyy-mm-dd',
|
|||
|
|
}).on('hide', function (e) {
|
|||
|
|
$('#subForm').data('bootstrapValidator')
|
|||
|
|
.updateStatus('planDate', 'NOT_VALIDATED', null)
|
|||
|
|
.validateField('planDate');
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
$('#planDate').datepicker('setDate', '${overhaul.planDate.substring(0, 10)}');
|
|||
|
|
|
|||
|
|
// getFileList();
|
|||
|
|
//getFileList_process();
|
|||
|
|
|
|||
|
|
|
|||
|
|
var selectType = $("#projectTypeName").select2({minimumResultsForSearch: 10});
|
|||
|
|
$.post(ext.contextPath + "/maintenance/equipmentPlanType/getSelectList4Code.do", {code: '${Code_Type_Dx}'}, function (data) {
|
|||
|
|
$("#projectTypeName").empty();
|
|||
|
|
var selelct_ = $("#projectTypeName").select2({
|
|||
|
|
data: data,
|
|||
|
|
placeholder: '请选择',//默认文字提示
|
|||
|
|
allowClear: false,//允许清空
|
|||
|
|
escapeMarkup: function (markup) {
|
|||
|
|
return markup;
|
|||
|
|
}, // 自定义格式化防止xss注入
|
|||
|
|
language: "zh-CN",
|
|||
|
|
minimumInputLength: 0,
|
|||
|
|
minimumResultsForSearch: 10,//数据超过10个启用搜索框
|
|||
|
|
formatResult: function formatRepo(repo) {
|
|||
|
|
return repo.text;
|
|||
|
|
}, // 函数用来渲染结果
|
|||
|
|
formatSelection: function formatRepoSelection(repo) {
|
|||
|
|
return repo.text;
|
|||
|
|
} // 函数用于呈现当前的选择
|
|||
|
|
});
|
|||
|
|
selelct_.val('').trigger("change");
|
|||
|
|
selelct_.on('change', function (e) {
|
|||
|
|
$('#projectType').val(e.target.value);
|
|||
|
|
})
|
|||
|
|
}, 'json');
|
|||
|
|
|
|||
|
|
//加载大修分项-项目
|
|||
|
|
// getWorkOverhaulItem('${overhaul.id}','${overhaul.unitId}','${overhaul.equipmentId}');
|
|||
|
|
|
|||
|
|
//是否委外
|
|||
|
|
// $("#outsourcingType").select2({minimumResultsForSearch: 10});
|
|||
|
|
$('#outsourcingType').val('${overhaul.outsourcingType}');
|
|||
|
|
})
|
|||
|
|
|
|||
|
|
$("#outsourcingType").select2({minimumResultsForSearch: 10});
|
|||
|
|
$('#outsourcingType').val('${overhaul.outsourcingType}');
|
|||
|
|
|
|||
|
|
$("#budgetType").select2({minimumResultsForSearch: 10});
|
|||
|
|
$('#budgetType').val('${overhaul.budgetType}');
|
|||
|
|
|
|||
|
|
//选择设备,根据厂区id和工艺段id选择厂内设备,可多选
|
|||
|
|
var showEquipment4SelectsFun = function (formId, hiddenId, textId) {
|
|||
|
|
var equipmentIds = $('#' + hiddenId).val();
|
|||
|
|
var companyId = $('#unitId').val();
|
|||
|
|
if (null == companyId || '' == companyId) {
|
|||
|
|
showAlert('d', "请先选择厂区!");
|
|||
|
|
return;
|
|||
|
|
}
|
|||
|
|
$.post(ext.contextPath + '/equipment/showEquipmentCardForAbnormitySelects.do', {
|
|||
|
|
formId: formId,
|
|||
|
|
hiddenId: hiddenId,
|
|||
|
|
textId: textId,
|
|||
|
|
companyId: companyId,
|
|||
|
|
equipmentIds: equipmentIds
|
|||
|
|
}, function (data) {
|
|||
|
|
$("#equ4SelectDiv").html(data);
|
|||
|
|
openModal("equipment4SelectModal");
|
|||
|
|
});
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
|
|||
|
|
function showUser4OneSelectFun() {
|
|||
|
|
$.post(ext.contextPath + '/user/userForOneSelect.do',
|
|||
|
|
{formId: "submitForm", hiddenId: "auditId", textId: "objUserName"},
|
|||
|
|
function (data) {
|
|||
|
|
$("#user4SelectDiv").html(data);
|
|||
|
|
openModal('user4SelectModal');
|
|||
|
|
});
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
function jobList() {
|
|||
|
|
$("#jobId").select2({
|
|||
|
|
ajax: {
|
|||
|
|
url: ext.contextPath + "/user/getJsonJobByUser.do?userId=" + $('#objUserId').val(),
|
|||
|
|
dataType: 'json',
|
|||
|
|
type: "GET",
|
|||
|
|
processResults: function (data) {
|
|||
|
|
var obj = jQuery.parseJSON(data);
|
|||
|
|
return {
|
|||
|
|
results: obj,
|
|||
|
|
text: 'name'
|
|||
|
|
};
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
cache: false,
|
|||
|
|
placeholder: '请选择',//默认文字提示
|
|||
|
|
// allowClear: true,//允许清空
|
|||
|
|
escapeMarkup: function (markup) {
|
|||
|
|
return markup;
|
|||
|
|
}, // 自定义格式化防止xss注入
|
|||
|
|
language: "zh-CN",
|
|||
|
|
minimumInputLength: 0,
|
|||
|
|
minimumResultsForSearch: 10,//数据超过十个启用搜索框
|
|||
|
|
formatResult: function formatRepo(repo) {
|
|||
|
|
return repo.text;
|
|||
|
|
}, // 函数用来渲染结果
|
|||
|
|
formatSelection: function formatRepoSelection(repo) {
|
|||
|
|
return repo.text;
|
|||
|
|
} // 函数用于呈现当前的选择
|
|||
|
|
});
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
function readonly() {
|
|||
|
|
$('#projectName').attr('readonly', 'readonly');
|
|||
|
|
$('#budgetCost').attr('readonly', 'readonly');
|
|||
|
|
$('#outsourcingType').attr('readonly', 'readonly');
|
|||
|
|
$('#outsourcingType').css('pointer-events', 'none');
|
|||
|
|
$('#cycleQuota').attr('readonly', 'readonly');
|
|||
|
|
$('#planDate').attr('readonly', 'readonly');
|
|||
|
|
$('#planDate').css('pointer-events', 'none');
|
|||
|
|
$('#projectDescribe').attr('readonly', 'readonly');
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
function tableEdit(isEdit) {
|
|||
|
|
$('.options').css('display', isEdit ? 'block' : 'none')
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
function initimplementDiv(flag) {
|
|||
|
|
if (flag == 31 || flag == 41 || flag == 51) {
|
|||
|
|
$('#implementDiv').css('display', 'block')
|
|||
|
|
} else {
|
|||
|
|
$('#implementDiv').css('display', 'none')
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
function initsignDivDiv(flag) {
|
|||
|
|
if (flag == 41 || flag == 51) {
|
|||
|
|
$('#signDiv').css('display', 'block')
|
|||
|
|
} else {
|
|||
|
|
$('#signDiv').css('display', 'none')
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
function initSubmitFrom(flag) {
|
|||
|
|
$('#submit_message').css('display', flag ? 'none' : 'block')
|
|||
|
|
$('#submit_user').css('display', !flag ? 'none' : 'block')
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
function initButton(flag) {
|
|||
|
|
|
|||
|
|
if (flag != 11) {
|
|||
|
|
$('#saveButton1').css('display', 'none')
|
|||
|
|
$('#submitButton1').css('display', 'none')
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if (flag != 21) {
|
|||
|
|
$('#passButton').css('display', 'none')
|
|||
|
|
$('#overruleButton').css('display', 'none')
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if (flag != 31) {
|
|||
|
|
$('#saveButton2').css('display', 'none')
|
|||
|
|
$('#submitButton2').css('display', 'none')
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if (flag != 41) {
|
|||
|
|
$('#acceptButton').css('display', 'none')
|
|||
|
|
$('#backButton').css('display', 'none')
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
function initViews(id, flag) {
|
|||
|
|
if (flag == 11) {
|
|||
|
|
$('#title').text('大修计划')
|
|||
|
|
initSubmitFrom(true)
|
|||
|
|
tableEdit(true)
|
|||
|
|
getOverhaulItemProjectContent(id, true);
|
|||
|
|
getOverhaulItemDeviceContent(id, true);
|
|||
|
|
} else if (flag == 21) {
|
|||
|
|
$('#title').text('大修审批')
|
|||
|
|
readonly()
|
|||
|
|
tableEdit(false)
|
|||
|
|
getOverhaulItemProjectContent(id, false);
|
|||
|
|
getOverhaulItemDeviceContent(id, false);
|
|||
|
|
initSubmitFrom(false)
|
|||
|
|
} else if (flag == 31) {
|
|||
|
|
$('#title').text('大修实施')
|
|||
|
|
readonly()
|
|||
|
|
tableEdit(true)
|
|||
|
|
getOverhaulItemProjectContent(id, true);
|
|||
|
|
getOverhaulItemDeviceContent(id, true);
|
|||
|
|
initSubmitFrom(true)
|
|||
|
|
} else if (flag == 41) {
|
|||
|
|
getFileListMinio('fileArea', '${overhaul.id}',true);
|
|||
|
|
$('#title').text('大修验收')
|
|||
|
|
readonly()
|
|||
|
|
tableEdit(false)
|
|||
|
|
getOverhaulItemProjectContent(id, false);
|
|||
|
|
getOverhaulItemDeviceContent(id, false);
|
|||
|
|
initSubmitFrom(false)
|
|||
|
|
implementFormReadonly()
|
|||
|
|
} else if (flag == 51) {
|
|||
|
|
status = 'view'
|
|||
|
|
getFileListMinio('fileArea', '${overhaul.id}',false);
|
|||
|
|
$('#title').text('大修记录')
|
|||
|
|
readonly()
|
|||
|
|
tableEdit(false)
|
|||
|
|
getOverhaulItemProjectContent(id, false);
|
|||
|
|
getOverhaulItemDeviceContent(id, false);
|
|||
|
|
$('#submit_message').css('display', 'none')
|
|||
|
|
$('#submit_user').css('display', 'none')
|
|||
|
|
$('#fileArea2').css('display', 'none')
|
|||
|
|
implementFormReadonly()
|
|||
|
|
signFormReadonly()
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
initimplementDiv(flag)
|
|||
|
|
initsignDivDiv(flag)
|
|||
|
|
initButton(flag)
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
// TODO
|
|||
|
|
function dosubmit() {
|
|||
|
|
$("#submitForm").bootstrapValidator('validate');
|
|||
|
|
if ($("#submitForm").data('bootstrapValidator').isValid()) {
|
|||
|
|
let d = $("#subForm").serialize() + "&" + $("#submitForm").serialize()
|
|||
|
|
$.post(ext.contextPath + "/workorder/overhaulItemEquipment/startOverhaul.do", d, function (data) {
|
|||
|
|
console.log(data)
|
|||
|
|
if (data.res == 1 || data.res == '1') {
|
|||
|
|
showAlert('s', '提交成功');
|
|||
|
|
closeModal('subModal')
|
|||
|
|
$(".modal").hide();
|
|||
|
|
$(".fade").hide();
|
|||
|
|
$("#table").bootstrapTable('refresh');
|
|||
|
|
} else if (data.res == 0) {
|
|||
|
|
showAlert('d', '提交失败');
|
|||
|
|
} else {
|
|||
|
|
showAlert('d', data.res);
|
|||
|
|
}
|
|||
|
|
}, 'json');
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
// TODO
|
|||
|
|
function doSlaveApply() {
|
|||
|
|
$("#implementForm").bootstrapValidator('validate');
|
|||
|
|
if ($("#implementForm").data('bootstrapValidator').isValid()) {
|
|||
|
|
let d = $("#subForm").serialize() + '&' + $("#submitForm").serialize() + "&" + $("#implementForm").serialize() + '&taskId=' + '${taskId}' + '&routeNum=1'
|
|||
|
|
$.post(ext.contextPath + "/workorder/overhaulItemEquipment/doSlaveApply.do", d, function (data) {
|
|||
|
|
console.log(data)
|
|||
|
|
if (data.res == 1 || data.res == '1') {
|
|||
|
|
showAlert('s', '提交成功');
|
|||
|
|
closeModal('subModal')
|
|||
|
|
$(".modal").hide();
|
|||
|
|
$(".fade").hide();
|
|||
|
|
$("#table").bootstrapTable('refresh');
|
|||
|
|
} else if (data.res == 0) {
|
|||
|
|
showAlert('d', '提交失败');
|
|||
|
|
} else {
|
|||
|
|
showAlert('d', data.res);
|
|||
|
|
}
|
|||
|
|
}, 'json');
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
// TODO
|
|||
|
|
function doSlaveHandle(status) {
|
|||
|
|
if (status == 1) {
|
|||
|
|
$("#signForm").bootstrapValidator('validate');
|
|||
|
|
if ($("#signForm").data('bootstrapValidator').isValid()) {
|
|||
|
|
let d = $("#subForm").serialize() + "&" + $("#submitForm").serialize() + "&" + $("#signForm").serialize() + "&routeNum=1" + "&processStatus=" + status
|
|||
|
|
$.post(ext.contextPath + "/workorder/overhaulItemEquipment/doSlaveHandle.do", d, function (data) {
|
|||
|
|
console.log(data)
|
|||
|
|
if (data.res == 1 || data.res == '1') {
|
|||
|
|
showAlert('s', '提交成功');
|
|||
|
|
closeModal('subModal')
|
|||
|
|
$(".modal").hide();
|
|||
|
|
$(".fade").hide();
|
|||
|
|
$("#table").bootstrapTable('refresh');
|
|||
|
|
} else if (data.res == 0) {
|
|||
|
|
showAlert('d', '提交失败');
|
|||
|
|
} else {
|
|||
|
|
showAlert('d', data.res);
|
|||
|
|
}
|
|||
|
|
}, 'json');
|
|||
|
|
// }
|
|||
|
|
}
|
|||
|
|
} else {
|
|||
|
|
$("#submitForm").bootstrapValidator('validate');
|
|||
|
|
if ($("#submitForm").data('bootstrapValidator').isValid()) {
|
|||
|
|
let d = $("#subForm").serialize() + "&" + $("#submitForm").serialize() + "&routeNum=1" + "&processStatus=" + status + "&taskId=" + '${taskId}'
|
|||
|
|
$.post(ext.contextPath + "/workorder/overhaulItemEquipment/doSlaveHandle.do", d, function (data) {
|
|||
|
|
console.log(data)
|
|||
|
|
if (data.res == 1 || data.res == '1') {
|
|||
|
|
showAlert('s', '提交成功');
|
|||
|
|
closeModal('subModal')
|
|||
|
|
$("#table").bootstrapTable('refresh');
|
|||
|
|
} else if (data.res == 0) {
|
|||
|
|
showAlert('d', '提交失败');
|
|||
|
|
} else {
|
|||
|
|
showAlert('d', data.res);
|
|||
|
|
}
|
|||
|
|
}, 'json');
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
function doverrule(processStatus) {
|
|||
|
|
if (processStatus === 1) {
|
|||
|
|
accept(1)
|
|||
|
|
} else {
|
|||
|
|
if ($("#submitForm").data('bootstrapValidator').isValid()) {
|
|||
|
|
accept(0)
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
function accept(status) {
|
|||
|
|
let d = $("#subForm").serialize() + "&" + $("#submitForm").serialize() + "&routeNum=1" + "&processStatus=" + status + "&taskId=" + '${taskId}'
|
|||
|
|
$.post(ext.contextPath + "/workorder/overhaulItemEquipment/startPlanAudit.do", d, function (data) {
|
|||
|
|
if (data.res == 1) {
|
|||
|
|
showAlert('s', '提交成功');
|
|||
|
|
closeModal('subModal')
|
|||
|
|
$("#table").bootstrapTable('refresh');
|
|||
|
|
} else if (data.res == 0) {
|
|||
|
|
showAlert('d', '提交失败');
|
|||
|
|
} else {
|
|||
|
|
showAlert('d', data.res);
|
|||
|
|
}
|
|||
|
|
}, 'json');
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
$("#submitForm").bootstrapValidator('${flag}' == 11 || '${flag}' == 31 ? {
|
|||
|
|
live: 'enabled',
|
|||
|
|
fields: {
|
|||
|
|
objUserName: {
|
|||
|
|
validators: {
|
|||
|
|
notEmpty: {
|
|||
|
|
message: '请先指定下一级人员'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
} : {
|
|||
|
|
live: 'enabled',
|
|||
|
|
fields: {
|
|||
|
|
auditopinion: {
|
|||
|
|
validators: {
|
|||
|
|
notEmpty: {
|
|||
|
|
message: '请填写驳回意见'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
})
|
|||
|
|
|
|||
|
|
|
|||
|
|
function implementFormReadonly() {
|
|||
|
|
$('#totalQuotaHours').attr('readonly', 'readonly');
|
|||
|
|
$('#subActualHours').attr('readonly', 'readonly');
|
|||
|
|
$('#awardPunishmentHours').attr('readonly', 'readonly');
|
|||
|
|
$('#workerNum').attr('readonly', 'readonly');
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
function signFormReadonly() {
|
|||
|
|
$('#selfRepairHours').attr('readonly', 'readonly');
|
|||
|
|
$('#materialCost').attr('readonly', 'readonly');
|
|||
|
|
$('#totalOverhaulCost').attr('readonly', 'readonly');
|
|||
|
|
$('#actualSelfHours').attr('readonly', 'readonly');
|
|||
|
|
$('#actualMaterialCost').attr('readonly', 'readonly');
|
|||
|
|
$('#actualOutHourCost').attr('readonly', 'readonly');
|
|||
|
|
$('#actualTotalCost').attr('readonly', 'readonly');
|
|||
|
|
$('#isNormal').attr('readonly', 'readonly');
|
|||
|
|
$('#differenceDes').attr('readonly', 'readonly');
|
|||
|
|
$('#cheakPoint').attr('readonly', 'readonly');
|
|||
|
|
$('#qualityCheakWeight').attr('readonly', 'readonly');
|
|||
|
|
$('#satisfactionPoint').attr('readonly', 'readonly');
|
|||
|
|
$('#coordinationWeight').attr('readonly', 'readonly');
|
|||
|
|
$('#totalPoint').attr('readonly', 'readonly');
|
|||
|
|
$('#proTotalHours').attr('readonly', 'readonly');
|
|||
|
|
$('#level').attr('readonly', 'readonly');
|
|||
|
|
$('#description').attr('readonly', 'readonly');
|
|||
|
|
$('#totalHours').attr('readonly', 'readonly');
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
$("#implementForm").bootstrapValidator({
|
|||
|
|
live: 'enabled',
|
|||
|
|
fields: {
|
|||
|
|
totalQuotaHours: {
|
|||
|
|
validators: {
|
|||
|
|
notEmpty: {
|
|||
|
|
message: '请填写额定工时'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}, subActualHours: {
|
|||
|
|
validators: {
|
|||
|
|
notEmpty: {
|
|||
|
|
message: '请填写分项实际工时合计'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}, awardPunishmentHours: {
|
|||
|
|
validators: {
|
|||
|
|
notEmpty: {
|
|||
|
|
message: '请填写其中奖罚工时'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}, workerNum: {
|
|||
|
|
validators: {
|
|||
|
|
notEmpty: {
|
|||
|
|
message: '请填写工作人数'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
})
|
|||
|
|
$("#signForm").bootstrapValidator({
|
|||
|
|
live: 'enabled',
|
|||
|
|
fields: {
|
|||
|
|
selfRepairHours: {
|
|||
|
|
validators: {
|
|||
|
|
notEmpty: {
|
|||
|
|
message: '请填写自修定额工时'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}, materialCost: {
|
|||
|
|
validators: {
|
|||
|
|
notEmpty: {
|
|||
|
|
message: '请填写物资费定额'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}, totalOverhaulCost: {
|
|||
|
|
validators: {
|
|||
|
|
notEmpty: {
|
|||
|
|
message: '请填写总大修费定额'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}, actualSelfHours: {
|
|||
|
|
validators: {
|
|||
|
|
notEmpty: {
|
|||
|
|
message: '请填写实际自修工时'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}, actualMaterialCost: {
|
|||
|
|
validators: {
|
|||
|
|
notEmpty: {
|
|||
|
|
message: '请填写实际物资费'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}, actualOutHourCost: {
|
|||
|
|
validators: {
|
|||
|
|
notEmpty: {
|
|||
|
|
message: '请填写实际委外工时费'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}, actualTotalCost: {
|
|||
|
|
validators: {
|
|||
|
|
notEmpty: {
|
|||
|
|
message: '请填写实际总费用'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}, isNormal: {
|
|||
|
|
validators: {
|
|||
|
|
notEmpty: {
|
|||
|
|
message: '请填写费用是否正常'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}, differenceDes: {
|
|||
|
|
validators: {
|
|||
|
|
notEmpty: {
|
|||
|
|
message: '请填写实际工时、费用与定额差异的分析说明'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}, cheakPoint: {
|
|||
|
|
validators: {
|
|||
|
|
notEmpty: {
|
|||
|
|
message: '请填写项目质量验收评价得分'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}, qualityCheakWeight: {
|
|||
|
|
validators: {
|
|||
|
|
notEmpty: {
|
|||
|
|
message: '请填写质量验收评价权重'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}, satisfactionPoint: {
|
|||
|
|
validators: {
|
|||
|
|
notEmpty: {
|
|||
|
|
message: '请填写协同满意度评价得分'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}, coordinationWeight: {
|
|||
|
|
validators: {
|
|||
|
|
notEmpty: {
|
|||
|
|
message: '请填写协同评价权重'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}, totalPoint: {
|
|||
|
|
validators: {
|
|||
|
|
notEmpty: {
|
|||
|
|
message: '请填写总得分'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}, proTotalHours: {
|
|||
|
|
validators: {
|
|||
|
|
notEmpty: {
|
|||
|
|
message: '请填写项目工单工时合计'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}, level: {
|
|||
|
|
validators: {
|
|||
|
|
notEmpty: {
|
|||
|
|
message: '请填写难度等级'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}, description: {
|
|||
|
|
validators: {
|
|||
|
|
notEmpty: {
|
|||
|
|
message: '请填写验收说明'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}, totalHours: {
|
|||
|
|
validators: {
|
|||
|
|
notEmpty: {
|
|||
|
|
message: '请填写总绩效工时'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
})
|
|||
|
|
|
|||
|
|
function openFileUpload() {
|
|||
|
|
masterId = '${overhaul.id}';
|
|||
|
|
fileinput('fileArea')
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
</script>
|
|||
|
|
<div class="modal fade" id="subModal">
|
|||
|
|
<div class="modal-dialog modal-lg" id="resetMDialog">
|
|||
|
|
<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" id="title">修改大修工单</h4>
|
|||
|
|
</div>
|
|||
|
|
<div id="user4SelectDiv"></div>
|
|||
|
|
<div class="modal-body">
|
|||
|
|
|
|||
|
|
<form class="form-horizontal" id="subForm" enctype="multipart/form-data">
|
|||
|
|
<!-- 界面提醒div强制id为alertDiv -->
|
|||
|
|
<div id="alertDiv"></div>
|
|||
|
|
<input type="hidden" class="form-control" name="id" value="${overhaul.id}">
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">*项目名称</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<input type="text" class="form-control" id="projectName" name="projectName"
|
|||
|
|
value="${overhaul.projectName}" autocomplete="off" placeholder="项目名称">
|
|||
|
|
|
|||
|
|
<input type="hidden" class="form-control" id="jobNumber" name="jobNumber"
|
|||
|
|
value="${overhaul.jobNumber}" readonly>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<label class="col-sm-2 control-label">项目负责人</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<input type="hidden" class="form-control" id="sendUserId" name="sendUserId"
|
|||
|
|
value="${overhaul.sendUserId}">
|
|||
|
|
<p class="form-control-static">${overhaul.sendUser.caption}</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">${overhaul.equipmentPlanType.name}</p>
|
|||
|
|
<input type="hidden" class="form-control" id="projectType" name="projectType"
|
|||
|
|
value="${overhaul.projectType}"/>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<label class="col-sm-2 control-label">厂区</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<input type="hidden" id="unitId" name="unitId" value="${overhaul.unitId}"/>
|
|||
|
|
<p class="form-control-static">${overhaul.company.sname}</p>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">预算类型</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<select id="budgetType" name="budgetType" class="form-control select2"
|
|||
|
|
style="width: 170px;">
|
|||
|
|
<option value="${PlanType_OUT}" selected>预算外</option>
|
|||
|
|
<option value="${PlanType_IN}">预算内</option>
|
|||
|
|
</select>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<label class="col-sm-2 control-label">*预算金额(元)</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<input type="number" class="form-control" id="budgetCost" name="budgetCost"
|
|||
|
|
value="${overhaul.budgetCost}" step="0.01" autocomplete="off" placeholder="预算金额">
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="form-group">
|
|||
|
|
|
|||
|
|
|
|||
|
|
<label class="col-sm-2 control-label">*是否委外</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<select id="outsourcingType" name="outsourcingType" class="form-control select2"
|
|||
|
|
style="width: 170px;">
|
|||
|
|
<option value="${Maintain_IN}" selected>自修</option>
|
|||
|
|
<option value="${Maintain_OUT}">委外</option>
|
|||
|
|
</select>
|
|||
|
|
</div>
|
|||
|
|
<label class="col-sm-2 control-label">*大修周期定额(元)</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<input type="number" class="form-control" id="cycleQuota" name="cycleQuota"
|
|||
|
|
value="${overhaul.cycleQuota}" autocomplete="off" placeholder="大修周期定额">
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">*计划时间</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<div class="input-group date">
|
|||
|
|
<div class="input-group-addon">
|
|||
|
|
<i class="fa fa-calendar"></i>
|
|||
|
|
</div>
|
|||
|
|
<input type="text" class="form-control" id="planDate" name="planDate"
|
|||
|
|
style="width: 132px;" autocomplete="off" placeholder="点击选择">
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="form-group">
|
|||
|
|
|
|||
|
|
<label class="col-sm-2 control-label">项目描述</label>
|
|||
|
|
<div class="col-sm-10">
|
|||
|
|
<input class="form-control" style="width: 100%" id="projectDescribe"
|
|||
|
|
name="projectDescribe" value="${overhaul.projectDescribe}"/>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</form>
|
|||
|
|
|
|||
|
|
<div class="box box-primary">
|
|||
|
|
<div class="box-header with-border">
|
|||
|
|
<h3 class="box-title">大修内容</h3>
|
|||
|
|
<div class="options box-tools pull-right">
|
|||
|
|
<a onclick="doItemAddProject('${overhaul.id}','${overhaul.unitId}')"
|
|||
|
|
class="btn btn-box-tool" data-toggle="tooltip" title="新增"><i
|
|||
|
|
class="glyphicon glyphicon-plus"></i></a>
|
|||
|
|
<a onclick="deleteItemProjectsFun()" 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_project" style="table-layout:fixed;"></table>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="box box-primary">
|
|||
|
|
<div class=" box-header with-border">
|
|||
|
|
<h3 class="box-title">设备列表</h3>
|
|||
|
|
<div class="options box-tools pull-right">
|
|||
|
|
<a onclick="doItemAddDevice('${overhaul.id}','${overhaul.unitId}')"
|
|||
|
|
class="btn btn-box-tool" data-toggle="tooltip" title="新增"><i
|
|||
|
|
class="glyphicon glyphicon-plus"></i></a>
|
|||
|
|
<a onclick="deleteItemDevicesFun()" 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_device"
|
|||
|
|
style="table-layout:fixed;word-break:break-all;"></table>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div id="implementDiv">
|
|||
|
|
<form class="form-horizontal" id="implementForm" enctype="multipart/form-data">
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">额定工时:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<input class="form-control" style="width: 100%"
|
|||
|
|
id="totalQuotaHours"
|
|||
|
|
name="totalQuotaHours" value="${overhaulStatistics.totalQuotaHours}"
|
|||
|
|
placeholder="额定工时"/>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<label class="col-sm-2 control-label">分项实际工时合计:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<input class="form-control" style="width: 100%"
|
|||
|
|
id="subActualHours"
|
|||
|
|
name="subActualHours" value="${overhaulStatistics.subActualHours}"
|
|||
|
|
placeholder="分项实际工时合计"/>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">其中奖罚工时(小时):</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<input class="form-control" style="width: 100%"
|
|||
|
|
id="awardPunishmentHours"
|
|||
|
|
name="awardPunishmentHours" value="${overhaulStatistics.awardPunishmentHours}"
|
|||
|
|
placeholder="奖罚工时"/>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<label class="col-sm-2 control-label">工作人数:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<input class="form-control" style="width: 100%"
|
|||
|
|
id="workerNum"
|
|||
|
|
name="workerNum" value="${overhaulStatistics.workerNum}" placeholder="工作人数"/>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
</form>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<div id="signDiv">
|
|||
|
|
<form class="form-horizontal" id="signForm" enctype="multipart/form-data">
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">自修定额工时:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<input class="form-control" style="width: 100%"
|
|||
|
|
id="selfRepairHours"
|
|||
|
|
name="selfRepairHours" value="${overhaulStatistics.selfRepairHours}"
|
|||
|
|
placeholder="自修定额工时"/>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<label class="col-sm-2 control-label">物资费定额:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<input class="form-control" style="width: 100%"
|
|||
|
|
id="materialCost"
|
|||
|
|
name="materialCost" value="${overhaulStatistics.materialCost}"
|
|||
|
|
placeholder="物资费定额"/>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">总大修费定额:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<input class="form-control" style="width: 100%"
|
|||
|
|
id="totalOverhaulCost"
|
|||
|
|
name="totalOverhaulCost" value="${overhaulStatistics.totalOverhaulCost}"
|
|||
|
|
placeholder="总大修费定额"/>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<label class="col-sm-2 control-label">实际自修工时:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<input class="form-control" style="width: 100%"
|
|||
|
|
id="actualSelfHours"
|
|||
|
|
name="actualSelfHours" value="${overhaulStatistics.actualSelfHours}"
|
|||
|
|
placeholder="实际自修工时"/>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">实际物资费:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<input class="form-control" style="width: 100%"
|
|||
|
|
id="actualMaterialCost"
|
|||
|
|
name="actualMaterialCost" value="${overhaulStatistics.actualMaterialCost}"
|
|||
|
|
placeholder="实际物资费"/>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<label class="col-sm-2 control-label">实际委外工时费:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<input class="form-control" style="width: 100%"
|
|||
|
|
id="actualOutHourCost"
|
|||
|
|
name="actualOutHourCost" value="${overhaulStatistics.actualOutHourCost}"
|
|||
|
|
placeholder="实际委外工时费"/>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">实际总费用:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<input class="form-control" style="width: 100%"
|
|||
|
|
id="actualTotalCost"
|
|||
|
|
name="actualTotalCost" value="${overhaulStatistics.actualTotalCost}"
|
|||
|
|
placeholder="实际总费用"/>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<label class="col-sm-2 control-label">费用是否正常:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<input class="form-control" style="width: 100%"
|
|||
|
|
id="isNormal"
|
|||
|
|
name="isNormal" value="${overhaulStatistics.isNormal}" placeholder="费用是否正常"/>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">说明:</label>
|
|||
|
|
<div class="col-sm-10">
|
|||
|
|
<textarea class="form-control" style="width: 100%"
|
|||
|
|
id="differenceDes"
|
|||
|
|
name="differenceDes" value="${overhaulStatistics.differenceDes}"
|
|||
|
|
placeholder="实际工时、费用与定额差异的分析说明"/>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">项目质量验收评价得分:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<input class="form-control" style="width: 100%"
|
|||
|
|
id="cheakPoint"
|
|||
|
|
name="cheakPoint" value="${overhaulStatistics.cheakPoint}"
|
|||
|
|
placeholder="项目质量验收评价得分"/>
|
|||
|
|
</div>
|
|||
|
|
<label class="col-sm-2 control-label">质量验收评价权重:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<input class="form-control" style="width: 100%"
|
|||
|
|
id="qualityCheakWeight"
|
|||
|
|
name="qualityCheakWeight" value="${overhaulStatistics.qualityCheakWeight}"
|
|||
|
|
placeholder="质量验收评价权重"/>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">协同满意度评价得分:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<input class="form-control" style="width: 100%"
|
|||
|
|
id="satisfactionPoint"
|
|||
|
|
name="satisfactionPoint" value="${overhaulStatistics.satisfactionPoint}"
|
|||
|
|
placeholder="协同满意度评价得分"/>
|
|||
|
|
</div>
|
|||
|
|
<label class="col-sm-2 control-label">协同评价权重:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<input class="form-control" style="width: 100%"
|
|||
|
|
id="coordinationWeight"
|
|||
|
|
name="coordinationWeight" value="${overhaulStatistics.coordinationWeight}"
|
|||
|
|
placeholder="协同评价权重"/>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">总得分:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<input class="form-control" style="width: 100%"
|
|||
|
|
id="totalPoint"
|
|||
|
|
name="totalPoint" value="${overhaulStatistics.totalPoint}" placeholder="总得分"/>
|
|||
|
|
</div>
|
|||
|
|
<label class="col-sm-2 control-label">项目工单工时合计:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<input class="form-control" style="width: 100%"
|
|||
|
|
id="proTotalHours"
|
|||
|
|
name="proTotalHours" value="${overhaulStatistics.proTotalHours}"
|
|||
|
|
placeholder="项目工单工时合计"/>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">难度等级:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<input class="form-control" style="width: 100%"
|
|||
|
|
id="level"
|
|||
|
|
name="level" value="${overhaulStatistics.level}" placeholder="难度等级"/>
|
|||
|
|
</div>
|
|||
|
|
<label class="col-sm-2 control-label">总绩效工时:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<input class="form-control" style="width: 100%"
|
|||
|
|
id="totalHours"
|
|||
|
|
name="totalHours" value="${overhaulStatistics.totalHours}" placeholder="总绩效工时"/>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">验收说明:</label>
|
|||
|
|
<div class="col-sm-10">
|
|||
|
|
<textarea class="form-control" style="width: 100%"
|
|||
|
|
id="description"
|
|||
|
|
name="description" value="${overhaulStatistics.description}"
|
|||
|
|
placeholder="验收说明"/>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="form-group">
|
|||
|
|
<div class="form-group" style="margin:8px">
|
|||
|
|
<label class="col-sm-2 control-label"></label>
|
|||
|
|
<button id="fileArea2" type="button" class="btn btn-default btn-file"
|
|||
|
|
onclick="openFileUpload()"
|
|||
|
|
><i class="fa fa-paperclip"></i>附件上传
|
|||
|
|
</button>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="form-group" style="margin:8px;">
|
|||
|
|
<input type="file" name="fileArea" id="fileArea" multiple
|
|||
|
|
class="file-loading"/>
|
|||
|
|
</div>
|
|||
|
|
<%-- <div id="signFileArea"></div>--%>
|
|||
|
|
|
|||
|
|
<%-- <input type="hidden" id="annex" name="annex" value="">--%>
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
</form>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div>
|
|||
|
|
<form class="form-horizontal" id="submitForm" enctype="multipart/form-data">
|
|||
|
|
|
|||
|
|
<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="taskdefinitionkey"
|
|||
|
|
value="${businessUnitAudit.taskdefinitionkey}">
|
|||
|
|
|
|||
|
|
<div class="form-group" id="submit_message">
|
|||
|
|
<label class="col-sm-2 control-label">处理意见:</label>
|
|||
|
|
<div class="col-sm-10">
|
|||
|
|
<textarea class="form-control" style="width: 100%" id="auditopinion"
|
|||
|
|
name="auditopinion" value="" placeholder="处理意见"/>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="form-group" id="submit_user">
|
|||
|
|
<label class="col-sm-2 control-label">提交至:</label>
|
|||
|
|
<div class="col-sm-10">
|
|||
|
|
|
|||
|
|
<%-- getReceiveUserId--%>
|
|||
|
|
<input type="text" id="objUserName" name="objUserName" class="form-control"
|
|||
|
|
placeholder="下一级人员" onclick="showUser4OneSelectFun();" onchange="jobList()"/>
|
|||
|
|
<input type="hidden" id="auditId" name="auditId" class="form-control"/>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</form>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
<div class="modal-footer">
|
|||
|
|
<button id="closeButton" type="button" class="btn btn-default pull-left" data-dismiss="modal">关闭
|
|||
|
|
</button>
|
|||
|
|
<button id="passButton" type="button" class="btn btn-primary" onclick="doverrule(1)">通过
|
|||
|
|
</button>
|
|||
|
|
<button id="overruleButton" type="button" class="btn btn-danger" onclick="doverrule(0)">驳回
|
|||
|
|
</button>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<button id="acceptButton" type="button" class="btn btn-primary" onclick="doSlaveHandle(1)">验收
|
|||
|
|
</button>
|
|||
|
|
<button id="backButton" type="button" class="btn btn-danger" onclick="doSlaveHandle(0)">退回
|
|||
|
|
</button>
|
|||
|
|
|
|||
|
|
<button id="submitButton1" type="button" class="btn btn-primary" onclick="dosubmit()">提交审核
|
|||
|
|
</button>
|
|||
|
|
<button id="saveButton1" type="button" class="btn btn-primary" onclick="dosave()">保存</button>
|
|||
|
|
|
|||
|
|
<button id="submitButton2" type="button" class="btn btn-primary" onclick="doSlaveApply()">提交验收
|
|||
|
|
</button>
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
<script type="text/javascript" src="<%=request.getContextPath()%>/JS/ofileUpload.js" charset="utf-8"></script>
|