自动化立体仓库 - WMS系统
lty
3 天以前 d907a822a940c7ec0fb7de0ca845472bda52229b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../static/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../static/css/cool.css" media="all">
    <link rel="stylesheet" href="../../static/css/common.css" media="all">
    <style>
        #locMapContain {
            overflow-x: auto;
            width:100%;
            height:700px;
            position: relative;
        }
        .a-loc {
            cursor: pointer;
            font-size: 18px;
            font-weight: bold;
            text-align: center;
        }
        .layui-table, .layui-table-view {
            margin: 0;
        }
        #locMapContain::-webkit-scrollbar {
            width : 10px;
            height: 25px;
        }
        #locMapContain::-webkit-scrollbar-thumb {
            border-radius   : 10px;
            background-color: #159684;
            background-image: -webkit-linear-gradient(
                    45deg,
                    rgba(255, 255, 255, 0.2) 25%,
                    transparent 25%,
                    transparent 50%,
                    rgba(255, 255, 255, 0.2) 50%,
                    rgba(255, 255, 255, 0.2) 75%,
                    transparent 75%,
                    transparent
            );
        }
        #locMapContain::-webkit-scrollbar-track {
            box-shadow   : inset 0 0 5px rgba(0, 0, 0, 0.2);
            background   : #ededed;
            border-radius: 10px;
        }
        .layui-table td:hover {
            opacity: 0.5;
        }
        .loc-selected {
            border: 2px solid red !important;
            box-shadow: 0 0 5px red;
        }
        #selectionBox {
            position: absolute;
            border: 1px dashed #009688;
            background-color: rgba(0, 150, 136, 0.2);
            display: none;
            z-index: 1000;
            pointer-events: none;
        }
        .area-legend-item {
            display: inline-flex;
            align-items: center;
            margin-right: 15px;
            font-size: 14px;
            cursor: pointer;
            padding: 2px 5px;
            border-radius: 4px;
            transition: background-color 0.2s;
        }
        .area-legend-item:hover {
            background-color: #f0f0f0;
        }
    </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: auto; min-width: 80px;" data-i18n="display_mode">显示模式</label>
        <div class="layui-input-inline" style="width: 150px;">
            <select id="viewMode" name="viewMode" lay-filter="viewMode">
                <option value="byRow" data-i18n="view_by_row">按排显示</option>
                <option value="byLayer" data-i18n="view_by_layer">按层显示</option>
            </select>
        </div>
    </div>
 
    <!-- 按排时的下拉框(默认显示) -->
    <div class="layui-inline" id="rowSelectBox" style="margin-left: 20px;">
        <div class="layui-input-inline">
            <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>
 
    <div class="layui-inline" style="margin-left: 20px;">
        <button class="layui-btn layui-btn-normal" id="btnSelectMode" data-i18n="enable_selection">开启框选</button>
        <button class="layui-btn" id="btnAssignZone" style="display:none; margin-left:10px;" data-i18n="assign_zone">分配库区</button>
    </div>
</div>
<div id="areaLegend" style="padding: 5px 15px; background: #fff; border-bottom: 1px solid #eee; display:none;">
    <!-- Legend items will be injected here -->
</div>
<div id="locMapContain">
    <table class="layui-table" id="locMap" lay-filter="locMap"></table>
    <div id="selectionBox"></div>
</div>
<!-- 表格 -->
 
<iframe id="detail-iframe" scrolling="auto" style="display:none;"></iframe>
 
<script type="text/template" id="locMapTemplate">
    <thead>
        <tr>
        {{#each title}}
            <th lay-data="{field:'{{this}}', width:100}">{{this}}</th>
        {{/each}}
        </tr>
    </thead>
    <tbody>
        {{#each body}}
        <tr>
            {{#each loc}}
                <td class="a-loc" title="{{locNo}}" onclick="locDetl(this)" 
                    style="background-color:{{bgc}};color:{{color}};position:relative;{{#if locType2}}box-shadow:inset 0 0 0 4px {{getAreaColor locType2}}{{/if}}">
                    {{locSts}}
                    {{#if locType2}}<div style="position:absolute;top:0;right:0;width:0;height:0;border-top:10px solid {{getAreaColor locType2}};border-left:10px solid transparent;"></div>{{/if}}
                </td>
            {{/each}}
        </tr>
        {{/each}}
    </tbody>
</script>
<script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.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>
<script type="text/javascript" src="../../static/js/handlebars/handlebars-v4.5.3.js"></script>
<script type="text/javascript" src="../../static/js/i18n/i18n-helper.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>
 
</html>