CZT
2023-07-04 804bea41b340cb04ac57e8fbdeb2d54938a80a5a
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
<!DOCTYPE html>
<html lang="zh-cn" xmlns:th=http://www.thymeleaf.org>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport"
          content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="renderer" content="webkit">
    <title>出入库管理-扦样质检</title>
 
    <link rel="stylesheet" type="text/css"
          th:href="@{../../static/plugins/layui/css/layui.css?v=2.5.5}">
    <link rel="stylesheet" type="text/css"
          th:href="@{../../static/admin/inout/style.css}">
 
    <style type="text/css">
        .qyzj-tabBox {
            margin-top: 0px !important;
            overflow: hidden;
            width: 100%;
        }
 
        #layui-table-page1 {
            text-align: right !important;
        }
 
        .display-none {
            display: none;
        }
 
        .control-btn {
            height: 35px;
            line-height: 30px;
            background-color: #f67d06;
        }
 
        .tip-red {
            text-align: right;
            padding-left: 40px;
            font-size: 16px;
            color: red;
            font-weight: bold;
        }
 
        thead span {
            font-weight: bold
        }
 
        #label1, #label4, #label5 {
            color: red;
        }
 
        .layui-select-disabled .layui-disabled {
            color: #000 !important;
        }
 
        .layui-table td {
            font-weight: bold;
        }
 
        .rk-step-wrap {
            padding: 0px;
            border-bottom: 0px;
            text-align: center;
        }
 
        .qyzj-btnbox {
            margin-top: 10px;
        }
 
        .qyzj-btnbox .rkbk-quick {
            margin-top: 13px;
        }
 
        .qyzj-con {
            margin-top: 10px;
            background: #dee6ec;
        }
 
        .rkbk-search-input {
            background: #FFF !important;
        }
 
        .rkbk-search-input.bg-date {
            background: #FFF !important;
        }
 
        thead span {
            font-weight: bold
        }
 
        .red {
            color: red;
            font-weight: bold;
        }
 
        .layui-select-disabled .layui-disabled {
            color: #000 !important;
        }
 
        .layui-table td {
            font-weight: bold;
        }
 
        .layui-elem-quote {
            padding: 10px;
            color: blue;
            margin-bottom: unset;
        }
 
        .input_ba {
            background: #e7eaec !important;
        }
        .layui-layer-btn .layui-layer-btn1 {
            border-color: #53adce;
            background-color: #53adce;
            color: #fff;
        }
    </style>
 
</head>
 
<body>
<div class="l-container layui-clear">
    <div class="rk-main">
 
        <div class="qyzj-btnbox layui-clear">
 
            <div class="rkbk-quick fl">
                <button type="button" class="rkbk-quick-btn layui-btn btn-violet" onclick="showScanCode()">
                    <i><img th:src="@{../../static/images/icon-hyd.png}"/></i>扫码录入
                </button>
<!--                <button type="button" class="rkbk-quick-btn layui-btn btn-violet"-->
<!--                        onclick="checkExe('big')">-->
<!--                    <i><img th:src="@{../../static/images/icon-hyd.png}"/></i>大车扦样-->
<!--                </button>-->
 
<!--                <button type="button" class="rkbk-quick-btn layui-btn btn-violet"-->
<!--                        onclick="checkExe('small')">-->
<!--                    <i><img th:src="@{../../static/images/icon-hyd.png}"/></i>小车扦样-->
<!--                </button>-->
 
<!--                <button class="rkbk-quick-btn layui-btn btn-blue"-->
<!--                        onclick="checkReset()">-->
<!--                    <i><img th:src="@{../../static/images/icon-fuwei.png}"/></i>扦样复位-->
<!--                </button>-->
 
<!--                <button class="rkbk-quick-btn layui-btn btn-red"-->
<!--                        onclick="checkStop()">-->
<!--                    <i><img th:src="@{../../static/images/icon-stop.png}"/></i>扦样急停-->
<!--                </button>-->
<!--                <button class="rkbk-quick-btn layui-btn btn-blue"-->
<!--                        onclick="checkResetStop()">-->
<!--                    <i><img th:src="@{../../static/images/icon-fuwei.png}"/></i>急停复位-->
<!--                </button>-->
            </div>
 
            <!--流程引导-->
            <div class="rk-step-wrap fr">
                <ul class="rk-step">
                    <li id="progress-register" class="active rk-step-first">
                        <span class="rk-step-span">
                            <img th:src="@{../../static/images/icon-dengji.png}"/>
                        </span>
                        <p>入库登记</p>
                    </li>
                    <li id="progress-check" class="active">
                        <span class="rk-step-span">
                            <img th:src="@{../../static/images/icon-zhijian.png}"/>
                        </span>
                        <p>扦样质检</p>
                    </li>
                    <li id="progress-fullWeight">
                        <span class="rk-step-span">
                            <img th:src="@{../../static/images/icon-chengzhong.png}"/>
                        </span>
                        <p>满车称重</p>
                    </li>
                    <li id="progress-hand">
                        <span class="rk-step-span">
                            <img th:src="@{../../static/images/icon-xiehuo.png}"/>
                        </span>
                        <p>入库值仓</p>
                    </li>
                    <li id="progress-emptyWeight">
                        <span class="rk-step-span">
                            <img th:src="@{../../static/images/icon-chengzhong.png}"/>
                        </span>
                        <p>空车称重</p>
                    </li>
                    <li id="progress-cardBack">
                        <span class="rk-step-span">
                            <img th:src="@{../../static/images/icon-banli.png}"/>
                        </span>
                        <p>离库确认</p>
                    </li>
                </ul>
            </div>
            <!--流程引导结束-->
        </div>
        <!--qyzj-btnbox end-->
 
 
        <div class="qyzj-con radius-6">
            <div class="qyzj-con-top layui-row">
                <form class="layui-form" action="" id="form-param"
                      lay-filter="form-param">
 
                    <div class="layui-form-item display-none">
                        <label class="layui-form-label">隐藏-类型</label>
                        <div class="layui-input-block">
                            <input type="text" name="type" th:value="${type}"
                                   autocomplete="off" class="layui-input rkbk-search-input">
                        </div>
                    </div>
 
                    <div class="layui-form-item display-none">
                        <label class="layui-form-label">隐藏-流程</label>
                        <div class="layui-input-block">
                            <input type="text" name="progress" th:value="${progress}"
                                   autocomplete="off" class="layui-input rkbk-search-input">
                        </div>
                    </div>
                    <div class="layui-col-xs3">
                        <div class="layui-form-item">
                            <label class="layui-form-label">质检单号</label>
                            <div class="layui-input-block">
                                <input type="text" name="checkId" placeholder="请输入"
                                       autocomplete="off" class="layui-input rkbk-search-input">
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-xs3">
                        <div class="layui-form-item">
                            <label class="layui-form-label">粮食品种</label>
                            <div class="layui-input-block rkbk-selBox">
                                <select name="foodVariety">
                                    <option value=""></option>
                                    <option th:each="dic,dicSet:${listFoodVariety}"
                                            th:value="${dic.code}" th:text="${dic.name}"></option>
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-xs3">
                        <div class="layui-form-item">
                            <label class="layui-form-label">起始时间</label>
                            <div class="layui-input-block">
                                <input type="text" name="start" placeholder="请输入" autocomplete="off"
                                       class="layui-input rkbk-search-input bg-date" id="start">
                            </div>
                        </div>
                    </div>
 
                    <div class="layui-col-xs3">
                        <div class="layui-form-item">
                            <label class="layui-form-label">截止时间</label>
                            <div class="layui-input-block">
                                <input type="text" name="end" placeholder="请输入" autocomplete="off"
                                       class="layui-input rkbk-search-input bg-date" id="end">
                            </div>
                        </div>
                    </div>
 
                    <div class="layui-col-xs3">
                        <div class="layui-form-item">
                            <label class="layui-form-label">装卸仓库</label>
                            <div class="layui-input-block rkbk-selBox">
                                <select name="depotId">
                                    <option value=""></option>
                                    <option th:each="depot,depotSet:${listDepot}"
                                            th:value="${depot.id}" th:text="${depot.name}"></option>
                                </select>
                            </div>
                        </div>
                    </div>
 
                    <div class="layui-col-xs3">
                        <div class="layui-form-item">
                            <label class="layui-form-label">是否化验</label>
                            <div class="layui-input-block rkbk-selBox">
                                <select name="checkStatus">
                                    <option value="NONE" selected>未化验</option>
                                    <option value="CHECK">已化验</option>
                                </select>
                            </div>
                        </div>
                    </div>
 
                    <div class="layui-col-xs3 layui-text-right">
                        <input type="button" value="查询/刷新"
                               class="qyzj-top-btn layui-btn btn-blue" onclick="flushData()"/>
                        <input type="button" value="清空条件"
                               class="qyzj-top-btn layui-btn btn-red" onclick="resetForm()"/>
                    </div>
 
                </form>
            </div>
            <!--qyzj-con-oop end-->
 
            <div class="qyzj-tabBox">
                <table class="layui-table" lay-skin="nob" id="tableData"
                       lay-filter="tableData">
                    <colgroup>
                        <col width="10%">
                        <col width="10%">
                        <col width="10%">
                        <col width="10%">
                        <col width="10%">
                        <col width="10%">
                        <col width="10%">
                        <col width="10%">
                        <col width="">
                        <col width="10%">
                    </colgroup>
                    <thead>
                    <tr class="qyzj-table-tit">
                        <th>质检单号</th>
                        <th>登记时间</th>
                        <th>扦样状态</th>
                        <th>扦样人</th>
                        <th>扦样时间</th>
                        <th>粮食品种</th>
                        <th>装卸仓库</th>
                        <th>检验结果</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
 
<script th:inline="javascript">
    var progress = [[${progress}]];
    var listDepot = [[${listDepot}]];
    //业务步骤
    var bizType = [[${bizType}]];
    //出入库类型
    var type = [[${type}]];
    //userId
    var userId = [[${loginUser.username}]];
 
    var checkUser = [[${loginUser.cname}]];
 
    var companyId = [[${loginUser.companyId}]];
    //品种
    var listFoodVariety = [[${listFoodVariety}]];
    var startTime = [[${startTime}]];
    var endTime = [[${endTime}]];
    //扦样机信息
    var checkDto = [[${checkDto}]];
 
    //所属分库
    var deptId = [[${deptId}]];
 
    var inoutProgress = [[${inoutProgress}]];
 
</script>
 
<script th:src="@{../../static/plugins/layui/layui.js}"></script>
<script th:src="@{../../static/js/jquery.min.js}"></script>
<script th:src="@{../../static/js/constant.js}"></script>
<script th:src="@{../../static/js/igds-common.js}"></script>
<script th:src="@{../../static/admin/inout/inout-common.js}"></script>
<script th:src="@{../../static/admin/inout/in-check.js}"></script>
 
<script type="text/html" id="barControl">
    <a class="layui-btn control-btn" lay-event="edit">结果录入</a>
</script>
</body>
 
<!-- 扫码弹窗 -->
<div class="layui-tab-content" id="scanCodeDetail" style="display: none;">
    <!-- 表单基本信息 -->
        <form class="layui-form" id="form-sacnCodeDetail" lay-filter="form-sacnCodeDetail">
 
            <div class="layui-col-xs12">
                <div class="layui-form-item">
                    <label class="layui-form-label">质检单号</label>
                    <div class="layui-input-block">
                        <input type="text" id="checkId" name="checkId" placeholder="请扫码,也可手动输入" class="layui-input">
                    </div>
                </div>
            </div>
 
            <div class="layui-col-xs12" style="margin-bottom: 10px">
                <div style="padding-left: 50px; color: #2ab5ad;">
                    <span style="font-weight: bold; margin-right: 10px;">备注:质检单号可以扫码,也可以手动输入,手动输入后需要点击查询</span>
                </div>
            </div>
        </form>
</div>
 
 
<!-- 手动录取化验信息弹窗 -->
<div class="layui-tab-content" id="checkDetail" style="display: none;">
 
    <!-- 表单基本信息 -->
    <form class="layui-form" id="form-detail" lay-filter="form-detail">
 
        <div class="layui-col-xs12" style="display: none;">
            <div class="layui-form-item">
                <label class="layui-form-label">隐藏字段-流水编号</label>
                <div class="layui-input-block">
                    <input type="text" name="id" autocomplete="off" class="layui-input rkbk-search-input">
                </div>
            </div>
        </div>
 
        <div class="layui-col-xs4">
            <div class="layui-form-item">
                <label class="layui-form-label">质检单号</label>
                <div class="layui-input-block">
                    <input type="text" name="checkId" autocomplete="off"
                           class="layui-input input_ba" disabled="">
                </div>
            </div>
        </div>
 
        <div class="layui-col-xs4">
            <div class="layui-form-item">
                <label class="layui-form-label">扦 样 人</label>
                <div class="layui-input-block">
                    <input type="text" name="sampleUser" autocomplete="off"
                           class="layui-input input_ba" disabled="">
                </div>
            </div>
        </div>
        <div class="layui-col-xs4">
            <div class="layui-form-item">
                <label class="layui-form-label">扦样时间</label>
                <div class="layui-input-block">
                    <input type="text" name="sampleTime" autocomplete="off"
                           class="layui-input input_ba" disabled="">
                </div>
            </div>
        </div>
        <div class="layui-col-xs4">
            <div class="layui-form-item">
                <label class="layui-form-label">质 检 人</label>
                <div class="layui-input-block">
                    <input type="text" name="checkUser" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-col-xs4">
            <div class="layui-form-item">
                <label class="layui-form-label red">装卸仓库</label>
                <div class="layui-input-block">
                    <select name="depotId" id="depotId" lay-filter="select_depot">
                    </select>
                </div>
            </div>
        </div>
        <div class="layui-col-xs4">
            <div class="layui-form-item">
                <label class="layui-form-label red">粮食品种</label>
                <div class="layui-input-block">
                    <select name="foodVariety" style="font-weight: bold"
                            id="foodVariety" lay-filter="select_foodVariety">
                        <option value=""></option>
                        <option th:each="dic,dicSet:${listFoodVariety}"
                                th:value="${dic.code}" th:text="${dic.name}"></option>
                    </select>
                </div>
            </div>
        </div>
        <div class="layui-col-xs4">
            <div class="layui-form-item">
                <label class="layui-form-label">质检时间</label>
                <div class="layui-input-block">
                    <input type="text" name="checkTime" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-col-xs4">
            <div class="layui-form-item">
                <label class="layui-form-label">收粮定价</label>
                <div class="layui-input-block">
                    <input type="text" name="price" id="price"
                           class="layui-input rkbk-search-input" placeholder="根据粮食等级带入/手动录入">
                    <em class="kccz-data-dw">元/公斤</em>
                </div>
            </div>
        </div>
 
        <div class="layui-col-xs4">
            <div class="layui-form-item">
                <label class="layui-form-label red">粮食等级</label>
                <div class="layui-input-block">
                    <select id="foodLevel" name="foodLevel" lay-filter="select_foodLevel">
                        <option value=""></option>
                        <option th:each="dic,dicSet:${listFoodLevel}"
                                th:value="${dic.code}" th:text="${dic.name}"></option>
                    </select>
                </div>
            </div>
        </div>
        <div class="layui-col-xs8">
            <div class="layui-form-item">
                <label class="layui-form-label">备注说明</label>
                <div class="layui-input-block">
                    <input type="text" name="remarks" placeholder="请输入内容"
                           class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-col-xs4">
            <div class="layui-form-item">
                <label class="layui-form-label red">化验结果</label>
                <div class="layui-input-block">
                    <select name="checkStatus" id="checkStatus">
                        <option value="NONE">未化验</option>
                        <option value="PASS">合格</option>
                        <option value="UNPASS">不合格</option>
                    </select>
                </div>
            </div>
        </div>
        <div class="layui-col-xs12" style="margin-bottom: 10px">
            <div style="padding-left: 50px; color: #2ab5ad;">
                <span style="font-weight: bold; margin-right: 10px;">备注说明:1.结果判定:系统根据各化验项结果判定,最后化验结果需手动选择确认;2.核算定价:根据化验项配置计算相关增扣价,最后单价需手动确认。</span>
            </div>
        </div>
        <div class="layui-col-xs6">
            <blockquote class="layui-elem-quote" style="width: 95%;float: left;">
                <div>
                    <span style="font-weight: bold; margin-right: 10px;">结果判定:</span>
                    <span id="check-result-tip" style="margin-right: 25px;">化验结果:</span>
                </div>
            </blockquote>
        </div>
        <div class="layui-col-xs6">
            <blockquote class="layui-elem-quote"  style="width: 95%;float: right;">
                <div>
                    <span style="font-weight: bold; margin-right: 10px;">定价判定:</span>
                    <span id="check-result-tip2" style="margin-right: 25px;">收粮单价:#元/公斤</span>
                </div>
            </blockquote>
        </div>
    </form>
 
    <!-- 化验结果信息 -->
    <table class="layui-table tableCheckItem" id="tableCheckItem"
           lay-filter="tableCheckItem">
        <colgroup>
            <col width="10%">
            <col width="10%">
            <col width="10%">
            <col width="10%">
            <col width="10%">
            <col width="10%">
            <col width="10%">
            <col width="10%">
            <col width="10%">
            <col width="">
        </colgroup>
        <thead>
        <tr class="qyzj-table-tit">
            <th>检验项目</th>
            <th>检验值</th>
            <th>标准值</th>
            <th>单位</th>
            <th>扣重</th>
            <th>增重</th>
            <th>扣价</th>
            <th>增价</th>
            <th>检验结果</th>
            <th>备注</th>
        </tr>
        </thead>
        <tbody>
        </tbody>
    </table>
 
</div>
 
<!-- 弹出框的信息 -->
<div class="layui-tab-content" id="dialog-from-notify"
     style="display: none;">
    <table class="layui-table">
        <colgroup>
            <col width="100">
        </colgroup>
        <tbody>
        <tr>
            <td>返回信息</td>
            <td id="resultMsg" style="color: red; font-weight: bold;"></td>
        </tr>
        <tr>
            <td>承运人</td>
            <td id="resultUserName" style="font-weight: bold;"></td>
        </tr>
        <tr>
            <td>车牌号</td>
            <td id="resultPlateNum" style="font-weight: bold;"></td>
        </tr>
        <tr>
            <td>下一步</td>
            <td id="resultType" style="font-weight: bold;"></td>
        </tr>
        <tr>
            <td>智慧卡号</td>
            <td id="resultIntelCard" style="font-weight: bold;"></td>
        </tr>
        </tbody>
    </table>
</div>
</html>