CJJ
2018-12-24 a4cda2f0b22b9ff5236c5c64f168950460a951ca
修改
1个文件已修改
37 ■■■■ 已修改文件
gx_tieta/WebRoot/mobil/batt-approved.html 37 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
gx_tieta/WebRoot/mobil/batt-approved.html
@@ -152,11 +152,18 @@
    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 = {
@@ -226,8 +233,10 @@
    function yanshou(check_en){
        if(check_en==0){
            return "未验收";
        }else{
            return "已验收";
        }else if(check_en==2){
            return "已申请验收";
        }else if(check==1){
            return"已完成验收";s
        }
    }
    // 查询内容
@@ -290,6 +299,8 @@
                     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);
@@ -307,9 +318,9 @@
        
        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("请等待几秒后再提交申请");
            }
@@ -365,7 +376,14 @@
                }
            }
            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,
@@ -380,6 +398,7 @@
                    }
                }
            });
        }
         function setcookiedit(index){
                 var arrcookie = new Array();