YYC
2023-05-17 0adbc72b09cbc1fd3c0f59cb65c3c476d65adc15
工单申请
已修改11个文件
615 ■■■■■ 文件已修改
igds-app/css/admin/work-audit.css 46 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-app/css/admin/work-record.css 43 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-app/js/admin/security-patrol.js 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-app/js/admin/warn-list.js 96 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-app/js/admin/work-apply.js 212 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-app/js/admin/work-audit.js 86 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-app/js/admin/work-record.js 70 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-app/warn-list.html 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-app/work-apply.html 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-app/work-audit.html 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-app/work-record.html 21 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-app/css/admin/work-audit.css
@@ -1,6 +1,7 @@
.ul-gdsh li> .con{
  margin-bottom: 11px;
}
.ul-gdsh >li> .con{
  border-radius: 10px;
  overflow: hidden;
@@ -8,6 +9,7 @@
  box-shadow: 0 0 4px rgba(0,64,40,.1);
  margin-bottom: 15px;
}
.ul-gdsh .top{
  display: flex;
  align-items: center;
@@ -16,25 +18,30 @@
  background: url(../../images/icons/g-i27.png) no-repeat center;
  background-size: cover;
}
.ul-gdsh .top .left{
  flex:1;
  font-size: 15px;
  line-height: 1.7;
  color: #000;
}
.ul-gdsh .line{
  overflow: hidden;
}
.ul-gdsh .line .t{
  float: left;
  min-width: 78px;
}
.ul-gdsh .line .v{
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  font-weight: bold;
}
.ul-gdsh .top .icon{
  width:  35px;
  height: 35px;
@@ -45,19 +52,23 @@
  overflow: hidden;
  background-color: #d4e9e0;
}
.ul-gdsh .top .icon img{
  display: inline-block;
  vertical-align: middle;
  max-width: 16px;
}
.ul-gdsh .box{
  padding: 15px;
}
.ul-gdsh .time{
  font-size: 13px;
  color: #666666;
  line-height: 25px;
}
.ul-gdsh .btns{
  display: flex;
  align-items: center;
@@ -65,6 +76,7 @@
  overflow: hidden;
  margin-top: 9px;
}
.ul-gdsh .btns .btn{
  display: block;
  border-radius: 17px;
@@ -75,9 +87,11 @@
  height: 35px;
  width: 47.5%;
}
.ul-gdsh .btns .btn.refuse{
  background: linear-gradient(90deg,#f58541,#edae55);
}
.ul-gdsh .btns .btn.adopt{
  background: linear-gradient(90deg,#23885e,#37a679);
}
@@ -86,3 +100,35 @@
  margin-top: 14px;
}
.m-server {
    width: 300px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    padding: 28px 25px 30px;
}
.m-server .h3{
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: #000;
  margin-bottom: 18px;
}
/* .m-pop-caution {
    padding: 15px 15px 25px;
} */
.m-pop-caution .h3 span{
    color: #ff2323;
}
.m-pop-caution textarea {
    background-color: #f5f6f7;
    border-radius: 10px;
    margin-bottom: 15px;
    border: none;
    min-height: 100px;
}
igds-app/css/admin/work-record.css
@@ -1,4 +1,3 @@
.ul-sqjl >li> .con{
  border-radius: 10px;
  overflow: hidden;
@@ -8,25 +7,31 @@
  position: relative;
  padding: 0 15px 15px;
}
.ul-sqjl .title{
  font-size: 15px;
  color: #000;
  line-height: 50px;
}
.ul-sqjl .title b{
  margin-left: 10px;
}
.ul-sqjl .time{
  color: #666;
  line-height: 20px;
}
.ul-sqjl .time p{
  font-size: 13px;
  margin-bottom: 0;
}
.ul-sqjl .time span{
  margin-left: 10px;
}
.status{
  position: absolute;
  top: 0;
@@ -35,7 +40,43 @@
  width: 51.5px;
  pointer-events: none;
}
.status img{
  display: block;
  width: 100%;
}
.m-server {
    width: 300px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    padding: 28px 25px 30px;
}
.m-server .h3 {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin-bottom: 18px;
}
/* .m-pop-caution {
    padding: 15px 15px 25px;
} */
.m-pop-caution .h3 span {
    color: #ff2323;
}
.m-pop-caution textarea {
    background-color: #f5f6f7;
    border-radius: 10px;
    margin-bottom: 15px;
    border: none;
    min-height: 100px;
}
igds-app/js/admin/security-patrol.js
@@ -49,9 +49,10 @@
    data1.tokenAuth = user.tokenAuth;
    data2.tokenAuth = user.tokenAuth;
    data.data.deptId = selectDeptId;
    data2.data.deptId = selectDeptId;
    data1.data.deptId = selectDeptId;
    dateTime = getDate(new Date())
    document.getElementById("date").value = dateTime;
    console.log(JSON.stringify(data.data),"电子巡更记录","security-patrol")
    //获取巡更记录
    getPatrolList()
@@ -113,7 +114,7 @@
            } else {
                renderPatrol();
                mui.toast(result.msg);
                console.log(JSON.stringify(result))
                // console.log(JSON.stringify(result))
            }
        },
        error: function() {
@@ -151,8 +152,7 @@
    if (PatrolList && PatrolList.length > 0) {
        $.each(PatrolList, function(index, item) {
            html += '<li><div class="item"><div class="top">'
            html += '<div class="date">' + item.createTime + '</div><div class="r-btn" id = "' + item.id +
                '">查看照片</div></div>';
            html += '<div class="date">' + item.createTime + '</div><div class="r-btn" id = "' + item.id + '">查看照片</div></div>';
            html += '<div class="cards"><div class="cd"><div class="con user">'
            html += '<div class="tit">打卡人</div><div class="txt">' + item.userName + '</div></div></div>';
            html += '<div class="cd"><div class="con loc"><div class="tit">坐标</div>'
@@ -217,8 +217,6 @@
    $('.m-pop').fadeOut();
});
//使用相机拍照
function cameraImg() {
    var cmr = plus.camera.getCamera();
@@ -245,7 +243,7 @@
        },
        function(t, status) { //上传完成
            if (status == 200) {
                var html = '';
                // var html = '';
                var obj = JSON.parse(t.responseText);
                mui.toast("上传成功!");
                data1.data.imgName = obj.data.fileName;
@@ -290,8 +288,6 @@
        }
    })
}
// function getLatLon() {
//     plus.geolocation.getCurrentPosition(function(position) {
igds-app/js/admin/warn-list.js
@@ -69,49 +69,45 @@
            mui.alert("系统繁忙,请重试!", "提示", ["确定"], function() {}, "div")
        }
    })
    // warnData ={
    //    "data": [
    //        {
    //            "id": "88",
    //            "name": "拉目些调",
    //            "type": "nostrud",
    //            "eventType": "cillumreprehenderitest",
    //            "level": "1",
    //            "status": "40",
    //            "time": "2006-11-01 14:01:36",
    //            "info": "dolor",
    //            "depotId": "6",
    //            "depotName": "",
    //         "remark":"00000"
    //        },
    //        {
    //            "id": "56",
    //            "name": "法都象叫与局",
    //            "type": "cillumreprehenderitUt",
    //            "eventType": "in",
    //            "level": "2",
    //            "status": "20",
    //            "time": "1981-02-18 22:28:23",
    //            "info": "deserunt Excepteur aliqua veniam commodo",
    //            "depotId": "28",
    //            "depotName": "龙用改素",
    //         "remark":"1111"
    //        },{
    //     "id": "72",
    //     "name": "华林九别",
    //     "type": "exdeseruntcillumeu",
    //     "eventType": "aliqua sint dolor aute",
    //     "level": "1",
    //     "status": "10",
    //     "time": "1978-07-23 12:17:27",
    //     "info": "deserunt nostrud id tempor",
    //     "depotId": "70",
    //     "depotName": "县志选只",
    //     "remark":""
    //   }
    //    ]
    // }
    warnList = [{
            "id": "88",
            "name": "拉目些调",
            "type": "nostrud",
            "eventType": "cillumreprehenderitest",
            "level": "1",
            "status": "40",
            "time": "2006-11-01 14:01:36",
            "info": "dolor",
            "depotId": "6",
            "depotName": "",
            "remark": "00000"
        },
        {
            "id": "56",
            "name": "法都象叫与局",
            "type": "cillumreprehenderitUt",
            "eventType": "in",
            "level": "2",
            "status": "20",
            "time": "1981-02-18 22:28:23",
            "info": "deserunt Excepteur aliqua veniam commodo",
            "depotId": "28",
            "depotName": "龙用改素",
            "remark": "1111"
        }, {
            "id": "72",
            "name": "华林九别",
            "type": "exdeseruntcillumeu",
            "eventType": "aliqua sint dolor aute",
            "level": "1",
            "status": "10",
            "time": "1978-07-23 12:17:27",
            "info": "deserunt nostrud id tempor",
            "depotId": "70",
            "depotName": "县志选只",
            "remark": ""
        }
    ]
    renderWarn();
}
@@ -223,11 +219,11 @@
    dataPop.data.id = warnId;
    var html = ''
    if (status == '10') {
        html += '<button type="button" class="mui-btn cancel"  onclick="handleWarn("1")">忽略</button>'
        html += '<button type="button" class="mui-btn confirm" onclick="handleWarn("2")">处理</button>'
        html += '<div type="button" class="mui-btn cancel"  onclick="handleWarn(\'' + 1 + '\')">忽略</div>'
        html += '<div type="button" class="mui-btn confirm" onclick="handleWarn(\'' + 2 + '\')">处理</div>'
    }
    $("#handleWarn").html(html);
    $("#textareaPop").val(remark)
    document.getElementById("textareaPop").value = remark;
    $('#m-pop').css('display', 'flex');
}
//警告处理
@@ -240,7 +236,8 @@
        dataPop.data.status = '30'
        // mui.toast("警告处理");
    }
    dataPop.data.remark = mui("#textareaPop")[0].value;
    dataPop.data.remark = document.getElementById("textareaPop").value;
    console.log(JSON.stringify(dataPop.data),"warn-list")
    //请求
    mui.ajax(url, {
        type: "POST",
@@ -250,10 +247,11 @@
        data: JSON.stringify(dataPop),
        success: function(result) {
            if (result.code == "0000") {
                console.log(JSON.stringify(result))
                mui.toast(result.msg);
                // console.log(JSON.stringify(result))
            } else {
                mui.toast(result.msg);
                console.log(JSON.stringify(result))
                // console.log(JSON.stringify(result))
            }
        },
        error: function() {
igds-app/js/admin/work-apply.js
@@ -1,4 +1,38 @@
var url = null;
var depotData;
var name = ''
var listPicker2 = [];
var list = [{
    value: 'ywj',
    text: '董事长 叶文洁'
}, {
    value: 'aaa',
    text: '总经理 艾AA'
}, {
    value: 'lj',
    text: '罗辑'
}, {
    value: 'ymt',
    text: '云天明'
}, {
    value: 'shq',
    text: '史强'
}, {
    value: 'zhbh',
    text: '章北海'
}, {
    value: 'zhy',
    text: '庄颜'
}, {
    value: 'gyf',
    text: '关一帆'
}, {
    value: 'zhz',
    text: '智子'
}, {
    value: 'gezh',
    text: '歌者'
}]
//工单申请
var data = {
    "interfaceId": "5701",
@@ -13,12 +47,23 @@
    }
};
//获取库区列表
var data = {
var data1 = {
    "interfaceId": "5002",
    "outId": "10002",
    "reqDateTime": new Date(),
    "tokenAuth": "",
    "data": {}
};
//获取仓库列表
var data2 = {
    "interfaceId": "5102",
    "sign": "10102",
    "outId": "10102",
    "reqDateTime": new Date(),
    "tokenAuth": "",
    "data": {
        "deptId": ""
    }
};
@@ -28,12 +73,16 @@
    var selectDeptId = JSON.parse(localStorage.getItem('selectDeptId'));
    url = user.url + "/api-phone/v35/gateway";
    data.tokenAuth = user.tokenAuth;
    // data.data.deptId = selectDeptId;
    data2.tokenAuth = user.tokenAuth;
    data2.data.deptId = selectDeptId;
    depotList();
}
function chooseDate() {
    var dtpicker = new mui.DtPicker({
        type: "date", //设置日历初始视图模式
        // type: "hour", //设置日历初始视图模式
        type: "datetime",
        // beginDate: new Date(2015, 04, 25), //设置开始日期
        // endDate: new Date(2016, 04, 25), //设置结束日期
@@ -48,7 +97,8 @@
function chooseDate1() {
    var dtpicker = new mui.DtPicker({
        type: "date", //设置日历初始视图模式
        // type: "hour", //设置日历初始视图模式
        type: "datetime",
        // beginDate: new Date(2015, 04, 25), //设置开始日期
        // endDate: new Date(2016, 04, 25), //设置结束日期
@@ -63,6 +113,7 @@
//工单申请
function workApply() {
    console.log(JSON.stringify(data.data))
    //发送请求进行工单申请
    mui.ajax(url, {
        type: "POST",
@@ -74,6 +125,7 @@
            if (result.code == "0000") {
                console.log(JSON.stringify(result))
            } else {
                // console.log(JSON.stringify(result))
                mui.alert(result.msg, '提示', ["确定"], function() {}, "div");
            }
        },
@@ -83,10 +135,47 @@
    })
}
function depotList() {
    //获取仓库列表
    mui.ajax(url, {
        type: "POST",
        dataType: "json",
        crossDomain: true,
        contentType: "application/json;charset=utf-8",
        data: JSON.stringify(data2),
        success: function(result) {
            if (result.code == "0000") {
                depotData = result.data
                conversion(depotData);
                // console.log(JSON.stringify(result))
            } else {
                mui.alert(result.msg, '提示', ["确定"], function() {}, "div");
            }
        },
        error: function() {
            mui.alert('系统繁忙,请重新登录尝试!', '提示', ["确定"], function() {}, "div");
        }
    })
}
function conversion(data) {
    var fenl = {}
    $.each(data, function(index, item) {
        fenl = {
            value: item.name,
            text: item.id,
        }
        listPicker2.push(fenl)
    })
}
//提交
mui(".mui-scroll").on("tap", ".wp form .submit", function() {
    console.log("111")
    workApply();
    window.location.reload();
    // window.setTimeout(function() {
    //     window.location.reload();
    // }, 200)
})
mui('.mui-scroll-wrapper').scroll({
@@ -95,6 +184,8 @@
    bounce: false, //是否启用回弹
    deceleration: 0.0005 //flick 减速系数,系数越大,滚动速度越慢,滚动距离越小,默认值0.0006
});
(function($, doc) {
    $.init();
    $.ready(function() {
@@ -108,43 +199,14 @@
            return obj[param] || '';
        };
        //普通示例
        var userPicker = new $.PopPicker();
        userPicker.setData([{
            value: 'ywj',
            text: '董事长 叶文洁'
        }, {
            value: 'aaa',
            text: '总经理 艾AA'
        }, {
            value: 'lj',
            text: '罗辑'
        }, {
            value: 'ymt',
            text: '云天明'
        }, {
            value: 'shq',
            text: '史强'
        }, {
            value: 'zhbh',
            text: '章北海'
        }, {
            value: 'zhy',
            text: '庄颜'
        }, {
            value: 'gyf',
            text: '关一帆'
        }, {
            value: 'zhz',
            text: '智子'
        }, {
            value: 'gezh',
            text: '歌者'
        }]);
        var showUserPickerButton = doc.getElementById('ywlx');
        var userResult = doc.getElementById('ywlx-val');
        showUserPickerButton.addEventListener('tap', function(event) {
            var userResult = doc.getElementById('ywlx-val');
            var userPicker = new $.PopPicker();
            userPicker.setData(list);
            userPicker.show(function(items) {
                // userResult.innerText = JSON.stringify(items[0]);
                console.log(JSON.stringify(items))
                userResult.innerText = items[0].text;
                // userResult.previousSibling.style.display="none"
                jQuery(userResult).prev().hide()
@@ -154,41 +216,11 @@
        }, false);
        //-----------------------------------------
        //所属分库:
        var picker1 = new $.PopPicker();
        picker1.setData([{
            value: 'ywj',
            text: '董事长 叶文洁'
        }, {
            value: 'aaa',
            text: '总经理 艾AA'
        }, {
            value: 'lj',
            text: '罗辑'
        }, {
            value: 'ymt',
            text: '云天明'
        }, {
            value: 'shq',
            text: '史强'
        }, {
            value: 'zhbh',
            text: '章北海'
        }, {
            value: 'zhy',
            text: '庄颜'
        }, {
            value: 'gyf',
            text: '关一帆'
        }, {
            value: 'zhz',
            text: '智子'
        }, {
            value: 'gezh',
            text: '歌者'
        }]);
        var showPicker1Button = doc.getElementById('ssfk');
        var picker1Result = doc.getElementById('ssfk-val');
        showPicker1Button.addEventListener('tap', function(event) {
            var picker1Result = doc.getElementById('ssfk-val');
            var picker1 = new $.PopPicker();
            picker1.setData(list);
            picker1.show(function(items) {
                // userResult.innerText = JSON.stringify(items[0]);
                picker1Result.innerText = items[0].text;
@@ -200,50 +232,20 @@
        }, false);
        //-----------------------------------------
        //关联仓库:
        var picker2 = new $.PopPicker();
        picker2.setData([{
            value: 'ywj',
            text: '董事长 叶文洁'
        }, {
            value: 'aaa',
            text: '总经理 艾AA'
        }, {
            value: 'lj',
            text: '罗辑'
        }, {
            value: 'ymt',
            text: '云天明'
        }, {
            value: 'shq',
            text: '史强'
        }, {
            value: 'zhbh',
            text: '章北海'
        }, {
            value: 'zhy',
            text: '庄颜'
        }, {
            value: 'gyf',
            text: '关一帆'
        }, {
            value: 'zhz',
            text: '智子'
        }, {
            value: 'gezh',
            text: '歌者'
        }]);
        var showPicker2Button = doc.getElementById('glck');
        var picker2Result = doc.getElementById('glck-val');
        showPicker2Button.addEventListener('tap', function(event) {
            var picker2Result = doc.getElementById('glck-val');
            var picker2 = new $.PopPicker();
            picker2.setData(listPicker2);
            picker2.show(function(items) {
                // userResult.innerText = JSON.stringify(items[0]);
                picker2Result.innerText = items[0].text;
                data.data.depotId = items[0].value;
                // userResult.previousSibling.style.display="none"
                jQuery(picker2Result).prev().hide()
                //返回 false 可以阻止选择框的关闭
                //return false;
            });
        }, false);
    });
})(mui, document);
igds-app/js/admin/work-audit.js
@@ -50,7 +50,6 @@
            } else {
                renderAuditList();
                mui.alert(result.msg, '提示', ["确定"], function() {}, "div");
            }
        },
        error: function() {
@@ -59,6 +58,55 @@
            
        }
    })
    auditList = [{
            "id": "59",
            "deptName": "1号仓",
            "applyUser": "in anim exercitation",
            "applyUserName": "郝军",
            "type": "exercitation reprehenderit sint",
            "startTime": "1974-07-05 21:56",
            "endTime": "2013-08-19 05:43",
            "info": "sed adipisicing quis irure",
            "depotId": "90",
            "depotName": "即传状新五际"
        },
        {
            "id": "39",
            "deptName": "1号仓",
            "applyUser": "dolor laboris",
            "applyUserName": "袁强",
            "type": "sed et sit irure eu",
            "startTime": "2015-10-25 12:30",
            "endTime": "1971-04-18 19:34",
            "info": "reprehenderit qui quis pariatur anim",
            "depotId": "89",
            "depotName": "当入物还算"
        },
        {
            "id": "55",
            "deptName": "3号仓",
            "applyUser": "quis",
            "applyUserName": "宋丽",
            "type": "in",
            "startTime": "1994-10-12 18:25",
            "endTime": "2008-01-19 00:26",
            "info": "ex ullamco id dolor",
            "depotId": "42",
            "depotName": "新常技位中"
        },
        {
            "id": "50",
            "deptName": "2号仓",
            "applyUser": "dolor",
            "applyUserName": "黄超",
            "type": "nostrud elit",
            "startTime": "2018-07-07 10:25",
            "endTime": "2000-11-07 10:02",
            "info": "et minim",
            "depotId": "53",
            "depotName": "人离它军题"
        }
    ]
}
function renderAuditList() {
@@ -66,19 +114,26 @@
    if (auditList && auditList.length > 0) {
        $.each(auditList, function(index, item) {
            html += '<li><div class="con"><div class="top"><div class="left">';
            html += '<div class="line"><div class="t">申请人: </div><div class="v">' + item.applyUserName + '</div></div>';
            html += '<div class="line"><div class="t">所属分库:</div><div class="v">' + (item.deptName == null ? "" : item.deptName) + '</div></div></div>';
            html += '<div class="right"><div class="icon" info="' + item.info + '"><img src="images/icons/g-i26.png" alt=""></div></div></div>';
            html += '<div class="box"><ul class="gd-list"><li><a href="" class="con" style="background-image: url(images/icons/a-bg12.png);">';
            html += '<div class="line"><div class="t">申请人: </div><div class="v">' + item.applyUserName +
                '</div></div>';
            html += '<div class="line"><div class="t">所属分库:</div><div class="v">' + (item.deptName == null ?
                "" : item.deptName) + '</div></div></div>';
            html += '<div class="right"><div class="icon" info="' + item.info +
                '"><img src="images/icons/g-i26.png" alt=""></div></div></div>';
            html +=
                '<div class="box"><ul class="gd-list"><li><a href="" class="con" style="background-image: url(images/icons/a-bg12.png);">';
            html += '<div class="tit">业务类型:</div><div class="name">' + item.type + '</div></a></li>';
            html += '<li><a href="" class="con" style="background-image: url(images/icons/a-bg13.png);">';
            html += '<div class="tit">关联仓库:</div><div class="name">' + (item.depotName == null ? "--" : item.depotName) + '</div></a></li></ul>';
            html += '<div class="tit">关联仓库:</div><div class="name">' + (item.depotName == null ? "--" : item
                .depotName) + '</div></a></li></ul>';
            html += '<div class="time">有效期: ' + item.startTime + '至' + item.endTime + ' </div>';
            html += '<div class="btns" id="'+ item.id +'"><a href="" class="btn refuse">拒绝</a><a href="" class="btn adopt">通过</a></div>';
            html += '<div class="btns"><a href="" id = "' + item.id +
                '" class="btn refuse">拒绝</a><a href="" id = "' + item.id + '" class="btn adopt">通过</a></div>';
            html += '</div></div></div></li>';
        })
    } else {
        html += '<li><div class="con"><div style="text-align: center;font-size: 20px;color:#dd524d;padding: 18px;">暂无工单审核信息</div></div></li>';
        html +=
            '<li><div class="con"><div style="text-align: center;font-size: 20px;color:#dd524d;padding: 18px;">暂无工单审核信息</div></div></li>';
    }
    $("#handleList").html(html);
}
@@ -108,27 +163,36 @@
//拒绝
mui(".mui-scroll").on("tap",".wp ul li .refuse",function(){
    var id = this.getAttribute("id");
    console.log(id)
    data1.data.id = id
    data1.data.status = '10'
    workAudit();
    console.log("拒绝")
    console.log(JSON.stringify(data1.data), "work-audit", "拒绝")
})
//通过
mui(".mui-scroll").on("tap",".wp ul li .adopt",function(){
    var id = this.getAttribute("id");
    console.log(id)
    data1.data.id = id
    data1.data.status = '20'
    workAudit();
    console.log("通过")
    console.log(JSON.stringify(data1.data), "work-audit", "通过")
})
//查看申请内容
mui(".mui-scroll").on("tap",".wp ul li .icon",function(){
    var info = this.getAttribute("info")
    mui.alert(info, '工单内容', ["确定"], function() {}, "div");
    // mui.alert(info, '工单内容', ["确定"], function() {}, "div");
    $("#textareaPop").val(info)
    $('#m-pop').css('display', 'flex');
    console.log("申请内容")
})
//关闭弹窗
function closePop() {
    $("#m-pop").css('display', 'none');
}
mui('.mui-scroll-wrapper').scroll({
    indicators: false, //是否显示滚动条
    deceleration: 0.0006, //阻尼系数,系数越小滑动越灵敏
igds-app/js/admin/work-record.js
@@ -16,6 +16,7 @@
    url = user.url + "/api-phone/v35/gateway";
    data.tokenAuth = user.tokenAuth;
    data.data.userName = user.userName;
    console.log(JSON.stringify(data.data),"work-record")
    getRecordList();
}
@@ -42,24 +43,75 @@
            mui.alert('系统繁忙,请重新登录尝试!', '提示', ["确定"], function() {}, "div");
        }
    })
    recordList = [{
            "id": "59",
            "deptName": "1号仓",
            "status": "10",
            "applyUserName": "郝军",
            "type": "exercitation reprehenderit sint",
            "startTime": "1974-07-05 21:56",
            "endTime": "2013-08-19 05:43",
            "info": "sed adipisicing quis irure",
            "depotId": "90",
            "depotName": "即传状新五际"
        },
        {
            "id": "39",
            "deptName": "1号仓",
            "status": "20",
            "applyUserName": "袁强",
            "type": "sed et sit irure eu",
            "startTime": "2015-10-25 12:30",
            "endTime": "1971-04-18 19:34",
            "info": "reprehenderit qui quis pariatur anim",
            "depotId": "89",
            "depotName": "当入物还算"
        },
        {
            "id": "55",
            "deptName": "3号仓",
            "status": "20",
            "applyUserName": "宋丽",
            "type": "in",
            "startTime": "1994-10-12 18:25",
            "endTime": "2008-01-19 00:26",
            "info": "ex ullamco id dolor",
            "depotId": "42",
            "depotName": "新常技位中"
        },
        {
            "id": "50",
            "deptName": "2号仓",
            "status": "10",
            "applyUserName": "黄超",
            "type": "nostrud elit",
            "startTime": "2018-07-07 10:25",
            "endTime": "2000-11-07 10:02",
            "info": "et minim",
            "depotId": "53",
            "depotName": "人离它军题"
        }
    ]
}
function renderRecordList() {
    var html = '';
    if (recordList && recordList.length > 0) {
        $.each(recordList, function(index, item) {
            html += '<li><div class="con" info = "' + item.info + '"><span class="status">';
            html += '<li><div class="con conInfo" info = "' + item.info + '"><span class="status">';
            //已审核
            if (item.status == '10') {
                html += '<img src="images/icons/g-i29.png" alt=""></span>'
            } else if (item.status == '20') { // 待审核
                html += '<img src="images/icons/g-i28.png" alt=""></span>'
            }
            html += '<div class="title">所属分库:<b>' + item.deptName + '</b></div><div class="box"><ul class="gd-list">';
            html += '<div class="title">所属分库:<b>' + item.deptName +
                '</b></div><div class="box"><ul class="gd-list">';
            html += '<li><a href="" class="con"style="background-image: url(images/icons/a-bg12.png);">';
            html += '<div class="tit">业务类型:</div><div class="name">' + item.type + '</div></a></li>';
            html += '<li><a href="" class="con"style="background-image: url(images/icons/a-bg13.png);">';
            html += '<div class="tit">关联仓库:</div><div class="name">' + (item.depotName == null ? "--" : item.depotName) + '</div></a></li></ul>';
            html += '<div class="tit">关联仓库:</div><div class="name">' + (item.depotName == null ? "--" : item
                .depotName) + '</div></a></li></ul>';
            html += '<div class="time"><p>有效开始时间: <span>' + item.startTime + '</span></p><p>有效结束时间: <span>' +
                item.endTime + '</span></p></div>';
        })
@@ -68,16 +120,22 @@
            '<li><div class="con"><div style="text-align: center;font-size: 20px;color:#dd524d;padding-top: 18px;">暂无申请记录信息</div></div></li>';
    }
    $("#handleList").html(html);
}
//查看信息
mui(".mui-scroll").on("tap",".wp ul li .con",function(){
mui(".mui-scroll").on("tap", ".wp ul li .conInfo", function() {
    var info = this.getAttribute("info");
    mui.alert(info, '工单内容', ["确定"], function() {}, "div");
    // mui.alert(info, '工单内容', ["确定"], function() {}, "div");
    $("#textareaPop").val(info)
    $('#m-pop').css('display', 'flex');
    console.log("查看信息")
})
//关闭弹窗
function closePop() {
    $("#m-pop").css('display', 'none');
}
mui('.mui-scroll-wrapper').scroll({
    indicators: false, //是否显示滚动条
    deceleration: 0.0006, //阻尼系数,系数越小滑动越灵敏
igds-app/warn-list.html
@@ -33,7 +33,7 @@
                    <div class="m-pow-dist">
                        <div class="m-caution-mana">
                            <ul class="ul-listmana ul-listcaut1" id="recordList">
                                 <!-- <li>
                                  <li>
                                    <div class="con myfancy" onclick="openPop('11')">
                                        <span class="type">未处理</span>
                                        <div class="tit">
@@ -151,8 +151,8 @@
                            </div>
                        </form>
                        <div class="btns" id="handleWarn">
                            <button type="button" class="mui-btn cancel"  onclick="handleWarn('1')">忽略</button>
                            <button type="button" class="mui-btn confirm" onclick="handleWarn('2')">处理</button>
                            <div type="button" class="mui-btn cancel"  onclick="handleWarn('1')">忽略</div>
                            <div type="button" class="mui-btn confirm" onclick="handleWarn('2')">处理</div>
                        </div>
                    </div>
                    <div class="close" onclick="closePop()"><span class="mui-icon mui-icon-close"></span></div>
igds-app/work-apply.html
@@ -33,7 +33,7 @@
                                    <div class="r">
                                        <div class="val" id="ywlx">
                                            <div class="placeholder">请选择</div>
                                            <div class="real-val" id="ywlx-val" onclick="searchType()"></div>
                                            <div class="real-val" id="ywlx-val" ></div>
                                        </div>
                                    </div>
                                </div>
@@ -42,7 +42,7 @@
                                    <div class="r">
                                        <div class="val" id="ssfk">
                                            <div class="placeholder">请选择</div>
                                            <div class="real-val" id="ssfk-val" onclick="searchType()"></div>
                                            <div class="real-val" id="ssfk-val" ></div>
                                        </div>
                                    </div>
                                </div>
@@ -51,7 +51,7 @@
                                    <div class="r">
                                        <div class="val" id="glck">
                                            <div class="placeholder">请选择</div>
                                            <div class="real-val" id="glck-val" onclick="searchType()"></div>
                                            <div class="real-val" id="glck-val" ></div>
                                        </div>
                                    </div>
                                </div>
igds-app/work-audit.html
@@ -160,6 +160,21 @@
                    </div>
                </div>
            </div>
            <div id="m-pop" class="m-pop">
                <div class="pop-bg"></div>
                <div class="inner">
                    <div class="m-server m-pop-caution">
                        <div class="h3"><span class="red">*</span> 工单内容</div>
                        <form class="">
                            <div class="mui-input-row">
                                <textarea id="textareaPop" rows="" cols="" readonly></textarea>
                            </div>
                        </form>
                    </div>
                    <div class="close" onclick="closePop()"><span class="mui-icon mui-icon-close"></span></div>
                </div>
            </div>
        </div>
    </body>
    <script src="js/mui.min.js"></script>
igds-app/work-record.html
@@ -23,7 +23,7 @@
                    <div class="wp">
                        <ul class="ul-sqjl" id="handleList">
                            <li>
                                <div class="con" info="111">
                                <div class="con conInfo" info="111">
                                    <span class="status">
                                        <img src="images/icons/g-i28.png" alt="">
                                    </span>
@@ -53,7 +53,7 @@
                                </div>
                            </li>
                            <li>
                                <div class="con" info="111" >
                                <div class="con conInfo" info="111" >
                                    <span class="status">
                                        <img src="images/icons/g-i28.png" alt="">
                                    </span>
@@ -83,7 +83,7 @@
                                </div>
                            </li>
                            <li>
                                <div class="con" info="111">
                                <div class="con conInfo" info="111">
                                    <span class="status">
                                        <img src="images/icons/g-i29.png" alt="">
                                    </span>
@@ -116,6 +116,21 @@
                    </div>
                </div>
                <div id="m-pop" class="m-pop">
                    <div class="pop-bg"></div>
                    <div class="inner">
                        <div class="m-server m-pop-caution">
                            <div class="h3"><span class="red">*</span> 工单内容</div>
                            <form class="">
                                <div class="mui-input-row">
                                    <textarea id="textareaPop" rows="" cols="" readonly></textarea>
                                </div>
                            </form>
                        </div>
                        <div class="close" onclick="closePop()"><span class="mui-icon mui-icon-close"></span></div>
                    </div>
                </div>
            </div>
        </div>
    </body>