自动化立体仓库 - WCS系统
Junjie
2023-05-20 5592f1b0566500092fe39aefd3abe7a4b4001d7f
持续时长
4个文件已修改
29 ■■■■ 已修改文件
src/main/java/com/zy/asrs/entity/WrkMastLog.java 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/wms/js/wrkMast/wrkMast.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/wms/js/wrkMastLog/wrkMastLog.js 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/wrkMastLog/wrkMastLog.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/WrkMastLog.java
@@ -501,5 +501,27 @@
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.logErrTime);
    }
    /**
     * 获取持续时间
     */
    public String getDurationTime() {
        if (Cools.isEmpty(this.ioTime)) {
            return "";
        }
        Date endDate = new Date();
        //用来获取两个时间相差的毫秒数
        long l = this.ioTime.getTime() - endDate.getTime();
        //分别计算相差的天、小时、分、秒
        long day = l / (24 * 60 * 60 * 1000);
        long hour = (l / (60 * 60 * 1000) - day * 24);
        long min = ((l / (60 * 1000)) - day * 24 * 60 - hour * 60);
        long s = (l / 1000 - day * 24 * 60 * 60 - hour * 60 * 60 - min * 60);
        return Math.abs(day) + "天" + Math.abs(hour) + "小时" + Math.abs(min) + "分" + Math.abs(s) + "秒";
    }
}
src/main/webapp/static/wms/js/wrkMast/wrkMast.js
@@ -30,7 +30,7 @@
            , {field: 'ioTime$', align: 'center', title: '任务时间', sort: true, width: 160}
            , {field: 'durationTime', align: 'center', title: '持续时长', width: 160}
            , {field: 'wrkSts$', align: 'center', title: '任务状态'}
            , {field: 'ioType$', align: 'center', title: '入出库类型'}
            , {field: 'ioType$', align: 'center', title: '任务类型'}
            , {field: 'ioPri', align: 'center', title: '优先级'}
            , {field: 'crnNo$', align: 'center', title: '堆垛机'}
            , {field: 'sourceStaNo$', align: 'center', title: '源站'}
src/main/webapp/static/wms/js/wrkMastLog/wrkMastLog.js
@@ -25,8 +25,9 @@
//             ,{field: 'id', align: 'center',title: '编号'}
            {field: 'wrkNo', align: 'center',title: '任务号',event: 'wrkNo', sort: true}
            ,{field: 'ioTime$', align: 'center',title: '任务时间', width:160, sort: true}
            ,{field: 'durationTime', align: 'center',title: '持续时长', width:160}
            ,{field: 'wrkSts$', align: 'center',title: '任务状态', width:160}
            ,{field: 'ioType$', align: 'center',title: '入出库类型', width:160}
            ,{field: 'ioType$', align: 'center',title: '任务类型', width:160}
            ,{field: 'ioPri', align: 'center',title: '优先级'}
            ,{field: 'crnNo$', align: 'center',title: '堆垛机号'}
            ,{field: 'sourceStaNo$', align: 'center',title: '源站'}
src/main/webapp/views/wrkMastLog/wrkMastLog.html
@@ -32,7 +32,7 @@
    <div class="layui-inline">
        <div class="layui-input-inline cool-auto-complete">
            <input id="ioType" class="layui-input" name="io_type" type="text" placeholder="请输入" autocomplete="off" style="display: none">
            <input id="ioType$" class="layui-input cool-auto-complete-div" onclick="autoShow(this.id)" type="text" placeholder="入出库类型" onfocus=this.blur()>
            <input id="ioType$" class="layui-input cool-auto-complete-div" onclick="autoShow(this.id)" type="text" placeholder="任务类型" onfocus=this.blur()>
            <div class="cool-auto-complete-window">
                <input class="cool-auto-complete-window-input" data-key="basWrkIotypeQueryByioType" onkeyup="autoLoad(this.getAttribute('data-key'))">
                <select class="cool-auto-complete-window-select" data-key="basWrkIotypeQueryByioTypeSelect" onchange="confirmed(this.getAttribute('data-key'))" multiple="multiple">