| | |
| | | data=data.data
|
| | | console.info(data);
|
| | | for(var i=0;i<data.length;i++){
|
| | | arrdata.push(data[i].binf);//存储数据
|
| | | arrdata.push(data[i]);//存储数据
|
| | | arrTd[index++] = data[i].binf.StationId;
|
| | | arrTd[index++] = data[i].binf.StationName1;
|
| | | arrTd[index++] = data[i].binf.StationName2;
|
| | |
| | | console.info(arrTd);
|
| | | console.info(arrdata);
|
| | | createTbl(tblCon, arrTh, arrTd);
|
| | | timeer = window.setTimeout(function() {
|
| | | /*timeer = window.setTimeout(function() {
|
| | | searchBattLife();
|
| | | }, 5000); |
| | | }, 5000); */
|
| | | }
|
| | | });
|
| | | }
|
| | |
| | | function setApplyYanshou(index){
|
| | | //var value = Math.floor(34*index);
|
| | | console.info(arrdata);
|
| | | if(arrdata){
|
| | | creatYanshouObj(arrdata);
|
| | | if(arrdata.length>0){ //存入的为所有已查出数据
|
| | | creatYanshouObj(arrdata,index);
|
| | | }else{
|
| | | alert("请等待几秒后再提交申请");
|
| | | }
|
| | | }
|
| | |
|
| | | function creatYanshouObj(arrdata){
|
| | | for(var i=0;i<tempindex.length;i++){
|
| | | var obj = {
|
| | | binf:{
|
| | | StationId : temp[0], // 机房编号
|
| | | StationName : (temp[1]+"-"+temp[2]+"-"+temp[4]+"-"+temp[5]), // 拼接机房名称
|
| | | StationName1 :temp[1], // 省
|
| | | StationName2 : temp[2], // 市
|
| | | StationName5 : temp[3], // 区/县
|
| | | StationName3 : temp[4], // 机房名称
|
| | | StationName4 :temp[5], // 设备名称
|
| | | StationIp : temp[6], //机房ip
|
| | | FBSDeviceId : temp[7], //设备id
|
| | | FbsDeviceIp : temp[8], //设备ip
|
| | | FbsDeviceIp_YM : temp[9], // 设备掩码
|
| | | FbsDeviceIp_WG : temp[10], // 网关
|
| | | FBSDeviceName : temp[11], //设备名称
|
| | | GroupIndexInFBSDevice : temp[12], //fbs设备索引
|
| | | BattGroupId : tempid[temp[12]], //电池组id
|
| | | BattGroupNum : temp[14], //机房内电池组编号
|
| | | BattGroupName : temp[15], //电池组索引
|
| | | FloatVolLevel : temp[16], //浮充电压阀值
|
| | | OfflineVolLevel : temp[17], //离线电压阀值
|
| | | BattFloatCurrent : temp[18], //浮充电流阀值
|
| | | MonCount : temp[19], //单体数量
|
| | | MonCapStd : temp[20], //标称容量
|
| | | MonVolStd : temp[21], //标称电压
|
| | | MonResStd : temp[22], //标称内阻
|
| | | MonSerStd : temp[23], //标称电导
|
| | | MonVolLowToAvg : temp[24], //单体电压次低偏移量
|
| | | |
| | | Load_curr : temp[25], //负载电流
|
| | | DisCurrMax : temp[26], //最大核容电流
|
| | | station_phone : temp[27], //基站号码
|
| | | |
| | | BattProducer : temp[28], //电池品牌
|
| | | BattModel : temp[29], //电池型号
|
| | | BattProductDate : temp[30]+" 00:00:00", //电池生产日期
|
| | | BattInUseDate : temp[31]+" 00:00:00", //电池使用日期
|
| | | install_user : temp[32], //安装人员
|
| | | function creatYanshouObj(arrdata,index){
|
| | | var StationId = arrdata[index].binf.StationId;
|
| | | console.info(StationId);
|
| | | var arr = new Array(); //初始化传参数组
|
| | | for(var i=0;i<arrdata.length;i++){
|
| | | if(StationId == arrdata[i].binf.StationId){
|
| | | |
| | | var obj = {
|
| | | binf:{
|
| | | StationId : arrdata[i].binf.StationId, // 机房编号
|
| | | StationName : (arrdata[i].binf.StationName1+"-"+ arrdata[i].binf.StationName2+"-"+arrdata[i].binf.StationName5+"-"+arrdata[i].binf.StationName3), // 拼接机房名称
|
| | | StationName1 :arrdata[i].binf.StationName1, // 省
|
| | | StationName2 : arrdata[i].binf.StationName2, // 市
|
| | | StationName5 : arrdata[i].binf.StationName5, // 区/县
|
| | | StationName3 : arrdata[i].binf.StationName3, // 机房名称
|
| | | StationName4 : arrdata[i].binf.StationName5, // 设备名称
|
| | | StationIp :arrdata[i].binf.StationIp, //机房ip
|
| | | FBSDeviceId : arrdata[i].binf.FBSDeviceId, //设备id
|
| | | FbsDeviceIp : arrdata[i].binf.FbsDeviceIp, //设备ip
|
| | | FbsDeviceIp_YM : arrdata[i].binf.FbsDeviceIp_YM, // 设备掩码
|
| | | FbsDeviceIp_WG : arrdata[i].binf.FbsDeviceIp_WG , // 网关
|
| | | FBSDeviceName : arrdata[i].binf.FBSDeviceName, //设备名称
|
| | | GroupIndexInFBSDevice : arrdata[i].binf.GroupIndexInFBSDevice, //fbs设备索引
|
| | | BattGroupId : arrdata[i].binf.BattGroupId, //电池组id
|
| | | BattGroupNum : arrdata[i].binf.BattGroupNum , //机房内电池组编号
|
| | | BattGroupName :arrdata[i].binf.BattGroupName, //电池组索引
|
| | | FloatVolLevel : arrdata[i].binf.FloatVolLevel, //浮充电压阀值
|
| | | OfflineVolLevel : arrdata[i].binf.OfflineVolLevel, //离线电压阀值
|
| | | BattFloatCurrent : arrdata[i].binf.BattFloatCurrent, //浮充电流阀值
|
| | | MonCount : arrdata[i].binf.MonCount, //单体数量
|
| | | MonCapStd : arrdata[i].binf.MonCapStd, //标称容量
|
| | | MonVolStd : arrdata[i].binf.MonVolStd, //标称电压
|
| | | MonResStd : arrdata[i].binf.MonResStd, //标称内阻
|
| | | MonSerStd : arrdata[i].binf.MonSerStd, //标称电导
|
| | | MonVolLowToAvg : arrdata[i].binf.MonVolLowToAvg, //单体电压次低偏移量
|
| | | |
| | | Load_curr : arrdata[i].binf.Load_curr, //负载电流
|
| | | DisCurrMax : arrdata[i].binf.DisCurrMax, //最大核容电流
|
| | | station_phone : arrdata[i].binf.station_phone, //基站号码
|
| | | |
| | | BattProducer : arrdata[i].binf.BattProducer, //电池品牌
|
| | | BattModel : arrdata[i].binf.BattModel, //电池型号
|
| | | BattProductDate : arrdata[i].binf.BattProductDate+" 00:00:00", //电池生产日期
|
| | | BattInUseDate : arrdata[i].binf.BattInUseDate+" 00:00:00", //电池使用日期
|
| | | install_user : arrdata[i].binf.install_user, //安装人员
|
| | | }
|
| | | }
|
| | | arr.push(obj);
|
| | | //console.info(obj)
|
| | | }
|
| | | }
|
| | | console.info(obj);
|
| | | var temp = JSON.stringify(arr);
|
| | | $.ajax({
|
| | | type: 'post',
|
| | | async: true,
|
| | | url: 'Battinf_applyAction!checkPro',
|
| | | data: "json="+temp,
|
| | | dataType: 'json',
|
| | | success:function(data) {
|
| | | console.info(data);
|
| | | data = JSON.parse(data.result);
|
| | | if(data.code==1){
|
| | | alert("申请验收成功"); |
| | | }
|
| | | }
|
| | | arr.push(obj);
|
| | | }
|
| | | });
|
| | | }
|
| | | function setcookiedit(index){
|
| | | var arrcookie = new Array();
|