-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathposMain.html
436 lines (424 loc) · 21.2 KB
/
posMain.html
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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
<html>
<head>
<script src="./js/jquery-3.4.1.min.js"></script>
<link rel="stylesheet" href="./css/bootstrap.min.css"/>
<link href="./css/posMain.css" rel="stylesheet">
<script src="./js/posMain.js"></script>
<link rel="stylesheet" href="./tui-grid/tui-grid.css" />
<script src="./tui-grid/tui-grid.js" charset="UTF-8"></script>
<script>
var grid = null;
var delivery_grid = null;
$(document).ready(function(){
fnInitGrid();
fnDeliveryInitGrid();
})
function fnInitGrid(){
const dataSource = {
api: {
readData: { url: "", method: 'GET', initParams: { }}
},
initialRequest: false
};
grid = new tui.Grid({
el: document.getElementById('grid'),
scrollX: true,
scrollY: true,
rowHeight : 27,
minRowHeight :27,
header: {
height: 26
},
rowHeaders: ['checkbox','rowNum'],
columns: [
{
header: '주문번호',
name: 'privID',
width: 120,
sortable: true
},
{
header: '주문일시',
name: 'privNM',
width: 150,
sortable: true
},
{
header: '주문타입',
name: 'activeImg',
width: 120,
sortable: true
},
{
header: '경과시간',
name: 'noActiveImg',
width: 150,
sortable: true
},
{
header: '주문채널',
name: 'isRead',
width: 120,
sortable: true
},
{
header: '주문금액',
name: 'dbSTS',
width: 80,
sortable: true
},
{
header: '주문상태',
name: 'dbSTS2',
width: 150,
sortable: true
},
{
header: '<spring:message code="FIELD.PRIVUID" text="화면기능UID"/>',
name: 'privUID',
hidden : true
}
],
data : dataSource,
columnOptions: {
resizable: true
},
bodyHeight : 665
});
resizePage();
grid.refreshLayout();
}
function fnDeliveryInitGrid(){
const dataSource = {
api: {
readData: { url: "", method: 'GET', initParams: { }}
},
initialRequest: false
};
delivery_grid = new tui.Grid({
el: document.getElementById('delivery_grid'),
scrollX: true,
scrollY: true,
rowHeight : 27,
minRowHeight :27,
header: {
height: 26
},
rowHeaders: [],
columns: [
{
header: '메뉴',
name: 'menuNM'
},
{
header: '수량',
name: 'cnt'
},
{
header: '단가',
name: 'price'
},
{
header: '금액',
name: 'money'
}
],
data : dataSource,
columnOptions: {
resizable: true
},
bodyHeight : 180
});
resizePage();
grid.refreshLayout();
}
function resizePage() {
var tabHeight = resizePageCom();
if(grid != null || grid != undefined) {
grid.setBodyHeight(tabHeight + 10);
}
if(delivery_grid != null || delivery_grid != undefined) {
delivery_grid.setBodyHeight(tabHeight - 495);
}
}
</script>
</head>
<body>
<div id="wrapper">
<!-- Sidebar -->
<nav class="navbar navbar-inverse navbar-fixed-top" id="sidebar-wrapper" role="navigation">
<ul class="nav sidebar-nav">
<li class="sidebar-brand">
<a href="#">
Bootstrap 3
</a>
</li>
<li>
<a href="#"><i class="fa fa-fw fa-home"></i> Home</a>
</li>
<li>
<a href="#"><i class="fa fa-fw fa-folder"></i> Page one</a>
</li>
<li>
<a href="#"><i class="fa fa-fw fa-file-o"></i> Second page</a>
</li>
<li>
<a href="#"><i class="fa fa-fw fa-cog"></i> Third page</a>
</li>
<li>
<a href="#"><i class="fa fa-fw fa-bank"></i> Page four</a>
</li>
<li>
<a href="#"><i class="fa fa-fw fa-dropbox"></i> Page 5</a>
</li>
<li>
<a href="#"><i class="fa fa-fw fa-twitter"></i> Last page</a>
</li>
</ul>
</nav>
<!-- /#sidebar-wrapper -->
<nav class="navbar navbar-expand-lg navbar-dark fixed-top" id="mainNav">
<ul id="logNavBar" class="nav navbar-nav navbar-left">
</ul>
</nav>
<!-- Page Content -->
<div id="page-content-wrapper">
<button type="button" class="cro_hme is-closed animated fadeInLeft" data-toggle="offcanvas">
<span class="hamb-top"></span>
<span class="hamb-middle"></span>
<span class="hamb-bottom"></span>
</button>
<div class="container">
<div class="row">
<div class="col col-7 col-sm-7 orderList" style="padding: 0px 0 0 5px;">
<div class="row grid_tui">
<div class="col col-12 col-sm-12">
<div class="search">
<ul id="order_nav" class="nav nav-tabs">
<li class="active">
<a href="#1" data-toggle="tab">전체</a>
</li>
<li>
<a href="#2" data-toggle="tab">배달</a>
</li>
<li>
<a href="#3" data-toggle="tab">포장</a>
</li>
</ul>
<div class="search_tab_box">
<input type="text" class="searchTerm" placeholder="검색어를 입력하세요.">
<button type="submit" class="searchButton">
<i class="fa fa-search"></i>
</button>
<a href="#">
<button id="btnChoice" type="button" class="btn btn-default btn_cut btnChoice boxBtn-am search_btn">
<i class="fa fas fa-caret-down"></i>상세검색
</button>
</a>
</div>
</div>
</div>
<div class="col col-12 col-sm-12">
<div id="grid" style="width: 100%; margin-bottom: 5px;"></div>
</div>
</div>
</div>
<div class="col col-5 col-sm-5" style="padding: 0 3px;">
<div id="dtlGrid" class="row grid_tui">
<div class="col col-12 col-sm-12" style="margin-top: 3px;">
<div id="delivery_grid" style="width: 100%"></div>
</div>
<div class="col col-12 col-sm-12">
<table class="searchAM">
<colgroup>
<col width="120">
<col width="250">
</colgroup>
<tr>
<th colspan="2" class="grid_header">
<div class="grid_header_flex">
<span>후불(현금)결제</span>
<span>20,000</span>
</div>
</th>
</tr>
<tr>
<th>주문일시</th>
<td style="height: 25px;">
<span class="search_span" id="custProdID"></span>
</td>
</tr>
<tr>
<th>채널번호</th>
<td style="height: 25px;">
<span class="search_span" id="prodNM"></span>
</td>
</tr>
<tr>
<th>주소</th>
<td style="height: 25px;">
<span class="search_span" id="spec"></span>
</td>
</tr>
<tr>
<th>연락처</th>
<td style="height: 25px;">
<span class="search_span" id="modelNO"></span>
</td>
</tr>
<tr>
<th>고객요청</th>
<td style="height: 25px;">
<span class="search_span" id="orderUnit"></span>
</td>
</tr>
<tr>
<th>라이더요청</th>
<td style="height: 25px;">
<span class="search_span" id="makerNM"></span>
</td>
</tr>
<tr>
<th>추가요청</th>
<td style="height: 25px;">
<span class="search_span" id="makerNM"></span>
</td>
</tr>
<tr>
<td colspan="2" style="text-align: right;padding: 3px;">
<a href="#">
<button id="btnChoice" type="button" class="btn btn-default btn_cut btnChoice boxBtn-am" >
<i class="fa fas fa-plus"></i>선택
</button>
</a>
</td>
</tr>
</table>
</div>
<div class="col col-12 col-sm-12">
<div class="row">
<div class="col-12 col-sm-12">
<table class="searchAM">
<colgroup>
<col width="120">
<col width="250">
</colgroup>
<tr>
<th colspan="2" class="grid_header">
<div class="grid_header_flex">
<span>대행업체 이름</span>
<span>대행완료</span>
</div>
</th>
</tr>
<tr>
<th>기사정보</th>
<td style="height: 25px;">
<span class="search_span" id="custProdID"></span>
</td>
</tr>
<tr>
<th>배달비</th>
<td style="height: 25px;">
<span class="search_span" id="prodNM"></span>
</td>
</tr>
<tr>
<th>배달거리</th>
<td style="height: 25px;">
<span class="search_span" id="spec"></span>
</td>
</tr>
<tr>
<th>픽업예정시간</th>
<td style="height: 25px;">
<span class="search_span" id="modelNO"></span>
</td>
</tr>
<tr>
<td colspan="2" style="text-align: right;padding: 3px;">
<a href="#">
<button id="btnChoice" type="button" class="btn btn-default btn_cut btnChoice boxBtn-am" >
<i class="fa fas fa-plus"></i>선택
</button>
</a>
</td>
</tr>
</table>
</div>
<div class="col-12 col-sm-12" style="text-align: center;">
<ul class="nav nav-tabs process-model more-icon-preocess" role="tablist">
<li role="presentation" class="visited">
<a aria-controls="discover" role="tab" data-toggle="tab"><i class="fa fa-search" aria-hidden="true"></i>
<p>대행접수<br>
(03-08 00:00)
</p>
</a>
</li>
<li role="presentation" class="active">
<a aria-controls="strategy" role="tab" data-toggle="tab"><i class="fa fa-regular fa-motorcycle"></i>
<p>배차완료<br>
(03-08 00:00)
</p>
</a>
</li>
<li role="presentation">
<a aria-controls="optimization" role="tab" data-toggle="tab"><i class="fa fa-cube"></i>
<p>픽업완료<br>
-
</p>
</a>
</li>
<li role="presentation">
<a aria-controls="optimization" role="tab" data-toggle="tab"><i class="fa fa-truck"></i>
<p>배송중<br>
-
</p>
</a>
</li>
<li role="presentation">
<a aria-controls="content" role="tab" data-toggle="tab"><i class="fa fa-user" aria-hidden="true"></i>
<p>배달완료<br>
-
</p>
</a>
</li>
</div>
</div>
</ul>
</div>
</div>
</div>
<div class="col-12 col-sm-12 footer_cnt">
<div class="info-center">
가맹점전체 / 주문금액 : 1,000,000원
</div>
<div class="info-center">
주문건수 : 150건
</div>
<div class="info-center">
주문접수 : 156건
</div>
<div class="info-center">
주문취소 : 6건
</div>
<div class="info-center">
대행접수 : 120건
</div>
<div class="info-center">
배차 : 12건(지연 0건)
</div>
<div class="info-center">
픽업 : 5건(지연 0건)
</div>
<div class="info-center">
배달 : 7건(지연 0건)
</div>
</div>
</div>
</div>
</div>
<!-- /#page-content-wrapper -->
</div>
</body>
</html>