| | |
| | | if(batt.install_user||batt.install_user==0){
|
| | | //console.info(batt);
|
| | | if(batt.address||batt.address==""){
|
| | | console.info(batt.check_en);
|
| | | if(batt.check_en==1){
|
| | | window.location.href="hcheckAccpet-index.html";
|
| | | }else{
|
| | | window.location.href="wcheckAccept-index.html";
|
| | | }
|
| | | }else{
|
| | | window.location.href="batt-approve-index.html";
|
| | | }
|
| | |
| | | install_user : arrdata[i].binf.install_user, //安装人员
|
| | | address : arrdata[i].address,
|
| | | confirm_name : arrdata[i].confirm_name,
|
| | | check_en:arrdata[i].check_en,
|
| | | }
|
| | | }
|
| | | arr.push(obj);
|
| | |
| | | var tbl = $('.tbl-container');
|
| | | var temp = getCookie("wapproval");
|
| | | temp = JSON.parse(temp);
|
| | | console.info(temp);
|
| | | //console.info(temp);
|
| | | createTbl(tbl, arrTh, dataArr);
|
| | | $(document).ready(function(){
|
| | | Page.pageCurr=1;
|
| | | console.info(temp);
|
| | | //console.info(temp);
|
| | | setBattLife();
|
| | | battnumber();
|
| | | //searchBattLife();
|
| | |
| | |
|
| | | function battnumber(){
|
| | | var selected=''
|
| | | console.info(temp);
|
| | | // console.info(temp);
|
| | | if(temp.length>0){
|
| | | for(var i=0;i<temp.length;i++){
|
| | | selected+= '<option '+'value='+i+'>'+temp[i].binf.BattGroupName+'</option>';
|
| | |
| | | });
|
| | |
|
| | | $("#sure").click(function(){
|
| | | var temp = getCookie("wapproval");
|
| | | temp = JSON.parse(temp);
|
| | | // var temp = getCookie("wapproval");
|
| | | //temp = JSON.parse(temp);
|
| | | var data = temp;
|
| | | if(data[i].check_en==0){
|
| | | console.info(data);
|
| | | if(data[0].check_en==0){//一个基站内的所有电池组同时申请,因此判断一组电池组状态即可。
|
| | | alert("现场未提交申请验收");
|
| | | }else if(data[i].check_en==2){
|
| | | }else if(data[0].check_en==2){
|
| | | exBattGroupAjax(data);
|
| | | }
|
| | | });
|