0.0
wyb
2021-05-12 b8a472043afc871feaeda0f94a857d0f0ae48822
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
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
<!DOCTYPE html>
<html lang="zh-cn">
 
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>GongJiao2F-GD</title>
    <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="css/bootstrap-table.min.css">
    <link rel="stylesheet" type="text/css" href="css/index.css">
    <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="css/bootstrap-table.min.css">
    <link rel="stylesheet" type="text/css" href="css/index.css">
    <link rel="stylesheet" type="text/css" href="css/Style.css">
    <script src="js/jquery.min.js"></script>
    <script src='js/echarts.min.js'></script>
    <script src="js/bootstrap.min.js"></script>
    <script src='js/bootstrap-table.min.js'></script>
    <script src='js/bootstrap-table-zh-CN.min.js'></script>
    <script src="js/jquery.SuperSlide.2.1.3.js"></script>
    <script src='js/template.js'></script>
    <script src="js/jquery.qrcode.min.js"></script>
 
    <style>
        body {
            background: #000000 url(img/bg_3.png) no-repeat !important;
            background-size: cover;
            width: 100%;
            height: 100%;
        }
 
        .flex {
            display: flex;
            display: -webkit-flex;
            justify-content: space-between;
            flex-direction: row;
            flex-wrap: wrap;
        }
 
        .flex .flex_item {
            width: 16%;
            cursor: pointer;
            margin-top: 20px;
            margin-bottom: 20px;
            height: 171px;
            background-color: rgba(8, 14, 45, 0.3);
            border-radius: 5px;
        }
 
        .flex .flex_span {
            width: 25%;
            text-align: center;
            border-right: 1px solid #09d1ea;
 
 
        }
 
        .m15 {
            margin-bottom: 15px;
        }
 
        .flex .flex_span:nth-child(4) {
            border-right: none;
        }
 
        .flex .flex_span .color_span {
            color: #09d1ea;
            font-size: 18px;
            margin-left: 20px;
        }
 
        .flex .flex_span .flex_txt {
            color: #767877;
            font-size: 12px;
        }
 
        #main_box {
            padding: 30px;
        }
 
        body {
            padding: 0;
        }
 
        .title_t {
            text-align: left;
            font-size: 14px;
            color: #09d1ea;
            margin-bottom: 20px;
        }
 
        .div_left {
            display: inline-block;
            width: 32%;
            vertical-align: top;
            margin-right: 2%;
            padding: 20px;
            border: 3px solid #080c1c;
            border-radius: 5px;
            background-color: rgba(8, 14, 45, 0.3);
            height: 470px;
        }
 
        .div_right {
            display: inline-block;
            width: 65%;
            padding: 20px;
            border: 3px solid #080c1c;
            border-radius: 5px;
            background-color: rgba(8, 14, 45, 0.3);
            height: 470px;
            overflow: hidden;
        }
 
        .mod_top {
            margin-bottom: 20px;
        }
 
        .mod_top .flex_txt {
            text-align: left;
            color: #767877;
            font-size: 14px;
 
        }
 
        .mod_top .mode_p {
            text-align: left;
            font-size: 20px;
            margin-bottom: 0;
            padding-bottom: 10px;
            border-bottom: 3px solid #080c1c;
 
        }
 
        .flex_p {
            display: inline-block;
            width: 33%;
            vertical-align: top;
            margin-bottom: 20px;
        }
 
        .flex_p .flex_txt {
            text-align: left;
            color: #767877;
            font-size: 14px;
            margin-top: 10px;
            margin-bottom: 15px;
 
        }
 
        .flex_p .flex_name {
            font-size: 18px;
            color: #09d1ea;
        }
 
        .flex_jd {
            margin-top: 20px;
        }
 
        .flex_jd .flex_txt {
            color: #767877;
            font-size: 14px;
            margin-top: 18px;
            margin-bottom: 18px;
        }
 
        .mod_bottom {
            border-bottom: 3px solid #080c1c;
        }
 
        .flex_jd {
            position: relative;
        }
 
        .flex_jd ul li {
            display: inline-block;
            width: 23px;
            height: 21px;
            /* background: #4b2dba; */
            /* background:  url(img/li_bg.png) no-repeat !important; */
            border-radius: 2px;
            margin-right: 3px;
            vertical-align: top;
 
        }
 
        .flex_jd ul {
            background: url(img/ul_bg.png) no-repeat !important;
            position: relative;
            z-index: 2;
            height: 41px;
        }
 
        .position_s {
            position: absolute;
            left: 0px;
            bottom: 21px;
            background: #11324b !important;
            width: 100%;
            z-index: 1;
            height: 20px !important;
            border-radius: 0 !important;
            width: 98% !important;
        }
 
        .position_color {
            background: #09d1ea !important;
            border-radius: 0 !important;
        }
 
        .position_font {
            color: #09d1ea !important;
            text-align: right;
            position: absolute;
            right: 1%;
            bottom: 45px;
        }
 
        .change_color {
            background: #35b8c8 !important;
        }
 
        .table>caption+thead>tr:first-child>td,
        .table>caption+thead>tr:first-child>th,
        .table>colgroup+thead>tr:first-child>td,
        .table>colgroup+thead>tr:first-child>th,
        .table>thead:first-child>tr:first-child>td,
        .table>thead:first-child>tr:first-child>th {
            color: #09d1ea;
 
 
        }
 
        .fixed-table-container tbody td .th-inner,
        .fixed-table-container thead th .th-inner {
            font-size: 14px !important;
 
        }
 
        th {
            background-color: transparent !important;
        }
 
        td {
            background-color: transparent;
        }
 
        tr {
            background-color: transparent
        }
 
        .progress {
            background: #11152f;
            border-radius: 6px;
            overflow: hidden !important;
        }
 
        .progress-diy-info,
        .progress-diy-danger {
            border-radius: 6px;
            background: #4b2dba;
        }
 
        .progress span {
            display: inline-block;
            position: absolute;
            top: -50% !important;
            /* left: 50%; */
            right: 0;
            margin-top: -15px;
            margin-left: -20px;
            z-index: 6;
            color: #4b2dba;
        }
 
        #tb_order tr td {
            color: #cdcdcd;
            font-size: 14px;
        }
 
        .tb_order>tbody>tr {
            overflow: inherit !important;
        }
 
        #tb_order {}
 
        .title_style li {
            display: inline-block;
            font-size: 16px;
            width: 15%;
            margin-bottom: 20px;
            color: #09d1ea
        }
 
        .w40 {
            width: 37% !important;
        }
 
        .concet_style .div_co {
            display: inline-block;
            font-size: 16px;
            width: 15%;
            margin-bottom: 23px;
            color: #d5d5d6;
            vertical-align: top;
        }
 
        .plus_main {
            height: 980px;
            overflow: hidden;
        }
 
        .pw {
            position: relative;
        }
 
        .PA {
            position: absolute;
            top: 3px;
            right: -39px;
        }
 
        .plus_main li {
            margin-bottom: 20px;
 
 
        }
    </style>
    <script>
        var clear;//定义需要清除动画的部分
        var a;
        var num = 0;
        $(function () {
            Load();
            var time = 80;
            if (a != null) {//判断计时器是否为空
                clearInterval(a);
                a = null;
            }
            a = setInterval(function () {
                clearInterval(clear);
                $('#tb_order').bootstrapTable('refresh');
                Load();
            }, 60000);
        });
        function Load() {
            //查找本月任务数、本月完成数、累计任务数、累计完成数
            // $.ajax({
            //     url: 'http://172.16.72.3:86/DaLian/WorkOrderProgress2F',
            //     dataType: "JSON",
            //     type: "POST",
            //     async: true,//使用同步的方式,true为异步方式
            //     success: function (data) {
            //         $("#title-color1").html(data.list[0].MONTHSUM); //本日生产任务数
            //         $("#title-color2").html(data.list[0].MONTHCLOSESUM);  //本日完成数量
 
            //         var AA=0;
            //         var BB=0;
            //         //日达成率
 
            //         if (data.list[0].MONTHCLOSESUM == "0" || data.list[0].MONTHSUM == "0") {
            //             AA = 0;
            //         }
            //         else {
            //             AA = (data.list[0].MONTHCLOSESUM / data.list[0].MONTHSUM) * 100;
            //         }
 
            //         if (data.list[0].SUMCLOSE == "0" || data.list[0].SUM == "0") {
            //             BB = 0;
            //         }                
            //         else {
            //             BB = (data.list[0].SUMCLOSE / data.list[0].SUM) * 100;
            //         }
            //         $("#title-color3").html(AA.toFixed(2) + "%"); //日计划达成率
            //         $("#title-color4").html(BB.toFixed(2) + "%");   //周计划达成率
 
            //     },
            //     error: function (data) {
            //         //    $.iMessager.alert("提示", "" + data.messager + "", "messager-error");
            //     }
            // })
            num += 1;
            let dataJson = {
                limit: 2,
                offset: num
            }
            $.ajax({
                url: 'http://172.16.72.3:86/DaLian/WorkMonitor2F',
                data: dataJson,
                dataType: "JSON",
                type: "POST",
                async: true,//使用同步的方式,true为异步方式
                success: function (data) {
 
                    var num_total = (data.total) / 2
                    if (num >= num_total) {
                        num = 0
                    }
                    var time = 80;
                    var time1 = 800;
                    var liDiv = "";
                    liDiv += "<ul class='ul_top'>";
                    var data = data.rows
                    for (var i = 0; i < data.length; i++) {
                        liDiv += "<li>";
                        liDiv += "<div class='div_left'>";
                        liDiv += "<div class='mod_top'>";
                        liDiv += "<p class='flex_txt'>工单编号</p>"
                        liDiv += "<p class='mode_p'>" + data[i].WorkCode + "</p>"
                        liDiv += "</div>"
 
                        liDiv += "<div class='mod_bottom flex'>"
                        liDiv += "<div class='flex_p'>"
                        liDiv += "<div class='flex_txt'>产品名称</div>"
                        liDiv += "<div class='flex_name'>" + data[i].PartName + "</div>"
                        liDiv += "</div>"
 
                        liDiv += "<div class='flex_p'>"
                        liDiv += " <div class='flex_txt'>任务数量</div>"
                        liDiv += "<div class='flex_name'>" + data[i].WorkQty + "</div>"
                        liDiv += "</div>"
 
                        liDiv += "<div class='flex_p'>"
                        liDiv += " <div class='flex_txt'>计划开工</div>"
                        liDiv += "<div class='flex_name'>" + data[i].PlanStartDate + "</div>"
                        liDiv += "</div>"
 
                        liDiv += "<div class='flex_p'>"
                        liDiv += " <div class='flex_txt'>计划完工</div>"
                        liDiv += "<div class='flex_name'>" + data[i].PlanEndDate + "</div>"
                        liDiv += "</div>"
 
                        liDiv += "<div class='flex_p'>"
                        liDiv += " <div class='flex_txt'>实际开工</div>"
                        liDiv += "<div class='flex_name'>" + data[i].ActualStartDate + "</div>"
                        liDiv += "</div>"
 
                        liDiv += "<div class='flex_p'>"
                        liDiv += " <div class='flex_txt'>合格数量</div>"
                        liDiv += "<div class='flex_name'>" + data[i].GoodQty + "</div>"
                        liDiv += "</div>"
 
                        liDiv += "</div>"
 
                        liDiv += "<div class='flex_jd'>"
                        liDiv += "<div class='flex_txt'>生产进度</div>"
                        liDiv += "<div>"
                        liDiv += "<ul>"
                        liDiv += "<li></li>"
                        liDiv += "<li></li>"
                        liDiv += "<li></li>"
                        liDiv += "<li></li>"
                        liDiv += "<li></li>"
                        liDiv += "<li></li>"
                        liDiv += "<li></li>"
                        liDiv += "<li></li>"
                        liDiv += "<li></li>"
                        liDiv += "<li></li>"
                        liDiv += "<li></li>"
                        liDiv += "<li></li>"
                        liDiv += "<li></li>"
                        liDiv += "<li></li>"
                        liDiv += "<li></li>"
                        liDiv += "<li></li>"
                        liDiv += "<li></li>"
                        liDiv += "<li></li>"
                        liDiv += "<li></li>"
                        liDiv += "<li></li>"
                        liDiv += "<li></li>"
                        liDiv += "</ul>"
                        liDiv += "<div class='position_font'>" + ((data[i].WorkProgress) * 1).toFixed(0) + "%</div>"
                        liDiv += "<div class='progress position_s' style='margin-top:4px;'> <div class='progress-bar progress-diy-info position_color' role='progressbar' aria-valuenow='50' aria-valuemin='0' aria-valuemax='100' style='width:" + ((data[i].WorkProgress) * 1).toFixed(0) + "%;text-align:center;'></div></div>"
                        liDiv += "</div>"
                        liDiv += "</div>"
                        liDiv += "</div>"
                        liDiv += "<div class='div_right'>"
                        liDiv += "<ul class='title_style'>"
                        liDiv += "<li>工序名称</li>"
                        liDiv += "<li>实际开工</li>"
                        liDiv += "<li>合格数量</li>"
                        liDiv += "<li>执行状态</li>"
                        liDiv += "<li class='w40'>生产进度</li>"
                        liDiv += "</ul>"
                        liDiv += "<div class='hd'>"
                        liDiv += "<ul class='concet_style'>"
                        for (var j = 0; j < data[i].children.length; j++) {
                            liDiv += "<li>"
                            liDiv += "<div class='div_co'>" + data[i].children[j].SubStepName + "</div>"
                            liDiv += "<div class='div_co'>" + data[i].children[j].SubActualStartDate + "</div>"
                            liDiv += "<div class='div_co'>" + data[i].children[j].SubGoodQty + "</div>"
                            liDiv += "<div class='div_co'>" + data[i].children[j].SubStus + "</div>"
                            //liDiv+="<div class='w40 div_co'><div class='progress'    style='margin-top:4px;'><div class='progress-bar progress-diy-info' role='progressbar' aria-valuenow='50' aria-valuemin='0' aria-valuemax='100' style='width:150%;'><span class='sr-only'>150% 完成</span></div></div></div>"
                            liDiv += "<div class='w40 div_co pw'><div class='PA' style='text-align:right;color:#4b2dba;'>" + ((data[i].children[j].SubWorkProgress) * 1).toFixed(0) + "%</div><div class='progress' style='margin-top:4px;'><div class='progress-bar progress-diy-info' role='progressbar' aria-valuenow='50' aria-valuemin='0' aria-valuemax='100' style='width:" + ((data[i].children[j].SubWorkProgress) * 1).toFixed(0) + "%;text-align:center;'></div></div></div>"
                            liDiv += "</li>"
                        }
                        liDiv += "</ul>"
                        liDiv += "</div>"
                        liDiv += "</div>"
                        liDiv += "</li>"
 
 
                    }
 
                    $('.plus_main').html('')
                    $('.plus_main').append(liDiv)
                    $(".div_right").slide({ mainCell: ".hd ul", autoPlay: true, effect: "topMarquee", opp: false, vis: 6, interTime: time, mouseOverStop: false });
                }
            })
        }
    </script>
</head>
 
<body>
    <div id='main_box'>
        <!-- 上部分 -->
        <!-- <div class='flex m15'>
            <div class='flex_span'>
                <span class='flex_txt'>今日任务</span><span class='color_span' id="title-color1"></span>
            </div>
            <div class='flex_span'>
                <span class='flex_txt'>当前完成</span><span class='color_span' id="title-color2"></span>
            </div>
            <div class='flex_span'>
                <span class='flex_txt'>日生产进度</span><span class='color_span' id="title-color3"></span>
            </div>
            <div class='flex_span'>
                <span class='flex_txt'>周生产进度</span><span class='color_span' id="title-color4"></span>
            </div>
 
        </div> -->
        <!-- 标题 -->
        <p class=title_t>工单执行监控</p>
        <div class='list_style'>
            <div class='bd plus_main'>
            </div>
        </div>
 
    </div>
    </div>
</body>
 
</html>