自动化立体仓库 - WMS系统
#
luxiaotao1123
2022-06-01 4c2ff59bf0ef68c2896614d0f44a94cddd62704f
#
2个文件已修改
19 ■■■■ 已修改文件
src/main/webapp/static/js/common.js 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/wrkMastLog/wrkDetlLog.html 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/common.js
@@ -14,7 +14,7 @@
//       layer.close(loadIndex);
// 时间 ==>> 字符串
function dateToStr(date) {
function dateToStr(date, millisecond) {
    var time = new Date(date);
    var y = time.getFullYear();
    var M = time.getMonth() + 1;
@@ -27,7 +27,18 @@
    m = m < 10 ? ("0" + m) : m;
    var s = time.getSeconds();
    s = s < 10 ? ("0" + s) : s;
    return y + "-" + M + "-" + d + " " + h + ":" + m + ":" + s;
    if (!millisecond) {
        return y + "-" + M + "-" + d + " " + h + ":" + m + ":" + s;
    } else {
        var p = time.getMilliseconds();
        if (p < 10) {
            p = "00" + p;
        }
        if (p <  100) {
            p = "0" + p;
        }
        return y + "-" + M + "-" + d + " " + h + ":" + m + ":" + s + "," + p;
    }
}
// 字符串 ===>> 时间
src/main/webapp/views/wrkMastLog/wrkDetlLog.html
@@ -51,13 +51,13 @@
        var form = layui.form;
        $('#wrkNo').val(parent.wrkNo);
        $('#ioTime').val(top.dateToStrM(parent.ioTime));
        $('#ioTime').val(top.dateToStr(parent.ioTime, true));
        // 数据渲染
        tableIns1 = table.render({
            elem: '#wrkDetlLogByMast',
            headers: {token: localStorage.getItem('token')},
            url: baseUrl+'/wrkDetlLogByMast/list/auth',
            where: {wrk_no: parent.wrkNo,ioTime: top.dateToStrM(parent.ioTime)},
            where: {wrk_no: parent.wrkNo,ioTime: top.dateToStr(parent.ioTime, true)},
            page: true,
            limit: 16,
            limits: [16, 30, 50, 100, 200, 500],