自动化立体仓库 - WMS系统
lty
2026-01-22 35b1b26f1fe16550b4ee2881a26d599456fe59b4
src/main/webapp/views/wrkMast/wrkDetl.html
@@ -14,7 +14,7 @@
</head>
<body>
<div class="layui-inline"  style="width:31%;margin-top: 20px">
    <label class="layui-form-label">工 作 号:</label>
    <label class="layui-form-label"><span data-i18n="work_no">工 作 号</span>:</label>
    <div class="layui-input-inline">
        <input id="wrkNo" class="layui-input" type="text" disabled="disabled">
    </div>
@@ -22,6 +22,7 @@
<table class="layui-hide" id="wrkDetlByMast" lay-filter="wrkDetlByMast"></table>
</body>
<script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script>
<script src="../../static/js/i18n/i18n-helper.js"></script>
<script type="text/javascript" src="../../static/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="../../static/js/common.js" charset="utf-8"></script>
<script type="text/javascript" src="../../static/js/cool.js" charset="utf-8"></script>
@@ -30,16 +31,44 @@
    var pageCur;
    function getCol() {
        var cols = [
            {field: 'wrkNo', align: 'center',title: '工作号'}
            ,{field: 'ioTime$', align: 'center',title: '工作时间'}
            {field: 'wrkNo', align: 'center',title: I18n.t('work_no')}
            ,{field: 'ioTime$', align: 'center',title: I18n.t('work_time')}
        ];
        cols.push.apply(cols, detlCols);
        if (typeof getDetlCols === 'function') {
            cols.push.apply(cols, getDetlCols());
        } else {
            cols.push.apply(cols, detlCols);
        }
        return cols;
    }
    layui.use(['table','laydate', 'form'], function() {
        table = layui.table;
        var $ = layui.jquery;
        var form = layui.form;
        $(document).on('i18n:languageChanged', function() {
            table.reload('wrkDetlByMast', {
                cols: [getCol()],
                done: function(res, curr, count) {
                    if (res.code === 403) {
                        top.location.href = baseUrl+"/";
                    }
                    pageCur=curr;
                    form.on('checkbox(tableCheckbox)', function (data) {
                        var _index = $(data.elem).attr('table-index')||0;
                        if(data.elem.checked){
                            res.data[_index][data.value] = 'Y';
                        }else{
                            res.data[_index][data.value] = 'N';
                        }
                    });
                    if (typeof I18n !== 'undefined') {
                        I18n.updatePage();
                        I18n.updateLayuiPagination();
                    }
                }
            });
        });
        $('#wrkNo').val(parent.wrkNo);
        // 数据渲染
@@ -83,16 +112,14 @@
                        res.data[_index][data.value] = 'N';
                    }
                });
                if (typeof I18n !== 'undefined') {
                    I18n.updatePage();
                    I18n.updateLayuiPagination();
                }
            }
        });
    });
</script>
<script src="../../static/js/translate.js"></script>
<script>
    translate.selectLanguageTag.show = false; //不出现的select的选择语言
    translate.service.use('client.edge'); //设置翻译服务
    translate.listener.start(); //开启页面元素动态监控,js改变的内容也会被翻译,参考文档: http://translate.zvo.cn/4067.html
    translate.execute();
</script>
</html>