zgq
2021-03-23 95f4fe2c6075e83c88ac563735bf79d284fd0b9f
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
<!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">
    <script src="../../layuiadmin/layui/layui.js"></script>
    <script src="../../layuiadmin/Scripts/json2.js" type="text/javascript"></script>
    <script src="../../layuiadmin/Scripts/webConfig.js"></script>
    <style>
        .layui-form-label {
            font-size: 14px;
            width: 85px;
            text-align: inherit;
        }
        /*全局设置输入框高度*/
        .layui-input {
            height: 30px;
        }
        /*设置表头输入框*/
        .t1_input {
            padding: 1%;
        }
        /*本站信息td*/
        .bz_td {
            display: -webkit-box; /*设置按钮不换行*/
            padding: 1%; /*设置输入框边距*/
        }
        /*设置本站信息按钮高度*/
        .bz_btu {
            height: 30px;
        }
    </style>
</head>
<body>
    <div class="layui-fluid" style="padding:0">
        <div class="layui-card">
            <!--<div class="layui-card-header"></div>-->
            <div class="layui-card-body" style="padding: 0;">
                <form class="layui-form" action="" lay-filter="component-form-group">
                    <div style="background-color:#0085E8;">
                        <span style="color: white;"><i class="layui-icon layui-icon-form"></i>工序出站汇报单</span>
                    </div>
                    <div class="layui-form-item" style="margin: 1% 0;text-align: right;">
                        <button type="button" lay-submit="" lay-filter="HAddBT" class="layui-btn layui-btn-radius">新增</button>
                        <!--<button type="button" lay-submit="" lay-filter="" 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="Close" class="layui-btn layui-btn-radius layui-btn-danger">退出</button>
                    </div>
                    <div class="layui-form-item">
                        <table style="width:80%;">
                            <tbody>
                                <tr>
                                    <th>条形码</th>
                                    <td class="t1_input">
                                        <input type="text" name="HBarCode" class="layui-input" id="HBarCode" placeholder="请输入条形码" style="border-radius: 50px;">
                                    </td>
                                </tr>
                                <tr>
                                    <th>流转卡号</th>
                                    <td class="t1_input">
                                        <input type="text" name="HProcExchBillNo" class="layui-input" id="HProcExchBillNo" placeholder="流转卡号" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>流水号</th>
                                    <td class="t1_input">
                                        <input type="text" name="HProcNo" class="layui-input" id="HProcNo" placeholder="请输入流水号" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>工序代码</th>
                                    <td class="t1_input">
                                        <input type="text" name="HProcID" class="layui-input" id="HProcID" placeholder="请输入工序代码" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>工序名称</th>
                                    <td class="t1_input">
                                        <input type="text" name="HProc" class="layui-input" id="HProc" placeholder="请输入工序名称" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>创建人</th>
                                    <td class="t1_input">
                                        <input type="text" class="layui-input" id="HEmp" placeholder="请输入创建人" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="HEmpID" id="HEmpID" value="0" autocomplete="off" class="layui-input">
                                    </td>
                                </tr>
                                <tr>
                                    <th>合格数量</th>
                                    <td class="t1_input">
                                        <input type="text" name="HQty" class="layui-input" id="HQty" placeholder="请输入合格数量">
                                    </td>
                                </tr>
                                <tr>
                                    <th>工时</th>
                                    <td class="t1_input">
                                        <input type="text" name="HWorkTimes" class="layui-input" id="HWorkTimes" placeholder="请输入工时">
                                    </td>
                                </tr>
                                <tr>
                                    <th>报废数量</th>
                                    <td class="t1_input">
                                        <input type="text" name="HWasterQty" class="layui-input" id="HWasterQty" placeholder="请输入报废数量">
                                    </td>
                                </tr>
                                <tr>
                                    <th>生产资源</th>
                                    <td class="bz_td">
                                        <input type="text" name="HSource" class="layui-input" id="HSource" placeholder="选择生产资源" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="HSourceID" id="HSourceID" value="0" autocomplete="off" class="layui-input">
                                        <button type="button" lay-submit="" class="layui-btn layui-col-xs2 bz_btu" lay-filter="ProductionResources-BT">...</button>
                                    </td>
                                </tr>
                                <tr>
                                    <th>生产班组</th>
                                    <td class="bz_td">
                                        <input type="text" name="HGroup" class="layui-input" id="HGroup" placeholder="选择生产班组" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="HGroupID" id="HGroupID" value="0" autocomplete="off" class="layui-input">
                                        <button type="button" lay-submit="" class="layui-btn layui-col-xs2 bz_btu" lay-filter="ProductionTeam-BT">...</button>
                                    </td>
                                </tr>
                                <tr>
                                    <th>工作中心</th>
                                    <td class="bz_td">
                                        <input type="text" name="HCenter" class="layui-input" id="HCenter" placeholder="选择工作中心" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="HCenterID" id="HCenterID" value="0" autocomplete="off" class="layui-input">
                                        <button type="button" lay-submit="" class="layui-btn layui-col-xs2 bz_btu" lay-filter="HWorkingProcedure-BT">...</button>
                                    </td>
                                </tr>
                                <tr>
                                    <th>检验员</th>
                                    <td class="bz_td">
                                        <input type="text" name="HQCCheck" class="layui-input" id="HQCCheck" placeholder="选择检验员" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="HQCCheckID" id="HQCCheckID" value="0" autocomplete="off" class="layui-input">
                                        <button type="button" lay-submit="" class="layui-btn layui-col-xs2 bz_btu" lay-filter="HSecManagerID-BT">...</button>
                                    </td>
                                </tr>
                                <tr>
                                    <th>出站单号</th>
                                    <td class="t1_input">
                                        <input type="text" name="HBillNo" class="layui-input" id="HBillNo" placeholder="请输入出站单号" style="background-color:#efefef4d;" readonly>
                                        <input type="hidden" name="HInterID" class="layui-input" id="HInterID">
                                    </td>
                                </tr>
                                <tr>
                                    <th>日期</th>
                                    <td class="t1_input">
                                        <input type="date" name="HStationOutTime" class="layui-input" id="HStationOutTime" placeholder="请选择日期">
                                    </td>
                                </tr>
                                <tr>
                                    <th>生产订单</th>
                                    <td class="t1_input">
                                        <input type="text" name="HICMOBillNo" class="layui-input" id="HICMOBillNo" placeholder="请输入生产订单" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>产品代码</th>
                                    <td class="t1_input">
                                        <input type="text" name="HMaterID" class="layui-input" id="HMaterID" placeholder="请输入产品代码" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>产品名称</th>
                                    <td class="t1_input">
                                        <input type="text" name="HMaterName" class="layui-input" id="HMaterName" placeholder="请输入产品名称" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>规格型号</th>
                                    <td class="t1_input">
                                        <input type="text" name="HMaterModel" class="layui-input" id="HMaterModel" placeholder="请输入规格型号" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>订单跟踪号</th>
                                    <td class="t1_input">
                                        <input type="text" name="HOrderProcNO" class="layui-input" id="HOrderProcNO" placeholder="请输入订单跟踪号" style="background-color:#efefef4d;" readonly>
                                    </td>
                                </tr>
                                <tr>
                                    <th>生产订单数量</th>
                                    <td class="t1_input">
                                        <input type="text" name="HICMOQty" class="layui-input" id="HICMOQty" placeholder="请输入生产订单数量" style="background-color:#efefef4d;" readonly>
                                        <!--隐藏字段-->
                                        <input type="hidden" name="HICMOInterID" class="layui-input" id="HICMOInterID"><!--任务单号ID取hicmointerid-->
                                        <input type="hidden" name="HDeptID" class="layui-input" id="HDeptID"><!--生产车间id-->
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </form>
            </div>
        </div>
    </div>
 
    <script src="../../layuiadmin/Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="../../layuiadmin/zgqCustom/zgqCustom.js"></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
                , table = layui.table
                , laydate = layui.laydate
                , form = layui.form;
 
            //获取当前时间处理
            $("#HStationOutTime").val(Format(new Date(), "yyyy-MM-dd"));
            $("#HEmp").val(sessionStorage["HUserName"]);
            $("#HEmpID").val(sessionStorage["Czybm"]);
 
            //页面初始化赋值
            //获取单据号
            $.ajax({
                url: GetWEBURL() + "/api/newBill/getNewInterBillNo",
                type: "GET",
                //data: { "HBillType": '3790' },
                success: function (d) {
                    $("#HBillNo").val(d.data.HBillNo);//进站单号
                    $("#HInterID").val(d.data.HInterID);//进站单号ID
                }, error: function () {
                    layer.alert("获取单据号失败!", { icon: 5 });
                }
            });
 
            $("#HBarCode").focus();
            $("#HBarCode").css("box-shadow", "0 0 0 1px #00ff00");
            $("#Serial_number").attr("readonly", "readonly");//流水号只读
            $("#Serial_number").css("background-color", "#efefef4d");
            $("#Entrants_number").attr("readonly", "readonly");//进站数量只读
            $("#Entrants_number").css("background-color", "#efefef4d");
 
 
            //扫条形码方法
            $('#HBarCode').on('keydown', function (event) {   //扫条形码
                var HBarCode = $('#HBarCode').val();//条形码(流转卡号)(数据库中为单据号)
                if (event.keyCode == 13) {
                    //判断文本框是否有数据    new
                    if (HBarCode == "") {
                        layer.alert("条形码为空!", { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
                        return;
                    }
                    //
                    $.ajax({
                        url: GetWEBURL() + "api/newBill/getHbarCodeDetail",
                        type: "GET",
                        data: {
                            "sBillBarCode": HBarCode
                        },
                        success: function (result) {
                            if (result.code == 1) { // 说明验证成功了,
                                var data = result.data.h_v_Sc_ProcessExchangeBillList[0];
                                form.val("component-form-group", { //formTest 即 class="layui-form" 所在元素属性 lay-filter="" 对应的值
                                    "HProcExchBillNo": $("#HBarCode").val()
                                    , "HProcID": data.HProcID
                                    , "HProc": data.工序
                                    , "HCenter": data.工作中心
                                    , "HCenterID": data.工作中心代码
                                    , "HICMOInterID": data.hicmointerid
                                    , "HICMOBillNo": data.任务单号
                                    , "HDeptID": data.HDeptID
                                    , "HQty": data.计划数量
                                    , "HMaterID": data.产品代码
                                    , "HMaterName": data.产品
                                    , "HMaterModel": data.规格型号
                                    , "HICMOQty": data.生产数量
                                    , "HOrderProcNO": data.订单跟踪号
                                });
                                //$("#HBarCode").attr("readonly", "readonly");//条形码只读
                                //$("#HBarCode").css("background-color", "#efefef4d");
                                $("#HBarCode").css("box-shadow", "none");
                                $("#HProcNo").removeAttr("readonly");//移除流水号只读
                                $("#HProcNo").css("background-color", "white");
                                $("#HProcNo").focus();
                                $("#HProcNo").css("box-shadow", "0 0 0 1px #00ff00");
                            } else {
                                layer.alert(result.msg, { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
                            }
                        }, error: function () {
                            layer.alert("扫条形码方法发生错误!", { icon: 5 });
                        }
                    });
                }
            });
 
            //流水号回车方法
            $('#HProcNo').on('keydown', function (event) {   //扫条形码
                var HProcNo = $('#HProcNo').val();
                var HBarCode = $('#HBarCode').val();
                if (event.keyCode == 13) {
                    if (HProcNo == "" || HBarCode == "") {
                        layer.alert("流水号或流转卡号为空!", { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
                        return;
                    }
                    $.ajax({
                        url: GetWEBURL() + "/api/newBill/getProcDetail",
                        type: "GET",
                        data: {
                            "sBillNo": HBarCode
                            , "sProcNo": HProcNo
                        },
                        success: function (result) {
                            var data = result.data.h_v_Sc_ProcessExchangeBillList[0];
                            if (result.code == 1) { // 说明验证成功了,
                                form.val("component-form-group", { //formTest 即 class="layui-form" 所在元素属性 lay-filter="" 对应的值
                                    "HProcID": data.HProcID
                                    , "HProc": data.工序
                                    , "HCenter": data.工作中心
                                    , "HCenterID": data.工作中心代码
                                    , "HICMOInterID": data.hicmointerid
                                    , "HICMOBillNo": data.任务单号
                                    , "HDeptID": data.HDeptID
                                    , "HQty": data.计划数量
                                    , "HMaterID": data.产品代码
                                    , "HMaterName": data.产品
                                    , "HMaterModel": data.规格型号
                                    , "HICMOQty": data.生产数量
                                });
                                $("#HProcNo").css("box-shadow", "none");
                                checkPopup();
                            } else {
                                layer.alert(result.Message, { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
                            }
                        }, error: function () {
                            layer.alert("流水号方法发生错误!", { icon: 5 });
                        }
                    });
                }
            });
 
            //合格数量回车方法
            $('#HQty').on('keydown', function (event) {
                if (event.keyCode == 13) {
                    $("#HQty").css("box-shadow", "none");
                    checkPopup();
                }
            });
 
            //工时回车方法
            $('#HWorkTimes').on('keydown', function (event) {
                if (event.keyCode == 13) {
                    $("#HWorkTimes").css("box-shadow", "none");
                    checkPopup();
                }
            });
 
            //报废数量回车方法
            $('#HWasterQty').on('keydown', function (event) {
                if (event.keyCode == 13) {
                    $("#HWasterQty").css("box-shadow", "none");
                    checkPopup();
                }
            });
 
            //选择生产班组弹窗
            form.on('submit(ProductionTeam-BT)', function () {//选择生产班组
                layer.open({
                    type: 2
                    , area: ['80%', '80%']
                    , title: '生产班组'
                    , shade: 0.6 //遮罩透明度
                    //, maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../Baseset/基础资料/Gy_GetProductionTeamList.html', 'yes']
                    , resize: false
                    , cancel: function (index, layero) {
                    }
                })
            });
 
            //选择生产资源弹窗
            form.on('submit(ProductionResources-BT)', function () {//生产资源
                layer.open({
                    type: 2
                    , area: ['80%', '80%']
                    , title: '生产资源'
                    , shade: 0.6 //遮罩透明度
                    //, maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../Baseset/基础资料/Gy_GetProductionResourcesList.html', 'yes']
                    , resize: false
                    , cancel: function (index, layero) {
                    }
                })
            });
 
            //选择工作中心弹窗
            form.on('submit(HWorkingProcedure-BT)', function () {//选择工作中心
                layer.open({
                    type: 2
                    , area: ['80%', '80%']
                    , title: '工作中心'
                    , shade: 0.6 //遮罩透明度
                    //, maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../Baseset/基础资料/Gy_WorkCenterList.html', 'yes']
                    , resize: false
                    , cancel: function (index, layero) {
                    }
                })
            });
 
            //选择检验员
            form.on('submit(HSecManagerID-BT)', function (data) {//选择检验员
                var sMainStr = JSON.stringify(data.field);
                layer.open({
                    type: 2
                    , area: ['100%', '100%']
                    , title: '检验员列表'
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../Baseset/基础资料/Gy_EmployeeList.html?Type=HSecManager', 'yes']
                    , resize: false
                    , cancel: function () {
                        //$(".layui-btn").removeClass("layui-btn-disabled");
                    }
                })
            });
 
            //保存按钮
            form.on('submit(Saver)', function (data) {//提交
                //debugger;
                var sMainStr = data.field;
                console.log(sMainStr);
                $.ajax(
                    {
                        type: "POST",
                        url: GetWEBURL() + "/api/newBill/setStationOutBill", //方法所在页面和方法名
                        //url:"http://localhost:12761/api/newBill/setStationOutBill",
                        async: true,
                        data: sMainStr,
                        dataType: "json",
                        success: function (result) {
                            console.log(result);
                            if (result.code == 1) { // 说明验证成功了,
                                $("#sHWHID").val("");
                                layer.alert(result.msg + "单号为:" + $("#HBillNo").val(), { icon: 1 }, function () {
                                    window.location.reload();//刷新页面
                                });
                            }
                            else {
                                layer.alert(result.msg, { icon: 5 });
                            }
                            layer.closeAll("loading");
                            layui.form.render();
                        },
                        error: function (err) {
                            layer.alert("接口请求失败:" + err, { icon: 5 });
                        }
                    });
            });
 
            //退出按钮
            form.on('submit(Close)', function (data) {//退出
                layer.confirm('您确定要关闭本页吗?', { icon: 3, title: '提示' }, function (index) {
                    parent.location.href = "../../views/index.html";
                });
            });
 
            //新增按钮
            form.on('submit(HAddBT)', function (data) {//退出
                layer.confirm('您确定要新增吗?', { icon: 3, title: '提示' }, function (index) {
                    window.location.reload();
                });
            });
 
 
 
 
 
 
            //以上为layui模块
        });
 
        //原生js初始化
        $(function () {
 
        });
 
        //校验是否选择弹窗事件
        function checkPopup() {
            if (!$("#HQty").val()) {
                $("#HQty").css("box-shadow", "0 0 0 1px #00ff00");
                $("#HQty").focus();
            }
            else if (!$("#HWorkTimes").val()) {
                $("#HWorkTimes").css("box-shadow", "0 0 0 1px #00ff00");
                $("#HWorkTimes").focus();
            }
            else if (!$("#HWasterQty").val()) {
                $("#HWasterQty").css("box-shadow", "0 0 0 1px #00ff00");
                $("#HWasterQty").focus();
            }
            else if (!$("#HSource").val()) {
                $("#HSource").css("box-shadow", "0 0 1px 2px #00ff00");
                $("#HSource").focus();
            }
            else if (!$("#HGroup").val()) {
                $("#HGroup").css("box-shadow", "0 0 1px 2px #00ff00");
                $("#HGroup").focus();
            }
            else if (!$("#HCenter").val()) {
                $("#HCenter").css("box-shadow", "0 0 1px 2px #00ff00");
                $("#HCenter").focus();
            }
        }
 
        //返回生产班组
        function GetProductionTeamValue(obj) {  //返回生产班组
            if (obj.length == 0) {
                layer.msg("请先选择班组", { index: 0 });
            } else {
                $("#HGroup").val(obj[0].班组);
                $("#HGroupID").val(obj[0].HItemID);
                $("#HGroup").css("box-shadow", "none");
                checkPopup();
                layer.closeAll();
            }
        }
 
        //返回生产资源
        function GetProductionResourcesValue(obj) {  //返回生产资源
            if ($("#HSource").val()) {
                $("#HSource").css("box-shadow", "none");
            }
            $("#HSource").val(obj[0].生产资源);
            $("#HSourceID").val(obj[0].HItemID);
            $("#HSource").css("box-shadow", "none");
            checkPopup();
        }
 
        //返回工作中心
        function GetWorkCenterValue(obj) {  //返回工作中心
            if (obj.length == 0) {
                layer.msg("请先选择班组", { index: 0 });
            } else {
                $("#HCenter").val(obj[0].工作中心);
                $("#HCenterID").val(obj[0].HItemID);
                $("#HCenter").css("box-shadow", "none");
                checkPopup();
                layer.closeAll();
            }
        }
 
        //返回检验员
        function GetHSecManagerValue(obj) {  //返回检验员
            $("#HQCCheck").val(obj[0].HName);
            $("#HQCCheckID").val(obj[0].HItemID);
        }
 
 
    </script>
</body>
</html>