215 lines
10 KiB
Plaintext
215 lines
10 KiB
Plaintext
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||
<%@page import="com.sipai.entity.sparepart.SparePartCommString" %>
|
||
|
||
<style type="text/css">
|
||
.select2-container .select2-selection--single {
|
||
height: 34px;
|
||
line-height: 34px;
|
||
}
|
||
|
||
.select2-selection__arrow {
|
||
margin-top: 3px;
|
||
}
|
||
.form-horizontal{
|
||
padding-top: 20px;
|
||
padding-left: 40px;
|
||
}
|
||
</style>
|
||
<script type="text/javascript">
|
||
|
||
$(function(){
|
||
$('#table_otherDetail').bootstrapTable({ // 对应table标签的id
|
||
url: ext.contextPath + '/sparepart/rawMaterial/getRawMaterialDetailList.do', // 获取表格数据的url
|
||
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
|
||
striped: true, //表格显示条纹,默认为false
|
||
pagination: true, // 在表格底部显示分页组件,默认false
|
||
pageList: [10, 20,50], // 设置页面可以显示的数据条数
|
||
pageSize: 10, // 页面数据条数
|
||
pageNumber: 1, // 首页页码
|
||
//showFooter:true,//添加页脚
|
||
sidePagination: 'server', // 设置为服务器端分页
|
||
queryParams: function (params) { // 请求服务器数据时发送的参数,可以在这里添加额外的查询参数,返回false则终止请求
|
||
return {
|
||
rows: params.limit, // 每页要显示的数据条数
|
||
page: params.offset/params.limit+1, // 每页显示数据的开始页码
|
||
sort: params.sort, // 要排序的字段
|
||
order: params.order,
|
||
pid:'${rawMaterial.id}',
|
||
type:'${INSTOCK_OTHER}'
|
||
}
|
||
},
|
||
sortName: 'id', // 要排序的字段
|
||
sortOrder: 'desc', // 排序规则
|
||
columns: [
|
||
// {
|
||
// checkbox: true, // 显示一个勾选框
|
||
// },{
|
||
// field: 'goods.name', // 返回json数据中的name
|
||
// title: '物品名称', // 表格表头显示文字
|
||
// align: 'center', // 左右居中
|
||
// valign: 'middle', // 上下居中
|
||
// },{
|
||
// field: 'goods.model', // 返回json数据中的name
|
||
// title: '规格型号', // 表格表头显示文字
|
||
// align: 'center', // 左右居中
|
||
// valign: 'middle', // 上下居中
|
||
// },{
|
||
// field: 'goods.brand', // 返回json数据中的name
|
||
// title: '品牌', // 表格表头显示文字
|
||
// align: 'center', // 左右居中
|
||
// valign: 'middle' // 上下居中
|
||
// },{
|
||
// field: 'goods.unit', // 返回json数据中的name
|
||
// title: '单位', // 表格表头显示文字
|
||
// align: 'center', // 左右居中
|
||
// valign: 'middle' // 上下居中
|
||
// },{
|
||
// field: 'rawmaterialNumber', // 返回json数据中的name
|
||
// title: '登记数量', // 表格表头显示文字
|
||
// align: 'center', // 左右居中
|
||
// valign: 'middle', // 上下居中
|
||
// editable: { //编辑列元素
|
||
// type: 'text',
|
||
// title: '数量',
|
||
// validate: function (v) {
|
||
// if (!v) return '数量不能为空';
|
||
// }
|
||
// }
|
||
// },
|
||
],
|
||
|
||
onLoadSuccess: function(){ //加载成功时执行
|
||
adjustBootstrapTableView("table_otherDetail");
|
||
},
|
||
onLoadError: function(){ //加载失败时执行
|
||
console.info("加载数据失败");
|
||
}
|
||
|
||
});
|
||
//采购时间
|
||
$("#registerDate").datetimepicker({
|
||
language:'zh-CN',
|
||
format: 'yyyy-mm-dd hh:ii',
|
||
dateFormat: 'yyyy-mm-dd',//日期显示格式
|
||
timeFormat: 'HH:mm',//时间显示格式
|
||
startView: "month", //初始化视图是‘年’
|
||
minView: 0,
|
||
maxView: "year",
|
||
minuteStep: 1,//分钟间隔1分钟
|
||
autoclose: true
|
||
}).on('changeDate', function () {});
|
||
$("#planSpotCheckCompleteTime").datetimepicker({
|
||
language:'zh-CN',
|
||
format: 'yyyy-mm-dd hh:ii',
|
||
dateFormat: 'yyyy-mm-dd',//日期显示格式
|
||
timeFormat: 'HH:mm',//时间显示格式
|
||
startView: "month", //初始化视图是‘年’
|
||
minView: 0,
|
||
maxView: "year",
|
||
minuteStep: 1,//分钟间隔1分钟
|
||
autoclose: true
|
||
}).on('changeDate', function () { });
|
||
//初始化tooltip
|
||
$('[data-toggle="tooltip"]').tooltip();
|
||
});
|
||
|
||
$(function(){
|
||
var sex='${safetyStaffArchives.sex}';
|
||
if(sex== '0'){
|
||
$('#sex').html('女');
|
||
}else if(sex == '1'){
|
||
$('#sex').html('男');
|
||
}else{
|
||
$('#sex').html('未知');
|
||
}
|
||
})
|
||
|
||
</script>
|
||
<div class="modal fade" id="subModal">
|
||
<div class="modal-dialog" style="width: 45%" >
|
||
<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-12 col-xs-10">
|
||
<!-- 新增界面formid强制为subForm -->
|
||
<form class="form-horizontal" id="subForm" enctype="multipart/form-data">
|
||
<!-- 界面提醒div强制id为alertDiv -->
|
||
<div id="alertDiv"></div>
|
||
<input type="hidden" class="form-control" id="id" name="id" value="${abnormity.id}">
|
||
<input type="hidden" name="status" value="${Wait}"/>
|
||
|
||
<div class="form-group">
|
||
<label class="col-sm-2 control-label">工号</label>
|
||
<div class="col-sm-4">
|
||
<p class="form-control-static">${safetyStaffArchives.userCardId}</p>
|
||
</div>
|
||
<label class="col-sm-2 control-label">姓名</label>
|
||
<div class="col-sm-4">
|
||
<p class="form-control-static">${safetyStaffArchives.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" id="sex">${safetyStaffArchives.sex}</p>
|
||
</div>
|
||
<label class="col-sm-2 control-label">身份证号</label>
|
||
<div class="col-sm-4">
|
||
<p class="form-control-static">${safetyStaffArchives.idcard}</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">${safetyStaffArchives.birthday}</p>
|
||
</div>
|
||
<label class="col-sm-2 control-label">参加工作时间</label>
|
||
<div class="col-sm-4">
|
||
<p class="form-control-static">${safetyStaffArchives.workTime}</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">${safetyStaffArchives.hiredate}</p>
|
||
</div>
|
||
<label class="col-sm-2 control-label">所属部门</label>
|
||
<div class="col-sm-4">
|
||
<p class="form-control-static">${safetyStaffArchives.deptName}</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">${safetyStaffArchives.post}</p>
|
||
</div>
|
||
<label class="col-sm-2 control-label">职务</label>
|
||
<div class="col-sm-4">
|
||
<p class="form-control-static">${safetyStaffArchives.duty}</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">${safetyStaffArchives.jobTitle}</p>
|
||
</div>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button type="button" class="btn btn-default " data-dismiss="modal">关闭
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|