| | |
| | | function getApplyYanshouIndex(t){
|
| | | var index = $(t).attr("but-index");
|
| | | console.info(index);
|
| | | setApplyYanshou(index);
|
| | | |
| | | var arr=setApplyYanshou(index);
|
| | | //方法一:1按钮搞定所有。请在此对接加入弹出框,上传视频经纬度等
|
| | | |
| | | applyendyanshou(arr);
|
| | | return ;
|
| | | }
|
| | | |
| | | function getApplyYanshoupicture(t){
|
| | | var index = $(t).attr("but-index");
|
| | | console.info(index);//方法2
|
| | | var arr=setApplyYanshou(index);
|
| | | //请在此对接加入弹出框
|
| | | }
|
| | | var arrTd = new Array(); //当前表格td数据
|
| | | var tblCon = $('.tbl-container');
|
| | | var Page = {
|
| | |
| | | function yanshou(check_en){
|
| | | if(check_en==0){
|
| | | return "未验收";
|
| | | }else{
|
| | | return "已验收";
|
| | | }else if(check_en==2){
|
| | | return "已申请验收";
|
| | | }else if(check==1){
|
| | | return"已完成验收";s
|
| | | }
|
| | | }
|
| | | // 查询内容
|
| | |
| | | arrTd[index++] = yanshou(data[i].check_en);
|
| | | arrTd[index++]='<a onclick="getButIndex(this)" class="ui-btn ui-btn-inline ui-corner-all operat-but" data-position-to="window"'+'but-index='+i+'>电池组实时数据</a>'+
|
| | | '<a onclick="getApplyYanshouIndex(this)" href="#myPopup" id="apply_yanshou" data-rel="popup" class="ui-btn ui-btn-inline ui-corner-all operat-but fr" data-position-to="window"'+'but-index='+i+'>申请验收</a>';
|
| | | //方法2 2按钮解开以下一条注释按钮
|
| | | //'<a onclick="getApplyYanshoupicture(this)" href="#myPopup" id="apply_yanshou" data-rel="popup" class="ui-btn ui-btn-inline ui-corner-all operat-but fr" data-position-to="window"'+'but-index='+i+'>经纬度图片上传</a>'
|
| | | }
|
| | | }
|
| | | console.info(arrTd);
|
| | |
| | |
|
| | | function setApplyYanshou(index){
|
| | | console.info(arrdata);
|
| | | if(arrdata.length>0){ //存入的为所有已查出数据
|
| | | //请在此对接加入对话框,最后调用申请验收方法,传入arrdata,index参数
|
| | | creatYanshouObj(arrdata,index);//申请验收方法。
|
| | | if(arrdata.length>0){ //存入的为所有已查出数据 |
| | | var arr= creatYanshouObj(arrdata,index);//申请验收方法。
|
| | | return arr;
|
| | | }else{
|
| | | alert("请等待几秒后再提交申请");
|
| | | }
|
| | |
| | | }
|
| | | }
|
| | | console.info(arr);
|
| | | var temp = JSON.stringify(arr);
|
| | | |
| | | |
| | | return arr;
|
| | | //applyendyanshou(arr);//申请验收方法。
|
| | | }
|
| | | |
| | | function applyendyanshou(arr){
|
| | | var temp = JSON.stringify(arr);
|
| | | $.ajax({ //申请验收
|
| | | type: 'post',
|
| | | async: true,
|
| | |
| | | }
|
| | | }
|
| | | });
|
| | | |
| | | }
|
| | | function setcookiedit(index){
|
| | | var arrcookie = new Array();
|