2173 lines
105 KiB
Plaintext
2173 lines
105 KiB
Plaintext
|
|
<%@page import="com.sipai.tools.CommString"%>
|
|||
|
|
<%@page import="com.sipai.entity.maintenance.MaintenanceDetail"%>
|
|||
|
|
<%@page import="com.sipai.entity.maintenance.MaintenanceCommString"%>
|
|||
|
|
<%@page import="com.sipai.entity.equipment.EquipmentCard"%>
|
|||
|
|
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
|
|||
|
|
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %>
|
|||
|
|
<%@ page language="java" pageEncoding="UTF-8"%>
|
|||
|
|
<%@ taglib uri="http://www.springsecurity.org/jsp" prefix="security"%>
|
|||
|
|
<%request.setAttribute("False", CommString.Active_False); %>
|
|||
|
|
<%request.setAttribute("True", CommString.Active_True); %>
|
|||
|
|
<%request.setAttribute("MAINTENANCE_TYPE_MAINTAIN", MaintenanceCommString.MAINTENANCE_TYPE_MAINTAIN); %>
|
|||
|
|
<%request.setAttribute("MAINTENANCE_TYPE_REPAIR", MaintenanceCommString.MAINTENANCE_TYPE_REPAIR); %>
|
|||
|
|
<%request.setAttribute("Status_Finish", MaintenanceDetail.Status_Finish); %>
|
|||
|
|
<%request.setAttribute("Status_OFF", EquipmentCard.Status_OFF); %>
|
|||
|
|
<%request.setAttribute("Status_ON", EquipmentCard.Status_ON); %>
|
|||
|
|
<%request.setAttribute("Status_Fault", EquipmentCard.Status_Fault); %>
|
|||
|
|
<%request.setAttribute("Status_Transfer", EquipmentCard.Status_Transfer); %>
|
|||
|
|
<%request.setAttribute("Status_Scrap", EquipmentCard.Status_Scrap); %>
|
|||
|
|
<%request.setAttribute("Status_STOP", EquipmentCard.Status_STOP); %>
|
|||
|
|
<%request.setAttribute("Status_IN", EquipmentCard.Status_IN); %>
|
|||
|
|
|
|||
|
|
<%request.setAttribute("ABC_A", EquipmentCard.ABC_A); %>
|
|||
|
|
<%request.setAttribute("ABC_B", EquipmentCard.ABC_B); %>
|
|||
|
|
<%request.setAttribute("ABC_C", EquipmentCard.ABC_C); %>
|
|||
|
|
|
|||
|
|
<%request.setAttribute("CompulsoryInspectionType_EQUIP", EquipmentCard.CompulsoryInspectionType_EQUIP); %>
|
|||
|
|
<%request.setAttribute("CompulsoryInspectionType_APP", EquipmentCard.CompulsoryInspectionType_APP); %>
|
|||
|
|
<%request.setAttribute("CompulsoryInspectionType_CAR", EquipmentCard.CompulsoryInspectionType_CAR); %>
|
|||
|
|
|
|||
|
|
<%request.setAttribute("AssetType_MECH", EquipmentCard.AssetType_MECH); %>
|
|||
|
|
<%request.setAttribute("AssetType_ELEC", EquipmentCard.AssetType_ELEC); %>
|
|||
|
|
<%request.setAttribute("AssetType_APP", EquipmentCard.AssetType_APP); %>
|
|||
|
|
<%request.setAttribute("AssetType_AUTO", EquipmentCard.AssetType_AUTO); %>
|
|||
|
|
<%request.setAttribute("AssetType_HALFAUTO", EquipmentCard.AssetType_HALFAUTO); %>
|
|||
|
|
<%request.setAttribute("AssetType_INDUS", EquipmentCard.AssetType_INDUS); %>
|
|||
|
|
|
|||
|
|
<%request.setAttribute("Status_Start",MaintenanceDetail.Status_Start);%>
|
|||
|
|
|
|||
|
|
<style type="text/css">
|
|||
|
|
.select2-container .select2-selection--single{
|
|||
|
|
height:34px;
|
|||
|
|
line-height: 34px;
|
|||
|
|
}
|
|||
|
|
.select2-selection__arrow{
|
|||
|
|
margin-top:3px;
|
|||
|
|
}
|
|||
|
|
#container {
|
|||
|
|
height: 500px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
.kuandu{
|
|||
|
|
width: 88px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/*
|
|||
|
|
根据不同分辨率显示不同px的文字大小
|
|||
|
|
*/
|
|||
|
|
@media (min-width: 768px) and (min-height: 432px) {
|
|||
|
|
.leftstyle{
|
|||
|
|
width: 100%;
|
|||
|
|
float:left
|
|||
|
|
}
|
|||
|
|
.midstyle{
|
|||
|
|
width: 0%;
|
|||
|
|
float:left;
|
|||
|
|
height:0px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.rightstyle{
|
|||
|
|
width: 100%;
|
|||
|
|
float:left
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.modal-content{
|
|||
|
|
width: 610px;
|
|||
|
|
margin-left: 0%;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/*笔记本*/
|
|||
|
|
@media (min-width: 1130px) and (min-height: 530px) {
|
|||
|
|
.leftstyle{
|
|||
|
|
width: 54%;
|
|||
|
|
float:left
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.midstyle{
|
|||
|
|
width: 2%;
|
|||
|
|
float:left;
|
|||
|
|
height:1050px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.rightstyle{
|
|||
|
|
width: 44%;
|
|||
|
|
float:left
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.modal-content{
|
|||
|
|
width: 1100px;
|
|||
|
|
margin-left: -42%;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
/*普通2k*/
|
|||
|
|
@media (min-width: 1200px) and (min-height: 675px) {
|
|||
|
|
.leftstyle{
|
|||
|
|
width: 54%;
|
|||
|
|
float:left
|
|||
|
|
}
|
|||
|
|
.midstyle{
|
|||
|
|
width: 2%;
|
|||
|
|
float:left;
|
|||
|
|
height:1050px;
|
|||
|
|
}
|
|||
|
|
.rightstyle{
|
|||
|
|
width: 44%;
|
|||
|
|
float:left
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.modal-content{
|
|||
|
|
width: 1100px;
|
|||
|
|
margin-left: -42%;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
</style>
|
|||
|
|
<script type="text/javascript">
|
|||
|
|
var tbName ='tb_doc_file'; //数据表
|
|||
|
|
//下载文件
|
|||
|
|
var fileDownload = function(id) {
|
|||
|
|
window.open(ext.contextPath + "/base/downloadFile.do?key="+id+"&tbName="+tbName);
|
|||
|
|
};
|
|||
|
|
var delFileFun = function(id) {
|
|||
|
|
stopBubbleDefaultEvent();
|
|||
|
|
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 + '/document/dodeleteFile.do', {id : id,tbName:tbName}, function(data) {
|
|||
|
|
if(data == 1){
|
|||
|
|
$("#fileTable").bootstrapTable('refresh');
|
|||
|
|
}else{
|
|||
|
|
showAlert('d','删除失败','mainAlertdiv');
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
|
|||
|
|
var masterId='${equipmentCard.id}';
|
|||
|
|
var tbName='TB_EM_EquipmentCard_File'; //数据表
|
|||
|
|
var nameSpace='EquipmentCardFile';//保存文件夹
|
|||
|
|
var previews = new Array();
|
|||
|
|
var previewConfigs = new Array();
|
|||
|
|
function showFileInput(ctrlName) {
|
|||
|
|
var control = $('#' + ctrlName);
|
|||
|
|
|
|||
|
|
control.fileinput('destroy');
|
|||
|
|
control.fileinput({
|
|||
|
|
language: 'zh', //设置语言
|
|||
|
|
showUpload: false, //是否显示上传按钮
|
|||
|
|
allowedFileExtensions : ['jpg', 'png','gif','pdf','doc','xls','docx','ppt','pptx','xlsx'],
|
|||
|
|
showRemove:false,
|
|||
|
|
showCaption: false,//是否显示标题
|
|||
|
|
showBrowse:false,//选择按钮
|
|||
|
|
showClose:false,//右上角关闭按钮
|
|||
|
|
dropZoneEnabled: false,//是否显示拖拽区域
|
|||
|
|
fileActionSettings:{
|
|||
|
|
showDrag:false
|
|||
|
|
},
|
|||
|
|
browseClass: "btn btn-primary", //按钮样式
|
|||
|
|
maxFileCount: 10, //表示允许同时上传的最大文件个数
|
|||
|
|
enctype: 'multipart/form-data',
|
|||
|
|
validateInitialCount:true,
|
|||
|
|
previewFileIcon: "<i class='glyphicon glyphicon-king'></i>",
|
|||
|
|
initialPreviewAsData: true,
|
|||
|
|
initialPreview: previews,
|
|||
|
|
initialPreviewConfig:previewConfigs,
|
|||
|
|
layoutTemplates:{
|
|||
|
|
actionDelete:'', //这行可以隐藏删除按钮
|
|||
|
|
actionUpload:'' //这行可以隐藏上传按钮
|
|||
|
|
},
|
|||
|
|
deleteUrl:ext.contextPath+"/base/deleteInputFile.do",
|
|||
|
|
deleteExtraData:function () { //传参
|
|||
|
|
var data = {
|
|||
|
|
"tbName": tbName
|
|||
|
|
};
|
|||
|
|
return data;
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
$('#kvFileinputModal').on("hidden.bs.modal", function() {
|
|||
|
|
$(this).removeData("bs.modal");
|
|||
|
|
//modal重复打开会导致前面的滚动条失去作用
|
|||
|
|
$('.modal').css("overflow","auto");
|
|||
|
|
});
|
|||
|
|
}
|
|||
|
|
//名称定义不可修改
|
|||
|
|
var getFileList = function() {
|
|||
|
|
$.post(ext.contextPath + '/base/getInputFileList.do', {masterId:masterId,tbName:tbName} , function(data) {
|
|||
|
|
//console.info(data)
|
|||
|
|
if(data.length>0){
|
|||
|
|
previews=new Array();
|
|||
|
|
$('#maintenancefile').show();
|
|||
|
|
for(var i=0;i<data.length;i++){
|
|||
|
|
var previewConfig = new Object();
|
|||
|
|
var path = data[i].abspath;
|
|||
|
|
path=path.substring(path.indexOf('webapps')+7,path.length);
|
|||
|
|
path =ext.basePath.replace(ext.contextPath,'')+ path.replace(/\\/g,"\/");;
|
|||
|
|
previews.push(path);
|
|||
|
|
previewConfig['width']= '50px';
|
|||
|
|
previewConfig['caption']= data[i].filename;
|
|||
|
|
previewConfig['key']= data[i].id;
|
|||
|
|
previewConfigs.push(previewConfig);
|
|||
|
|
}
|
|||
|
|
showFileInput("equipmentCardFileDiv");
|
|||
|
|
}else{
|
|||
|
|
$('#equipmentCardFileDiv').hide();
|
|||
|
|
}
|
|||
|
|
},'json');
|
|||
|
|
|
|||
|
|
};
|
|||
|
|
var fileinput = function() {
|
|||
|
|
//var url='/maintenance/updateProblemFile.do';//保存数据表方法
|
|||
|
|
$.post(ext.contextPath + '/base/fileinput.do', {masterId:masterId,tbName:tbName,nameSpace:nameSpace} , function(data) {
|
|||
|
|
$("#fileInputDiv").html(data);
|
|||
|
|
openModal('fileInputModal');
|
|||
|
|
});
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
//查看维修单
|
|||
|
|
var viewRepairFun = function(id){
|
|||
|
|
$.post(ext.contextPath + '/maintenance/viewMaintain.do', {id:id} , function(data) {
|
|||
|
|
$("#subRepairDiv").html(data);
|
|||
|
|
openModal('subRepairModal');
|
|||
|
|
});
|
|||
|
|
}
|
|||
|
|
//查看保养单
|
|||
|
|
var viewMaintainFun = function(id){
|
|||
|
|
$.post(ext.contextPath + '/maintenance/viewMaintain.do', {id:id} , function(data) {
|
|||
|
|
$("#subMaintainDiv").html(data);
|
|||
|
|
openModal('subMaintainModal');
|
|||
|
|
});
|
|||
|
|
}
|
|||
|
|
//查看附属设备信息
|
|||
|
|
var viewAttachedFun = function(id){
|
|||
|
|
$.post(ext.contextPath + '/equipment/attachedEquipmentView.do', {id:id} , function(data) {
|
|||
|
|
$("#subAttachedDiv").html(data);
|
|||
|
|
openModal('subAttachedModal');
|
|||
|
|
});
|
|||
|
|
}
|
|||
|
|
//查看测量点
|
|||
|
|
var viewMPointFun = function(id){
|
|||
|
|
$.post(ext.contextPath + '/work/mpoint/view.do', {bizId:'${equipmentCard.bizid}',id:id} , function(data) {
|
|||
|
|
$("#MpointDiv").html(data);
|
|||
|
|
openModal('subMpointModal');
|
|||
|
|
});
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
//维修记录时间筛选
|
|||
|
|
var beginTimeStore = '';
|
|||
|
|
var endTimeStore = '';
|
|||
|
|
|
|||
|
|
//保养记录时间筛选
|
|||
|
|
var MaintainbeginTimeStore = '';
|
|||
|
|
var MaintainendTimeStore = '';
|
|||
|
|
|
|||
|
|
//停用记录时间筛选
|
|||
|
|
var StopbeginTimeStore = '';
|
|||
|
|
var StopendTimeStore = '';
|
|||
|
|
|
|||
|
|
|
|||
|
|
// 维修记录起止日期选择
|
|||
|
|
function repairDate() {
|
|||
|
|
|
|||
|
|
// 定义locale汉化插件
|
|||
|
|
// beginTimeStore = $("#startdate").val(); 可以自定义起始时间
|
|||
|
|
// endTimeStore = $("#startdate").val();
|
|||
|
|
|
|||
|
|
beginTimeStore = moment().subtract(7, 'days').format('YYYY-MM-DD');
|
|||
|
|
endTimeStore = moment().subtract(0, 'days').format('YYYY-MM-DD');
|
|||
|
|
var locale = {
|
|||
|
|
"format": 'YYYY-MM-DD',
|
|||
|
|
"separator": " ~ ",
|
|||
|
|
"applyLabel": "确定",
|
|||
|
|
"cancelLabel": "取消",
|
|||
|
|
"fromLabel": "起始时间",
|
|||
|
|
"toLabel": "结束时间'",
|
|||
|
|
"customRangeLabel": "自定义",
|
|||
|
|
"weekLabel": "W",
|
|||
|
|
"daysOfWeek": ["日", "一", "二", "三", "四", "五", "六"],
|
|||
|
|
"monthNames": ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
|
|||
|
|
"firstDay": 1
|
|||
|
|
};
|
|||
|
|
$('#repairtime').daterangepicker({
|
|||
|
|
"timePicker": false,
|
|||
|
|
"timePicker24Hour": false,
|
|||
|
|
"linkedCalendars": false,
|
|||
|
|
"autoUpdateInput": false,
|
|||
|
|
"timePickerIncrement": 10,
|
|||
|
|
"locale": locale,
|
|||
|
|
// 汉化按钮部分
|
|||
|
|
ranges: {
|
|||
|
|
'今日': [moment(), moment().subtract(-1, 'days')],
|
|||
|
|
'昨日': [moment().subtract(1, 'days'), moment()],
|
|||
|
|
'最近7日': [moment().subtract(6, 'days'), moment().subtract(-1, 'days')],
|
|||
|
|
'本月': [moment().startOf('month'), moment().endOf('month').subtract(-1, 'days')],
|
|||
|
|
'上月': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month').subtract(-1, 'days')]
|
|||
|
|
},
|
|||
|
|
startDate: beginTimeStore,
|
|||
|
|
endDate: endTimeStore
|
|||
|
|
}, function (start, end, label) {
|
|||
|
|
beginTimeStore = start.format(this.locale.format);
|
|||
|
|
endTimeStore = end.format(this.locale.format);
|
|||
|
|
if (!this.startDate) {
|
|||
|
|
this.element.val('');
|
|||
|
|
} else {
|
|||
|
|
this.element.val(this.startDate.format(this.locale.format) + this.locale.separator + this.endDate.format(this.locale.format));
|
|||
|
|
}
|
|||
|
|
// dosearch();
|
|||
|
|
$("#table_repair").bootstrapTable('refresh');
|
|||
|
|
console.log(beginTimeStore);
|
|||
|
|
console.log(endTimeStore);
|
|||
|
|
// console.log("66");
|
|||
|
|
});
|
|||
|
|
$('#repairtime').val(beginTimeStore + locale.separator + endTimeStore);
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
// 保养记录起止日期选择
|
|||
|
|
function maintainDate() {
|
|||
|
|
|
|||
|
|
// 定义locale汉化插件
|
|||
|
|
// beginTimeStore = $("#startdate").val(); 可以自定义起始时间
|
|||
|
|
// endTimeStore = $("#startdate").val();
|
|||
|
|
|
|||
|
|
MaintainbeginTimeStore = moment().subtract(7, 'days').format('YYYY-MM-DD');
|
|||
|
|
MaintainendTimeStore = moment().subtract(0, 'days').format('YYYY-MM-DD');
|
|||
|
|
var locale = {
|
|||
|
|
"format": 'YYYY-MM-DD',
|
|||
|
|
"separator": " ~ ",
|
|||
|
|
"applyLabel": "确定",
|
|||
|
|
"cancelLabel": "取消",
|
|||
|
|
"fromLabel": "起始时间",
|
|||
|
|
"toLabel": "结束时间'",
|
|||
|
|
"customRangeLabel": "自定义",
|
|||
|
|
"weekLabel": "W",
|
|||
|
|
"daysOfWeek": ["日", "一", "二", "三", "四", "五", "六"],
|
|||
|
|
"monthNames": ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
|
|||
|
|
"firstDay": 1
|
|||
|
|
};
|
|||
|
|
$('#maintaintime').daterangepicker({
|
|||
|
|
"timePicker": false,
|
|||
|
|
"timePicker24Hour": false,
|
|||
|
|
"linkedCalendars": false,
|
|||
|
|
"autoUpdateInput": false,
|
|||
|
|
"timePickerIncrement": 10,
|
|||
|
|
"locale": locale,
|
|||
|
|
// 汉化按钮部分
|
|||
|
|
ranges: {
|
|||
|
|
'今日': [moment(), moment().subtract(-1, 'days')],
|
|||
|
|
'昨日': [moment().subtract(1, 'days'), moment()],
|
|||
|
|
'最近7日': [moment().subtract(6, 'days'), moment().subtract(-1, 'days')],
|
|||
|
|
'本月': [moment().startOf('month'), moment().endOf('month').subtract(-1, 'days')],
|
|||
|
|
'上月': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month').subtract(-1, 'days')]
|
|||
|
|
},
|
|||
|
|
startDate: MaintainbeginTimeStore,
|
|||
|
|
endDate: MaintainendTimeStore
|
|||
|
|
}, function (start, end, label) {
|
|||
|
|
MaintainbeginTimeStore = start.format(this.locale.format);
|
|||
|
|
MaintainendTimeStore = end.format(this.locale.format);
|
|||
|
|
if (!this.startDate) {
|
|||
|
|
this.element.val('');
|
|||
|
|
} else {
|
|||
|
|
this.element.val(this.startDate.format(this.locale.format) + this.locale.separator + this.endDate.format(this.locale.format));
|
|||
|
|
}
|
|||
|
|
// dosearch();
|
|||
|
|
$("#table_maintain").bootstrapTable('refresh');
|
|||
|
|
console.log(MaintainbeginTimeStore);
|
|||
|
|
console.log(MaintainendTimeStore);
|
|||
|
|
// console.log("66");
|
|||
|
|
});
|
|||
|
|
$('#maintaintime').val(MaintainbeginTimeStore + locale.separator + MaintainendTimeStore);
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
|
|||
|
|
// 停用记录起止日期选择
|
|||
|
|
function stopDate() {
|
|||
|
|
|
|||
|
|
// 定义locale汉化插件
|
|||
|
|
// beginTimeStore = $("#startdate").val(); 可以自定义起始时间
|
|||
|
|
// endTimeStore = $("#startdate").val();
|
|||
|
|
|
|||
|
|
StopbeginTimeStore = moment().subtract(7, 'days').format('YYYY-MM-DD');
|
|||
|
|
StopendTimeStore = moment().subtract(0, 'days').format('YYYY-MM-DD');
|
|||
|
|
var locale = {
|
|||
|
|
"format": 'YYYY-MM-DD',
|
|||
|
|
"separator": " ~ ",
|
|||
|
|
"applyLabel": "确定",
|
|||
|
|
"cancelLabel": "取消",
|
|||
|
|
"fromLabel": "起始时间",
|
|||
|
|
"toLabel": "结束时间'",
|
|||
|
|
"customRangeLabel": "自定义",
|
|||
|
|
"weekLabel": "W",
|
|||
|
|
"daysOfWeek": ["日", "一", "二", "三", "四", "五", "六"],
|
|||
|
|
"monthNames": ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
|
|||
|
|
"firstDay": 1
|
|||
|
|
};
|
|||
|
|
$('#stoptime').daterangepicker({
|
|||
|
|
"timePicker": false,
|
|||
|
|
"timePicker24Hour": false,
|
|||
|
|
"linkedCalendars": false,
|
|||
|
|
"autoUpdateInput": false,
|
|||
|
|
"timePickerIncrement": 10,
|
|||
|
|
"locale": locale,
|
|||
|
|
// 汉化按钮部分
|
|||
|
|
ranges: {
|
|||
|
|
'今日': [moment(), moment().subtract(-1, 'days')],
|
|||
|
|
'昨日': [moment().subtract(1, 'days'), moment()],
|
|||
|
|
'最近7日': [moment().subtract(6, 'days'), moment().subtract(-1, 'days')],
|
|||
|
|
'本月': [moment().startOf('month'), moment().endOf('month').subtract(-1, 'days')],
|
|||
|
|
'上月': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month').subtract(-1, 'days')]
|
|||
|
|
},
|
|||
|
|
startDate: StopbeginTimeStore,
|
|||
|
|
endDate: StopendTimeStore
|
|||
|
|
}, function (start, end, label) {
|
|||
|
|
StopbeginTimeStore = start.format(this.locale.format);
|
|||
|
|
StopendTimeStore = end.format(this.locale.format);
|
|||
|
|
if (!this.startDate) {
|
|||
|
|
this.element.val('');
|
|||
|
|
} else {
|
|||
|
|
this.element.val(this.startDate.format(this.locale.format) + this.locale.separator + this.endDate.format(this.locale.format));
|
|||
|
|
}
|
|||
|
|
// dosearch();
|
|||
|
|
$("#table_stopEquipment").bootstrapTable('refresh');
|
|||
|
|
console.log(StopbeginTimeStore);
|
|||
|
|
console.log(StopendTimeStore);
|
|||
|
|
});
|
|||
|
|
$('#stoptime').val(StopbeginTimeStore + locale.separator + StopendTimeStore);
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
|
|||
|
|
//判断是否为单一设备 所属设备
|
|||
|
|
function isOneDevice(){
|
|||
|
|
var equipid = "${equipmentCard.equipmentPid.equipmentname}";
|
|||
|
|
if(equipid!=null && equipid != ''){
|
|||
|
|
$('#isOne').html("否");
|
|||
|
|
}else{
|
|||
|
|
$('#isOne').html("是");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
$(function(){
|
|||
|
|
//getFileList();
|
|||
|
|
//判断是否为单一设备
|
|||
|
|
//isOneDevice();
|
|||
|
|
//初始化维修时间筛选
|
|||
|
|
//repairDate();
|
|||
|
|
//初始化保养时间筛选
|
|||
|
|
//maintainDate();
|
|||
|
|
//初始化停用时间筛选
|
|||
|
|
//stopDate();
|
|||
|
|
|
|||
|
|
//强检类型
|
|||
|
|
var compulsoryInspectionType = "${equipmentCard.compulsoryInspectionType}";
|
|||
|
|
switch (compulsoryInspectionType){
|
|||
|
|
case '${CompulsoryInspectionType_EQUIP}':
|
|||
|
|
$("#compulsoryInspectionType").html("特种设备");
|
|||
|
|
break;
|
|||
|
|
case '${CompulsoryInspectionType_APP}':
|
|||
|
|
$("#compulsoryInspectionType").html("仪器仪表");
|
|||
|
|
break;
|
|||
|
|
case '${CompulsoryInspectionType_CAR}':
|
|||
|
|
$("#compulsoryInspectionType").html("车辆");
|
|||
|
|
break;
|
|||
|
|
default:
|
|||
|
|
$("#compulsoryInspectionType").html("");
|
|||
|
|
break;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
//资产原值费用保留两位小数
|
|||
|
|
if('${equipmentCard.equipmentvalue}' != ""){
|
|||
|
|
$("#equipmentvalue").html(parseFloat('${equipmentCard.equipmentvalue}').toFixed(2)+"元")
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if('${equipmentCard.equipWorth}' != ""){
|
|||
|
|
$("#equipWorth").html(parseFloat('${equipmentCard.equipWorth}').toFixed(2)+"元")
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if('${equipmentCard.residualValueRate}' != ""){
|
|||
|
|
$("#residualValueRate").html(parseFloat('${equipmentCard.residualValueRate}').toFixed(2)+"元")
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if('${equipmentCard.purchaseValue}' != ""){
|
|||
|
|
$("#purchaseValue").html(parseFloat('${equipmentCard.purchaseValue}').toFixed(2)+"元")
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
//折旧年限保留整数
|
|||
|
|
|
|||
|
|
if('${equipmentCard.depreciationLife}' != ""){
|
|||
|
|
$("#depreciationLife").html(parseFloat('${equipmentCard.depreciationLife}').toFixed(0)+"年")
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if('${equipmentCard.serviceLife}' != ""){
|
|||
|
|
$("#serviceLife").html(parseFloat('${equipmentCard.serviceLife}').toFixed(0)+"年")
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
//日期截断
|
|||
|
|
|
|||
|
|
if('${equipmentCard.buyTime}' != ""){
|
|||
|
|
var buyTime = "${equipmentCard.buyTime}";
|
|||
|
|
$("#buyTime").html(buyTime.substring(0,10))
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if('${equipmentCard.openDate}' != ""){
|
|||
|
|
var openDate = "${equipmentCard.openDate}";
|
|||
|
|
$("#openDate").html(openDate.substring(0,10))
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if('${equipmentCard.installDate}' != ""){
|
|||
|
|
var installDate = "${equipmentCard.installDate}";
|
|||
|
|
$("#installDate").html(installDate.substring(0,10))
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if('${equipmentCard.productiondate}' != ""){
|
|||
|
|
var productiondate = "${equipmentCard.productiondate}";
|
|||
|
|
$("#productiondate").html(productiondate.substring(0,10))
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
//设备附属的保留小数
|
|||
|
|
if('${equipmentCardProp.purchaseMoney}' != ""){
|
|||
|
|
$("#purchaseMoney").html(parseFloat('${equipmentCardProp.purchaseMoney}').toFixed(2)+"元")
|
|||
|
|
}
|
|||
|
|
if('${equipmentCardProp.laborMoney}' != ""){
|
|||
|
|
$("#laborMoney").html(parseFloat('${equipmentCardProp.laborMoney}').toFixed(2)+"元")
|
|||
|
|
}
|
|||
|
|
if('${equipmentCardProp.energyMoney}' != ""){
|
|||
|
|
$("#energyMoney").html(parseFloat('${equipmentCardProp.energyMoney}').toFixed(2)+"元")
|
|||
|
|
}
|
|||
|
|
if('${equipmentCardProp.maintainIncrement}' != ""){
|
|||
|
|
$("#maintainIncrement").html(parseFloat('${equipmentCardProp.maintainIncrement}').toFixed(2)+"元")
|
|||
|
|
}
|
|||
|
|
if('${equipmentCardProp.residualValue}' != ""){
|
|||
|
|
$("#residualValue").html(parseFloat('${equipmentCardProp.residualValue}').toFixed(2)+"元")
|
|||
|
|
}
|
|||
|
|
if('${equipmentCardProp.installDate}' != ""){
|
|||
|
|
$("#installDateProp").html('${equipmentCardProp.installDate}'.substring(0,10))
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
//保养记录
|
|||
|
|
$("#table_maintain").bootstrapTable({ // 对应table标签的id
|
|||
|
|
url: ext.contextPath + '/maintenance/getMaintenanceDetailList.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,
|
|||
|
|
search_code: '${equipmentCard.bizid}',
|
|||
|
|
//processSectionId:'${equipmentCard.processsectionid}',
|
|||
|
|
type:'${MAINTENANCE_TYPE_MAINTAIN}',
|
|||
|
|
equipmentId:'${equipmentCard.id}',
|
|||
|
|
status:'${Status_Finish}',
|
|||
|
|
beginTimeStore: MaintainbeginTimeStore,
|
|||
|
|
endTimeStore: MaintainendTimeStore
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
onClickRow: function (row) {//单击行事件,执行查看功能
|
|||
|
|
viewMaintainFun(row.id);
|
|||
|
|
},
|
|||
|
|
sortName: 'id', // 要排序的字段
|
|||
|
|
sortOrder: 'desc', // 排序规则
|
|||
|
|
columns: [
|
|||
|
|
{
|
|||
|
|
field:'number',
|
|||
|
|
title:'序号',
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle', // 上下居中
|
|||
|
|
formatter:function(value,row,index){
|
|||
|
|
//return index+1; //序号正序排序从1开始
|
|||
|
|
var pageSize=$('#table_maintain').bootstrapTable('getOptions').pageSize;//通过表的#id 可以得到每页多少条
|
|||
|
|
var pageNumber=$('#table_maintain').bootstrapTable('getOptions').pageNumber;//通过表的#id 可以得到当前第几页
|
|||
|
|
return pageSize * (pageNumber - 1) + index + 1; //返回每条的序号: 每页条数 * (当前页 - 1 )+ 序号
|
|||
|
|
}
|
|||
|
|
},{
|
|||
|
|
field: 'problemcontent', // 返回json数据中的name
|
|||
|
|
title: '保养内容', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle' // 上下居中
|
|||
|
|
},{
|
|||
|
|
field: 'insdt', // 返回json数据中的name
|
|||
|
|
title: '发起时间', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle',
|
|||
|
|
formatter:function(value,row,index){
|
|||
|
|
return value.substring(0,19);
|
|||
|
|
}
|
|||
|
|
},{
|
|||
|
|
field: 'plannedenddt', // 返回json数据中的name
|
|||
|
|
title: '计划完成日期', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle',
|
|||
|
|
formatter:function(value,row,index){
|
|||
|
|
return value.substring(0,10);
|
|||
|
|
}
|
|||
|
|
},{
|
|||
|
|
field: 'type', // 返回json数据中的name
|
|||
|
|
title: '类型', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle', // 上下居中
|
|||
|
|
formatter:function(value,row,index){
|
|||
|
|
switch (value) {
|
|||
|
|
case '${MAINTENANCE_TYPE_REPAIR}':
|
|||
|
|
return '缺陷';
|
|||
|
|
case '${MAINTENANCE_TYPE_OVERHAUL}':
|
|||
|
|
return '检修';
|
|||
|
|
case '${MAINTENANCE_TYPE_MAINTAIN}':
|
|||
|
|
return '保养';
|
|||
|
|
default:
|
|||
|
|
return '';
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},{
|
|||
|
|
field: 'status', // 返回json数据中的name
|
|||
|
|
title: '保养状态', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle', // 上下居中
|
|||
|
|
formatter:function(value,row,index){
|
|||
|
|
if(value == '${Status_Start}' && row.type == '${TYPE_SUPPLEMENT}'){
|
|||
|
|
return '处理中';
|
|||
|
|
}else if(value == '${Status_Start}'){
|
|||
|
|
return '已下发';
|
|||
|
|
}else if(value == '${Status_Finish}'){
|
|||
|
|
return '已完成';
|
|||
|
|
}else{
|
|||
|
|
return value;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
onLoadSuccess: function(){ //加载成功时执行
|
|||
|
|
adjustBootstrapTableView("table_maintain");
|
|||
|
|
console.info("加载数据成功");
|
|||
|
|
},
|
|||
|
|
onLoadError: function(){ //加载失败时执行
|
|||
|
|
console.info("加载数据失败");
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
})
|
|||
|
|
//维修记录
|
|||
|
|
$("#table_repair").bootstrapTable({ // 对应table标签的id
|
|||
|
|
url: ext.contextPath + '/maintenance/getMaintenanceDetailList.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,
|
|||
|
|
search_code:'${equipmentCard.bizid}',
|
|||
|
|
processSectionId:'${equipmentCard.processsectionid}',
|
|||
|
|
type:'${MAINTENANCE_TYPE_REPAIR}',
|
|||
|
|
equipmentId:'${equipmentCard.id}',
|
|||
|
|
// status:'${Status_Finish}',
|
|||
|
|
beginTimeStore: beginTimeStore,
|
|||
|
|
endTimeStore: endTimeStore
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
sortName: 'id', // 要排序的字段
|
|||
|
|
sortOrder: 'desc', // 排序规则
|
|||
|
|
onClickRow: function (row) {//单击行事件,执行查看功能
|
|||
|
|
viewRepairFun(row.id);
|
|||
|
|
},
|
|||
|
|
columns: [
|
|||
|
|
{
|
|||
|
|
field:'number',
|
|||
|
|
title:'序号',
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle', // 上下居中
|
|||
|
|
formatter:function(value,row,index){
|
|||
|
|
//return index+1; //序号正序排序从1开始
|
|||
|
|
var pageSize=$('#table_repair').bootstrapTable('getOptions').pageSize;//通过表的#id 可以得到每页多少条
|
|||
|
|
var pageNumber=$('#table_repair').bootstrapTable('getOptions').pageNumber;//通过表的#id 可以得到当前第几页
|
|||
|
|
return pageSize * (pageNumber - 1) + index + 1; //返回每条的序号: 每页条数 * (当前页 - 1 )+ 序号
|
|||
|
|
}
|
|||
|
|
},{
|
|||
|
|
field: 'problemcontent', // 返回json数据中的name
|
|||
|
|
title: '问题描述', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle' // 上下居中
|
|||
|
|
},{
|
|||
|
|
field: 'insdt', // 返回json数据中的name
|
|||
|
|
title: '发起时间', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle',
|
|||
|
|
formatter:function(value,row,index){
|
|||
|
|
return value.substring(0,19);
|
|||
|
|
}
|
|||
|
|
},{
|
|||
|
|
field: 'type', // 返回json数据中的name
|
|||
|
|
title: '类型', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle', // 上下居中
|
|||
|
|
formatter:function(value,row,index){
|
|||
|
|
switch (value) {
|
|||
|
|
case '${MAINTENANCE_TYPE_REPAIR}':
|
|||
|
|
return '维修';
|
|||
|
|
case '${MAINTENANCE_TYPE_OVERHAUL}':
|
|||
|
|
return '检修';
|
|||
|
|
case '${MAINTENANCE_TYPE_MAINTAIN}':
|
|||
|
|
return '保养';
|
|||
|
|
default:
|
|||
|
|
return '';
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},{
|
|||
|
|
field: 'status', // 返回json数据中的name
|
|||
|
|
title: '问题状态', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle', // 上下居中
|
|||
|
|
formatter:function(value,row,index){
|
|||
|
|
if(value == '${Status_Start}' && row.type == '${TYPE_SUPPLEMENT}'){
|
|||
|
|
return '处理中';
|
|||
|
|
}else if(value == '${Status_Start}'){
|
|||
|
|
return '已下发';
|
|||
|
|
}else if(value == '${Status_Finish}'){
|
|||
|
|
return '已完成';
|
|||
|
|
}else{
|
|||
|
|
return value;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
onLoadSuccess: function(){ //加载成功时执行
|
|||
|
|
adjustBootstrapTableView("table_repair");
|
|||
|
|
console.info("加载数据成功");
|
|||
|
|
},
|
|||
|
|
onLoadError: function(){ //加载失败时执行
|
|||
|
|
console.info("加载数据失败");
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
})
|
|||
|
|
//附属设备
|
|||
|
|
$("#table_attached").bootstrapTable({ // 对应table标签的id
|
|||
|
|
url: ext.contextPath + '/equipment/getList.do', // 获取表格数据的url
|
|||
|
|
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
|
|||
|
|
striped: true, //表格显示条纹,默认为false
|
|||
|
|
pagination: true, // 在表格底部显示分页组件,默认false
|
|||
|
|
pageList: [10, 20,50], // 设置页面可以显示的数据条数
|
|||
|
|
pageSize: 50, // 页面数据条数
|
|||
|
|
pageNumber: 1, // 首页页码
|
|||
|
|
sidePagination: 'server', // 设置为服务器端分页
|
|||
|
|
queryParams: function (params) { // 请求服务器数据时发送的参数,可以在这里添加额外的查询参数,返回false则终止请求
|
|||
|
|
return {
|
|||
|
|
rows: params.limit, // 每页要显示的数据条数
|
|||
|
|
page: params.offset/params.limit+1, // 每页显示数据的开始页码
|
|||
|
|
sort: params.sort, // 要排序的字段
|
|||
|
|
order: params.order,
|
|||
|
|
search_name : $('#search_name').val(),
|
|||
|
|
companyId: '${equipmentCard.bizid}',
|
|||
|
|
pid:'${equipmentCard.id}',
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
sortName: 'id', // 要排序的字段
|
|||
|
|
sortOrder: 'desc', // 排序规则
|
|||
|
|
onClickRow: function (row) {//单击行事件,执行查看功能
|
|||
|
|
viewAttachedFun(row.id);
|
|||
|
|
},
|
|||
|
|
columns: [
|
|||
|
|
/* {
|
|||
|
|
checkbox: true, // 显示一个勾选框
|
|||
|
|
}, */{
|
|||
|
|
field: 'equipmentcardid', // 返回json数据中的name
|
|||
|
|
title: '设备编号', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle' // 上下居中
|
|||
|
|
},{
|
|||
|
|
field: 'equipmentname', // 返回json数据中的name
|
|||
|
|
title: '名称', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle' // 上下居中
|
|||
|
|
},{
|
|||
|
|
field: 'processSection.name', // 返回json数据中的name
|
|||
|
|
title: '工艺段', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle' // 上下居中
|
|||
|
|
},{
|
|||
|
|
field: 'equipmentTypeNumber.name', // 返回json数据中的name
|
|||
|
|
title: '设备型号', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle'
|
|||
|
|
},{
|
|||
|
|
field: 'equipmentstatus', // 返回json数据中的name
|
|||
|
|
title: '状态', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle',
|
|||
|
|
formatter: function (value, row, index) {
|
|||
|
|
switch (value){
|
|||
|
|
case '${Status_OFF}' :
|
|||
|
|
return "封存";
|
|||
|
|
case '${Status_ON}' :
|
|||
|
|
return "在用";
|
|||
|
|
case '${Status_Fault}' :
|
|||
|
|
return "故障";
|
|||
|
|
case '${Status_Transfer}' :
|
|||
|
|
return "调拨";
|
|||
|
|
case '${Status_Scrap}' :
|
|||
|
|
return "报废";
|
|||
|
|
default :
|
|||
|
|
return "";
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
onLoadSuccess: function(){ //加载成功时执行
|
|||
|
|
adjustBootstrapTableView("table_attached");
|
|||
|
|
},
|
|||
|
|
onLoadError: function(){ //加载失败时执行
|
|||
|
|
console.info("加载数据失败");
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
})
|
|||
|
|
//关联测量点
|
|||
|
|
$("#table_point").bootstrapTable({ // 对应table标签的id
|
|||
|
|
url: ext.contextPath + '/work/mpoint/getlist.do', // 获取表格数据的url
|
|||
|
|
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
|
|||
|
|
striped: true, //表格显示条纹,默认为false
|
|||
|
|
pagination: true, // 在表格底部显示分页组件,默认false
|
|||
|
|
pageList: [10, 20,50], // 设置页面可以显示的数据条数
|
|||
|
|
pageSize: 50, // 页面数据条数
|
|||
|
|
pageNumber: 1, // 首页页码
|
|||
|
|
sidePagination: 'server', // 设置为服务器端分页
|
|||
|
|
queryParams: function (params) { // 请求服务器数据时发送的参数,可以在这里添加额外的查询参数,返回false则终止请求
|
|||
|
|
return {
|
|||
|
|
rows: params.limit, // 每页要显示的数据条数
|
|||
|
|
page: params.offset/params.limit+1, // 每页显示数据的开始页码
|
|||
|
|
sort: params.sort, // 要排序的字段
|
|||
|
|
order: params.order,
|
|||
|
|
search_name : $('#search_name').val(),
|
|||
|
|
companyId: '${equipmentCard.bizid}',
|
|||
|
|
pid:'${equipmentCard.id}',
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
sortName: 'id', // 要排序的字段
|
|||
|
|
sortOrder: 'desc', // 排序规则
|
|||
|
|
onClickRow: function (row) {//单击行事件,执行查看功能
|
|||
|
|
viewMPointFun(row.id);
|
|||
|
|
},
|
|||
|
|
columns: [
|
|||
|
|
{
|
|||
|
|
field:'number',
|
|||
|
|
title:'序号',
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle', // 上下居中
|
|||
|
|
formatter:function(value,row,index){
|
|||
|
|
//return index+1; //序号正序排序从1开始
|
|||
|
|
var pageSize=$('#table_point').bootstrapTable('getOptions').pageSize;//通过表的#id 可以得到每页多少条
|
|||
|
|
var pageNumber=$('#table_point').bootstrapTable('getOptions').pageNumber;//通过表的#id 可以得到当前第几页
|
|||
|
|
return pageSize * (pageNumber - 1) + index + 1; //返回每条的序号: 每页条数 * (当前页 - 1 )+ 序号
|
|||
|
|
}
|
|||
|
|
},{
|
|||
|
|
field: 'parmname', // 返回json数据中的name
|
|||
|
|
title: '名称', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle' // 上下居中
|
|||
|
|
},{
|
|||
|
|
field: 'mpointcode', // 返回json数据中的name
|
|||
|
|
title: '测量点Code', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle' // 上下居中
|
|||
|
|
},{
|
|||
|
|
field : 'ledcolor',
|
|||
|
|
title : '状态/测量值',
|
|||
|
|
align:'center',
|
|||
|
|
valign: 'middle', // 上下居中
|
|||
|
|
formatter : function(value,row){
|
|||
|
|
var pic;
|
|||
|
|
if(row.signaltype =='AI'){
|
|||
|
|
return row.parmvalue;
|
|||
|
|
}else if(row.signaltype =='DI'){
|
|||
|
|
if(value == 1){
|
|||
|
|
pic = '<img src= "' + ext.contextPath + '/IMG/mpoint_pic/lg.png" style="width:20px;height:20px;" ></img>';
|
|||
|
|
}else{
|
|||
|
|
pic = '<img src= "' + ext.contextPath + '/IMG/mpoint_pic/lr.png" style="width:20px;height:20px;" ></img>';
|
|||
|
|
}
|
|||
|
|
return pic;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
onLoadSuccess: function(){ //加载成功时执行
|
|||
|
|
adjustBootstrapTableView("table_point");
|
|||
|
|
},
|
|||
|
|
onLoadError: function(){ //加载失败时执行
|
|||
|
|
console.info("加载数据失败");
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
})
|
|||
|
|
|
|||
|
|
//关联设备价值增加
|
|||
|
|
$("#table_increaseValue").bootstrapTable({ // 对应table标签的id
|
|||
|
|
url: ext.contextPath + '/equipment/equipmentIncreaseValue/getList.do', // 获取表格数据的url
|
|||
|
|
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
|
|||
|
|
striped: true, //表格显示条纹,默认为false
|
|||
|
|
pagination: true, // 在表格底部显示分页组件,默认false
|
|||
|
|
pageList: [10, 20,50], // 设置页面可以显示的数据条数
|
|||
|
|
pageSize: 50, // 页面数据条数
|
|||
|
|
pageNumber: 1, // 首页页码
|
|||
|
|
sidePagination: 'server', // 设置为服务器端分页
|
|||
|
|
queryParams: function (params) { // 请求服务器数据时发送的参数,可以在这里添加额外的查询参数,返回false则终止请求
|
|||
|
|
return {
|
|||
|
|
rows: params.limit, // 每页要显示的数据条数
|
|||
|
|
page: params.offset/params.limit+1, // 每页显示数据的开始页码
|
|||
|
|
sort: params.sort, // 要排序的字段
|
|||
|
|
order: params.order,
|
|||
|
|
equipmentId:'${equipmentCard.id}'
|
|||
|
|
//search_name : $('#search_name').val(),
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
sortName: 'insdt', // 要排序的字段
|
|||
|
|
sortOrder: 'desc', // 排序规则
|
|||
|
|
/* onClickRow: function (row) {//单击行事件,执行查看功能
|
|||
|
|
viewEquipmentCardFun(row.id);
|
|||
|
|
}, */
|
|||
|
|
columns: [
|
|||
|
|
{
|
|||
|
|
field:'number',
|
|||
|
|
title:'序号',
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle', // 上下居中
|
|||
|
|
formatter:function(value,row,index){
|
|||
|
|
//return index+1; //序号正序排序从1开始
|
|||
|
|
var pageSize=$('#table_increaseValue').bootstrapTable('getOptions').pageSize;//通过表的#id 可以得到每页多少条
|
|||
|
|
var pageNumber=$('#table_increaseValue').bootstrapTable('getOptions').pageNumber;//通过表的#id 可以得到当前第几页
|
|||
|
|
return pageSize * (pageNumber - 1) + index + 1; //返回每条的序号: 每页条数 * (当前页 - 1 )+ 序号
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
/* {
|
|||
|
|
field: 'equipmentname', // 返回json数据中的name
|
|||
|
|
title: '设备名称', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle' // 上下居中
|
|||
|
|
}, */{
|
|||
|
|
field: 'increaseValue', // 返回json数据中的name
|
|||
|
|
title: '设备价值增加(元)', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle' // 上下居中
|
|||
|
|
},{
|
|||
|
|
field: 'insdt', // 返回json数据中的name
|
|||
|
|
title: '日期', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle',
|
|||
|
|
formatter: function (value, row, index) {
|
|||
|
|
return value.substring(0,10);
|
|||
|
|
/* return '<i class="fa fa-edit" onclick="editFun()(\'' + row.id + '\')></i>'; */
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
onLoadSuccess: function(){ //加载成功时执行
|
|||
|
|
adjustBootstrapTableView("table_increaseValue");
|
|||
|
|
},
|
|||
|
|
onLoadError: function(){ //加载失败时执行
|
|||
|
|
console.info("加载数据失败");
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
})
|
|||
|
|
$("#fileTable").bootstrapTable({ // 对应table标签的id
|
|||
|
|
url: ext.contextPath + '/document/getInputFileList.do', // 获取表格数据的url
|
|||
|
|
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
|
|||
|
|
striped: true, //表格显示条纹,默认为false
|
|||
|
|
pagination: true, // 在表格底部显示分页组件,默认false
|
|||
|
|
pageList: [10,15,20], // 设置页面可以显示的数据条数
|
|||
|
|
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, // 排序规则
|
|||
|
|
equipmentId: '${equipmentCard.id}',
|
|||
|
|
tbName : tbName,
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
sortName: 'insdt', // 要排序的字段
|
|||
|
|
sortOrder: 'desc', // 排序规则
|
|||
|
|
columns: [
|
|||
|
|
{
|
|||
|
|
field:'number',
|
|||
|
|
title:'序号',
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle', // 上下居中
|
|||
|
|
formatter:function(value,row,index){
|
|||
|
|
//return index+1; //序号正序排序从1开始
|
|||
|
|
var pageSize=$('#fileTable').bootstrapTable('getOptions').pageSize;//通过表的#id 可以得到每页多少条
|
|||
|
|
var pageNumber=$('#fileTable').bootstrapTable('getOptions').pageNumber;//通过表的#id 可以得到当前第几页
|
|||
|
|
return pageSize * (pageNumber - 1) + index + 1; //返回每条的序号: 每页条数 * (当前页 - 1 )+ 序号
|
|||
|
|
}
|
|||
|
|
},{
|
|||
|
|
field: 'filename', // 返回json数据中的name
|
|||
|
|
title: '资料名称', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle' // 上下居中
|
|||
|
|
},{
|
|||
|
|
field: 'user.caption', // 返回json数据中的name
|
|||
|
|
title: '上传者', // 表格表头显示文字
|
|||
|
|
align: 'left', // 左右居中
|
|||
|
|
valign: 'middle',// 上下居中
|
|||
|
|
},{
|
|||
|
|
title: "操作",
|
|||
|
|
align: 'center',
|
|||
|
|
valign: 'middle',
|
|||
|
|
width: 100, // 定义列的宽度,单位为像素px
|
|||
|
|
formatter: function (value, row, index) {
|
|||
|
|
var buts= '';
|
|||
|
|
buts+='<button class="btn btn-default btn-sm" title="下载" onclick="fileDownload(\''+row.id+'\')"><i class="fa fa-download"></i><span class="hidden-md hidden-lg">下载</span></button>';
|
|||
|
|
//buts+='<button class="btn btn-default btn-sm" title="删除" onclick="delFileFun(\''+row.id+'\')"><i class="fa fa fa-trash-o"></i><span class="hidden-md hidden-lg">删除</span></button>';
|
|||
|
|
|
|||
|
|
buts='<div class="btn-group" >'+buts+'</div>';
|
|||
|
|
return buts;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
onLoadSuccess: function(){ //加载成功时执行
|
|||
|
|
adjustBootstrapTableView("fileTable");
|
|||
|
|
},
|
|||
|
|
onLoadError: function(){ //加载失败时执行
|
|||
|
|
console.info("加载数据失败");
|
|||
|
|
}
|
|||
|
|
})
|
|||
|
|
// //资产原值费用保留两位小数
|
|||
|
|
// if('${equipmentCard.equipmentvalue}' != ""){
|
|||
|
|
// $("#equipmentvalue").html(parseFloat('${equipmentCard.equipmentvalue}').toFixed(2)+"元")
|
|||
|
|
// }
|
|||
|
|
|
|||
|
|
// //采购费用保留两位小数
|
|||
|
|
// if('${equipmentCardProp.purchaseMoney}' != ""){
|
|||
|
|
// $("#purchaseMoney").html(parseFloat('${equipmentCardProp.purchaseMoney}').toFixed(2)+"元")
|
|||
|
|
// }
|
|||
|
|
|
|||
|
|
// //人工费用保留两位小数
|
|||
|
|
// if('${equipmentCardProp.laborMoney}' != ""){
|
|||
|
|
// $("#laborMoney").html(parseFloat('${equipmentCardProp.laborMoney}').toFixed(2)+"元")
|
|||
|
|
// }
|
|||
|
|
|
|||
|
|
|
|||
|
|
//--------------------------------------------------------------------------------------
|
|||
|
|
$("#table_specialEquipment").bootstrapTable({ // 对应table标签的id
|
|||
|
|
url: ext.contextPath + '/equipment/specialEquipment/getList.do', // 获取表格数据的url
|
|||
|
|
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
|
|||
|
|
striped: true, //表格显示条纹,默认为false
|
|||
|
|
pagination: true, // 在表格底部显示分页组件,默认false
|
|||
|
|
pageList: [10, 20,50], // 设置页面可以显示的数据条数
|
|||
|
|
pageSize: 50, // 页面数据条数
|
|||
|
|
pageNumber: 1, // 首页页码
|
|||
|
|
sidePagination: 'server', // 设置为服务器端分页
|
|||
|
|
queryParams: function (params) { // 请求服务器数据时发送的参数,可以在这里添加额外的查询参数,返回false则终止请求
|
|||
|
|
return {
|
|||
|
|
rows: params.limit, // 每页要显示的数据条数
|
|||
|
|
page: params.offset/params.limit+1, // 每页显示数据的开始页码
|
|||
|
|
sort: params.sort, // 要排序的字段
|
|||
|
|
order: params.order, // 排序规则
|
|||
|
|
//search_code: $('#search_code').val(),
|
|||
|
|
//search_code: $('#company_id').val(),
|
|||
|
|
//search_name: $('#search_name').val()
|
|||
|
|
|
|||
|
|
equipmentCardId:$('#equipmentCatrdId').val(),
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
onClickRow: function (row) {//单击行事件,执行查看功能
|
|||
|
|
viewFun(row.id);
|
|||
|
|
},
|
|||
|
|
columns: [
|
|||
|
|
{
|
|||
|
|
checkbox: true, // 显示一个勾选框
|
|||
|
|
},{
|
|||
|
|
field: 'equipmentCard.equipmentcardid', // 返回json数据中的name
|
|||
|
|
title: '设备编号', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle' // 上下居中
|
|||
|
|
},{
|
|||
|
|
field: 'equipmentCard.equipmentname', // 返回json数据中的name
|
|||
|
|
title: '设备名称', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle' // 上下居中
|
|||
|
|
},{
|
|||
|
|
field: 'equipmentClass', // 返回json数据中的name
|
|||
|
|
title: '类型', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle' // 上下居中
|
|||
|
|
},{
|
|||
|
|
field: 'recentTime', // 返回json数据中的name
|
|||
|
|
title: '登记时间', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle', // 上下居中
|
|||
|
|
formatter : function(value, row, index) {
|
|||
|
|
return value.substring(0, 10);
|
|||
|
|
}
|
|||
|
|
},{
|
|||
|
|
field: 'nextRecordTime', // 返回json数据中的name
|
|||
|
|
title: '下次登记时间', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle', // 上下居中
|
|||
|
|
formatter : function(value, row, index) {
|
|||
|
|
return value.substring(0, 10);
|
|||
|
|
}
|
|||
|
|
},{
|
|||
|
|
field: 'status', // 返回json数据中的name
|
|||
|
|
title: '状态', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle', // 上下居中
|
|||
|
|
cellStyle:function(value,row,index){
|
|||
|
|
if(value=='到期'){
|
|||
|
|
return {css:{"background-color":"#FF7F27","color":"#FFFFFF"}};
|
|||
|
|
} else if(value=='预警'){
|
|||
|
|
return {css:{"background-color":"#FFC90E","color":"#FFFFFF"}};
|
|||
|
|
}else if(value=='过期'){
|
|||
|
|
return {css:{"background-color":"#FF0000","color":"#FFFFFF"}};
|
|||
|
|
} else {
|
|||
|
|
return '';
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
},
|
|||
|
|
},/* {
|
|||
|
|
title: "操作",
|
|||
|
|
align: 'center',
|
|||
|
|
valign: 'middle',
|
|||
|
|
width: 100, // 定义列的宽度,单位为像素px
|
|||
|
|
formatter: function (value, row, index) {
|
|||
|
|
var buts = '';
|
|||
|
|
|
|||
|
|
buts += '<security:authorize buttonUrl="equipment/specialEquipment/edit.do">';
|
|||
|
|
buts += '<button class="btn btn-default btn-sm" title="编辑" onclick="editFun(\''
|
|||
|
|
+ row.id
|
|||
|
|
+ '\')"><i class="fa fa-edit"></i><span class="hidden-md hidden-lg"> 编辑</span></button>';
|
|||
|
|
buts += '</security:authorize>';
|
|||
|
|
|
|||
|
|
buts += '<security:authorize buttonUrl="equipment/specialEquipment/delete.do">';
|
|||
|
|
buts += '<button class="btn btn-default btn-sm" title="删除" onclick="deleteFun(\''
|
|||
|
|
+ row.id
|
|||
|
|
+ '\')"><i class="fa fa fa-trash-o"></i><span class="hidden-md hidden-lg">删除</span></button';
|
|||
|
|
buts += '</security:authorize>';
|
|||
|
|
|
|||
|
|
buts = '<div class="btn-group" >'
|
|||
|
|
+ buts + '</div>';
|
|||
|
|
|
|||
|
|
return buts;
|
|||
|
|
}
|
|||
|
|
}, */
|
|||
|
|
],
|
|||
|
|
onLoadSuccess: function(){ //加载成功时执行
|
|||
|
|
adjustBootstrapTableView("table_specialEquipment");
|
|||
|
|
},
|
|||
|
|
onLoadError: function(){ //加载失败时执行
|
|||
|
|
console.info("加载数据失败");
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
})
|
|||
|
|
//---------------------------------------------------------------------------------------
|
|||
|
|
|
|||
|
|
//table_stopEquipment
|
|||
|
|
$("#table_stopEquipment").bootstrapTable({ // 对应table标签的id
|
|||
|
|
url: ext.contextPath + '/equipment/equipmentStopRecord/getEquipmentStopDetailList.do', // 获取表格数据的url
|
|||
|
|
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
|
|||
|
|
striped: true, //表格显示条纹,默认为false
|
|||
|
|
pagination: true, // 在表格底部显示分页组件,默认false
|
|||
|
|
pageList: [10, 20,50], // 设置页面可以显示的数据条数
|
|||
|
|
pageSize: 50, // 页面数据条数
|
|||
|
|
pageNumber: 1, // 首页页码
|
|||
|
|
sidePagination: 'server', // 设置为服务器端分页
|
|||
|
|
queryParams: function (params) { // 请求服务器数据时发送的参数,可以在这里添加额外的查询参数,返回false则终止请求
|
|||
|
|
return {
|
|||
|
|
rows: params.limit, // 每页要显示的数据条数
|
|||
|
|
page: params.offset/params.limit+1, // 每页显示数据的开始页码
|
|||
|
|
sort: params.sort, // 要排序的字段
|
|||
|
|
order: params.order, // 排序规则
|
|||
|
|
//search_code: $('#search_code').val(),
|
|||
|
|
//search_code: $('#company_id').val(),
|
|||
|
|
//search_name: $('#search_name').val()
|
|||
|
|
|
|||
|
|
equipmentCardId:$('#equipmentCatrdId').val(),
|
|||
|
|
companyId:$('#companyId').val(),
|
|||
|
|
beginTimeStore: StopbeginTimeStore,
|
|||
|
|
endTimeStore: StopendTimeStore
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
/* onClickRow: function (row) {//单击行事件,执行查看功能
|
|||
|
|
viewFun(row.id);
|
|||
|
|
}, */
|
|||
|
|
columns: [
|
|||
|
|
{
|
|||
|
|
checkbox: true, // 显示一个勾选框
|
|||
|
|
},{
|
|||
|
|
field: 'applyPeople', // 返回json数据中的name
|
|||
|
|
title: '申请人', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle' // 上下居中
|
|||
|
|
},{
|
|||
|
|
field: 'applyTime', // 返回json数据中的name
|
|||
|
|
title: '申请时间', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle', // 上下居中
|
|||
|
|
formatter : function(value, row, index) {
|
|||
|
|
return value.substring(0, 10);
|
|||
|
|
}
|
|||
|
|
},{
|
|||
|
|
field: 'stopReson', // 返回json数据中的name
|
|||
|
|
title: '停用原因', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle' // 上下居中
|
|||
|
|
},{
|
|||
|
|
field: 'stopTime', // 返回json数据中的name
|
|||
|
|
title: '停用时间', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle', // 上下居中
|
|||
|
|
formatter : function(value, row, index) {
|
|||
|
|
return value.substring(0, 10);
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
],
|
|||
|
|
onLoadSuccess: function(){ //加载成功时执行
|
|||
|
|
adjustBootstrapTableView("table_stopEquipment");
|
|||
|
|
},
|
|||
|
|
onLoadError: function(){ //加载失败时执行
|
|||
|
|
console.info("加载数据失败");
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
//设备配件
|
|||
|
|
$("#table_fittings").bootstrapTable({ // 对应table标签的id
|
|||
|
|
url: ext.contextPath + '/equipment/getEquipmentFittingsList.do', // 获取表格数据的url
|
|||
|
|
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
|
|||
|
|
striped: true, //表格显示条纹,默认为false
|
|||
|
|
pagination: true, // 在表格底部显示分页组件,默认false
|
|||
|
|
pageList: [10, 20,50], // 设置页面可以显示的数据条数
|
|||
|
|
pageSize: 10, // 页面数据条数
|
|||
|
|
pageNumber: 1, // 首页页码
|
|||
|
|
paginationDetailHAlign:' hidden',//去除分页的显示
|
|||
|
|
sidePagination: 'server', // 设置为服务器端分页
|
|||
|
|
queryParams: function (params) { // 请求服务器数据时发送的参数,可以在这里添加额外的查询参数,返回false则终止请求
|
|||
|
|
return {
|
|||
|
|
rows: params.limit, // 每页要显示的数据条数
|
|||
|
|
page: params.offset/params.limit+1, // 每页显示数据的开始页码
|
|||
|
|
sort: params.sort, // 要排序的字段
|
|||
|
|
order: params.order,
|
|||
|
|
equipmentId:'${equipmentCard.id}'
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
sortName: 'goods_id', // 要排序的字段
|
|||
|
|
sortOrder: 'desc', // 排序规则
|
|||
|
|
detailView: true,//父子表
|
|||
|
|
// onClickRow: function (row) {//单击行事件,执行查看功能
|
|||
|
|
// viewMaintainFun(row.id);
|
|||
|
|
// },
|
|||
|
|
columns: [
|
|||
|
|
// {
|
|||
|
|
// checkbox: true, // 显示一个勾选框
|
|||
|
|
// },
|
|||
|
|
{
|
|||
|
|
field: 'goodsId', // 返回json数据中的name
|
|||
|
|
title: '物品编号', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle'
|
|||
|
|
}, {
|
|||
|
|
field: 'name', // 返回json数据中的name
|
|||
|
|
title: '物品名称', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle',
|
|||
|
|
formatter:function(value,row,index){
|
|||
|
|
if(row.goods!=null){
|
|||
|
|
return row.goods.name;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}, {
|
|||
|
|
field: 'model', // 返回json数据中的name
|
|||
|
|
title: '规格型号', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle',
|
|||
|
|
formatter:function(value,row,index){
|
|||
|
|
if(row.goods!=null){
|
|||
|
|
return row.goods.model;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}, {
|
|||
|
|
field: 'num', // 返回json数据中的name
|
|||
|
|
title: '数量', // 表格表头显示文字
|
|||
|
|
align: 'center', // 左右居中
|
|||
|
|
valign: 'middle',
|
|||
|
|
formatter:function(value,row,index){
|
|||
|
|
if(row.stock!=null){
|
|||
|
|
return row.stock.nowNumber;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},{
|
|||
|
|
title: "操作",
|
|||
|
|
align: 'center',
|
|||
|
|
valign: 'middle',
|
|||
|
|
width: 90, // 定义列的宽度,单位为像素px
|
|||
|
|
formatter: function (value, row, index) {
|
|||
|
|
var buts="";
|
|||
|
|
buts+= '<button class="btn btn-default btn-sm" title="替代备件" onclick="addFittingsDFun(\'' + row.id + '\')"><i class="fa fa-tag"></i><span class="hidden-md hidden-lg">替代备件</span></button>';
|
|||
|
|
buts+='<button class="btn btn-default btn-sm" title="删除" onclick="deleteFittingsDFun(\''+row.id+'\')"><i class="fa fa fa-trash-o"></i><span class="hidden-md hidden-lg">删除</span></button';
|
|||
|
|
buts='<div class="btn-group" >'+buts+'</div>';
|
|||
|
|
return buts;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
//注册加载子表的事件。index:父表当前行的行索引,row:父表当前行的Json数据对象,$detail:当前行下面创建的新行里面的td对象。
|
|||
|
|
onExpandRow: function (index, row, $detail) {
|
|||
|
|
initFittingsDetailTable(index, row, $detail);
|
|||
|
|
//存入sessionStorage
|
|||
|
|
sessionStorage.setItem("index", index);
|
|||
|
|
},
|
|||
|
|
onLoadSuccess: function(){ //加载成功时执行
|
|||
|
|
adjustBootstrapTableView("table_maintain");
|
|||
|
|
console.info("加载数据成功");
|
|||
|
|
},
|
|||
|
|
onLoadError: function(){ //加载失败时执行
|
|||
|
|
console.info("加载数据失败");
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
});
|
|||
|
|
//---------------------------------------------------------------------------------------
|
|||
|
|
|
|||
|
|
})
|
|||
|
|
|
|||
|
|
function equipmentCardMapView() {
|
|||
|
|
var equipmentname='${equipmentCard.equipmentname}';
|
|||
|
|
var lng = '${equipmentCard.lng}';
|
|||
|
|
var lat = '${equipmentCard.lat}';
|
|||
|
|
var companyName ='${equipmentCard.company.name}';
|
|||
|
|
$.post(ext.contextPath + '/equipment/equipmentCardMapView.do', {lng:lng,lat:lat,equipmentName:equipmentname,companyName:companyName},
|
|||
|
|
function(data) {
|
|||
|
|
$("#container").html(data);
|
|||
|
|
});
|
|||
|
|
}
|
|||
|
|
</script>
|
|||
|
|
<div class="modal fade" id="subModal">
|
|||
|
|
<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">×</span></button>
|
|||
|
|
<h4 class="modal-title">查看设备信息</h4>
|
|||
|
|
</div>
|
|||
|
|
<div class="modal-body" style="height:1050px;">
|
|||
|
|
<div id="left" class="leftstyle">
|
|||
|
|
<!-- 新增界面formid强制为subForm -->
|
|||
|
|
<form class="form-horizontal" id="subForm">
|
|||
|
|
<!-- 界面提醒div强制id为alertDiv -->
|
|||
|
|
<div id="alertDiv"></div>
|
|||
|
|
<input type="hidden" id="companyId" value="${equipmentCard.bizid}">
|
|||
|
|
<input type="hidden" id="equipmentCatrdId" value="${equipmentCard.id}">
|
|||
|
|
|
|||
|
|
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">设备编号:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p class="form-control-static" >${equipmentCard.equipmentcardid}</p>
|
|||
|
|
</div>
|
|||
|
|
<label class="col-sm-2 control-label">设备名称:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p class="form-control-static" >${equipmentCard.equipmentname}</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" >${equipmentCard.company.name}</p>
|
|||
|
|
</div>
|
|||
|
|
<label class="col-sm-2 control-label">设备所属/工艺线:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p class="form-control-static" >${equipmentCard.equipmentBelong.belongName}</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" >${equipmentCard.equipmentClass.name}</p>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<label class="col-sm-2 control-label">规格型号:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<c:if test="${not empty equipmentCard.equipmentmodel}">
|
|||
|
|
<p class="form-control-static" >${equipmentCard.equipmentTypeNumber.name}</p>
|
|||
|
|
</c:if>
|
|||
|
|
<c:if test="${empty equipmentCard.equipmentmodel}">
|
|||
|
|
<p class="form-control-static" >${equipmentCard.equipmentmodelname}</p>
|
|||
|
|
</c:if>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">工艺段:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p class="form-control-static" >${equipmentCard.processSection.name}</p>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<label class="col-sm-2 control-label">ABC分类:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p class="form-control-static" >${equipmentCard.equipmentLevel.levelname}</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" >${equipmentCard.areaid}</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" >${equipmentCard.techParameters}</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" >${equipmentCard.equipmentmanufacturer}</p>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<label class="col-sm-2 control-label">出厂编号:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p class="form-control-static" >${equipmentCard.factoryNumber}</p>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">启用日期:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p id="openDate" class="form-control-static" >${equipmentCard.openDate}</p>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<label class="col-sm-2 control-label">安装日期(领料时间):</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p id="installDate" class="form-control-static" >${equipmentCard.installDate}</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" >
|
|||
|
|
<c:if test="${equipmentCard.isCompulsoryInspection == 1}">是</c:if>
|
|||
|
|
<c:if test="${equipmentCard.isCompulsoryInspection == 0}">否</c:if>
|
|||
|
|
</p>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<label class="col-sm-2 control-label">强检类型:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p id="compulsoryInspectionType" class="form-control-static" ></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" >${equipmentCard.assetClass.assetclassname}</p>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<label class="col-sm-2 control-label">资产编号:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p class="form-control-static" >${equipmentCard.assetnumber}</p>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">购置日期(采购年月):</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p id="buyTime" class="form-control-static" >${equipmentCard.buyTime}</p>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<label class="col-sm-2 control-label">采购价:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p id="purchaseValue" class="form-control-static" >${equipmentCard.purchaseValue} </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" >${equipmentCard.inStockTime}</p>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<label class="col-sm-2 control-label">出厂年月:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p id="productiondate" class="form-control-static" >${equipmentCard.productiondate}</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" >${equipmentCard.equipmentPid.equipmentname}</p>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<label class="col-sm-2 control-label">是否为单一设备:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p class="form-control-static" id="isOne" ></p>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">账面原值:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p id="equipmentvalue" class="form-control-static" >${equipmentCard.equipmentvalue} </p>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<label class="col-sm-2 control-label">账面净值:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p id="equipWorth" class="form-control-static" >${equipmentCard.equipWorth} </p>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">折旧年限:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p id="depreciationLife" class="form-control-static" >${equipmentCard.depreciationLife}</p>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<label class="col-sm-2 control-label">残值率:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p id="residualValueRate" class="form-control-static" >${equipmentCard.residualValueRate}</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" >${equipmentCard.equipmentStatusManagement.name}</p>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<label class="col-sm-2 control-label">使用年限:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p id="serviceLife" class="form-control-static" >${equipmentCard.serviceLife}</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" >${equipmentCard.equipmentStatusMemo}</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" >${equipmentCard.remark}</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" >${equipmentCard.id}</p>
|
|||
|
|
</div>
|
|||
|
|
<label class="col-sm-2 control-label">设备编号:</label>
|
|||
|
|
<div class="col-sm-10">
|
|||
|
|
<p class="form-control-static" >${equipmentCard.equipmentcardid}</p>
|
|||
|
|
</div>
|
|||
|
|
<label class="col-sm-2 control-label">资产类型:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p class="form-control-static" >${equipmentCard.assetClass.assetclassname}</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" >${equipmentCard.equipmentname}</p>
|
|||
|
|
</div>
|
|||
|
|
<label class="col-sm-2 control-label">设备型号:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p class="form-control-static" >${equipmentCard.equipmentTypeNumber.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" >${equipmentCard.equipmentClass.name}</p>
|
|||
|
|
</div>
|
|||
|
|
<label class="col-sm-2 control-label">设备规格:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p class="form-control-static" >${equipmentCard.equipmentSpecification.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" >${equipmentCard.equipmentLevel.levelname}</p>
|
|||
|
|
</div>
|
|||
|
|
<label class="col-sm-2 control-label">设备状态:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p id="equipmentstatus" class="form-control-static" ></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" >
|
|||
|
|
<c:if test="${empty equipmentCard.assetnumber}">无</c:if>
|
|||
|
|
${equipmentCard.assetnumber}</p>
|
|||
|
|
</div>
|
|||
|
|
<label class="col-sm-2 control-label">所属设备:</label>
|
|||
|
|
<div class="col-sm-4 ">
|
|||
|
|
<p class="form-control-static" >
|
|||
|
|
<c:if test="${empty equipmentCard.equipmentPid.equipmentname}">无</c:if>
|
|||
|
|
${equipmentCard.equipmentPid.equipmentname}</p>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">资产原值:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p id="equipmentvalue" class="form-control-static" >
|
|||
|
|
<c:if test="${not empty equipmentCard.equipmentvalue}">${equipmentCard.equipmentvalue}元</c:if>
|
|||
|
|
<c:if test="${empty equipmentCard.equipmentvalue}">无</c:if>
|
|||
|
|
</p>
|
|||
|
|
</div>
|
|||
|
|
<label class="col-sm-2 control-label">额定功率:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p class="form-control-static" >
|
|||
|
|
<c:if test="${not empty equipmentCard.ratedpower}">${equipmentCard.ratedpower}KW</c:if>
|
|||
|
|
<c:if test="${empty equipmentCard.ratedpower}">无</c:if>
|
|||
|
|
</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" >${equipmentCard.equipmentCardType}</p>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<label class="col-sm-2 control-label">制造厂家:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p class="form-control-static" >
|
|||
|
|
<c:if test="${empty equipmentCard.equipmentmanufacturer}">无</c:if>
|
|||
|
|
${equipmentCard.equipmentmanufacturer}</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" >${equipmentCard.inStockTime}</p>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<label class="col-sm-2 control-label">领用时间</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p class="form-control-static" >${equipmentCard.receiveTime}</p>
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="form-group">
|
|||
|
|
|
|||
|
|
<label class="col-sm-2 control-label">是否单一资产:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<c:if test="${equipmentCard.isSingleAsset eq '1' }">
|
|||
|
|
<p class="form-control-static" >是</p>
|
|||
|
|
</c:if>
|
|||
|
|
|
|||
|
|
<c:if test="${equipmentCard.isSingleAsset eq '0' }">
|
|||
|
|
<p class="form-control-static" >否</p>
|
|||
|
|
</c:if>
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<label class="col-sm-2 control-label">增加方式:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p class="form-control-static" >${equipmentCard.addWay}</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" >
|
|||
|
|
<c:if test="${empty equipmentCard.areaid}">无</c:if>
|
|||
|
|
${equipmentCard.areaid}</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" >
|
|||
|
|
<c:if test="${empty equipmentCard.majorparameter}">无</c:if>
|
|||
|
|
${equipmentCard.majorparameter}</p>
|
|||
|
|
</div>
|
|||
|
|
</div> --%>
|
|||
|
|
|
|||
|
|
<%-- <div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">首检时间:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<c:if test="${empty equipmentCard.firstTime}">无</c:if>
|
|||
|
|
<p class="form-control-static" >${equipmentCard.firstTime.substring(0,10)}</p>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<label class="col-sm-2 control-label">下次检查时间:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<c:if test="${empty equipmentCard.nextTime}">无</c:if>
|
|||
|
|
<p class="form-control-static" >${equipmentCard.nextTime.substring(0,10)}</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" >
|
|||
|
|
<c:if test="${empty equipmentCard.checkCycle}">无</c:if>
|
|||
|
|
${equipmentCard.checkCycle}</p>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<label class="col-sm-2 control-label">周期单位:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p class="form-control-static" >
|
|||
|
|
<c:if test="${empty equipmentCard.cycleUnit}">无</c:if>
|
|||
|
|
${equipmentCard.cycleUnit}</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" >${equipmentCard.id}</p>
|
|||
|
|
</div> --%>
|
|||
|
|
<label class="col-sm-2 control-label">设备编号:</label>
|
|||
|
|
<div class="col-sm-10">
|
|||
|
|
<p class="form-control-static" >${equipmentCard.equipmentcardid}</p>
|
|||
|
|
</div>
|
|||
|
|
<%-- <label class="col-sm-2 control-label">资产类型:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p class="form-control-static" >${equipmentCard.assetClass.assetclassname}</p>
|
|||
|
|
</div> --%>
|
|||
|
|
</div>
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">采购费/元</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p id="purchaseMoney" class="form-control-static" >
|
|||
|
|
<c:if test="${not empty equipmentCardProp.purchaseMoney}">${equipmentCardProp.purchaseMoney}元</c:if>
|
|||
|
|
<c:if test="${empty equipmentCardProp.purchaseMoney}">无</c:if>
|
|||
|
|
</p>
|
|||
|
|
</div>
|
|||
|
|
<label class="col-sm-2 control-label">人工费/元</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p id="laborMoney" class="form-control-static" >
|
|||
|
|
<c:if test="${not empty equipmentCardProp.laborMoney}">${equipmentCardProp.laborMoney}元</c:if>
|
|||
|
|
<c:if test="${empty equipmentCardProp.laborMoney}">无</c:if>
|
|||
|
|
</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" >
|
|||
|
|
<c:if test="${empty equipmentCardProp.technicalLife}">无</c:if>
|
|||
|
|
<c:if test="${not empty equipmentCardProp.technicalLife}">${equipmentCardProp.technicalLife}年</c:if>
|
|||
|
|
</p>
|
|||
|
|
</div>
|
|||
|
|
<label class="col-sm-2 control-label">物理寿命年限</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p class="form-control-static" >
|
|||
|
|
<c:if test="${empty equipmentCardProp.physicalLife}">无</c:if>
|
|||
|
|
<c:if test="${not empty equipmentCardProp.physicalLife}">${equipmentCardProp.physicalLife}年</c:if>
|
|||
|
|
</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" >
|
|||
|
|
<c:if test="${empty equipmentCardProp.residualValueRate}">无</c:if>
|
|||
|
|
<fmt:formatNumber value="${equipmentCardProp.residualValueRate}" type="percent"/>
|
|||
|
|
</p>
|
|||
|
|
</div>
|
|||
|
|
<label class="col-sm-2 control-label">安装时间</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<c:if test="${empty equipmentCardProp.installDate}">无</c:if>
|
|||
|
|
<p class="form-control-static" >${equipmentCardProp.installDate.substring(0,10)}</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" >
|
|||
|
|
<c:if test="${not empty equipmentCard.ratedcurrent}">${equipmentCard.ratedcurrent}A</c:if>
|
|||
|
|
</p>
|
|||
|
|
</div>
|
|||
|
|
<label class="col-sm-2 control-label">额定电压:</label>
|
|||
|
|
<div class="col-sm-4 ">
|
|||
|
|
<p class="form-control-static" >
|
|||
|
|
<c:if test="${not empty equipmentCard.ratedvoltage}">${equipmentCard.ratedvoltage}V</c:if>
|
|||
|
|
</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" >${equipmentCard.remark}</p>
|
|||
|
|
</div>
|
|||
|
|
</div> --%> -->
|
|||
|
|
</form>
|
|||
|
|
</div>
|
|||
|
|
<div class="midstyle">
|
|||
|
|
<div style="width: 38%;float: left;height: 100%;"></div>
|
|||
|
|
<div style="width: 24%;float: left;height: 100%;background-color: #FAFAFA;"></div>
|
|||
|
|
<div style="width: 38%;float: left;height: 100%;"></div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div id="right" class="rightstyle">
|
|||
|
|
<!-- 维修记录、保养记录、附属设备 -->
|
|||
|
|
<div class="nav-tabs-custom">
|
|||
|
|
<ul class="nav nav-tabs" id="">
|
|||
|
|
<security:authorize buttonUrl="equipment/tab1.do">
|
|||
|
|
<li class="kuandu active"><a href="#tab1" data-toggle="tab" index="0" aria-expanded="true">维修记录</a></li>
|
|||
|
|
</security:authorize>
|
|||
|
|
|
|||
|
|
<security:authorize buttonUrl="equipment/tab2.do">
|
|||
|
|
<li class="kuandu"><a href="#tab2" data-toggle="tab" index="1" aria-expanded="false">保养记录</a></li>
|
|||
|
|
</security:authorize>
|
|||
|
|
|
|||
|
|
<security:authorize buttonUrl="equipment/tab3.do">
|
|||
|
|
<li class="kuandu"><a href="#tab3" data-toggle="tab" index="2" aria-expanded="false">附属设备</a></li>
|
|||
|
|
</security:authorize>
|
|||
|
|
|
|||
|
|
<security:authorize buttonUrl="equipment/tab4.do">
|
|||
|
|
<li class="kuandu"><a href="#tab4" data-toggle="tab" index="3" aria-expanded="false">测量点</a></li>
|
|||
|
|
</security:authorize>
|
|||
|
|
|
|||
|
|
<security:authorize buttonUrl="equipment/tab5.do">
|
|||
|
|
<li class="kuandu"><a href="#tab5" data-toggle="tab" index="4" aria-expanded="false">价值增加</a></li>
|
|||
|
|
</security:authorize>
|
|||
|
|
|
|||
|
|
<security:authorize buttonUrl="equipment/tab6.do">
|
|||
|
|
<li class="kuandu"><a href="#tab6" data-toggle="tab" index="5" aria-expanded="false">设备资料</a></li>
|
|||
|
|
</security:authorize>
|
|||
|
|
<!-- 20190926 modify start -->
|
|||
|
|
<security:authorize buttonUrl="equipment/tab7.do">
|
|||
|
|
<li class=""><a href="#tab7" data-toggle="tab" index="6" aria-expanded="false" onclick="equipmentCardMapView()">地图显示</a></li>
|
|||
|
|
</security:authorize>
|
|||
|
|
<!-- 20190926 modify end -->
|
|||
|
|
|
|||
|
|
<!-- 20200717start -->
|
|||
|
|
<security:authorize buttonUrl="equipment/tab8.do">
|
|||
|
|
<li class="kuandu"><a href="#tab8" data-toggle="tab" index="7" aria-expanded="false">检定记录</a></li>
|
|||
|
|
</security:authorize>
|
|||
|
|
<!-- 20200717end -->
|
|||
|
|
|
|||
|
|
<!-- 20201012start -->
|
|||
|
|
<security:authorize buttonUrl="equipment/tab10.do">
|
|||
|
|
<li class="kuandu"><a href="#tab10" data-toggle="tab" index="9" aria-expanded="false">设备配件</a></li>
|
|||
|
|
</security:authorize>
|
|||
|
|
<!-- 20201012end -->
|
|||
|
|
|
|||
|
|
<!-- 20200819start -->
|
|||
|
|
<security:authorize buttonUrl="equipment/tab9.do">
|
|||
|
|
<li class="kuandu"><a href="#tab9" data-toggle="tab" index="8" aria-expanded="false">停用记录</a></li>
|
|||
|
|
</security:authorize>
|
|||
|
|
<!-- 20200819end -->
|
|||
|
|
<!-- 20201027start -->
|
|||
|
|
<security:authorize buttonUrl="equipment/tab11.do">
|
|||
|
|
<li class="kuandu"><a href="#tab11" data-toggle="tab" index="11" aria-expanded="false">设备附属</a></li>
|
|||
|
|
</security:authorize>
|
|||
|
|
<!-- 20201027end -->
|
|||
|
|
|
|||
|
|
<!-- 20211027start -->
|
|||
|
|
<security:authorize buttonUrl="equipment/tab12.do">
|
|||
|
|
<li class="kuandu"><a href="#tab12" data-toggle="tab" index="12" aria-expanded="false">总图设备</a></li>
|
|||
|
|
</security:authorize>
|
|||
|
|
<!-- 20211027end -->
|
|||
|
|
</ul>
|
|||
|
|
</div>
|
|||
|
|
<div class="tab-content" >
|
|||
|
|
<div class=" tab-pane active" id="tab1">
|
|||
|
|
<!-- <table id="table_repair"></table> -->
|
|||
|
|
<div class="box box-primary" >
|
|||
|
|
<div class="box-header with-border">
|
|||
|
|
<h4 class="box-title">维修记录</h4>
|
|||
|
|
<div class="box-tools pull-right">
|
|||
|
|
<!--放时间筛选-->
|
|||
|
|
<div class="form-inline">
|
|||
|
|
<div class="input-group">
|
|||
|
|
<label class="form-label">时间范围:</label>
|
|||
|
|
<div class="input-group">
|
|||
|
|
<div class="input-group-addon">
|
|||
|
|
<i class="fa fa-clock-o"></i>
|
|||
|
|
</div>
|
|||
|
|
<input type="text" class="form-control" id="repairtime" style="width: 195px;">
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="box-body ">
|
|||
|
|
<table id="table_repair"></table>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class=" tab-pane " id="tab2">
|
|||
|
|
<!-- <table id="table_maintain"></table> -->
|
|||
|
|
<div class="box box-primary" >
|
|||
|
|
<div class="box-header with-border">
|
|||
|
|
<h4 class="box-title">保养记录</h4>
|
|||
|
|
<div class="box-tools pull-right">
|
|||
|
|
<!--放时间筛选-->
|
|||
|
|
<div class="form-inline">
|
|||
|
|
<div class="input-group">
|
|||
|
|
<label class="form-label">时间范围:</label>
|
|||
|
|
<div class="input-group">
|
|||
|
|
<div class="input-group-addon">
|
|||
|
|
<i class="fa fa-clock-o"></i>
|
|||
|
|
</div>
|
|||
|
|
<input type="text" class="form-control" id="maintaintime" style="width: 195px;">
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="box-body ">
|
|||
|
|
<table id="table_maintain"></table>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class=" tab-pane " id="tab3">
|
|||
|
|
<table id="table_attached"></table>
|
|||
|
|
</div>
|
|||
|
|
<div class=" tab-pane " id="tab4">
|
|||
|
|
<table id="table_point"></table>
|
|||
|
|
</div>
|
|||
|
|
<div class=" tab-pane " id="tab5">
|
|||
|
|
<table id="table_increaseValue"></table>
|
|||
|
|
</div>
|
|||
|
|
<div class=" tab-pane " id="tab6">
|
|||
|
|
<table id="fileTable"></table>
|
|||
|
|
</div>
|
|||
|
|
<!-- 20190926 modify start -->
|
|||
|
|
<div class=" tab-pane " id="tab7">
|
|||
|
|
<div class="box-body" id="container"></div>
|
|||
|
|
</div>
|
|||
|
|
<!-- 20190926 modify end -->
|
|||
|
|
|
|||
|
|
<!-- 20200717start -->
|
|||
|
|
<div class=" tab-pane " id="tab8">
|
|||
|
|
<table id="table_specialEquipment"></table>
|
|||
|
|
</div>
|
|||
|
|
<!-- 20200717end -->
|
|||
|
|
|
|||
|
|
<!-- 20201012start -->
|
|||
|
|
<div class=" tab-pane " id="tab10">
|
|||
|
|
<table id="table_fittings"></table>
|
|||
|
|
</div>
|
|||
|
|
<!-- 20201012end -->
|
|||
|
|
|
|||
|
|
<!-- 20200819start -->
|
|||
|
|
<div class=" tab-pane " id="tab9">
|
|||
|
|
<div class="box box-primary" >
|
|||
|
|
<div class="box-header with-border">
|
|||
|
|
<h4 class="box-title">停用记录</h4>
|
|||
|
|
<div class="box-tools pull-right">
|
|||
|
|
<!--放时间筛选-->
|
|||
|
|
<div class="form-inline">
|
|||
|
|
<div class="input-group">
|
|||
|
|
<label class="form-label">时间范围:</label>
|
|||
|
|
<div class="input-group">
|
|||
|
|
<div class="input-group-addon">
|
|||
|
|
<i class="fa fa-clock-o"></i>
|
|||
|
|
</div>
|
|||
|
|
<input type="text" class="form-control" id="stoptime" style="width: 195px;">
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="box-body ">
|
|||
|
|
<table id="table_stopEquipment"></table>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class=" tab-pane " id="tab11">
|
|||
|
|
<div class="box box-primary" >
|
|||
|
|
<div class="box-header with-border">
|
|||
|
|
<h4 class="box-title">设备附属</h4>
|
|||
|
|
<div class="box-tools pull-right">
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="box-body ">
|
|||
|
|
<!-- <table id="table_equipmentProp"></table> -->
|
|||
|
|
<form class="form-horizontal" id="subPropForm">
|
|||
|
|
<input type="hidden" id="equipmentId" name="equipmentId" value="${equipmentCard.id}">
|
|||
|
|
<input type="hidden" id="equipmentCardPropid" name="id" value="${equipmentCardProp.id}">
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">安装日期</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
|
|||
|
|
<p id="installDateProp" class="form-control-static" >${equipmentCardProp.installDate}</p>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<label class="col-sm-2 control-label">购置费/元</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p id="purchaseMoney" class="form-control-static" >${equipmentCardProp.purchaseMoney}</p>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">人工费/元</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p id="laborMoney" class="form-control-static" >${equipmentCardProp.laborMoney}</p>
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<label class="col-sm-2 control-label">效率值</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p id="instantFlow" class="form-control-static" >${equipmentCardProp.instantFlow}</p>
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">技术寿命年份/年</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p id="technicalLife" class="form-control-static" >${equipmentCardProp.technicalLife}</p>
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<label class="col-sm-2 control-label">能耗费用/元</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p id="energyMoney" class="form-control-static" >${equipmentCardProp.energyMoney}</p>
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">维护增额/元</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p id="maintainIncrement" class="form-control-static" >${equipmentCardProp.maintainIncrement}</p>
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<label class="col-sm-2 control-label">折旧数值/元</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p id="residualValue" class="form-control-static" >${equipmentCardProp.residualValue}</p>
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="form-group">
|
|||
|
|
<label class="col-sm-2 control-label">折旧率</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p id="residualValueRate" class="form-control-static" >${equipmentCardProp.residualValueRate}</p>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<label class="col-sm-2 control-label">设备规格:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p class="form-control-static" >${equipmentCard.equipmentSpecification.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" >
|
|||
|
|
<c:if test="${equipmentCardProp.isBackup == 1}">是</c:if>
|
|||
|
|
<c:if test="${equipmentCardProp.isBackup == 0}">否</c:if>
|
|||
|
|
</p>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<label class="col-sm-2 control-label">关键性指数:</label>
|
|||
|
|
<div class="col-sm-4">
|
|||
|
|
<p class="form-control-static" >
|
|||
|
|
<c:if test="${equipmentCardProp.keynum == 1}">无</c:if>
|
|||
|
|
<c:if test="${equipmentCardProp.keynum == 2}">低</c:if>
|
|||
|
|
<c:if test="${equipmentCardProp.keynum == 3}">高</c:if>
|
|||
|
|
<c:if test="${equipmentCardProp.keynum == 4}">极高</c:if>
|
|||
|
|
</p>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</form>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<div class=" tab-pane " id="tab12">
|
|||
|
|
<div class="box box-primary" >
|
|||
|
|
<div class="box-header with-border">
|
|||
|
|
<h4 class="box-title">总图设备</h4>
|
|||
|
|
<div class="box-tools pull-right">
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="box-body ">
|
|||
|
|
<div class="form-group" style="margin:8px;">
|
|||
|
|
<input type="file" name="equipmentCardFileDiv" id="equipmentCardFileDiv" multiple class="file-loading" />
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="modal-footer">
|
|||
|
|
<button type="button" class="btn btn-default " data-dismiss="modal">关闭</button>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|