YYC
2023-06-19 bbeea3379807b3c7e03f99621aae5c1e2367f69b
apk2
已修改3个文件
已添加1个文件
152 ■■■■ 文件已修改
igds-app/js/admin/work-apply.js 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-app/js/admin/work-audit.js 71 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-app/js/admin/work-record.js 71 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-app/unpackage/release/apk/H580320F9__20230619143120.apk 补丁 | 查看 | 原始文档 | blame | 历史
igds-app/js/admin/work-apply.js
@@ -66,7 +66,7 @@
//获取业务类型
var data1 = {
    "interfaceId": "6101",
    "interfaceId": "5705",
    "outId": "11101",
    "reqDateTime": new Date(),
    "tokenAuth": "",
@@ -88,6 +88,8 @@
    typeList();
}
//开始时间
function chooseDate() {
    var dtpicker = new mui.DtPicker({
@@ -207,8 +209,8 @@
    var fenl = {}
    $.each(data, function(index, item) {
        fenl = {
            value: item.name,
            text: item.id,
            value: item.typeName,
            text: item.typeId,
        }
        listPicker1.push(fenl)
    })
@@ -271,7 +273,7 @@
        var _getParam = function(obj, param) {
            return obj[param] || '';
        };
        //普通示例
        //业务类型
        var showUserPickerButton = doc.getElementById('ywlx');
        showUserPickerButton.addEventListener('tap', function(event) {
            var userResult = doc.getElementById('ywlx-val');
igds-app/js/admin/work-audit.js
@@ -1,6 +1,7 @@
var url = null;
var auditList = null;
var workAuditData = null;
var dateTime;
//工单审核列表
var data = {
    "interfaceId": "5703",
@@ -30,10 +31,25 @@
    data.tokenAuth = user.tokenAuth;
    data1.tokenAuth = user.tokenAuth;
    data.data.deptId = selectDeptId;
    dateTime = getDate(new Date());
    getAuditList();
}
//日期格式化yyyy-MM-dd
function getDate(date) {
    var year = date.getFullYear();
    var month, day,hour,minute;
    month = date.getMonth() + 1;
    if (month > 0 && month <= 9) {
        month = "0" + month;
    }
    day = date.getDate()
    if (day > 0 && day <= 9) {
        day = "0" + day
    }
    hour = date.getHours();
    minute = date.getMinutes();
    return year + "-" + month + "-" + day + " "+ hour + ":" + minute
}
//获取工单审核列表
function getAuditList() {
    console.log(JSON.stringify(data.data),"work-aduit","工单审核列表")
@@ -59,55 +75,6 @@
        }
    })
    // 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() {
@@ -136,7 +103,7 @@
        html += '<div class="tit">业务类型:</div><div class="name">--</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">--</div></a></li></ul>';
        html += '<div class="time">有效期: 2023-01-01  至  2023-01-01 </div>';
        html += '<div class="time">有效期: ' + dateTime + '  至  ' + dateTime + ' </div>';
        html += '</div></div></div></li>';
        
        // html +=
igds-app/js/admin/work-record.js
@@ -1,5 +1,6 @@
var url = null;
var recordList = null;
var dateTime;
//申请记录
var data = {
    "interfaceId": "5702",
@@ -17,7 +18,24 @@
    data.tokenAuth = user.tokenAuth;
    data.data.userName = user.username;
    console.log(JSON.stringify(data.data),"work-record")
    dateTime = getDate(new Date());
    getRecordList();
}
//日期格式化yyyy-MM-dd HH:mm
function getDate(date) {
    var year = date.getFullYear();
    var month, day,hour,minute;
    month = date.getMonth() + 1;
    if (month > 0 && month <= 9) {
        month = "0" + month;
    }
    day = date.getDate()
    if (day > 0 && day <= 9) {
        day = "0" + day
    }
    hour = date.getHours();
    minute = date.getMinutes();
    return year + "-" + month + "-" + day + " "+ hour + ":" + minute
}
//获取申请记录列表
@@ -43,57 +61,6 @@
            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() {
@@ -124,7 +91,7 @@
        html += '<div class="tit">业务类型:</div><div class="name">--</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">--</div></a></li></ul>';
        html += '<div class="time"><p>有效开始时间: <span>2023-01-01</span></p><p>有效结束时间: <span>2023-01-01</span></p></div>';
        html += '<div class="time"><p>有效开始时间: <span>' + dateTime + '</span></p><p>有效结束时间: <span>' + dateTime + '</span></p></div>';
        // html +=
        //     '<li><div class="con"><div style="text-align: center;font-size: 20px;color:#dd524d;padding-top: 18px;">暂无申请记录信息</div></div></li>';
    }
igds-app/unpackage/release/apk/H580320F9__20230619143120.apk
Binary files differ