自动化立体仓库 - WMS系统
cl
2026-03-23 9245059bbd1202e8e59486e5f124d7819760818a
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<!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
        }
        .a-loc {
            cursor: default;
            font-size: 12px;
            font-weight: bold;
            text-align: left;
            max-width: 220px;
            overflow-wrap: anywhere;
            word-break: break-word;
            white-space: normal;
            vertical-align: middle;
            line-height: 1.25;
        }
        .loc-map-inner {
            display: grid;
            grid-template-columns: auto 1fr;
            align-items: center;
            column-gap: 8px;
        }
        .loc-map-col1 {
            display: grid;
            grid-template-columns: minmax(0, max-content);
            row-gap: 4px;
            justify-items: stretch;
            width: max-content;
            max-width: 100%;
            min-width: 0;
        }
        .loc-map-top-left {
            display: flex;
            align-items: center;
            gap: 4px;
            flex-wrap: nowrap;
            width: max-content;
            max-width: 100%;
        }
        .loc-map-bars {
            min-width: 0;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }
        .loc-map-maktx-wrap {
            justify-self: center;
            text-align: center;
            min-width: 0;
            max-width: 100%;
        }
        .loc-map-sts {
            flex: 0 0 auto;
            padding: 1px 6px;
            border-radius: 4px;
            border: 1px solid currentColor;
            font-size: 13px;
            font-weight: 800;
            line-height: 1.2;
            opacity: 0.95;
        }
        .loc-map-locno-badge {
            cursor: pointer;
            flex: 0 1 auto;
            padding: 0;
            font-size: 14px;
            font-weight: normal;
            white-space: nowrap;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .loc-map-maktx {
            cursor: pointer;
            font-weight: 600;
            display: inline-block;
            text-align: center;
            max-width: 140px;
            word-break: break-word;
            vertical-align: middle;
        }
        .loc-map-bar {
            cursor: pointer;
            margin-top: 4px;
            font-size: 14px;
            font-weight: normal;
            line-height: 1.35;
            word-break: break-all;
            overflow-wrap: anywhere;
            text-align: left;
            opacity: 0.92;
            max-width: 100%;
            box-sizing: border-box;
        }
        .loc-map-bar:first-child {
            margin-top: 0;
        }
        .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;
        }
</style>
</head>
<body>
<!-- 搜索栏 -->
<div id="search-box" class="layui-form layui-card-header">
    <div class="layui-inline" style="margin-left: 10px">
        <div class="layui-input-inline">
            <select id="rowSelect" 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>-->
<!--                <option value="5">第5排</option>-->
<!--                <option value="6">第6排</option>-->
<!--                <option value="7">第7排</option>-->
<!--                <option value="8">第8排</option>-->
            </select>
        </div>
    </div>
    <div class="layui-inline" style="margin-left: 16px">
        <label class="layui-form-label" style="width:auto;padding:9px 8px;">自动刷新</label>
        <div class="layui-input-inline" style="width:130px">
            <select id="locMapRefreshSelect" name="locMapRefresh" lay-filter="locMapRefresh">
                <option value="0">不刷新</option>
                <option value="5000">5秒</option>
                <option value="10000" selected>10秒</option>
                <option value="20000">20秒</option>
                <option value="30000">30秒</option>
                <option value="60000">1分钟</option>
            </select>
        </div>
    </div>
</div>
<div id="locMapContain">
    <table class="layui-table" id="locMap" lay-filter="locMap"></table>
</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}}" data-loc-sts="{{locSts}}" style="background-color:{{bgc}};color:{{color}}">{{#if locNo}}<div class="loc-map-inner"><div class="loc-map-col1"><div class="loc-map-top-left"><span class="loc-map-sts">{{locSts}}</span><span class="loc-map-locno-badge" data-copy-loc="{{locNo}}">库位:{{locNo}}</span></div><div class="loc-map-bars">{{#if itemBarcodes}}<div class="loc-map-bar" data-copy-bar="{{itemBarcodes}}">条码:{{itemBarcodes}}</div>{{/if}}{{#if pltBarcodes}}<div class="loc-map-bar" data-copy-bar="{{pltBarcodes}}">条码:{{pltBarcodes}}</div>{{/if}}</div></div><div class="loc-map-maktx-wrap">{{#if maktx}}<span class="loc-map-maktx" data-loc-no="{{locNo}}">{{maktx}}</span>{{/if}}</div></div>{{else}}{{locSts}}{{/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/report/locMap.js" charset="utf-8"></script>
</body>
<script type="text/template" id="locMastRowTemplate">
    {{#each data}}
    <option value="{{this}}">{{this}}</option>
    {{/each}}
</script>
</html>