<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>广厦系统</title> <meta name="renderer" content="webkit|ie-comp|ie-stand"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <!-- <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8" />--> <meta http-equiv="Cache-Control" content="no-siteapp" /> <!-- <link rel="stylesheet" href="./css/font.css"> <link rel="stylesheet" href="./css/xadmin.css">--> <!-- <link rel="stylesheet" href="./css/theme5.css"> --> <!--<script src="./lib/layui/layui.js" charset="utf-8"></script> <script type="text/javascript" src="./js/xadmin.js"></script>--> <link href="css/font.css" rel="stylesheet"> <link href="css/xadmin.css" rel="stylesheet"> <link href="css/login.css" rel="stylesheet"> <link href="../lib/layui/css/layui.css"> <!-- 隐藏操作中的多一次显示--> <style> .layui-table-tips-main { display: none; } .layui-table-tips-c { display: none; } .layui-table-grid-down{ display: none; } .layui-form-select dl dd.layui-select-tips { padding-left: 10px!important; color: #999; } .layui-layer-lan div.layui-layer-title { background: #eee; color: #333; border: none; } #agreementUp{ display: none; } </style> <script src="js/jquery.min.js"></script> <script src="lib/layui/layui.js"></script> <script src="js/xadmin.js"></script> <script src="js/util.js"></script> <script src="js/getUserToken.js"></script> <script src="js/api.js"></script> <script src="js/layer.js"></script> <!--<script src="js/append.js"></script>--> <script src="js/search.js"></script> <script src="js/jqueryForm.js"></script> <!--动态表单拼接--> <script src="js/parameter.js"></script> <!--详情页动态表单--> <script src="js/base.js"></script> <!--待办动态表单--> <script src="js/Taskdealwith.js"></script> <!--<script src="js/ajax.js"></script>--> <!--详情页静态元素--> <script src="js/Taskdealwith-static.js"></script> <!--已办详情动态拼接--> <script src="js/complete.js"></script> <!--已办详情静态拼接--> <script src="js/complete-static.js"></script> <!--二维码--> <script src="js/jquery.qrcode.min.js"></script> <!--当前详情静态拼接--> <script src="js/baseStatic.js"></script> <!--当前详情动态拼接--> <script src="js/base.js"></script> <script src="js/agreement.js"></script> <!--禁用回车键(texaarea文本输入框除外)--> <script> window.onload = function (){ document.body.onkeydown=function(event){ if(event.keyCode==13 && event.target.nodeName !== 'TEXTAREA'){ event.keyCod=0; return false; } } }; </script> <!--//备注与输入框超过300|100字时截断且提示--> <script src="js/msgRemark.js"></script> <!--//更换阶段负责人--> <script src="js/ifChangeOn.js"></script> <!-- 让IE8/9支持媒体查询,从而兼容栅格 --> <!--[if lt IE 9]> <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script> <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <style> .layui-table-cell { text-align: center; } .layui-table-cell .layui-table-link { color: #000000; } .layui-card-body { min-height: 570px; } </style> <div class="x-nav"> <span class="layui-breadcrumb"> <a href="">首页</a> <a href="stationData.html">基站历史</a> </span> <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" onclick="location.reload()" title="刷新"> <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a> </div> <div style="padding: 10px"> <div class="layui-row layui-col-space15"> <div class="layui-col-md12"> <div class="layui-card"> <div class="layui-card-header">基本数据历史 <div style="float: right;margin-right: 2px" > <a onclick="jumpToTask()" class="layui-btn layui-btn-sm" ><i class="layui-icon"></i>返回</a> </div> </div> <div class="layui-card-body"> <div class="layui-collapse" lay-filter="test" style="margin-right: 400px; width:100%;display: inline-block"> <h2 id="jz_history-fan" class="layui-colla-title">基站历史操作信息</h2> <div id="jz-history"> <table id="history_work" lay-filter="test"></table> <br/> </div> </div> <br/> <div class="layui-collapse" lay-filter="test" style="margin-right: 400px; width:100%;display: inline-block"> <h2 id="jz_history-lin" class="layui-colla-title">基站历史流程信息</h2> <div id="jz-history-aa"> <table class="layui-table" lay-skin="line" id="historyMessage"> </table> </div> </div> </div> </div> </div> </div> </div> </div> </body> </html> <script> var pageBack=window.location.href.split('?')[1].split('pageNow=')[1]?decodeURI(window.location.href.split('?')[1].split('pageNow=')[1].split('&')[0]):1; var pageName = window.location.href.split('?')[1].split('pageName=')[1]?decodeURI(window.location.href.split('?')[1].split('pageName=')[1].split('&')[0]):1; let bussinessIdHis = window.location.href.split('businessId=')[1].split('&')[0] function jumpToTask(){ window.location.href='baseOther.html?businessId=' + bussinessIdHis+ '&pageNow='+pageBack+'&pageName='+pageName } layui.use(['form', 'layer','jquery','laydate','upload'], function() { $ = layui.jquery; var form = layui.form, layer = layui.layer, laydate = layui.laydate, upload = layui.upload; // 空格函数 String.prototype.times = function(n) { return Array.prototype.join.call({length:n+1}, this); }; function appendKG(result,length){ return result + " ".times(length) } // 静态获取数据 function jsonToHistory(dataInfo,key) { var Elementname = ''; var ElementPath = ''; var obj = {}; //获取输入框标题 switch (key) { case "jzProspectlist": Elementname = dataInfo[key].jzProspectlistName ElementPath = dataInfo[key].jzProspectlistPath obj.fieldNm = "勘查单" obj.fieldTp = "upload"; obj.fieldValue = { "fileName": Elementname, "filePath": ElementPath }; break; case "jzDesigndrawing": Elementname = dataInfo[key].jzDesigndrawingName ElementPath = dataInfo[key].jzDesigndrawingPath obj.fieldNm = "设计图" obj.fieldTp = "upload"; obj.fieldValue = { "fileName": Elementname, "filePath": ElementPath }; break; case "jzElementlist": //下载 Elementname = dataInfo[key].jzElementlistName ElementPath = dataInfo[key].jzElementlistPath obj.fieldNm = "要素表" obj.fieldTp = "upload"; obj.fieldValue = { "fileName": Elementname, "filePath": ElementPath }; break; case "jzOutboundlist": Elementname = dataInfo[key].jzOutboundlistName ElementPath = dataInfo[key].jzOutboundlistPath obj.fieldNm = "出库单" obj.fieldTp = "upload"; obj.fieldValue = { "fileName": Elementname, "filePath": ElementPath }; break; case "jzOperatoracceptlist": Elementname = dataInfo[key].jzOperatoracceptlistName ElementPath = dataInfo[key].jzOperatoracceptlistPath obj.fieldNm = "运营商验收单" obj.fieldTp = "upload"; obj.fieldValue = { "fileName": Elementname, "filePath": ElementPath }; break; case "jzRoutedrawing": Elementname = dataInfo[key].jzRoutedrawingName ElementPath = dataInfo[key].jzRoutedrawingPath obj.fieldNm = "路由图" obj.fieldTp = "upload"; obj.fieldValue = { "fileName": Elementname, "filePath": ElementPath }; break; case "jzBudgetofelectic": Elementname = dataInfo[key].jzBudgetofelecticName ElementPath = dataInfo[key].jzBudgetofelecticPath obj.fieldNm = "电力预算" obj.fieldTp = "upload"; obj.fieldValue = { "fileName": Elementname, "filePath": ElementPath }; break; case "jzMatterlist": Elementname = dataInfo[key].jzMatterlistName ElementPath = dataInfo[key].jzMatterlistPath obj.fieldNm = "立项物资清单" obj.fieldTp = "upload"; obj.fieldValue = { "fileName": Elementname, "filePath": ElementPath }; break; case "jzOpenrepory": Elementname = dataInfo[key].jzOpenreporyName ElementPath = dataInfo[key].jzOpenreporyPath obj.fieldNm = "开工报告" obj.fieldTp = "upload"; obj.fieldValue = { "fileName": Elementname, "filePath": ElementPath }; break; case "jzConstructprocept": Elementname = dataInfo[key].jzConstructproceptName ElementPath = dataInfo[key].jzConstructproceptPath obj.fieldNm = "施工组织方案" obj.fieldTp = "upload"; obj.fieldValue = { "fileName": Elementname, "filePath": ElementPath }; break; case "jzCompletedreport": Elementname = dataInfo[key].jzCompletedreportName ElementPath = dataInfo[key].jzCompletedreportPath obj.fieldNm = "完工报告" obj.fieldTp = "upload"; obj.fieldValue = { "fileName": Elementname, "filePath": ElementPath }; break; case "jzCompletedphoto": Elementname = dataInfo[key].jzCompletedphotoName ElementPath = dataInfo[key].jzCompletedphotoPath obj.fieldNm = "完工照片" obj.fieldTp = "upload"; obj.fieldValue = { "fileName": Elementname, "filePath": ElementPath }; break; case "jzCompletedacceptlist": Elementname = dataInfo[key].jzCompletedacceptlistName ElementPath = dataInfo[key].jzCompletedacceptlistPath obj.fieldNm = "竣工验收单" obj.fieldTp = "upload"; obj.fieldValue = { "fileName": Elementname, "filePath": ElementPath }; break; case "jzOpendrawing": Elementname = dataInfo[key].jzOpendrawingName ElementPath = dataInfo[key].jzOpendrawingPath obj.fieldNm = "开通截图" obj.fieldTp = "upload"; obj.fieldValue = { "fileName": Elementname, "filePath": ElementPath }; break; case "jzRentdrawing": Elementname = dataInfo[key].jzRentdrawingName ElementPath = dataInfo[key].jzRentdrawingPath obj.fieldNm = "起租截图" obj.fieldTp = "upload"; obj.fieldValue = { "fileName": Elementname, "filePath": ElementPath }; break; case "jzCode": //text obj.fieldNm = "基站号" obj.fieldTp = "input"; obj.fieldValue = dataInfo[key] break; case "jzName": //text obj.fieldNm = "基站名" obj.fieldTp = "input"; obj.fieldValue = dataInfo[key] break; case "projectCode": //text obj.fieldNm = "项目编号" obj.fieldTp = "input"; obj.fieldValue = dataInfo[key] break; case "businessLineName": //text obj.fieldNm = "业务线" obj.fieldTp = "input"; obj.fieldValue = dataInfo[key] break; case "jzRequire": //text obj.fieldNm = "需求号" obj.fieldTp = "input"; obj.fieldValue = dataInfo[key] break; case "jzLatitude": //text obj.fieldNm = "经度" obj.fieldTp = "input"; obj.fieldValue = dataInfo[key] break; case "jzLongitude": //text obj.fieldNm = "纬度" obj.fieldTp = "input"; obj.fieldValue = dataInfo[key] break; case "projectAddress": //text obj.fieldNm = "基站地址" obj.fieldTp = "input"; obj.fieldValue = dataInfo[key] break; case "jzNeId": //text obj.fieldNm = "网元id" obj.fieldTp = "input"; obj.fieldValue = dataInfo[key] break; case "maintainername": obj.fieldNm = "维护人员" obj.fieldTp = "input"; obj.fieldValue = dataInfo[key] break; case "jzUppermachineroomplace": obj.fieldNm = "上联机房位置" obj.fieldTp = "input"; obj.fieldValue = dataInfo[key] break; case "jzPropertycode": obj.fieldNm = "资产编码" obj.fieldTp = "input"; obj.fieldValue = dataInfo[key] break; case "jzIsconnectwithowner": obj.fieldNm = "是否与业务主交接" obj.fieldTp = "input"; obj.fieldValue = dataInfo[key] break; case "jzPropertyname": obj.fieldNm = "接维物业名称" obj.fieldTp = "input"; obj.fieldValue = dataInfo[key] break; case "jzOwnercontactinfo": obj.fieldNm = "业务联系方式" obj.fieldTp = "input"; obj.fieldValue = dataInfo[key] break; case "oldSalesmanName": //text obj.fieldNm = "原阶段负责人" obj.fieldTp = "input"; obj.fieldValue = dataInfo[key] break; case "changeSalesmanName": //text obj.fieldNm = "更换阶段负责人为" obj.fieldTp = "input"; obj.fieldValue = dataInfo[key] break; } return obj; } // 接收stationData.html页面传来的businessId layui.use('table', function(){ var businessId = window.location.href.split('businessId=')[1].split('&')[0]; var table = layui.table; //第一个实例 table.render({ elem: '#history_work', url:util.interfaceUrl + interfacenName.getHistory //调接口 基本信息历史操作 ,height:301 ,method:'get', where:{ page:'', limit:'', businessId:businessId, }, headers: { 'Authorization':userToken, 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8' } ,parseData: function(res){ //res 即为原始返回的数据 // 获取历史详情的数据 var dataUpTable = res.data.hiJzMessageList var data = res.data.processMidDTOS var lastHis = ""; // 将processMidDTOS中的字段显示为汉字 for(var i=0; i<data.length;i++) { // 静态数据 //var dataStatic = data[i].regionStr // 判断typeTemplate取相对于的名字 var typeHistoryTemplate = data[i].typeTemplate var historyInformation = ""; //非管理员 if(data[i].typeProcess) { switch (typeHistoryTemplate) { case "S01": historyInformation = '修改基站信息'; break; case "S02": historyInformation = '更换阶段负责人'; break; case "S03": historyInformation= '基站需求取消'; break; case "S04": historyInformation = ' 基 站 拆 站 '; break; case "S05": historyInformation = ' 维护部拆站 '; break; case "S06": historyInformation = ' 维护部修改 '; break; case "M01": historyInformation= ' 选 址 成 功 '; break; case "M02": historyInformation= ' 选 址 失 败 '; break; case "M03": historyInformation = ' 基 站 勘 察 '; break; case "M04": historyInformation = ' 基 站 会 审 '; break; case "M05": historyInformation = ' 基 站 交 底 '; break; case "M06": historyInformation = ' 基 站 领 料 '; break; case "M07": historyInformation = ' 基 站 施 工 '; break; case "M08": historyInformation = ' 基 站 开 通 '; break; case "M09": historyInformation = '基站签署订单'; break; case "M10": historyInformation = ' 基 站 交 资 '; break; case "M11": historyInformation = ' 基 站 交 维 '; break; case "M14": historyInformation = '维护部修改'; break; case "T01": historyInformation = ' 选 址 成 功 '; break; case "T02": historyInformation = ' 选 址 失 败 '; break; case "T03": historyInformation = ' 基 站 勘 察 '; break; case "T04": historyInformation = ' 基 站 会 审 '; break; case "T05": historyInformation = ' 基 站 立 项 '; break; case "T06": historyInformation = ' 基 站 领 料 '; break; case "T07": historyInformation = ' 基 站 施 工 '; break; case "T08": historyInformation = ' 基 站 完 工 '; break; case "T09": historyInformation = ' 基 站 交 付 '; break; case "T10": historyInformation = ' 基 站 起 租 '; break; case "T11": historyInformation = '签订租赁与电费合同'; break; case "T12": historyInformation = ' 基 站 交 维 '; break; case "T15": historyInformation = '维护部修改'; break; default: break; } } else{ historyInformation = "管理员修改"; } var dataone = data[i].taskMessageDTOList for (var x =0;x< dataone.length;x++){ var dataStatic = dataone[x].regionStr var datastation = dataone[x].workflowTaskDataHiList var curHis = appendKG(historyInformation,7); // 判断typeTemplate紧挨着形成时只显示最上边的 if(!lastHis) { lastHis = curHis; } else if(lastHis && lastHis == curHis){ curHis = appendKG(" ", 24); }else if(lastHis && lastHis != curHis){ lastHis = curHis } // 拼接taskMessageDTOList字段 $("#historyMessage").append($("<tr><td colspan=3>" + "<span style='font-size: 16px'>" + curHis + "</span>" + "操作人:" + appendKG(dataone[x].name,20) + "操作时间:" + appendKG(dataone[x].createtime,20)+ "" + appendKG(dataone[x].transition,10) + "备注:" + util.dealWithFormatTextByLen(dataone[x].remarks,25,true)+"</td></tr>")); if(typeHistoryTemplate === 'S01') { continue } if(typeHistoryTemplate === 'S06') { continue } //static if(dataStatic){ var dataInfo = JSON.parse(dataStatic); // 判断建维专员 if (dataInfo.jzMatintain) { dataInfo['maintainername'] = dataInfo.jzMatintain.maintainername; } delete dataInfo['jzMatintain'] for (let key in dataInfo) { datastation.push(jsonToHistory(dataInfo,key)) } } let newTd ='' // 判断数据为空时将多余的行隐藏 var datastationDealWith = []; var reNum = 0; for (var y = 0; y < datastation.length; y++) { // 判断是否是合同 var historyContract = datastation [y].fieldTp; if(!datastation[y].fieldNm) continue; //合同 if (datastation[y].fieldNm && historyContract == 'contract'){ if(!newTd){ $("#historyMessage").append($("<tr>"+newTd+"</tr>")); newTd=''; reBlank = false; reNum = 0; } var resultContract = datastation[y].fieldValue; var jsonobj = {}; try{ jsonobj=eval('('+resultContract+')'); }catch (e) { continue; } if(!jsonobj || 0 == jsonobj.length) continue; for (var k = 0 ; k < jsonobj.length ; k++) { //datastation[y].fieldValue = var str = "合同编号:" + appendKG(util.dealWithFormatTextByLen(jsonobj[k].agree_id,10,true),6)+ "合同名称:" + appendKG(util.dealWithFormatTextByLen(jsonobj[k].agree_name,10,true),6)+ "往来单位:" + appendKG(util.dealWithFormatTextByLen(jsonobj[k].agree_unit,10,true),6)+ "签订日期:" + appendKG(util.dealWithFormatTextByLen(jsonobj[k].agree_date,10),6)+ "是否验证:" + jsonobj[k].agree_check; $("#historyMessage").append($("<tr><td colspan=3>" + appendKG("",29) + util.dealWithFormatTextByLen(str,400)+ "</td></tr>")); } continue; } switch (historyContract) { case 'select': var fieldExpand = JSON.parse(datastation[y].fieldExpand) var fieldValue = datastation[y].fieldValue var expandFlag = 0; for(let i = 0;i<fieldExpand.items.length;i++){ if( fieldValue.trim() == fieldExpand.items[i].value) { newTd += "<td>" + appendKG("", reNum == 0 ? 29 : 0) + util.dealWithFormatTextByLen(datastation[y].fieldNm, 10, true) + ":" + "<span class='layui-table-link'>" + fieldExpand.items[i].label + "</span></td>" break; }else{ expandFlag++; } } if(expandFlag == fieldExpand.items.length ){ newTd += "<td>" + appendKG("", reNum == 0 ? 29 : 0) + util.dealWithFormatTextByLen(datastation[y].fieldNm, 10, true) + ":" + "<span class='layui-table-link'></span></td>" } break; case 'upload': if(typeof datastation[y].fieldValue == 'string'){ let temp ={fileName:'',filePath:''} var mydataValue = datastation[y].fieldValue.replace(/\'/g,"\"") ==''?temp:JSON.parse(datastation[y].fieldValue.replace(/\'/g,"\"")) newTd += "<td>" +appendKG("",reNum == 0 ? 29 : 0)+ util.dealWithFormatTextByLen(datastation[y].fieldNm,15,true)+ ":" + '<a target="_parent" style="color: #0984e3;" href="' + util.interfaceUrl+interfacenName.fileDown + "?fileName="+mydataValue.fileName +"&filePath=" + mydataValue.filePath+'" >' + util.dealWithFormatTextByLen(mydataValue.fileName,15,true)+"</a></td>" } else{ newTd += '<td>' +appendKG("",reNum == 0 ? 29 : 0)+ util.dealWithFormatTextByLen(datastation[y].fieldNm,15,true)+ ':' + '<a target="_parent" style="color: #0984e3;" href=" '+ util.interfaceUrl+interfacenName.fileDown +"?fileName="+datastation[y].fieldValue.fileName +"&filePath=" + datastation[y].fieldValue.filePath+'" >' + util.dealWithFormatTextByLen(datastation[y].fieldValue.fileName,15,true)+"</a></td>" } break; default: newTd += "<td>" +appendKG("",reNum == 0 ? 29 : 0)+ util.dealWithFormatTextByLen(datastation[y].fieldNm,15,true)+ ":" + util.dealWithFormatTextByLen(datastation[y].fieldValue,12,true)+ "</td>" break; } /* //下拉框 if (datastation[y].fieldNm && historyContract == 'select'){ var fieldExpand = JSON.parse(datastation[y].fieldExpand) var fieldValue = datastation[y].fieldValue for(let i = 0;i<fieldExpand.items.length;i++){ if( fieldValue.trim() == fieldExpand.items[i].value) { newTd += "<td>" + appendKG("", reNum == 0 ? 29 : 0) + util.dealWithFormatTextByLen(datastation[y].fieldNm, 10, true) + ":" + "<span class='layui-table-link'>" + fieldExpand.items[i].label + "</span></td>" break; } } continue; } //附件 if (datastation[y].fieldNm && historyContract == 'upload'){ if(typeof datastation[y].fieldValue == 'string'){ try{ var mydataValue = JSON.parse(datastation[y].fieldValue) newTd += "<td>" +appendKG("",reNum == 0 ? 29 : 0)+ util.dealWithFormatTextByLen(datastation[y].fieldNm,15,true)+ ":" + '<a target="_parent" style="color: #0984e3;" href="' + util.interfaceUrl+interfacenName.fileDown + "?fileName="+mydataValue.fileName +"&filePath=" + mydataValue.filePath+'" >' + util.dealWithFormatTextByLen(mydataValue.fileName,15,true)+"</a></td>" }catch (e) { newTd += "<td>" +appendKG("",reNum == 0 ? 29 : 0)+ util.dealWithFormatTextByLen(datastation[y].fieldNm,15,true)+ ":" + "</td>" } } else{ console.log(datastation[y]) newTd += '<td>' +appendKG("",reNum == 0 ? 29 : 0)+ util.dealWithFormatTextByLen(datastation[y].fieldNm,15,true)+ ':' + '<a target="_parent" style="color: #0984e3;" href=" '+ util.interfaceUrl+interfacenName.fileDown +"?fileName="+datastation[y].fieldValue.fileName +"&filePath=" + datastation[y].fieldValue.filePath+'" >' + util.dealWithFormatTextByLen(datastation[y].fieldValue.fileName,15,true)+"</a></td>" } } else{ newTd += "<td>" +appendKG("",reNum == 0 ? 29 : 0)+ util.dealWithFormatTextByLen(datastation[y].fieldNm,15,true)+ ":" + util.dealWithFormatTextByLen(datastation[y].fieldValue,16,true)+ "</td>" }*/ /*if (datastation[y].fieldNm && historyContract == 'upload'){ let fieldValue = JSON.parse(datastation[y].fieldValue) newTd += "<td>" +appendKG("",reNum == 0 ? 29 : 0)+ util.dealWithFormatTextByLen(datastation[y].fieldNm,10,true)+ ":" + "<a style='color: #0984e3;' href=" + util.interfaceUrl+interfacenName.fileDown + "?fileName="+fieldValue.fileName +"&filePath=" + fieldValue.filePath+'" >' + util.dealWithFormatTextByLen(fieldValue.fileName,16,true)+"</a></td>" continue; } else{ newTd += "<td>" +appendKG("",reNum == 0 ? 29 : 0)+ util.dealWithFormatTextByLen(datastation[y].fieldNm,10,true)+ ":" + util.dealWithFormatTextByLen(datastation[y].fieldValue,16,true)+ "</td>" }*/ if((reNum+1) % 3 == 0){ $("#historyMessage").append($("<tr>"+newTd+"</tr>")); newTd=''; reNum = 0; continue; } //选择框 // if (datastation[y].fieldNm && historyContract == 'upload'){ // let fieldValue = JSON.parse(datastation[y].fieldValue) // newTd += "<td>" +appendKG("",reNum == 0 ? 29 : 0)+ util.dealWithFormatTextByLen(datastation[y].fieldNm,10,true)+ ":" + "<a style='color: #0984e3;' href=" + util.interfaceUrl+interfacenName.fileDown + "?fileName="+fieldValue.fileName +"&filePath=" + fieldValue.filePath+'" >' + util.dealWithFormatTextByLen(fieldValue.fileName,16,true)+"</a></td>" // }else{ // newTd += "<td>" +appendKG("",reNum == 0 ? 29 : 0)+ util.dealWithFormatTextByLen(datastation[y].fieldNm,10,true)+ ":" + util.dealWithFormatTextByLen(datastation[y].fieldValue,16,true)+ "</td>" // } // if((reNum+1) % 3 == 0){ // $("#historyMessage").append($("<tr>"+newTd+"</tr>")); // newTd=''; // reNum = 0; // continue; // } // // 判断workflowTaskDataHiList里的字段少于三条时自动显示在一行 if (y == datastation.length - 1 && ((reNum+1) % 3 != 0)){ var res = ""; if(reNum == 0) res = "<td></td><td></td>" else if(reNum == 1) res = "<td></td>" $("#historyMessage").append($("<tr>"+newTd+ res + "</tr>")); reNum = 0; } reNum ++; } } } return { "code":0, //解析接口状态 "msg":"", "data": dataUpTable //显示数据 }; } //表头 ,cols: [[ { field: 'number', title: '序号', fixed: 'left', width: 145, templet: function (d){ return '<div><span class="layui-table-link"> '+util.dealWithFormatTextByLen(d.number,20,true)+'</span> </div>' } } ,{field: 'jzCode', title: '基站号', width:135, templet: function (d){ return '<div><span class="layui-table-link"> '+util.dealWithFormatTextByLen(d.jzCode,20,true)+'</span> </div>' } } ,{field: 'jzName', title: '基站名', width:135, templet: function (d){ return '<div><span class="layui-table-link"> '+util.dealWithFormatTextByLen(d.jzName,20,true)+'</span></div>' } } ,{field: 'jzProjectId', title: '项目ID', width:135, templet: function (d){ return '<div><span class="layui-table-link"> '+util.dealWithFormatTextByLen(d.jzProjectId,20,true)+'</span></div>' } } ,{field: 'projectCode', title: '项目编号', width:135, templet: function (d){ return '<div><span class="layui-table-link"> '+util.dealWithFormatTextByLen(d.projectCode,20,true)+'</span></div>' } } ,{field: 'updateName', title: '变更人', width:135, templet: function (d){ return '<div><span class="layui-table-link"> '+util.dealWithFormatTextByLen(d.updateName,20,true)+'</span></div>' } } ,{field: 'updateDate', title: '变更时间', width: 150, templet: function (d){ return '<div><span class="layui-table-link"> '+util.dealWithFormatTextByLen(d.updateDate,25,true)+'</span></div>' } } ,{field: 'jzWaitReason', title: '变更来源', width:135, templet: function (d){ var jzWaitReason =util.dealWithFormatTextByLen(d.jzWaitReason,25,true) console.log(jzWaitReason) // 判断字段是否存在 if (jzWaitReason){ var jsonWaitReason ={ "0":'勘察阶段', "1":'会审阶段', "2":'领料阶段', "3":'施工验收阶段', "4":'开通阶段', "5":'交资阶段', "6":'交维阶段', "7":'立项阶段', "8":'施工阶段', "9":'完工阶段', "10":'起租阶段', "12":'更换负责人', /*"13":'需求取消阶段', "14":'需求取消阶段', "16":'拆站阶段',*/ "17":'管理员修改基站信息', "18":'修改基站信息', "20":'维护部修改基站信息' } var jsonWait = jsonWaitReason[jzWaitReason] return '<div>'+jsonWait+'</div>' }else if (!jzWaitReason) { return '初始导入' } } } ,{field: 'curUserName', title: '阶段负责人', width:135, templet: function (d){ return '<div><span class="layui-table-link"> '+util.dealWithFormatTextByLen(d.curUserName,20,true)+'</span></div>' } } ,{field: 'jzProspectlistName', title: '勘察单', width:135, templet: function (d){ var jzProspectlistName = d.jzProspectlistName var jzProspectlistPath= d.jzProspectlistPath return '<div><a href="'+util.interfaceUrl+interfacenName.fileDown+'?fileName='+jzProspectlistName+'&filePath='+jzProspectlistPath+'" class="layui-table-link" style="color: #0984e3;"> '+util.dealWithFormatTextByLen(d.jzProspectlistName,20,true)+'</a></div>' } } ,{field: 'jzDesigndrawingName', title: '设计图', width:135, templet: function (d){ var desginDrawingName = d.jzDesigndrawingName var desginDrawingPath= d.jzDesigndrawingPath return '<div><a href="'+util.interfaceUrl+interfacenName.fileDown+'?fileName='+desginDrawingName+'&filePath='+desginDrawingPath+'" class="layui-table-link" style="color: #0984e3;"> '+util.dealWithFormatTextByLen(d.jzDesigndrawingName,20,true)+'</a></div>' } } ,{field: 'jzElementlistName', title: '要素表', width:135, templet: function (d){ var jzElementlistName = d.jzElementlistName var jzElementlistPath= d.jzElementlistPath return '<div><a href="'+util.interfaceUrl+interfacenName.fileDown+'?fileName='+jzElementlistName+'&filePath='+jzElementlistPath+'" class="layui-table-link" style="color: #0984e3;"> '+util.dealWithFormatTextByLen(d.jzElementlistName,20,true)+'</a></div>' } } ,{field: 'jzOutboundlistName', title: '出库单', width:135, templet: function (d){ var jzOutboundlistName = d.jzOutboundlistName var jzOutboundlistPath= d.jzOutboundlistPath return '<div><a href="'+util.interfaceUrl+interfacenName.fileDown+'?fileName='+jzOutboundlistName+'&filePath='+jzOutboundlistPath+'" class="layui-table-link" style="color: #0984e3;"> '+util.dealWithFormatTextByLen(d.jzOutboundlistName,20,true)+'</a></div>' } } ,{field: 'jzCompletedacceptlistName', title: '竣工验收单', width:135, templet: function (d){ var jzCompletedacceptlistName = d.jzCompletedacceptlistName var jzCompletedacceptlistPath= d.jzCompletedacceptlistPath return '<div><a href="'+util.interfaceUrl+interfacenName.fileDown+'?fileName='+jzCompletedacceptlistName+'&filePath='+jzCompletedacceptlistPath+'" class="layui-table-link" style="color: #0984e3;"> '+util.dealWithFormatTextByLen(d.jzCompletedacceptlistName,20,true)+'</a></div>' } } ,{field: 'jzIsconnectwithowner', title: '是否与业主交接', width:135, templet: function (d){ return '<div><span class="layui-table-link"> '+util.dealWithFormatTextByLen(d.jzIsconnectwithowner,20,true)+'</span></div>' } } ,{field: 'jzPropertyname', title: '接维物业名称', width:135, templet: function (d){ return '<div><span class="layui-table-link"> '+util.dealWithFormatTextByLen(d.jzPropertyname,20,true)+'</span></div>' } } ,{field: 'jzOwnercontactinfo', title: '业主联系方式', width:135, templet: function (d){ return '<div><span class="layui-table-link"> '+util.dealWithFormatTextByLen(d.jzOwnercontactinfo,20,true)+'</span></div>' } } ,{field: 'jzBudgetofelecticName', title: '电力预算表', width:135, templet: function (d){ var jzBudgetofelecticName = d.jzBudgetofelecticName var jzBudgetofelecticPath= d.jzBudgetofelecticPath return '<div><a href="'+util.interfaceUrl+interfacenName.fileDown+'?fileName='+jzBudgetofelecticName+'&filePath='+jzBudgetofelecticPath+'" class="layui-table-link" style="color: #0984e3;"> '+util.dealWithFormatTextByLen(d.jzBudgetofelecticName,20,true)+'</a></div>' } } ,{field: 'jzMatterlistName', title: '立项物资清单', width:135, templet: function (d){ var jzMatterlistName = d.jzMatterlistName var jzMatterlistPath=d.jzMatterlistPath return '<div><a href="'+util.interfaceUrl+interfacenName.fileDown+'?fileName='+jzMatterlistName+'&filePath='+jzMatterlistPath+'" class="layui-table-link" style="color: #0984e3;"> '+util.dealWithFormatTextByLen(d.jzMatterlistName,20,true)+'</a></div>' } } ,{field: 'jzOpenreporyName', title: '开工报告', width:135, templet: function (d){ var jzOpenreporyName = d.jzOpenreporyName var jzOpenreporyPath= d.jzOpenreporyPath return '<div><a href="'+util.interfaceUrl+interfacenName.fileDown+'?fileName='+jzOpenreporyName+'&filePath='+jzOpenreporyPath+'" class="layui-table-link" style="color: #0984e3;"> '+util.dealWithFormatTextByLen(d.jzOpenreporyName,20,true)+'</a></div>' } } ,{field: 'jzConstructproceptName', title: '施工组织方案', width:135, templet: function (d){ var jzConstructproceptName = d.jzConstructproceptName var jzConstructproceptPath= d.jzConstructproceptPath return '<div><a href="'+util.interfaceUrl+interfacenName.fileDown+'?fileName='+jzConstructproceptName+'&filePath='+jzConstructproceptPath+'" class="layui-table-link" style="color: #0984e3;"> '+util.dealWithFormatTextByLen(d.jzConstructproceptName,20,true)+'</a></div>' } } ,{field: 'jzCompletedreportName', title: '完工报告', width:135, templet: function (d){ console.log(d.jzCompletedreportName,'aaaaaaaaaaaaaaaaaaa') var jzCompletedreportName = d.jzCompletedreportName var jzCompletedreportPath = d.jzCompletedreportPath return '<div><a href="'+util.interfaceUrl+interfacenName.fileDown+'?fileName='+jzCompletedreportName+'&filePath='+jzCompletedreportPath+'" class="layui-table-link" style="color: #0984e3;"> '+util.dealWithFormatTextByLen(d.jzCompletedreportName,20,true)+'</a></div>' } } ,{field: 'jzCompletedphotoName', title: '完工照片', width:135, templet: function (d){ var jzCompletedphotoName = d.jzCompletedphotoName var jzCompletedphotoPath= d.jzCompletedphotoPath return '<div><a href="'+util.interfaceUrl+interfacenName.fileDown+'?fileName='+jzCompletedphotoName+'&filePath='+jzCompletedphotoPath+'" class="layui-table-link" style="color: #0984e3;"> '+util.dealWithFormatTextByLen(d.jzCompletedphotoName,20,true)+'</a></div>' } } ,{field: 'jzRentdrawingName', title: '铁塔起租截图', width:135, templet: function (d){ var jzRentdrawingName = d.jzRentdrawingName var jzRentdrawingPath=d.jzRentdrawingPath return '<div><a href="'+util.interfaceUrl+interfacenName.fileDown+'?fileName='+jzRentdrawingName+'&filePath='+jzRentdrawingPath+'" class="layui-table-link" style="color: #0984e3;"> '+util.dealWithFormatTextByLen(d.jzRentdrawingName,20,true)+'</a></div>' } } ,{field: 'jzLongitude', title: '经度', width: 135, templet: function (d){ return '<div><span class="layui-table-link"> '+ d.jzLongitude.toFixed(6) +'</span></div>' } } ,{field: 'jzLatitude', title: '纬度', width: 135, templet: function (d){ return '<div><span class="layui-table-link"> '+ d.jzLatitude.toFixed(6) +'</span></div>' } } ,{field: 'jzVersion', title: '信息版本', width: 135, templet: function (d){ return '<div><span class="layui-table-link"> '+util.dealWithFormatTextByLen(d.jzVersion,10,true)+'</span></div>' } } /* ,{field: 'jzMapLink', title: '地图查看', width: 135, templet: function (d){ return '<div><a href="'+d.jzMapLink+'" style="color: #0984e3;" target="_blank" class="layui-table-link"> '+util.dealWithFormatTextByLen(d.jzMapLink,20,true)+'</a></div>' } }*/ ]] }); }); // 点击基本信息历史操作实现隐藏出现 $(document).ready(function(){ $("#jz_history-fan").click(function(){ $("#jz-history").toggle(); }); }); $(document).ready(function(){ $("#jz_history-lin").click(function(){ $("#jz-history-aa").toggle(); }); }); }); </script> <!-- 基本信息历史操作详情--> </body> </html>