ouyangqing
2021-01-13 d2f7c817ba202a1758e50ac5bca44594cdc8466d
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
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" style="background-color:white;">
<head>
    <meta http-equiv="Content-Type" content="text/html; 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="../../layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../layuiadmin/style/admin.css" media="all">
    <style>
        .layui-form-label {
            font-size: 14px;
            width: 85px;
            text-align: inherit;
        }
    </style>
</head>
<body>
    <div class="layui-fluid">
        <div class="layui-card">
            <!--<div class="layui-card-header"></div>-->
            <div class="layui-card-body" style="padding: 15px;">
                <form class="layui-form" action="" lay-filter="component-form-group">
                    <div class="layui-form-item" style="margin-bottom: 20px;">
                        <button type="button" lay-submit="" lay-filter="HAddBT" class="layui-btn layui-btn-radius">新增</button>
                        <!--<button type="button" lay-submit="" lay-filter="Saver" class="layui-btn layui-btn-radius">清空</button>-->
                        <!--<button type="button" lay-submit="" lay-filter="Saver" class="layui-btn layui-btn-radius">品质判断</button>-->
                        <button type="button" lay-submit="" lay-filter="Refresh" class="layui-btn layui-btn-radius">保存</button>
                        <button type="button" lay-submit="" lay-filter="Close" class="layui-btn layui-btn-radius layui-btn-danger">退出</button>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-row" style="padding:10px 0">
                            <div class="layui-col-xs3 layui-inline">
                                <fieldset class="layui-elem-field layui-field-title" style="text-align:center;">
                                    <legend>工序出站汇报单</legend>
                                </fieldset>
                            </div>
                            <div class="layui-col-xs1 layui-inline">
                                <img src="222.jpg" style="width:70%;height:50%;" />
                            </div>
                            <div class="layui-inline">
                                <div class="">
                                    <label class="layui-inline" style="width:60px;">条形码</label>
                                    <div class="layui-inline">
                                        <input type="text" style="border-radius: 50px;width:254%" name="条形码" id="HFbarcode" lay-verify="HFbarcode" autocomplete="off" placeholder="请输入条形码" class="layui-input">
                                    </div>
                                </div>
                                <div class="">
                                    <label class="layui-inline" style="width:60px;">流水号</label>
                                    <div class="layui-inline">
                                        <input type="text" style="border-radius: 50px;" name="流水号" id="Serial_number" lay-verify="Serial_number" autocomplete="off" placeholder="请输入流水号" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-inline" style="width:60px;">合格数量</label>
                                    <div class="layui-inline">
                                        <input type="text" style="border-radius: 50px;" name="合格数量" id="QualifiedQuantity" lay-verify="sQty" autocomplete="off" placeholder="请输入流水号" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-inline" style="width:60px;">报废数量</label>
                                    <div class="layui-inline">
                                        <input type="text" style="border-radius: 50px;" name="报废数量" id="ScrapQuantity" lay-verify="HBarCode" autocomplete="off" placeholder="请输入进站数量" class="layui-input">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
 
                    <!--出站信息&其他信息-->
                    <div class="layui-form-item">
                        <div class="layui-col-md8 layui-card-body layui-inline">
                            <div class="layui-tab">
                                <ul class="layui-tab-title" lay-filter="tab-all">
                                    <li data-status="" class="layui-this">出站信息</li>
                                    <li data-status="2">其他信息</li>
                                </ul>
                                <div class="layui-tab-content">
                                    <div class="layui-tab-item layui-show" style="height:250px;">
                                        <table>
                                            <tbody>
                                                <tr>
                                                    <th style="width:80px;padding:10px">流转卡号</th>
                                                    <td>
                                                        <input type="text" name="流转卡号" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="流转卡号号" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                    <th style="width:90px;padding:10px">汇报时间</th>
                                                    <td>
                                                        <input type="text" class="layui-input" id="HDateNow" style="background-color:#efefef4d;width:120px" readonly>
                                                    </td>
                                                    <th style="width:80px;padding:10px">生产订单号</th>
                                                    <td>
                                                        <input type="text" name="生产订单号" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="进站时间" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th style="width:80px;padding:10px">产品代码</th>
                                                    <td>
                                                        <input type="text" name="产品代码" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="产品代码" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                    <th style="width:80px;padding:10px">产品名称</th>
                                                    <td>
                                                        <input type="text" name="产品名称" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="产品名称" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                    <th style="width:80px;padding:10px">规格型号</th>
                                                    <td>
                                                        <input type="text" name="规格型号" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="规格型号" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th style="width:80px;padding:10px">计量单位</th>
                                                    <td>
                                                        <input type="text" name="计量单位" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="计量单位" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                    <th style="width:80px;padding:10px">产品类型</th>
                                                    <td>
                                                        <input type="text" name="产品类型" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="产品类型" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                    <th style="width:80px;padding:10px">汇报类型</th>
                                                    <td>
                                                        <input type="text" name="汇报类型" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="汇报类型" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th style="width:80px;padding:10px">流转卡数量</th>
                                                    <td>
                                                        <input type="text" name="流转卡数量" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="流转卡数量" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                    <th style="width:80px;padding:10px">生产订单数量</th>
                                                    <td>
                                                        <input type="text" name="生产订单数量" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="生产订单数量" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                    <th style="width:80px;padding:10px">单据号</th>
                                                    <td>
                                                        <input type="text" name="单据号" id="HBillNo2" lay-verify="HBillNo2" autocomplete="off" placeholder="单据号" class="layui-input" style="background-color:#efefef4d" readonly>
                                                        <input type="hidden" name="单据号ID" id="HInterID" lay-verify="HInterID">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th style="width:80px;padding:10px">订单跟踪号</th>
                                                    <td>
                                                        <input type="text" name="订单跟踪号" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="订单跟踪号" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th style="width:80px;padding:10px">操作员2</th>
                                                    <td>
                                                        <input type="text" name="操作员2" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="操作员2" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                    <th style="width:80px;padding:10px">操作员3</th>
                                                    <td>
                                                        <input type="text" name="操作员3" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="操作员3" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                    <th style="width:80px;padding:10px">操作员4</th>
                                                    <td>
                                                        <input type="text" name="操作员4" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="操作员4" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th style="width:80px;padding:10px">操作员5</th>
                                                    <td>
                                                        <input type="text" name="操作员5" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="操作员5" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                    <div class="layui-tab-item" style="height:250px;">
                                        <table>
                                            <tbody>
                                                <tr>
                                                    <th style="width:80px;padding:10px">制单人</th>
                                                    <td>
                                                        <input type="text" name="制单人" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="制单人" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                    <th style="width:80px;padding:10px">制单日期</th>
                                                    <td>
                                                        <input type="text" name="制单日期" class="layui-input" id="HDateNow" placeholder="制单日期" style="background-color:#efefef4d;" readonly>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th style="width:80px;padding:10px">修改人</th>
                                                    <td>
                                                        <input type="text" name="修改人" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="修改人" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                    <th style="width:80px;padding:10px">修改日期</th>
                                                    <td>
                                                        <input type="text" name="修改日期" class="layui-input" id="HDateNow" placeholder="修改日期" style="background-color:#efefef4d;" readonly>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th style="width:80px;padding:10px">审核人</th>
                                                    <td>
                                                        <input type="text" name="审核人" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="审核人" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                    <th style="width:80px;padding:10px">审核日期</th>
                                                    <td>
                                                        <input type="text" name="审核日期" class="layui-input" id="HDateNow" placeholder="审核日期" style="background-color:#efefef4d;" readonly>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th style="width:80px;padding:10px"></th>
                                                    <td></td>
                                                </tr>
                                                <tr>
                                                    <th style="width:80px;padding:10px">进站PNL数</th>
                                                    <td>
                                                        <input type="text" name="进站PNL数" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="进站PNL数" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                    <th style="width:80px;padding:10px">进站PSC数</th>
                                                    <td>
                                                        <input type="text" name="进站PSC数" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="进站PSC数" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th style="width:80px;padding:10px">报废PNL数</th>
                                                    <td>
                                                        <input type="text" name="报废PNL数" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="报废PNL数" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                    <th style="width:80px;padding:10px">机台</th>
                                                    <td>
                                                        <input type="text" name="机台" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="机台" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th style="width:80px;padding:10px">折弯刀数</th>
                                                    <td>
                                                        <input type="text" name="折弯刀数" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="折弯刀数" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                    <th style="width:80px;padding:10px">品质确认人</th>
                                                    <td>
                                                        <input type="text" name="品质确认人" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="品质确认人" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th style="width:80px;padding:10px">NCT冲次数</th>
                                                    <td>
                                                        <input type="text" name="NCT冲次数" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="NCT冲次数" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                    <th style="width:80px;padding:10px">NCT单次</th>
                                                    <td>
                                                        <input type="text" name="NCT单次" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="NCT单次" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th style="width:80px;padding:10px">移交PNL数</th>
                                                    <td>
                                                        <input type="text" name="移交PNL数" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="移交PNL数" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                    <th style="width:80px;padding:10px">系数</th>
                                                    <td>
                                                        <input type="text" name="系数" id="HBillNo" lay-verify="HBillNo" autocomplete="off" placeholder="系数" class="layui-input" style="background-color:#efefef4d" readonly>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!--本站信息-->
                        <div class="layui-inline" style="padding-left:5px;border:1px solid #e6e6e6;width:28%">
                            <div class="layui-row">
                                <div class="layui-col-xs4">
                                    <label class="layui-form-label">本站信息</label>
                                </div>
                            </div>
                            <div class="layui-row">
                                <div class="layui-col-xs3">
                                    <label class="layui-form-label" style="width:60px;padding-left:0px;">当前工序</label>
                                </div>
                                <div class="layui-col-xs6">
                                    <input type="text" name="当前工序" id="HWorkShopName" lay-verify="HWorkShopName" autocomplete="off" placeholder="选择当前工序" class="layui-input" style="background-color:#efefef4d" readonly>
                                    <input type="hidden" name="当前工序代码" id="HWorkShopID" lay-verify="HWorkShopID" value="0" autocomplete="off" class="layui-input">
                                </div>
                                <div class="">
                                    <button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="HWorkShop-BT">...</button>
                                </div>
                            </div>
                            <div class="layui-row">
                                <div class="layui-col-xs3">
                                    <label class="layui-form-label" style="width:60px;padding-left:0px;">工作中心</label>
                                </div>
                                <div class="layui-col-xs6">
                                    <input type="text" name="工作中心" id="HProcName" lay-verify="HProcName" autocomplete="off" placeholder="选择工作中心" class="layui-input" style="background-color:#efefef4d" readonly>
                                    <input type="hidden" name="工作中心代码" id="HProcID" lay-verify="HProcID" value="0" autocomplete="off" class="layui-input">
                                </div>
                                <div class="">
                                    <button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="HWorkingProcedure-BT">...</button>
                                </div>
                            </div>
                            <div class="layui-row">
                                <div class="layui-col-xs3">
                                    <label class="layui-form-label" style="width:60px;padding-left:0px;">生产车间</label>
                                </div>
                                <div class="layui-col-xs6">
                                    <input type="text" name="生产车间" id="HScOrgName" lay-verify="HScOrgName" autocomplete="off" placeholder="选择生产车间" class="layui-input" style="background-color:#efefef4d" readonly>
                                    <input type="hidden" name="生产车间代码" id="HScOrgID" lay-verify="HScOrgID" value="0" autocomplete="off" class="layui-input">
                                </div>
                                <div class="">
                                    <button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="HOrganization-BT">...</button>
                                </div>
                            </div>
                            <div class="layui-row">
                                <div class="layui-col-xs3">
                                    <label class="layui-form-label" style="width:60px;padding-left:0px;">生产组织</label>
                                </div>
                                <div class="layui-col-xs6">
                                    <input type="text" name="生产组织" id="HOrganization" lay-verify="HOrganization" autocomplete="off" placeholder="选择生产组织" class="layui-input" style="background-color:#efefef4d" readonly>
                                    <input type="hidden" name="生产组织代码" id="HOrganizationID" lay-verify="HOrganizationID" value="0" autocomplete="off" class="layui-input">
                                </div>
                                <div class="">
                                    <button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="HOrganization-BT">...</button>
                                </div>
                            </div>
                            <div class="layui-row">
                                <div class="layui-col-xs3">
                                    <label class="layui-form-label" style="width:60px;padding-left:0px;">操作员</label>
                                </div>
                                <div class="layui-col-xs6">
                                    <input type="text" name="操作员" id="Operator" lay-verify="Operator" autocomplete="off" placeholder="选择操作员" class="layui-input" style="background-color:#efefef4d" readonly>
                                    <input type="hidden" name="操作员代码" id="OperatorID" lay-verify="OperatorID" value="0" autocomplete="off" class="layui-input">
                                </div>
                                <div class="">
                                    <button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="Operator-BT">...</button>
                                </div>
                            </div>
                            <div class="layui-row">
                                <div class="layui-col-xs3">
                                    <label class="layui-form-label" style="width:60px;padding-left:0px;">生产班组</label>
                                </div>
                                <div class="layui-col-xs6">
                                    <input type="text" name="生产班组" id="HOperatorName" lay-verify="HOperatorName" autocomplete="off" placeholder="选择生产班组" class="layui-input" style="background-color:#efefef4d" readonly>
                                    <input type="hidden" name="生产班组代码" id="HOperatorID" lay-verify="HOperatorID" value="0" autocomplete="off" class="layui-input">
                                </div>
                                <div class="">
                                    <button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="HOperator-BT">...</button>
                                </div>
                            </div>
                            <div class="layui-row">
                                <div class="layui-col-xs3">
                                    <label class="layui-form-label" style="width:60px;padding-left:0px;">生产资源</label>
                                </div>
                                <div class="layui-col-xs6">
                                    <input type="text" name="生产资源" id="HOperatorName" lay-verify="HOperatorName" autocomplete="off" placeholder="选择生产资源" class="layui-input" style="background-color:#efefef4d" readonly>
                                    <input type="hidden" name="生产资源代码" id="HOperatorID" lay-verify="HOperatorID" value="0" autocomplete="off" class="layui-input">
                                </div>
                                <div class="">
                                    <button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="HOperator-BT">...</button>
                                </div>
                            </div>
                            <div class="layui-row">
                                <div class="layui-col-xs3">
                                    <label class="layui-form-label" style="width:60px;padding-left:0px;">核算工序</label>
                                </div>
                                <div class="layui-col-xs6">
                                    <input type="text" name="核算工序" id="HOperatorName" lay-verify="HOperatorName" autocomplete="off" placeholder="选择核算工序" class="layui-input" style="background-color:#efefef4d" readonly>
                                    <input type="hidden" name="核算工序代码" id="HOperatorID" lay-verify="HOperatorID" value="0" autocomplete="off" class="layui-input">
                                </div>
                                <div class="">
                                    <button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="HOperator-BT">...</button>
                                </div>
                            </div>
                            <div class="layui-row">
                                <div class="layui-col-xs3">
                                    <label class="layui-form-label" style="width:60px;padding-left:0px;">检验员</label>
                                </div>
                                <div class="layui-col-xs6">
                                    <input type="text" name="检验员" id="HOperatorName" lay-verify="HOperatorName" autocomplete="off" placeholder="选择检验员" class="layui-input" style="background-color:#efefef4d" readonly>
                                    <input type="hidden" name="检验员代码" id="HOperatorID" lay-verify="HOperatorID" value="0" autocomplete="off" class="layui-input">
                                </div>
                                <div class="">
                                    <button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="HOperator-BT">...</button>
                                </div>
                            </div>
                            <div class="layui-row">
                                <div class="layui-col-xs3">
                                    <label class="layui-form-label" style="width:60px;padding-left:0px;">工时</label>
                                </div>
                                <div class="layui-col-xs6">
                                    <input type="text" name="HOperatorName" id="HOperatorName" lay-verify="HOperatorName" autocomplete="off" placeholder="选择工时" class="layui-input" style="background-color:#efefef4d" readonly>
                                    <input type="hidden" name="HOperatorID" id="HOperatorID" lay-verify="HOperatorID" value="0" autocomplete="off" class="layui-input">
                                </div>
                                <div class="">
                                    <button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="HOperator-BT">...</button>
                                </div>
                            </div>
                            <div class="layui-row">
                                <div class="layui-col-xs3">
                                    <label class="layui-form-label" style="width:60px;padding-left:0px;">设备清单</label>
                                </div>
                                <div class="layui-col-xs6">
                                    <input type="text" name="HOperatorName" id="HOperatorName" lay-verify="HOperatorName" autocomplete="off" placeholder="选择设备清单" class="layui-input" style="background-color:#efefef4d" readonly>
                                    <input type="hidden" name="HOperatorID" id="HOperatorID" lay-verify="HOperatorID" value="0" autocomplete="off" class="layui-input">
                                </div>
                                <div class="">
                                    <button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="HOperator-BT">...</button>
                                </div>
                            </div>
                            <div class="layui-row">
                                <div class="layui-col-xs3">
                                    <label class="layui-form-label" style="width:60px;padding-left:0px;">模穴号</label>
                                </div>
                                <div class="layui-col-xs6">
                                    <input type="text" name="HOperatorName" id="HOperatorName" lay-verify="HOperatorName" autocomplete="off" placeholder="选择模穴号" class="layui-input" style="background-color:#efefef4d" readonly>
                                    <input type="hidden" name="HOperatorID" id="HOperatorID" lay-verify="HOperatorID" value="0" autocomplete="off" class="layui-input">
                                </div>
                                <div class="">
                                    <button type="button" lay-submit="" class="layui-btn layui-col-xs2" lay-filter="HOperator-BT">...</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--待出站工单&今日出站-->
                    <div class="layui-card">
                        <div class="layui-card-body">
                            <div class="layui-tab">
                                <ul class="layui-tab-title" lay-filter="tab-all">
                                    <li data-status="" class="layui-this">待出站工单</li>
                                    <li data-status="2">今日出站</li>
                                </ul>
                                <div class="layui-tab-content">
                                    <div class="layui-tab-item layui-show">
                                        <div class="layui-row">
                                            <div class="layui-col-xs12">
                                                <table class="layui-hide" id="djs-table" lay-filter="djs-table"></table>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-tab-item">
                                        <div class="layui-row">
                                            <div class="layui-col-xs12">
                                                <table class="layui-hide" id="jr-table" lay-filter="jr-table"></table>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
        </div>
    
 
    <script src="../../layuiadmin/layui/layui.js"></script>
    <script src="../../layuiadmin/Scripts/json2.js" type="text/javascript"></script>
    <script src="../../layuiadmin/Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="../../layuiadmin/Scripts/webConfig.js"></script>
    <script type="text/html" id="wl-BT">
        <a class="layui-btn layui-btn-xs HEdit" lay-event="DeleteOne">删除</a>
    </script>
    <script>
 
        function getUrlVars() {
            var vars = [], hash;
            var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
            for (var i = 0; i < hashes.length; i++) {
                hash = hashes[i].split('=');
                vars.push(hash[0]);
                vars[hash[0]] = hash[1];
            }
            return vars;
        }
        var params = getUrlVars();
        var BillStatusjson = params[params[0]];
        var InterID = params[params[1]];
 
        layui.config({
            base: '../../layuiadmin/' //静态资源所在路径
        }).extend({
            index: 'lib/index' //主入口模块
        }).use(['index', 'form', 'laydate', 'table', 'element'], function () {
            var $ = layui.$
            , admin = layui.admin
            , element = layui.element
            , layer = layui.layer
            , laydate = layui.laydate
            , table = layui.table
            , form = layui.form;
 
            //获取当前时间处理
            var data = new Date();
            var year = data.getFullYear();  //获取年
            var month = data.getMonth() + 1;    //获取月
            var day = data.getDate(); //获取日
            var time = year + "-" + month + "-" + day;
 
            //页面初始化赋值
            //获取单据号
            $.ajax({
                url: GetWEBURL() + "/Web/GetMAXNum",
                type: "GET",
                data: { "HBillType": '3791' },
                success: function (d) {
                    $("#HInterID").val(d.data[0].HInterID); 
                    $("#HBillNo2").val(d.data[0].HBillNo);
                }, error: function () {
                    layer.alert("获取单据号失败!", { icon: 5 });
                }
            });
 
            $("#HDateNow").val(time);//加载当前时间
 
            $("#HFbarcode").focus();
            $("#HFbarcode").css("box-shadow", "0 0 0 1px #00ff00");
            $("#Serial_number").attr("readonly", "readonly");//流水号只读
            $("#Serial_number").css("background-color", "#efefef4d");
            $("#QualifiedQuantity").attr("readonly", "readonly");//合格数量只读
            $("#QualifiedQuantity").css("background-color", "#efefef4d");
            $("#ScrapQuantity").attr("readonly", "readonly");//报废数量只读
            $("#ScrapQuantity").css("background-color", "#efefef4d");
 
            //扫条形码方法
            $('#HFbarcode').on('keydown', function (event) {   //扫条形码
                var HFbarcode = $('#HFbarcode').val();
                if (event.keyCode == 13) {
                    //判断文本框是否有数据    new
                    if (HFbarcode == "") {
                        layer.alert("条形码为空!", { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
                        return;
                    }
                    //
                    $.ajax({
                        url: GetWEBURL() + "/LEMS/TxtHBarCode_KeyDown",
                        type: "GET",
                        data: {
                            "sBillBarCode": HFbarcode
                        },
                        success: function (result) {
                            var data = result.data;
                            if (result.count == 1) { // 说明验证成功了,
                                form.val("component-form-group", { //formTest 即 class="layui-form" 所在元素属性 lay-filter="" 对应的值
                                    "订单跟踪号": data[0].订单跟踪号
                                    , "产品代码": data[0].产品代码
                                    , "产品名称": data[0].产品
                                    , "规格型号": data[0].规格型号
                                    , "流转卡数量": data[0].流转卡数量
                                    , "制单人": data[0].制单人
                                    , "制单日期": data[0].制单日期
                                    , "修改人": data[0].修改人
                                    , "修改日期": data[0].修改日期
                                    , "审核人": data[0].审核人
                                    , "审核日期": data[0].审核日期
                                    , "生产订单号": data[0].源单单号
                                    , "生产订单数量": data[0].生产数量
                                    , "流转卡号": $("#HFbarcode").val()
                                });
                                $("#HFbarcode").attr("readonly", "readonly");//条形码只读
                                $("#HFbarcode").css("background-color", "#efefef4d");
                                $("#HFbarcode").css("box-shadow", "none");
                                $("#Serial_number").removeAttr("readonly");//移除流水号只读
                                $("#Serial_number").css("background-color", "white");
                                $("#Serial_number").focus();
                                $("#Serial_number").css("box-shadow", "0 0 0 1px #00ff00");
                            } else {
                                // $("#verifycode").click();
                                //layer.msg(result.Message, { icon: 5 });
                                layer.alert(result.Message, { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
                            }
                        }, error: function () {
                            layer.alert("扫条形码方法发生错误!", { icon: 5 });
                        }
                    });
                    // layer.msg($('#HFbarcode').val(), { icon: 1 });
                }
            });
 
            //流水号回车方法
            $('#Serial_number').on('keydown', function (event) {   //扫条形码
                var sProcNo = $('#Serial_number').val();
                var sBillNo = $('#HBillNo').val();
                if (event.keyCode == 13) {
                    if (sProcNo == "" || sBillNo == "") {
                        layer.alert("流水号或流转卡号为空!", { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
                        return;
                    }
                    $.ajax({
                        url: GetWEBURL() + "/LEMS/TxtHProcNo_KeyDown",
                        type: "GET",
                        data: {
                            "sProcNo": sProcNo
                            , "sBillNo": sBillNo
                        },
                        success: function (result) {
                            var data = result.data;
                            if (result.count == 1) { // 说明验证成功了,
                                form.val("component-form-group", { //formTest 即 class="layui-form" 所在元素属性 lay-filter="" 对应的值
                                    "订单跟踪号": data[0].订单跟踪号
                                    , "产品代码": data[0].产品代码
                                    , "产品名称": data[0].产品
                                    , "规格型号": data[0].规格型号
                                    , "流转卡数量": data[0].流转卡数量
                                    , "工作中心": data[0].工作中心
                                    , "工作中心代码": data[0].工作中心代码
                                    , "当前工序": data[0].工序
                                    , "当前工序代码": data[0].工序代码
                                    , "生产车间": data[0].生产车间
                                    , "生产车间代码": data[0].生产车间代码
                                    , "操作员": data[0].操作工
                                    , "操作员代码": data[0].操作工代码
                                    , "生产班组": data[0].班组
                                    , "生产班组代码": data[0].班组代码
                                    , "生产资源": data[0].生产资源
                                    , "生产资源代码": data[0].生产资源代码
                                    , "制单人": data[0].制单人
                                    , "制单日期": data[0].制单日期
                                    , "修改人": data[0].修改人
                                    , "修改日期": data[0].修改日期
                                    , "审核人": data[0].审核人
                                    , "审核日期": data[0].审核日期
                                    , "生产订单号": data[0].源单单号
                                    , "生产订单数量": data[0].生产数量
                                    , "流转卡号": $("#HFbarcode").val()
                                });
                                $("#Serial_number").attr("readonly", "readonly");//流水号只读
                                $("#Serial_number").css("background-color", "#efefef4d");
                                $("#Serial_number").css("box-shadow", "none");
                                $("#QualifiedQuantity").removeAttr("readonly");//移除合格数量只读
                                $("#QualifiedQuantity").css("background-color", "white");
                                $("#QualifiedQuantity").focus();
                                $("#QualifiedQuantity").css("box-shadow", "0 0 0 1px #00ff00");
                            } else {
                                // $("#verifycode").click();
                                //layer.msg(result.Message, { icon: 5 });
                                layer.alert(result.Message, { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
                            }
                        }, error: function () {
                            layer.alert("流水号方法发生错误!", { icon: 5 });
                        }
                    });
                }
            });
 
            //合格数量回车方法
            $('#QualifiedQuantity').on('keydown', function (event) {
                if (event.keyCode == 13) {
                    $("#QualifiedQuantity").attr("readonly", "readonly");//合格数量只读
                    $("#QualifiedQuantity").css("background-color", "#efefef4d");
                    $("#QualifiedQuantity").css("box-shadow", "none");
                    $("#ScrapQuantity").removeAttr("readonly");//移除报废数量只读
                    $("#ScrapQuantity").focus();
                    $("#ScrapQuantity").css("box-shadow", "0 0 0 1px #00ff00");
                }
            });
 
            //报废数量回车方法
            $('#ScrapQuantity').on('keydown', function (event) {
                if (event.keyCode == 13) {
                    $("#ScrapQuantity").attr("readonly", "readonly");//报废数量只读
                    $("#ScrapQuantity").css("background-color", "#efefef4d");
                    $("#ScrapQuantity").css("box-shadow", "none");
                    if ($("#Operator").val()) {
                        $("#Operator").css("box-shadow", "none");
                    } else {
                        $("#Operator").css("box-shadow", "1px 1px 1px 2px #00ff00");
                    }
                }
            });
 
            //选择操作员弹窗
            form.on('submit(Operator-BT)', function () {//选择仓位
                layer.open({
                    type: 2
                    , area: ['60%', '60%']
                    , title: '本站工序'
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../Baseset/基础资料/Gy_EmployeeList.html?Type=HWorker', 'yes']
                    , resize: false
                    , cancel: function () {
                        //$(".layui-btn").removeClass("layui-btn-disabled");
                    }
                })
            });
 
            //选择生产组织弹窗
            form.on('submit(HOrganization-BT)', function () {//选择生产组织
                layer.open({
                    type: 2
                    , area: ['60%', '60%']
                    , title: '生产组织'
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../Baseset/基础资料/Gy_OrgList.html', 'yes']
                    , resize: false
                    , cancel: function () {
                        //$(".layui-btn").removeClass("layui-btn-disabled");
                    }
                })
            });
 
            //退出按钮
            form.on('submit(Close)', function (data) {//退出
                layer.confirm('您确定要关闭本页吗?', { icon: 3, title: '提示' }, function (index) {
                    parent.layui.admin.events.closeThisTabs();
                });
            });
 
 
 
 
 
 
 
 
 
            //待接收工单页签
            table.render({
                elem: '#djs-table'
                , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                , cols: [[
                    { field: 'HInterID', title: '序号' }
                    , { field: 'HBillNo', title: '状态', sort: true }
                    , { field: 'HMaker', title: '生产订单' }
                    , { field: 'HMakeDate', title: '计划日期' }
                    , { field: 'HQty', title: '物料编码' }
                    , { field: 'HSourceBillNo', title: '物料名称' }
                    , { field: 'HRedBlueFlag', title: '规格型号' }
                    , { field: 'HSourceBillType', title: '计划数量' }
                    , { field: 'HSourceBillType', title: '已汇报数量' }
                    , { field: 'HSourceBillType', title: '已入库数量' }
                ]]
                , height: 300
                , done: function () {
                    layer.closeAll("loading");
                }
            });
 
            //今日进站页签
            table.render({
                elem: '#jr-table'
                , url: GetWEBURL1() + '/Web/DisBillEntryList_Mate_Webs_Json'
                , cellMinWidth: 100
                , cols: [[
                    { field: 'HInterID', title: '序号',width:80 }
                    , { field: 'HBillNo', title: '汇报日期', width: 110, sort: true }
                    , { field: 'HMaker', title: '生产汇报单号' }
                    , { field: 'HMakeDate', title: '生产订单号' }
                    , { field: 'HQty', title: '物料编码' }
                    , { field: 'HSourceBillNo', title: '物料名称' }
                    , { field: 'HRedBlueFlag', title: '规格型号' }
                    , { field: 'HSourceBillType', title: '计划数量' }
                    , { field: 'HSourceBillType', title: '汇报数量' }
                    , { field: 'HSourceBillType', title: '制单人' }
                    , { field: 'HSourceBillType', title: '制单日期' }
                ]]
                , height: 300
                , done: function () {
                    layer.closeAll("loading");
                }
            });
            
 
 
 
 
 
 
 
 
 
        });
 
 
        function GetOrgValue(obj)  //返回生产组织
        {
            $("#HOrganization").val(obj[0].HName);
            $("#HOrganizationID").val(obj[0].HNumber);
        }
 
        function GetHWorkerValue(obj)  //返回操作员
        {
            $("#Operator").val(obj[0].HName);
            $("#OperatorID").val(obj[0].HItemID);
        }
        //function GetHDeptNameValue(obj)  //返回部门
        //{
        //    $("#HDeptName").val(obj[0].HName);
        //    $("#HDeptID").val(obj[0].HItemID);
        //}
 
 
    </script>
</body>
</html>