YYC
2023-05-19 6e7865b1f1c3d310019987f52d7e145cde691942
细节调整
已修改15个文件
540 ■■■■■ 文件已修改
igds-app/es-detail.html 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-app/inout-handle-in.html 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-app/js/admin/es-detail.js 86 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-app/js/admin/es-read-meter.js 56 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-app/js/admin/es-real-electric.js 59 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-app/js/admin/inout-in-handle-list.js 101 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-app/js/admin/inout-in-handle.js 43 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-app/js/admin/inout-out-handle.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-app/js/admin/inout-out-record.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-app/js/admin/inout-real.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-app/js/admin/security-video.js 112 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-app/js/admin/work-apply.js 36 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-app/js/admin/work-audit.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-app/js/admin/work-record.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-app/work-apply.html 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-app/es-detail.html
@@ -22,7 +22,7 @@
        </header>
        <div class="mui-content">
            <div class="g-date_box m-energy-date">
                <div class="inpbox" onclick="chooseDate('start');">
                <div class="inpbox" onclick="chooseDate('start'); ;">
                    <input id="start" type="text" value="2022-04-15" readonly class="inp inp1" />
                </div>
                <div class="inpbox" onclick="chooseDate('end');">
@@ -38,7 +38,7 @@
                        <div class="inpbox">
                            <input id="search" type="search" class="mui-input-clear" placeholder="请输入仓库编号检索" value="">
                        </div>
                        <button  type="button" class="mui-btn">查询</button>
                        <button type="button" class="mui-btn">查询</button>
                    </div>
                </form>
            </div>
igds-app/inout-handle-in.html
@@ -423,6 +423,29 @@
            //拍照上传
            function choosePic(typeNum) {
                    var btnArray = [{
                        title: "拍照上传"
                    }, {
                        title: "从相册选择"
                    }];
                    plus.nativeUI.actionSheet({
                            title: "请选择",
                            cancel: "取消",
                            buttons: btnArray
                        },
                        function(e) {
                            var index = e.index;
                            switch (index) {
                                case 1:
                                    cameraImg(typeNum);
                                    break;
                                case 2:
                                    galleryImg(typeNum);
                                    break;
                            }
                        });
                //获取定位信息
                getLatLon();
                if(latitude == null || longitude == null){
igds-app/js/admin/es-detail.js
@@ -22,7 +22,6 @@
    data.tokenAuth = user.tokenAuth;
    data.data.deptId = selectDeptId;
    startTime = getDate(new Date());
    document.getElementById("start").value = startTime;
    getEsDetailList();
}
@@ -48,14 +47,22 @@
        // endDate: new Date(2016, 04, 25), //设置结束日期 
    })
    if (tag == 'start') {
        var start = startTime;
        dtpicker.show(function(e) {
            startTime = e.value
            document.getElementById("start").value = e.value
        })
            if(start != startTime){
                getEsDetailList();
            }
        })
    } else {
        var end = endTime;
        dtpicker.show(function(e) {
            endTime = e.value;
            document.getElementById("end").value = e.value
            if(end != endTime){
                getEsDetailList();
            }
        })
    }
}
@@ -63,6 +70,7 @@
function getEsDetailList() {
    data.data.startTime = startTime
    data.data.endTime = endTime
    console.log(JSON.stringify(data.data))
    mui.ajax(url, {
        type: "POST",
        dataType: "json",
@@ -76,48 +84,47 @@
            } else {
                renderData();
                mui.toast(result.msg);
                console.log("else", JSON.stringify(result))
            }
        },
        error: function() {
            mui.alert("系统繁忙,请重试!", "提示", ["确定"], function() {}, "div")
        }
    })
    // esDetailList =  [
 //        {
 //            "depotId": "16",
 //            "depotName": "值话各元",
 //            "startEs": "31",
 //            "endEs": "56",
 //            "epSum": "13",
 //            "eqSum": "37",
 //            "esSum": "25"
 //        },
 //        {
 //            "depotId": "2",
 //            "depotName": "划点王数队",
 //            "startEs": "55",
 //            "endEs": "47",
 //            "epSum": "46",
 //            "eqSum": "42",
 //            "esSum": "59"
 //        },
 //        {
 //            "depotId": "34",
 //            "depotName": "和多断们",
 //            "startEs": "78",
 //            "endEs": "24",
 //            "epSum": "37",
 //            "eqSum": "73",
 //            "esSum": "83"
 //        }
 //    ]
    esDetailList = [{
            "depotId": "16",
            "depotName": "值话各元",
            "startEs": "31",
            "endEs": "56",
            "epSum": "13",
            "eqSum": "37",
            "esSum": "25"
        },
        {
            "depotId": "2",
            "depotName": "划点王数队",
            "startEs": "55",
            "endEs": "47",
            "epSum": "46",
            "eqSum": "42",
            "esSum": "59"
        },
        {
            "depotId": "34",
            "depotName": "和多断们",
            "startEs": "78",
            "endEs": "24",
            "epSum": "37",
            "eqSum": "73",
            "esSum": "83"
        }
    ]
}
mui('.mui-content').on("tap", ".g-sobox div button", function() {
    data.data.depotId = document.getElementById("search").value
    getEsDetailList()
})
//渲染页面
function renderData() {
@@ -126,13 +133,18 @@
        $.each(esDetailList, function(index, item) {
            html += '<div class="wp"><div class="m-ck-cont"><div class="g-titck1">' + item.depotName + '</div>'
            html += '<div class="m-energy1"><div class="inner"><div class="con con1">'
            html += '<div class="num"><div class="l"></div>' + item.startEs + ' <span>KWh</span></div><div class="desc">起始能耗</div></div></div>'
            html += '<div class="num"><div class="l"></div>' + item.startEs +
                ' <span>KWh</span></div><div class="desc">起始能耗</div></div></div>'
            html += '<div class="inner"><div class="con con2">'
            html += '<div class="num"><div class="l"></div>' + item.endEs + ' <span>KWh</span></div><div class="desc">截止能耗</div></div></div></div>'
            html += '<div class="num"><div class="l"></div>' + item.endEs +
                ' <span>KWh</span></div><div class="desc">截止能耗</div></div></div></div>'
            html += '<div class="m-energy2"><div class="tit">能耗统计信息</div><ul class="ul-txtliste1">'
            html += '<li><div class="con"><div class="num">' + item.epSum + ' <span>KWh</span></div><div class="desc">有功电能</div></div></li>'
            html += '<li><div class="con"><div class="num">' + item.eqSum + ' <span>KWh</span></div><div class="desc">无功电能</div></div></li>'
            html += '<li><div class="con"><div class="num">' + item.esSum + ' <span>KWh</span></div><div class="desc">总电能</div></div></li>'
            html += '<li><div class="con"><div class="num">' + item.epSum +
                ' <span>KWh</span></div><div class="desc">有功电能</div></div></li>'
            html += '<li><div class="con"><div class="num">' + item.eqSum +
                ' <span>KWh</span></div><div class="desc">无功电能</div></div></li>'
            html += '<li><div class="con"><div class="num">' + item.esSum +
                ' <span>KWh</span></div><div class="desc">总电能</div></div></li>'
            html += '</ul></div></div></div>'
        })
    } else {
igds-app/js/admin/es-read-meter.js
@@ -23,6 +23,7 @@
    getMeterList();
}
//日期格式化yyyy-MM-dd
function getDate(date) {
    var year = date.getFullYear();
    var month, day;
@@ -50,7 +51,7 @@
        getMeterList();
    })
}
//加减日期(天数)
function addAndReduceDay(tag) {
    var date = new Date(dateTime);
    date = date.setDate(date.getDate() + tag);
@@ -61,9 +62,9 @@
}
//
//渲染页面
function getMeterList() {
    //
    //赋值参数的日期
    data.data.dataTime = dateTime
    mui.ajax(url, {
        type: "POST",
@@ -85,18 +86,61 @@
            mui.alert("系统繁忙,请重试!", "提示", ["确定"], function() {}, "div")
        }
    })
    meterList = [{
            "depotId": "40",
            "depotName": "里消第角务意志",
            "epSum": 36,
            "eqSum": 51,
            "updateTime": "2004-04-04 17:19:14",
            "esSum": 13
        },
        {
            "depotId": "84",
            "depotName": "石老权及地土",
            "epSum": 48,
            "eqSum": 57,
            "updateTime": "1973-05-07 03:38:11",
            "esSum": 7
        },
        {
            "depotId": "39",
            "depotName": "决听军经格型命",
            "epSum": 36,
            "eqSum": 3,
            "updateTime": "2003-09-19 06:57:50",
            "esSum": 72
        },
        {
            "depotId": "77",
            "depotName": "院什期由信自般",
            "epSum": 44,
            "eqSum": 59,
            "updateTime": "1984-02-29 20:11:43",
            "esSum": 92
        },
        {
            "depotId": "21",
            "depotName": "报候联有",
            "epSum": 40,
            "eqSum": 15,
            "updateTime": "2016-03-20 19:38:43",
            "esSum": ""
        }
    ]
}
//渲染页面
function renderData() {
    var html = ''
    if (meterList && meterList.length > 0) {
        $.each(meterList, function(index, item) {
            html += '<div class="m-ck-cont"><div class="g-titck1">' + item.depotName + ' <span class="right">更新时间: ' + item.updateTime + '</span></div>';
            html += '<div class="m-ck-cont"><div class="g-titck1">' + item.depotName +
                ' <span class="right">更新时间: ' + item.updateTime + '</span></div>';
            html += '<div class="m-energy2"><ul class="ul-txtliste1"><li><div class="con">';
            html += '<div class="num">' + item.epSum + ' <span>KWh</span></div><div class="desc">有功电能</div></div></li>';
            html += '<div class="num">' + item.epSum +
                ' <span>KWh</span></div><div class="desc">有功电能</div></div></li>';
            html += '<li><div class="con"><div class="num">' + item.eqSum + ' <span>KWh</span></div>'
            html += '<div class="desc">无功电能</div></div></li>';
            html += '<li><div class="con"><div class="num">' + item.esSum + ' <span>KWh</span></div>';
            html += '<li><div class="con"><div class="num">' + (item.esSum == null || item.esSum == "" ? "--" : item.esSum) + ' <span>KWh</span></div>';
            html += '<div class="desc">总电能</div></div></li>'
            html += '</ul></div></div>';
        })
igds-app/js/admin/es-real-electric.js
@@ -18,6 +18,7 @@
    data.data.deptId = selectDeptId;
    getElectric();
}
function getElectric() {
    mui.ajax(url, {
        type: "POST",
@@ -39,6 +40,62 @@
            mui.alert("系统繁忙,请重试!", "提示", ["确定"], function() {}, "div")
        }
    })
    electricList = [{
            "depotId": "18",
            "depotName": "做一几加",
            "ua": 97,
            "ub": 43,
            "uc": 81,
            "ia": 85,
            "ib": 76,
            "ic": 43,
            "updateTime": "1982-03-19 23:26:43"
        },
        {
            "depotId": "35",
            "depotName": "层能比维",
            "ua": 71,
            "ub": 60,
            "uc": 45,
            "ia": 22,
            "ib": 42,
            "ic": 12,
            "updateTime": "1980-11-10 20:35:36"
        },
        {
            "depotId": "61",
            "depotName": "从周阶红全",
            "ua": 88,
            "ub": 94,
            "uc": 77,
            "ia": 33,
            "ib": 83,
            "ic": 67,
            "updateTime": "1972-03-23 06:15:44"
        },
        {
            "depotId": "31",
            "depotName": "火五况斯术应压",
            "ua": 76,
            "ub": 76,
            "uc": 68,
            "ia": 80,
            "ib": 54,
            "ic": 2,
            "updateTime": "2010-02-02 15:07:12"
        },
        {
            "depotId": "20",
            "depotName": "话美书着具来则",
            "ua": 96,
            "ub": 5,
            "uc": 83,
            "ia": 74,
            "ib": 49,
            "ic": 37,
            "updateTime": "2007-11-02 05:03:29"
        }
    ]
}
//渲染页面
function renderData() {
@@ -76,7 +133,7 @@
        html +=
            '<li><div class="con myfancy" style="text-align: center;font-size: 20px;color:#dd524d">暂无实时配电信息</div></li>';
    }
    // $("#recordList").html(html);
    $("#recordList").html(html);
}
var slider = mui(".mui-slider");
slider.slider({
igds-app/js/admin/inout-in-handle-list.js
@@ -55,6 +55,7 @@
            if (result.code == "0000") {
                inHandleData = result.data;
                renderData();
                mui.toast(result.msg);
            } else {
                renderData();
                mui.toast(result.msg);
@@ -65,55 +66,55 @@
        }
    })
    // inHandleData = [{
    //         "id": "44",
    //         "plateNum": "97",
    //         "deHandle": "ut",
    //         "depotId": "16",
    //         "depotName": "青张列做总",
    //         "foodVariety": "magna pariatur laboris sunt dolor",
    //         "foodVarietyName": "提清除",
    //         "foodLevel": "fugiat",
    //         "foodLevelName": "应发热四民是始",
    //         "storeKeeperName": ""
    //     },
    //     {
    //         "id": "62",
    //         "plateNum": "71",
    //         "deHandle": "dolore ut non",
    //         "depotId": "79",
    //         "depotName": "增象定立样",
    //         "foodVariety": "Lorem est",
    //         "foodVarietyName": "市条群求被团两",
    //         "foodLevel": "ex labore",
    //         "foodLevelName": "持在写称情并",
    //         "storeKeeperName": "2"
    //     },
    //     {
    //         "id": "96",
    //         "plateNum": "61",
    //         "deHandle": "nulla magna ut proident cillum",
    //         "depotId": "42",
    //         "depotName": "条全他",
    //         "foodVariety": "aliquip",
    //         "foodVarietyName": "连开阶动际干",
    //         "foodLevel": "in id sunt",
    //         "foodLevelName": "没置定使文",
    //         "storeKeeperName": "3"
    //     },
    //     {
    //         "id": "61",
    //         "plateNum": "17",
    //         "deHandle": "commodo",
    //         "depotId": "80",
    //         "depotName": "展观快火全领",
    //         "foodVariety": "voluptate eu Lorem",
    //         "foodVarietyName": "他边派斯重离",
    //         "foodLevel": "dolor",
    //         "foodLevelName": "装第上",
    //         "storeKeeperName": "4"
    //     }
    // ]
    inHandleData = [{
            "id": "44",
            "plateNum": "97",
            "deHandle": "ut",
            "depotId": "16",
            "depotName": "青张列做总",
            "foodVariety": "magna pariatur laboris sunt dolor",
            "foodVarietyName": "提清除",
            "foodLevel": "fugiat",
            "foodLevelName": "应发热四民是始",
            "storeKeeperName": ""
        },
        {
            "id": "62",
            "plateNum": "71",
            "deHandle": "dolore ut non",
            "depotId": "79",
            "depotName": "增象定立样",
            "foodVariety": "Lorem est",
            "foodVarietyName": "市条群求被团两",
            "foodLevel": "ex labore",
            "foodLevelName": "持在写称情并",
            "storeKeeperName": "2"
        },
        {
            "id": "96",
            "plateNum": "61",
            "deHandle": "nulla magna ut proident cillum",
            "depotId": "42",
            "depotName": "条全他",
            "foodVariety": "aliquip",
            "foodVarietyName": "连开阶动际干",
            "foodLevel": "in id sunt",
            "foodLevelName": "没置定使文",
            "storeKeeperName": "3"
        },
        {
            "id": "61",
            "plateNum": "17",
            "deHandle": "commodo",
            "depotId": "80",
            "depotName": "展观快火全领",
            "foodVariety": "voluptate eu Lorem",
            "foodVarietyName": "他边派斯重离",
            "foodLevel": "dolor",
            "foodLevelName": "装第上",
            "storeKeeperName": "4"
        }
    ]
}
//渲染页面
@@ -163,7 +164,7 @@
    picker.show(function(SelectedItem) {
        console.log(JSON.stringify(SelectedItem));
        //现场值仓
        if(SelectedItem.value == 'photo'){
        if(SelectedItem[0].value == 'photo'){
            mui.openWindow({
                url: "inout-in-handle.html",
                id: "inout-in-handle",
igds-app/js/admin/inout-in-handle.js
@@ -84,7 +84,8 @@
                                    getDetail();
                                },
                                error: function() {
                                    mui.alert('开始装粮提交失败,请重新操作!', '提示', ["确定"], function() {}, "div");
                                    mui.alert('开始装粮提交失败,请重新操作!', '提示', ["确定"], function() {},
                                        "div");
                                }
                            })
                        } else {
@@ -165,6 +166,25 @@
}
//拍照上传
function choosePic(typeNum) {
    var picker = new mui.PopPicker();
    picker.setData([{
        value: "cameraImg",
        text: "拍照上传"
    }, {
        value: "galleryImg",
        text: "从相册选择"
    }])
    picker.show(function(SelectedItem) {
        console.log(JSON.stringify(SelectedItem[0].value));
        console.log()
        if (SelectedItem[0].value == 'cameraImg') {
            console.log("拍照")
            cameraImg(typeNum);
        } else {
            console.log("相册")
            galleryImg(typeNum);
        }
    })
    // //获取定位信息
    // if (latitude == null || longitude == null) {
    //     return;
@@ -189,7 +209,7 @@
                    }])
                    picker.show(function(SelectedItem) {
                        console.log(JSON.stringify(SelectedItem));
                        if (SelectedItem == 'cameraImg') {
                        if (SelectedItem[0].value == 'cameraImg') {
                            cameraImg(typeNum);
                        } else {
                            galleryImg(typeNum);
@@ -206,25 +226,10 @@
            mui.alert('系统繁忙,请重试!', '提示', ["确定"], function() {}, "div");
        }
    })
    // var picker = new mui.PopPicker();
    // picker.setData([{
    //     value: "cameraImg",
    //     text: "拍照上传"
    // }, {
    //     value: "galleryImg",
    //     text: "从相册选择"
    // }])
    // picker.show(function(SelectedItem) {
    //     console.log(JSON.stringify(SelectedItem));
    //     if (SelectedItem == 'cameraImg') {
    //         cameraImg(typeNum);
    //     } else {
    //         galleryImg(typeNum);
    //     }
    // })
};
//使用相机拍照
//相机拍照
function cameraImg(typeNum) {
    var cmr = plus.camera.getCamera();
    cmr.captureImage(function(p) {
igds-app/js/admin/inout-out-handle.js
@@ -189,7 +189,7 @@
                    }])
                    picker.show(function(SelectedItem) {
                        console.log(JSON.stringify(SelectedItem));
                        if (SelectedItem == 'cameraImg') {
                        if (SelectedItem[0].value == 'cameraImg') {
                            cameraImg(typeNum);
                        } else {
                            galleryImg(typeNum);
@@ -216,7 +216,7 @@
    // }])
    // picker.show(function(SelectedItem) {
    //     console.log(JSON.stringify(SelectedItem));
    //     if (SelectedItem == 'cameraImg') {
    //     if (SelectedItem[0].value == 'cameraImg') {
    //         cameraImg(typeNum);
    //     } else {
    //         galleryImg(typeNum);
igds-app/js/admin/inout-out-record.js
@@ -83,10 +83,10 @@
                html += '</ul><div class="time">完成时间:' + getStrDate(item.completeTime) + '</div></div>';
            })
        } else {
            html += '<div class="id" style="text-align: center;font-size: 20px;color:#dd524d">所选日期暂无入库记录信息</div>';
            html += '<div class="id" style="text-align: center;font-size: 20px;color:#dd524d">所选日期暂无出库记录信息</div>';
        }
    }else{
        html += '<div class="id" style="text-align: center;font-size: 20px;color:#dd524d">所选日期暂无入库记录信息</div>';
        html += '<div class="id" style="text-align: center;font-size: 20px;color:#dd524d">所选日期暂无出库记录信息</div>';
    }
    $("#sum").html(sumHtml);
    $("#recordList").html(html);
igds-app/js/admin/inout-real.js
@@ -37,6 +37,7 @@
        data: JSON.stringify(data),
        success: function(result) {
            if (result.code == "0000") {
                console.log(JSON.stringify(result))
                recordData = result.data;
                renderData();
            } else {
@@ -53,6 +54,7 @@
//渲染页面
function renderData() {
    var html = '';
    console.log(JSON.stringify(recordData))
    if (recordData) {
        $("#inSumNum").html(recordData.inSumNum);
        $("#inCompleteNum").html(recordData.inCompleteNum);
igds-app/js/admin/security-video.js
@@ -1,6 +1,6 @@
var url = null;
var videoData = null;
var playData =null;
var videoList = null;
var playData = null;
var data = {
    "interfaceId": "5604",
    "tokenAuth": "",
@@ -35,6 +35,7 @@
}
function getVideoList() {
    console.log(JSON.stringify(data.data))
    //发送请求获取视频设备
    mui.ajax(url, {
        type: "POST",
@@ -44,13 +45,11 @@
        data: JSON.stringify(data),
        success: function(result) {
            if (result.code == "0000") {
                videoData = result.data;
                console.log(JSON.stringify(videoData))
                videoList = result.data;
                renderVideo();
            } else {
                renderVideo();
                mui.alert(result.msg, '提示', ["确定"], function() {}, "div");
            }
        },
        error: function() {
@@ -58,54 +57,79 @@
            mui.alert('系统繁忙,请重试!', '提示', ["确定"], function() {}, "div");
        }
    })
    videoList = [{
            "id": "45",
            "name": "东图习多",
            "status": "01",
            "playType": "id ea",
            "type": "02"
        },
        {
            "id": "52",
            "name": "老出亲事先",
            "status": "02",
            "playType": "Ut",
            "type": "01"
        },
        {
            "id": "70",
            "name": "解领文确团离照",
            "status": "02",
            "playType": "nisi nostrud",
            "type": "02"
        },
        {
            "id": "13",
            "name": "因局员",
            "status": "01",
            "playType": "ex labore esse",
            "type": "01"
        }
    ]
}
//渲染视频监控设备
function renderVideo() {
    var html = '';
    if (videoData) {
        var videoList = videoData.data;
        if (videoList && videoList.length > 0) {
            $.each(videoList, function(index, item) {
                if (index % 3 == 0) {
                    html +=
                    '<li><a onclick="getVideo(\''+item.id+'\',\''+item.playType+'\')" class="con" style="background-image: url(images/icons/g-i15.png);">';
                }
                if (index % 3 == 1) {
                    html +=
                    '<li><a onclick="getVideo(\''+item.id+'\',\''+item.playType+'\')" class="con" style="background-image: url(images/icons/g-i16.png);">';
                }
                if (index % 3 == 2) {
                    html +=
                    '<li><a onclick="getVideo(\''+item.id+'\',\''+item.playType+'\')" class="con" style="background-image: url(images/icons/g-i17.png);">';
                }
                if (item.type = '02') {
                    html +=
                        '<div class="left"><div class="icon"><img src="images/icons/g-i13.png" alt=""></div><div class="name">' +
                        item.name + ' (球机)</div></div>';
                }
                if (item.type == '01') {
                    html +=
                        '<div class="left"><div class="icon"><img src="images/icons/g-i14.png" alt=""></div><div class="name">' +
                        item.name + ' (枪机)</div></div>';
                }
    if (videoList && videoList.length > 0) {
        $.each(videoList, function(index, item) {
            if (index % 3 == 0) {
                html +=
                    '<li><a onclick="getVideo(\'' + item.id + '\',\'' + item.playType +
                    '\')" class="con" style="background-image: url(images/icons/g-i15.png);">';
            }else if (index % 3 == 1) {
                html +=
                    '<li><a onclick="getVideo(\'' + item.id + '\',\'' + item.playType +
                    '\')" class="con" style="background-image: url(images/icons/g-i16.png);">';
            }else if (index % 3 == 2) {
                html +=
                    '<li><a onclick="getVideo(\'' + item.id + '\',\'' + item.playType +
                    '\')" class="con" style="background-image: url(images/icons/g-i17.png);">';
            }
            if (item.type == '01') {
                html +='<div class="left"><div class="icon"><img src="images/icons/g-i14.png" alt=""></div><div class="name">' +
                    item.name + ' (枪机)</div></div>';
                html += '<div class="right"><span class="mui-icon  mui-icon-forward"></span></div></a></li>';
            })
        } else {
            html += '<li><a class="con" style="background-image: url(images/icons/g-i15.png);"><span>暂无相关设备</span></a></li>';
        }
    }else{
        html += '<li><a class="con" style="background-image: url(images/icons/g-i15.png);"><span>暂无相关设备</span></a></li>';
            }else if (item.type == '02') {
                html +=                    '<div class="left"><div class="icon"><img src="images/icons/g-i13.png" alt=""></div><div class="name">' +
                    item.name + ' (球机)</div></div>';
            }
            html += '<div class="right"><span class="mui-icon  mui-icon-forward"></span></div></a></li>';
        })
    } else {
        html +=
            '<li><a class="con" style="background-image: url(images/icons/g-i15.png);text-align: center;font-size: 20px;color:#dd524d""><span>暂无相关设备</span></a></li>';
    }
    $("#recordList").html(html);
}
function getVideo(cameraId,playType){
function getVideo(cameraId, playType) {
    data1.data.id = cameraId;
    data1.data.playType = playType;
    console.log(JSON.stringify(data1.data))
    //发送请求获取视频设备
    mui.ajax(url, {
        type: "POST",
@@ -119,7 +143,8 @@
                console.log(JSON.stringify(playData))
                toVideo(playData.playAddr);
            } else {
                toVideo('');
                // toVideo("http://player.alicdn.com/video/aliyunmedia.mp4");
                toVideo('')
                mui.alert(result.msg, '提示', ["确定"], function() {}, "div");
            }
        },
@@ -130,9 +155,10 @@
    })
}
function toVideo(playAddr){
function toVideo(playAddr) {
    var html = '';
    html += '<video src="'+playAddr+'" poster="images/pos1.png" class="video" webkit-playsinline="true" playsinline="true" controls></video>'
    html += '<video src="' + playAddr +
        '" poster="images/pos1.png" class="video" webkit-playsinline="true" playsinline="true" controls></video>'
    $("#toVideo").html(html);
}
igds-app/js/admin/work-apply.js
@@ -124,8 +124,10 @@
        success: function(result) {
            if (result.code == "0000") {
                console.log(JSON.stringify(result))
                mui.toast(result.msg);
            } else {
                // console.log(JSON.stringify(result))
                // mui.toast(result.msg);
                mui.alert(result.msg, '提示', ["确定"], function() {}, "div");
            }
        },
@@ -169,13 +171,39 @@
    })
}
function refresh(){
    var html = '';
    html += '<div class="m-gd"><div class="group"><div class="l">业务类型:</div><div class="r">'
    html += '<div class="val" id="ywlx"><div class="placeholder">请选择</div>'
    html += '<div class="real-val" id="ywlx-val" ></div></div></div></div>'
    html += '<div class="group"><div class="l">所属分库:</div><div class="r">'
    html += '<div class="val" id="ssfk"><div class="placeholder">请选择</div>';
    html += '<div class="real-val" id="ssfk-val"></div></div></div></div>';
    html += '<div class="group"><div class="l">关联仓库:</div><div class="r">';
    html += '<div class="val" id="glck"><div class="placeholder">请选择</div>';
    html += '<div class="real-val" id="glck-val" ></div></div></div></div>';
    html += '<div class="group"><div class="l">有效开始时间:</div><div class="r">';
    html += '<div class="val" id="date1" onclick="chooseDate();"><div class="placeholder">请选择</div>';
    html += '<div class="real-val" id="date1-val"></div></div></div></div>';
    html += '<div class="group"><div class="l">有效结束时间:</div><div class="r">';
    html += '<div class="val" id="date2" onclick="chooseDate1();"><div class="placeholder">请选择</div>';
    html += '<div class="real-val" id="date2-val"></div></div></div></div>';
    html += '<div type="submit" class="submit">提交</div></div>';
    $("#refresh").html(html);
    data.data.depotId = '';
    data.data.type = ''
    data.data.startTime = ''
    data.data.endTime = ''
}
//提交
mui(".mui-scroll").on("tap", ".wp form .submit", function() {
    workApply();
    window.location.reload();
    // window.setTimeout(function() {
    //     window.location.reload();
    // }, 200)
    // window.location.reload();
    window.setTimeout(function() {
        refresh();
    }, 200)
})
mui('.mui-scroll-wrapper').scroll({
igds-app/js/admin/work-audit.js
@@ -36,6 +36,7 @@
//获取工单审核列表
function getAuditList() {
    console.log(JSON.stringify(data.data),"work-aduit","工单审核列表")
    mui.ajax(url, {
        type: "POST",
        dataType: "json",
@@ -140,6 +141,7 @@
//工单审核
function workAudit() {
    console.log(JSON.stringify(data1.data),"work-aduit","工单审核")
    mui.ajax(url, {
        type: "POST",
        dataType: "json",
@@ -167,7 +169,6 @@
    data1.data.id = id
    data1.data.status = '10'
    workAudit();
    console.log(JSON.stringify(data1.data), "work-audit", "拒绝")
})
//通过
@@ -177,7 +178,6 @@
    data1.data.id = id
    data1.data.status = '20'
    workAudit();
    console.log(JSON.stringify(data1.data), "work-audit", "通过")
})
//查看申请内容
mui(".mui-scroll").on("tap", ".wp ul li .icon", function() {
igds-app/js/admin/work-record.js
@@ -15,7 +15,7 @@
    var user = JSON.parse(localStorage.getItem('user'));
    url = user.url + "/api-phone/v35/gateway";
    data.tokenAuth = user.tokenAuth;
    data.data.userName = user.userName;
    data.data.userName = user.username;
    console.log(JSON.stringify(data.data),"work-record")
    getRecordList();
}
igds-app/work-apply.html
@@ -4,7 +4,7 @@
        <meta charset="utf-8">
        <meta name="viewport"
            content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
        <title工单申请< /title>
        <title>工单申请</title>
            <!-- MUI样式 -->
            <link rel="stylesheet" href="./css/mui.min.css" />
            <link rel="stylesheet" href="css/mui.poppicker.css">
@@ -25,7 +25,7 @@
            <div class="mui-scroll-wrapper g-src_box" >
                <div class="mui-scroll">
                    <div class="wp">
                        <form action="">
                        <form action="" id="refresh">
                            <div class="m-gd" >
                                <div class="group">