516 lines
26 KiB
Plaintext
516 lines
26 KiB
Plaintext
|
|
<%@ page language="java" pageEncoding="UTF-8" %>
|
|||
|
|
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
|
|||
|
|
<%@page import="com.sipai.tools.CommString" %>
|
|||
|
|
<%@page import="com.sipai.entity.maintenance.MaintenanceCommString" %>
|
|||
|
|
<%request.setAttribute("Active_False", CommString.Active_False); %>
|
|||
|
|
<%request.setAttribute("Active_True", CommString.Active_True); %>
|
|||
|
|
<%request.setAttribute("MAINTAIN", MaintenanceCommString.MAINTENANCE_TYPE_MAINTAIN); %>
|
|||
|
|
<%request.setAttribute("INTER_MAINTENANCE", MaintenanceCommString.INTER_MAINTENANCE); %>
|
|||
|
|
<%request.setAttribute("EXTERANL_MAINTENANCE", MaintenanceCommString.EXTERANL_MAINTENANCE); %>
|
|||
|
|
<%request.setAttribute("COMMON_MAINTENANCE", MaintenanceCommString.COMMON_MAINTENANCE); %>
|
|||
|
|
<%request.setAttribute("MAINTAIN_YEAR", MaintenanceCommString.MAINTAIN_YEAR); %>
|
|||
|
|
<%request.setAttribute("MAINTAIN_MONTH", MaintenanceCommString.MAINTAIN_MONTH); %>
|
|||
|
|
<%request.setAttribute("START", MaintenanceCommString.PLAN_START); %>
|
|||
|
|
<%request.setAttribute("SUBMIT", MaintenanceCommString.PLAN_SUBMIT); %>
|
|||
|
|
<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">
|
|||
|
|
//流程审核文件上传所需参数
|
|||
|
|
var masterId_process = '${scrapApply.id}';//业务Id
|
|||
|
|
var tbName_process = 'TB_Process_UploadFile'; //数据表
|
|||
|
|
var nameSpace_process = 'ProcessUploadFile';//保存文件夹
|
|||
|
|
var status = 'delete';//有删除权限
|
|||
|
|
|
|||
|
|
function doupdate() {
|
|||
|
|
$("#subForm").bootstrapValidator('validate');//提交验证
|
|||
|
|
setTimeout(function () {
|
|||
|
|
if ($("#subForm").data('bootstrapValidator').isValid()) {//获取验证结果,如果成功,执行下面代码
|
|||
|
|
$.post(ext.contextPath + "/equipment/EquipmentScrapApply/update.do", $("#subForm").serialize(), function (data) {
|
|||
|
|
if (data.res == 1) {
|
|||
|
|
$("#table").bootstrapTable('refresh');
|
|||
|
|
closeModal("subModal");
|
|||
|
|
} else if (data.res == 0) {
|
|||
|
|
showAlert('d', '保存失败');
|
|||
|
|
} else {
|
|||
|
|
showAlert('d', data.res);
|
|||
|
|
}
|
|||
|
|
}, 'json');
|
|||
|
|
}
|
|||
|
|
}, 100);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
//提交审核
|
|||
|
|
function dosubmit() {
|
|||
|
|
$('#subUnitForm').data('bootstrapValidator')
|
|||
|
|
.updateStatus('targetUsersName', 'NOT_VALIDATED', null)
|
|||
|
|
.validateField('targetUsersName');
|
|||
|
|
$("#subForm").bootstrapValidator('validate');//提交验证
|
|||
|
|
$("#subUnitForm").bootstrapValidator('validate');//提交验证
|
|||
|
|
setTimeout(function () {
|
|||
|
|
if ($("#subForm").data('bootstrapValidator').isValid() && $("#subUnitForm").data('bootstrapValidator').isValid()) {//获取验证结果,如果成功,执行下面代码
|
|||
|
|
$.post(ext.contextPath + "/equipment/EquipmentScrapApply/update.do", $("#subForm").serialize(), function (data) {
|
|||
|
|
if (data.res == 1) {
|
|||
|
|
$.post(ext.contextPath + "/equipment/EquipmentScrapApply/submitScrapApplyAdjust.do", $("#subUnitForm").serialize() + "&routeNum=" + routeNum, function (unitdata) {
|
|||
|
|
if (unitdata.res == 1) {
|
|||
|
|
closeModal('subModal')
|
|||
|
|
$("#table").bootstrapTable('refresh');
|
|||
|
|
} else if (unitdata.res == 0) {
|
|||
|
|
showAlert('d', '保存失败');
|
|||
|
|
} else {
|
|||
|
|
showAlert('d', data.res);
|
|||
|
|
}
|
|||
|
|
}, 'json');
|
|||
|
|
} else if (data.res == 0) {
|
|||
|
|
showAlert('d', '保存失败');
|
|||
|
|
} else {
|
|||
|
|
showAlert('d', data.res);
|
|||
|
|
}
|
|||
|
|
}, 'json');
|
|||
|
|
}
|
|||
|
|
}, 100);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
//提交时先验证审核人不能为空,保存时审核人可以为空
|
|||
|
|
function submitFun() {
|
|||
|
|
//新增的输入框添加验证
|
|||
|
|
$("#subUnitForm").data('bootstrapValidator').addField('targetUsersName', {
|
|||
|
|
validators: {
|
|||
|
|
notEmpty: {
|
|||
|
|
message: '审核人不能为空'
|
|||
|
|
},
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
dosubmit();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
//新增入库明细(新增丢失明细)
|
|||
|
|
var addDetailFun = function () {
|
|||
|
|
//新增物资领用明细时,验证所属仓库不能为空
|
|||
|
|
//$("#subForm").data('bootstrapValidator').validateField('warehouseId');
|
|||
|
|
//if($("#subForm").data('bootstrapValidator').isValidField('warehouseId')){
|
|||
|
|
//var allTableData = $("#table_outStockDetail").bootstrapTable('getData');
|
|||
|
|
var allTableData = $("#table_equipmentScrapApplyDetail").bootstrapTable('getData');
|
|||
|
|
var equipmentCardIds = "";
|
|||
|
|
$.each(allTableData, function (index, item) {
|
|||
|
|
if (equipmentCardIds != "") {
|
|||
|
|
equipmentCardIds += ",";
|
|||
|
|
}
|
|||
|
|
equipmentCardIds += item.equipmentCardId;
|
|||
|
|
})
|
|||
|
|
|
|||
|
|
$.post(ext.contextPath + '/equipment/selectEquipmentCard4Choice.do', {
|
|||
|
|
equipmentIds: equipmentCardIds,
|
|||
|
|
unitId: unitId,
|
|||
|
|
processSectionId: ''
|
|||
|
|
}, function (data) {
|
|||
|
|
|
|||
|
|
$("#stock4SelectsDiv").html(data);
|
|||
|
|
openModal('equipment4SelectModal');
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
// $.post(ext.contextPath + '/equipment/EquipmentScrapApply/selectEquipmentCardDetails.do', {
|
|||
|
|
// stockIds: equipmentCardIds,
|
|||
|
|
// companyId: companyId
|
|||
|
|
// },
|
|||
|
|
// function (data) {
|
|||
|
|
// $("#stock4SelectsDiv").html(data);
|
|||
|
|
// openModal('subDetailModal');
|
|||
|
|
// });
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
var doFinishSelectEquipment = function (data) {
|
|||
|
|
// 调用报废申请保存接口
|
|||
|
|
$.post(ext.contextPath + "/equipment/EquipmentScrapApply/doCheckAcrap.do", {ids: data, scrapId : '${scrapApply.id}'}, function (data1) {
|
|||
|
|
if (data1.res == 1) {
|
|||
|
|
showAlert('d', data1.data, 'alertDiv');
|
|||
|
|
} else {
|
|||
|
|
$.post(ext.contextPath + '/equipment/EquipmentScrapApply/saveEquipmentScrapApplyDetails.do', {
|
|||
|
|
scrapApplyNumber: '${scrapApply.scrapApplyNumber}',
|
|||
|
|
equipmentCardIds: data
|
|||
|
|
}, function (data) {
|
|||
|
|
if (data.res) {
|
|||
|
|
closeModal("equipment4SelectModal")
|
|||
|
|
//$("#table_outStockDetail").bootstrapTable('refresh');
|
|||
|
|
$("#table_equipmentScrapApplyDetail").bootstrapTable('refresh');
|
|||
|
|
}
|
|||
|
|
}, 'json');
|
|||
|
|
}
|
|||
|
|
},'json');
|
|||
|
|
};
|
|||
|
|
//删除多条申购明细数据
|
|||
|
|
var deletesDetailFun = function () {
|
|||
|
|
//var checkedItems = $("#table_outStockDetail").bootstrapTable('getSelections');
|
|||
|
|
var checkedItems = $("#table_equipmentScrapApplyDetail").bootstrapTable('getSelections');
|
|||
|
|
var datas = "";
|
|||
|
|
$.each(checkedItems, function (index, item) {
|
|||
|
|
datas += item.id + ",";
|
|||
|
|
});
|
|||
|
|
if (datas == "") {
|
|||
|
|
showAlert('d', '请先选择记录', 'alertDivAdjust');
|
|||
|
|
} else {
|
|||
|
|
swal({
|
|||
|
|
text: "您确定要删除此记录?",
|
|||
|
|
dangerMode: true,
|
|||
|
|
buttons: {
|
|||
|
|
cancel: {
|
|||
|
|
text: "取消",
|
|||
|
|
value: null,
|
|||
|
|
visible: true,
|
|||
|
|
className: "btn btn-default btn-sm",
|
|||
|
|
closeModal: true,
|
|||
|
|
},
|
|||
|
|
confirm: {
|
|||
|
|
text: "确定",
|
|||
|
|
value: true,
|
|||
|
|
visible: true,
|
|||
|
|
className: "btn btn-danger btn-sm",
|
|||
|
|
closeModal: true
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
})
|
|||
|
|
.then(function (willDelete) {///
|
|||
|
|
if (willDelete) {
|
|||
|
|
$.post(ext.contextPath + '/equipment/EquipmentScrapApply/deletesEquipmentScrapApplyDetail.do', {ids: datas, money:'${scrapApply.totalMoney}'}, function (data) {
|
|||
|
|
|
|||
|
|
if (data.res) {
|
|||
|
|
//$("#table_outStockDetail").bootstrapTable('refresh');
|
|||
|
|
$("#table_equipmentScrapApplyDetail").bootstrapTable('refresh');
|
|||
|
|
} else {
|
|||
|
|
showAlert('d', '删除失败', 'alertDivAdjust');
|
|||
|
|
}
|
|||
|
|
}, 'json');
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
}
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
var companyId = "${scrapApply.bizId}";
|
|||
|
|
$(function () {
|
|||
|
|
//初始化文件显示
|
|||
|
|
getFileList_process();
|
|||
|
|
//初始化选择框,方法在workflow.js里
|
|||
|
|
processSelectNodeForHandle("${businessUnitAudit.taskid}");
|
|||
|
|
//显示流程详情
|
|||
|
|
var id = '${scrapApply.id}';
|
|||
|
|
$.post(ext.contextPath + '/equipment/EquipmentScrapApply/showProcessScrapApplyView.do', {
|
|||
|
|
id: id,
|
|||
|
|
inModal: 'inModal'
|
|||
|
|
}, function (data) {
|
|||
|
|
$("#showView").html(data);
|
|||
|
|
});
|
|||
|
|
//申请时间
|
|||
|
|
$("#applyTime").datepicker({
|
|||
|
|
language: 'zh-CN',
|
|||
|
|
autoclose: true,
|
|||
|
|
todayHighlight: true,
|
|||
|
|
format: 'yyyy-mm-dd',
|
|||
|
|
}).on('hide', function (e) {
|
|||
|
|
//当日期选择框关闭时,执行刷新校验
|
|||
|
|
$('#subForm').data('bootstrapValidator')
|
|||
|
|
.updateStatus('applyTime', 'NOT_VALIDATED', null)
|
|||
|
|
.validateField('applyTime');
|
|||
|
|
});
|
|||
|
|
//选择部门
|
|||
|
|
$.post(ext.contextPath + "/user/getDeptByBizId4Select.do", {companyId: companyId}, function (data) {
|
|||
|
|
var selelct = $("#deptId").select2({
|
|||
|
|
data: data,
|
|||
|
|
placeholder: '请选择',//默认文字提示
|
|||
|
|
allowClear: false,//允许清空
|
|||
|
|
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;
|
|||
|
|
} // 函数用于呈现当前的选择
|
|||
|
|
});
|
|||
|
|
selelct.val('${scrapApply.deptId}').trigger("change");
|
|||
|
|
}, 'json');
|
|||
|
|
|
|||
|
|
$("#subForm").bootstrapValidator({
|
|||
|
|
live: 'disabled',//验证时机,enabled是内容有变化就验证(默认),disabled和submitted是提交再验证
|
|||
|
|
fields: {
|
|||
|
|
scrapInstr: {
|
|||
|
|
validators: {
|
|||
|
|
notEmpty: {
|
|||
|
|
message: '报废原因不能为空'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
applyTime: {
|
|||
|
|
validators: {
|
|||
|
|
notEmpty: {
|
|||
|
|
message: '申请日期不能为空'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
//初始化,subUnitForm输入框验证
|
|||
|
|
$("#subUnitForm").bootstrapValidator({
|
|||
|
|
live: 'disabled',//验证时机,enabled是内容有变化就验证(默认),disabled和submitted是提交再验证
|
|||
|
|
fields: {}
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
$('#table_equipmentScrapApplyDetail').bootstrapTable({ // 对应table标签的id
|
|||
|
|
//url: ext.contextPath + '/sparepart/outStockRecord/getOutStockDetailList.do', // 获取表格数据的url
|
|||
|
|
url: ext.contextPath + '/equipment/EquipmentScrapApply/getEquipmentScrapApplyDetailList.do', // 获取表格数据的url
|
|||
|
|
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
|
|||
|
|
striped: true, //表格显示条纹,默认为false
|
|||
|
|
pagination: true, // 在表格底部显示分页组件,默认false
|
|||
|
|
pageList: [10, 20, 50], // 设置页面可以显示的数据条数
|
|||
|
|
pageSize: 10, // 页面数据条数
|
|||
|
|
pageNumber: 1, // 首页页码
|
|||
|
|
sidePagination: 'server', // 设置为服务器端分页
|
|||
|
|
queryParams: function (params) { // 请求服务器数据时发送的参数,可以在这里添加额外的查询参数,返回false则终止请求
|
|||
|
|
return {
|
|||
|
|
rows: params.limit, // 每页要显示的数据条数
|
|||
|
|
page: params.offset / params.limit + 1, // 每页显示数据的开始页码
|
|||
|
|
sort: params.sort, // 要排序的字段
|
|||
|
|
order: params.order,
|
|||
|
|
scrapApplyNumber: '${scrapApply.scrapApplyNumber}'
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
sortName: 'id', // 要排序的字段
|
|||
|
|
sortOrder: 'desc', // 排序规则
|
|||
|
|
columns: [
|
|||
|
|
{
|
|||
|
|
checkbox: true, // 显示一个勾选框
|
|||
|
|
}, {
|
|||
|
|
field: 'equipmentCard.equipmentcardid', // 返回json数据中的name
|
|||
|
|
title: '设备编号', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle', // 上下居中
|
|||
|
|
}, {
|
|||
|
|
field: 'equipmentCard.equipmentname', // 返回json数据中的name
|
|||
|
|
title: '设备名称', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle', // 上下居中
|
|||
|
|
},
|
|||
|
|
// {
|
|||
|
|
// field: 'equipmentCard.areaid', // 返回json数据中的name
|
|||
|
|
// title: '安装地点', // 表格表头显示文字
|
|||
|
|
// align: 'center', // 左右居中
|
|||
|
|
// valign: 'middle' // 上下居中
|
|||
|
|
// },
|
|||
|
|
{
|
|||
|
|
field: 'equipmentCard.assetnumber', // 返回json数据中的name
|
|||
|
|
title: '资产编码', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle' // 上下居中
|
|||
|
|
}, {
|
|||
|
|
field: 'equipmentCard.equipmentmanufacturer', // 返回json数据中的name
|
|||
|
|
title: '生产商', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle' // 上下居中
|
|||
|
|
}, {
|
|||
|
|
field: 'equipmentCard.equipmentvalue', // 返回json数据中的name
|
|||
|
|
title: '资产原值(元)', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle', // 上下居中
|
|||
|
|
|
|||
|
|
}, {
|
|||
|
|
field: 'equipmentCard.residualvalue', // 返回json数据中的name
|
|||
|
|
title: '剩余价值(元)', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle' // 上下居中
|
|||
|
|
},
|
|||
|
|
],
|
|||
|
|
onLoadSuccess: function () { //加载成功时执行
|
|||
|
|
adjustBootstrapTableView("table_equipmentScrapApplyDetail");
|
|||
|
|
},
|
|||
|
|
onLoadError: function () { //加载失败时执行
|
|||
|
|
console.info("加载数据失败");
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
});
|
|||
|
|
});
|
|||
|
|
//选择审核人
|
|||
|
|
var showUser4AuditSelectsFun = function () {
|
|||
|
|
var userIds = $("#targetusers").val();
|
|||
|
|
var jobIds = $("#targetjobs").val();
|
|||
|
|
// $.post(ext.contextPath + '/user/userForSelectByCompany.do', {
|
|||
|
|
// formId: "subUnitForm",
|
|||
|
|
// hiddenId: "targetusers",
|
|||
|
|
// textId: "targetUsersName",
|
|||
|
|
// userIds: userIds,
|
|||
|
|
// jobIds: jobIds
|
|||
|
|
// }, function (data) {
|
|||
|
|
// $("#user4SelectDiv").html(data);
|
|||
|
|
// openModal("user4SelectModal");
|
|||
|
|
// });
|
|||
|
|
|
|||
|
|
$.post(ext.contextPath + '/user/layerUser.do', {
|
|||
|
|
formId: "subUnitForm",
|
|||
|
|
hiddenId: "targetusers",
|
|||
|
|
textId: "targetUsersName",
|
|||
|
|
userIds: userIds, //已选的人员id
|
|||
|
|
unitId: unitId, //获取右上角的厂id
|
|||
|
|
type: '${Scrap_Apply}' //根据不同流程找到第一个节点的配置职位 ProcessType中的id
|
|||
|
|
}, function (data) {
|
|||
|
|
$("#user4SelectDiv").html(data);
|
|||
|
|
openModal("user4SelectModal");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
};
|
|||
|
|
</script>
|
|||
|
|
<div class="modal fade" id="subModal">
|
|||
|
|
<div class="modal-dialog modal-xlg">
|
|||
|
|
<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">
|
|||
|
|
<div class="row">
|
|||
|
|
<div class="col-md-7 col-xs-12">
|
|||
|
|
<!-- 新增界面formid强制为subForm -->
|
|||
|
|
<form class="form-horizontal" id="subForm">
|
|||
|
|
<!-- 界面提醒div强制id为alertDiv -->
|
|||
|
|
<div id="alertDivAdjust"></div>
|
|||
|
|
<input id="id" name="id" type="hidden" value="${scrapApply.id}"/>
|
|||
|
|
<input id="bizId" name="bizId" type="hidden" value="${scrapApply.bizId}"/>
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">*丢失申请单编号</label>
|
|||
|
|
<div class="col-sm-6">
|
|||
|
|
<input type="text" class="form-control" id="scrapApplyNumber" name="scrapApplyNumber"
|
|||
|
|
value="${scrapApply.scrapApplyNumber }" readonly>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">*申请日期</label>
|
|||
|
|
<div class="col-sm-6">
|
|||
|
|
<div class="input-group date">
|
|||
|
|
<div class="input-group-addon">
|
|||
|
|
<i class="fa fa-calendar"></i>
|
|||
|
|
</div>
|
|||
|
|
<input type="text" class="form-control" id="applyTime" name="applyTime"
|
|||
|
|
style="width: 230px;" value="${scrapApply.applyTime.substring(0,10)}"
|
|||
|
|
placeholder="请选择"/>
|
|||
|
|
</div>
|
|||
|
|
</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="deptId" name ="deptId" style="width: 270px;">
|
|||
|
|
</select>
|
|||
|
|
</div>
|
|||
|
|
</div> -->
|
|||
|
|
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">*申请人</label>
|
|||
|
|
<div class="col-sm-6">
|
|||
|
|
<input type="text" class="form-control" id="applyPeopleName" name="applyPeopleName"
|
|||
|
|
placeholder="点击选择" disabled value="${scrapApply.applyPeopleName}">
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<%-- <div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">审核人</label>
|
|||
|
|
<div class="col-sm-6">
|
|||
|
|
<input type="text" class="form-control" id="auditMan" name="auditMan" placeholder="点击选择" onclick="showUser4AuditSelectsFun();" value="${scrapApply.auditMan}">
|
|||
|
|
<input id="auditId" name="auditId" type="hidden" value="${scrapApply.auditId}" />
|
|||
|
|
</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="scrapInstr" name="scrapInstr"
|
|||
|
|
placeholder="丢失原因和要求">${scrapApply.scrapInstr}</textarea>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</form>
|
|||
|
|
|
|||
|
|
<!--审核退回后显示 -->
|
|||
|
|
<form class="form-horizontal" id="subUnitForm" enctype="multipart/form-data">
|
|||
|
|
<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="taskdefinitionkey"
|
|||
|
|
value="${businessUnitAudit.taskdefinitionkey}">
|
|||
|
|
<%-- <input type="hidden" class="form-control" id= "targetusers" name ="targetusers" value="${businessUnitHandle.targetusers}"> --%>
|
|||
|
|
<input type="hidden" class="form-control" name="unitid" value="${param.unitId}">
|
|||
|
|
<c:if test='${not empty businessUnitAudit.auditopinion }'>
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">审核意见:</label>
|
|||
|
|
<div class="col-sm-10">
|
|||
|
|
<textarea class="form-control " id="auditopinion" name="auditopinion" rows="2"
|
|||
|
|
placeholder="审核意见">${businessUnitAudit.auditopinion}</textarea>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</c:if>
|
|||
|
|
<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 id="selectUsers" class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">提交至:</label>
|
|||
|
|
<div class="col-sm-10">
|
|||
|
|
<input type="text" class="form-control" id="targetUsersName" name="targetUsersName"
|
|||
|
|
placeholder="下一级人员" value="${scrapApply.auditMan}" onclick="showUser4AuditSelectsFun();">
|
|||
|
|
<input id="targetusers" name="targetusers" type="hidden"
|
|||
|
|
value="${scrapApply.auditId}" />
|
|||
|
|
<input class="form-control" id="targetjobs" name="targetjobs" type="hidden" value=""/>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<!-- 文件上传,显示 -->
|
|||
|
|
<div class="form-group" style="margin:8px">
|
|||
|
|
<label class="col-sm-2 control-label"></label>
|
|||
|
|
<button type="button" class="btn btn-default btn-file" onclick="fileinput_process()"
|
|||
|
|
id="btn_save"><i class="fa fa-paperclip"></i>上传文件
|
|||
|
|
</button>
|
|||
|
|
</div>
|
|||
|
|
<div id="fileArea">
|
|||
|
|
</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="addDetailFun()" class="btn btn-box-tool" data-toggle="tooltip" title="新增"><i
|
|||
|
|
class="glyphicon glyphicon-plus"></i></a>
|
|||
|
|
<a onclick="deletesDetailFun()" class="btn btn-box-tool" data-toggle="tooltip" title="删除"><i
|
|||
|
|
class="glyphicon glyphicon-minus"></i></a>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<!-- /.box-header -->
|
|||
|
|
<div class="box-body ">
|
|||
|
|
<table id="table_equipmentScrapApplyDetail"></table>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="col-md-5 col-xs-12" id="showView"></div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="modal-footer">
|
|||
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
|
|||
|
|
<button type="button" class="btn btn-primary" onclick="doupdate()" id="btn_update">保存</button>
|
|||
|
|
<button type="button" class="btn btn-primary" onclick="submitFun()" id="btn_submit">提交审核</button>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<!-- /.modal-content -->
|
|||
|
|
</div>
|
|||
|
|
<!-- /.modal-dialog -->
|
|||
|
|
</div>
|