自动化立体仓库 - WMS系统
#
lty
20 小时以前 a1db2ea6ccdafdffdf2ed4e52844179e72dc77a5
src/main/webapp/views/report/viewLocMap.html
@@ -50,18 +50,35 @@
        .layui-table td:hover {
            opacity: 0.5;
        }
</style>
    </style>
</head>
<body>
<!-- 搜索栏 -->
<div id="search-box" class="layui-form layui-card-header">
    <div class="layui-inline" style="margin-left: 10px">
        <label class="layui-form-label" style="width:80px">显示模式</label>
        <div class="layui-input-inline" style="width:120px;">
            <select id="viewMode" name="viewMode" lay-filter="viewMode">
                <option value="byRow">按排显示</option>
                <option value="byLayer">按层显示</option>
            </select>
        </div>
    </div>
    <!-- 按排时的下拉框(默认显示) -->
    <div class="layui-inline" id="rowSelectBox" style="margin-left: 20px;">
        <div class="layui-input-inline">
            <select name="row" lay-filter="row">
                <option value="1">第1排</option>
                <option value="2">第2排</option>
                <option value="3">第3排</option>
                <option value="4">第4排</option>
            <select id="rowSelect" name="row" lay-filter="row">
                <!-- 选项由js动态生成 -->
            </select>
        </div>
    </div>
    <!-- 按层时的下拉框(初始隐藏) -->
    <div class="layui-inline" id="layerSelectBox" style="margin-left: 20px; display:none;">
        <div class="layui-input-inline">
            <select id="layerSelect" name="layer" lay-filter="layer">
                <!-- 选项由js动态生成 -->
            </select>
        </div>
    </div>
@@ -75,20 +92,20 @@
<script type="text/template" id="locMapTemplate">
    <thead>
        <tr>
    <tr>
        {{#each title}}
            <th lay-data="{field:'{{this}}', width:100}">{{this}}</th>
        <th lay-data="{field:'{{this}}', width:100}">{{this}}</th>
        {{/each}}
        </tr>
    </tr>
    </thead>
    <tbody>
        {{#each body}}
        <tr>
            {{#each loc}}
                <td class="a-loc" title="{{locNo}}" onclick="locDetl(this)" style="background-color:{{bgc}};color:{{color}}">{{locType}}</td>
            {{/each}}
        </tr>
    {{#each body}}
    <tr>
        {{#each loc}}
        <td class="a-loc" title="{{locNo}}" onclick="locDetl(this)" style="background-color:{{bgc}};color:{{color}}">{{locSts}}</td>
        {{/each}}
    </tr>
    {{/each}}
    </tbody>
</script>
<script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script>
@@ -98,5 +115,17 @@
<script type="text/javascript" src="../../static/js/handlebars/handlebars-v4.5.3.js"></script>
<script type="text/javascript" src="../../static/js/report/locMap.js" charset="utf-8"></script>
</body>
<script type="text/template" id="locMastRowTemplate">
    {{#each data}}
    <option value="{{this}}">{{this}}</option>
    {{/each}}
</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>