Files
SIPAIIS_WMS_JSSW/WebRoot/jsp/process/processAdjustmentContentEdit.jsp
2026-01-16 14:13:44 +08:00

134 lines
5.2 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ page language="java" pageEncoding="UTF-8"%>
<style type="text/css">
</style>
<script type="text/javascript">
var showUser4SelectsFun = function () {
var userIds = $("#solver").val();
$.post(ext.contextPath + '/user/userForSelect.do', { formId: "subFormAch", hiddenId: "receiveUserId", textId: "userName", userIds: userIds }, function (data) {
$("#user4SelectDiv").html(data);
openModal("user4SelectModal");
});
};
function dosaveContent() {
$("#subFormAch").bootstrapValidator('validate');//提交验证
if ($("#subFormAch").data('bootstrapValidator').isValid()) {//获取验证结果,如果成功,执行下面代码
$.post(ext.contextPath + "/process/processAdjustmentContent/doupdate.do", $("#subFormAch").serialize(), function (data) {
// $.post(ext.contextPath + "/maintenance/processAdjustmentContent/dosave.do", {projectRole:'角色1'}, function(data) {
if (data.res == 1) {
//计算总工时及剩余工时
// doCountWorkingHours();
closeModal('subModalContent')
$("#table_content").bootstrapTable('refresh');
} else if (data.res == 0) {
showAlert('d', '保存失败');
} else {
showAlert('d', data.res);
}
}, 'json');
}
}
$("#subFormAch").bootstrapValidator({
live: 'disabled',//验证时机enabled是内容有变化就验证默认disabled和submitted是提交再验证
fields: {
// userName: {
// validators: {
// notEmpty: {
// message: '请选择人员'
// }
// }
// }
}
});
// function workTimeFunction() {
// var workTime = $('#workTime').val();
// var evaluateScore = $('#evaluateScore').val();
// var skillWeight = $('#skillWeight').val();
// var actualWorkTime = 0;
// if (evaluateScore != null && evaluateScore != '' && evaluateScore != '0' && skillWeight != null && skillWeight != '' && skillWeight != '0') {
// actualWorkTime = parseFloat(workTime) + (parseFloat(evaluateScore) * parseFloat(skillWeight));
// } else {
// actualWorkTime = workTime;
// }
// $('#actualWorkTime').val(actualWorkTime);
// }
</script>
<div class="modal fade" id="subModalContent">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span></button>
<h4 class="modal-title">修改人员绩效</h4>
</div>
<div class="modal-body">
<!-- 新增界面formid强制为subFormAch -->
<form class="form-horizontal" id="subFormAch" autocomplete="off">
<!-- 界面提醒div强制id为alertDiv -->
<div id="alertDiv"></div>
<input type="hidden" class="form-control" name="id" value="${processAdjustmentContent.id}">
<input type="hidden" class="form-control" name="pid" value="${processAdjustmentContent.pid}">
<div class="form-group">
<label class="col-sm-2 control-label">工艺调整代码</label>
<div class="col-sm-4">
<p class="form-control-static">${processAdjustmentContent.libraryProcessAdjustment.proCode}</p>
</div>
<label class="col-sm-2 control-label">工艺调整名称</label>
<div class="col-sm-4">
<p class="form-control-static">${processAdjustmentContent.libraryProcessAdjustment.proName}</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">${processAdjustmentContent.libraryProcessAdjustment.proMeasuresCode}</p>
</div>
<label class="col-sm-2 control-label">定额工时</label>
<div class="col-sm-4">
<p class="form-control-static">${processAdjustmentContent.libraryProcessAdjustment.receiveRatedTime}</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">工艺调整措施</label>
<div class="col-sm-10">
<p class="form-control-static">${processAdjustmentContent.libraryProcessAdjustment.proMeasures}</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">接单人</label>
<div class="col-sm-4">
<input type="text" class="form-control" id="userName" name="userName" placeholder="请选择人员"
onclick="showUser4SelectsFun();" value="${userName}">
<input id="receiveUserId" name="receiveUserId" type="hidden"
value="${processAdjustmentContent.receiveUserId}" />
</div>
</div>
</form>
</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="dosaveContent()">保存</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-dialog -->
</div>