廖井涛
2025-05-26 3a975df5b368bc68ee7a81d34920b209f2ff607b
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
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link type="text/css" rel="stylesheet"
    href="${pageContext.request.contextPath}/static/AdminLTE/bower_components/bootstrap/dist/css/bootstrap.css">
<link href="${ctx}/static/styles/default.css" type="text/css"
    rel="stylesheet" />
<script src="${ctx}/static/holder.js" type="text/javascript"></script>
<%-- <script language="javascript" type="text/javascript" src="${ctx}/static/util.js"></script>   --%>
<script type="text/javascript"
    src="${ctx}/static/jquery/jquery-3.1.0.min.js"></script>
<!-- <script src="tb.js"></script>
<script src="jq.js"></script> -->
 
<script src="${ctx}/static/js/ng/tb-2.0.js" type="text/javascript"></script>
 
<title>上片位</title>
 
 
<script type="text/javascript">
    /*  var interval = setInterval('refreshStatus()', 1000000);
     $(document).ready(function(){
     var info = $("#info").attr("info");
     $("#infos").html(info);
     });
     */
     
     
    // 设备页面自动刷新
    function refreshStatus() {
        window.location.reload();
    }
 
    /* // 停止页面自动刷新
    function disableAutoRefresh() {
        clearInterval(interval);
    }
 */
    /**
     * 添加原片
     */
    function addload(loadMachineRackId) {
        //disableAutoRefresh()
        $("#add-info").modal('show');
        $("#addRawPackage").val(loadMachineRackId);
    }
 
    /**
     * 添加固定料架信息
     */
    function addinfo(loadMachineRackId) {
        //disableAutoRefresh()
        $("#add-fix-info").modal('show');
        $("#fixrack").val("固定料架" + loadMachineRackId);
        $("#add-fix").val(loadMachineRackId);
    }
 
    /**
     * 删除固定料架信息
     */
    function deleteinfo(loadMachineRackId) {
        //disableAutoRefresh()
        $('#deletefixinfo').modal('toggle');
        $("#fixlinenumber").val(loadMachineRackId);
    }
    /**
     * 修改原片
     */
    function modifyload(loadMachineRackId) {
        //disableAutoRefresh()
        $("#modify-info").modal('show');
        $("#midifyRawPackage").val(loadMachineRackId);
    }
 
    function tuikuload(dropFrameid) {
        var groups = document.getElementsByName('groups')[0].value;
        $.ajax({
            cache : false,
            type : "POST",
            dataType : "json",
            url : "${ctx}/countmachine/tuikuinfo",
            data : {
                "dropFrameid" : dropFrameid
            },
            success : function(data) {
                window.location.href = "${ctx}/countmachine/loadmachinerack/"
                        + groups;
            }
        });
    }
 
    function updateload(dropFrameid) {
        var groups = document.getElementsByName('groups')[0].value;
        $.ajax({
            cache : false,
            type : "POST",
            dataType : "json",
            url : "${ctx}/countmachine/updateinfo",
            data : {
                "dropFrameid" : dropFrameid
            },
            success : function(data) {
                window.location.href = "${ctx}/countmachine/loadmachinerack/"
                        + groups;
            }
        });
    }
 
    function deleteload(id) {
        //disableAutoRefresh();
        $('#taskFinish').modal('toggle');
        $("#lineprint").val(id);
    }
 
    $(document)
            .delegate(
                    '#surefinish',
                    'click',
                    function() {
                        var groups = document.getElementsByName('groups')[0].value;
                        var id = $("#lineprint").val();
                        $
                                .ajax({
                                    async : false,
 
                                    type : "GET",
 
                                    url : "${ctx}/cutmanage/deleteinfo/" + id,
 
                                    dataType : "text",
 
                                    success : function(data) {
                                        alert(id + "号位信息清除完成!");
                                        window.location.href = "${ctx}/cutmanage/loadmachinerack/"
                                                + groups;
                                    }
                                });
                    });
 
    $(document)
            .delegate(
                    '#deletefixinfo',
                    'click',
                    function() {
                        var groups = document.getElementsByName('groups')[0].value;
                        var id = $("#fixlinenumber").val();
                        $
                                .ajax({
                                    async : false,
 
                                    type : "GET",
 
                                    url : "${ctx}/cutmanage/deletefixinfo/"
                                            + id,
 
                                    dataType : "text",
 
                                    success : function(data) {
                                        alert(data);
                                        alert(id + "号切割机固定料架信息清除完成!");
                                        window.location.href = "${ctx}/loadmachine/loadmachinerack/"
                                                + groups;
                                    }
                                });
                    });
 
    var gongyi = "磨边";
    var group = ${groups};
    var rTime = 10000;
</script>
 
<style>
.table>tbody>tr>td {
    vertical-align: middle;
    /* content:middle; */
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    /* border: 1px solid green; */
}
 
.table>thead>tr>th {
    font-weight: bold;
    font-size: 20px;
    text-align: center;
}
 
h1 {
    display: inline;
}
 
.s-style {
    font-size: 18px;
    font-weight: bold;
}
 
.s-title {
    font-size: 18px;
    /*font-weight: bold;
     text-align :center; */
    vertical-align: middle;
    text-align: center
}
 
.sel-style {
    width: 200px;
    font-size: 20px;
}
</style>
 
</head>
<body>
    <div class="content-wrapper">
        <div>
            <section class="content-header">
                <h1>
                    下片设备信息 &nbsp;&nbsp;&nbsp;&nbsp; <small>当前班组:</small>&nbsp; <span
                        id="s_current_banzu" style="font-weight: bold;"></span> &nbsp;
                    <!-- <button id="btnBanZu" type='button' class='btn btn-primary '
                        onclick='onChangeBanZu()'>选择班组</button> -->
                    &nbsp;
                    <button id="btnOffWork" type='button' class='btn btn-primary '
                        onclick='offWork()'>下班-提交报工</button>
                </h1>
                <ol class="breadcrumb">
                    <li><a href="${ctx }/loadmachine/loadmachinerack"><i
                            class="fa fa-reply"></i>下片机信息</a></li>
                    <li class="active"></li>
                </ol>
            </section>
            <input style="display: none" type="text" name="groups"
                value="${groups}" />
            <div id="info" info="${info}"></div>
        </div>
        <div>
            <!-- Main content -->
            <section class="content container-fluid">
                <div class="box" style="height: 525px; overflow: auto;">
                    <div class="box-header"></div>
                    <!-- /.box-header -->
                    <div class="box-body no-padding">
                        <table class="table table-striped" style="font-size: large;">
                            <thead>
                                <tr>
                                    <th style="text-align: center;" width="5%">下片位</th>
                                    <th style="text-align: center;" width="10%">架号</th>
                                    <th style="text-align: center;" width="10%">状态</th>
                                    <th style="text-align: center;" width="10%">流程卡号</th>
                                    <th style="text-align: center;" width="12%"></th>
                                    <th style="text-align: center;" width="10%">工程号</th>
                                    <th style="text-align: center;" width="10%">完成数量</th>
                                    <th style="text-align: center;" width="10%">总数</th>
                                    <th style="text-align: center;" width="18%">操作</th>
                                </tr>
                            </thead>
                            <tbody>${loadMachineHtml}</tbody>
                        </table>
                    </div>
                </div>
 
                <div class="modal fade" id="modify-info" tabindex="-1" role="dialog"
                    aria-labelledby="myModalLabel" aria-hidden="true">
                    <div class="modal-dialog">
                        <div class="modal-content">
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal"
                                    aria-hidden="true" data-backdrop="static">&times;</button>
                                <h3 class="modal-title" id="myModalLabel"
                                    style="font-weight: bolder;">修改原片数量</h3>
                            </div>
                            <form class="form-horizontal" role="form" id="category_add"
                                action="${ctx}/countmachine/modifyAction" method="post">
                                <input type="hidden" id="midifyRawPackage" name="Ids">
                                <div class="modal-body">
 
                                    <div class="form-group">
                                        <h4>
                                            <label class="col-sm-3 control-label no-padding-right"
                                                style="font-weight: bolder;">数量 </label>
                                        </h4>
 
                                        <div class="col-sm-9">
                                            <input type="text" class=" sortNumber form-control"
                                                value="${addrawPackage.pieces}" name="pieces" id="pieces"
                                                onclick="this.value=''"
                                                style="width: 250px; font-size: 20px" />
                                        </div>
                                    </div>
 
                                </div>
                                <div class="modal-footer">
                                    <button type="button" class="btn btn-default btn-lg"
                                        data-dismiss="modal">关闭</button>
                                    <button type="submit" class="btn btn-primary btn-lg"
                                        id="addbtnsubmit">提交</button>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
 
                <div class="modal fade" id="add-info" tabindex="-1" role="dialog"
                    aria-labelledby="myModalLabel" aria-hidden="true">
                    <div class="modal-dialog">
                        <div class="modal-content">
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal"
                                    aria-hidden="true" data-backdrop="static">&times;</button>
                                <h3 class="modal-title" id="myModalLabel"
                                    style="font-weight: bolder;">添加料架</h3>
                            </div>
                            <form class="form-horizontal" role="form" id="category_add"
                                action="${ctx}/countmachine/addAction/${groups}" method="post">
                                <input type="hidden" id="addRawPackage" name="Ids">
                                <div class="modal-body">
                                    <div class="form-group">
                                        <h4>
                                            <label class="col-sm-3 control-label no-padding-right"
                                                style="font-weight: bolder;">料架号 </label>
                                        </h4>
 
                                        <div class="col-sm-9">
                                            <input type="text" id="shelfRankInput" name="shelfRankNumber"
                                                style="width: 250px; height: 35px; font-size: 20px"
                                                readonly="readonly">
                                            <div class="btn-group" style="margin-top: -10px">
                                                <button class="btn btn-primary dropdown-toggle"
                                                    data-toggle="dropdown">
                                                    选择&nbsp;<span class="caret"></span>
                                                </button>
                                                <ul class="dropdown-menu"
                                                    style="height: 320px; overflow: auto;">
                                                    <c:forEach items="${shelfRankNumberList}"
                                                        var="shelfRankNumber">
                                                        <li style="font-size: 20px"><a href="#"
                                                            onclick="$('#shelfRankInput').val('${shelfRankNumber}')">${shelfRankNumber}</a></li>
                                                    </c:forEach>
                                                </ul>
                                            </div>
                                        </div>
                                    </div>
 
 
                                </div>
                                <div class="modal-footer">
                                    <button type="button" class="btn btn-default btn-lg"
                                        data-dismiss="modal">关闭</button>
                                    <button type="submit" class="btn btn-primary btn-lg"
                                        id="addbtnsubmit">提交</button>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
                
                <%@ include file="/WEB-INF/views/mes/view/modal_banzu.jsp"%> 
                <%@ include file="/WEB-INF/views/mes/view/modal_xiangqing.jsp"%>
                <%@ include file="/WEB-INF/views/mes/view/modal_posun.jsp"%>
                <%@ include file="/WEB-INF/views/mes/view/modal_tijiaobaogong.jsp"%>
                <%@ include file="/WEB-INF/views/mes/view/modal_tishi.jsp"%>
            </section>
        </div>
        <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->
 
    <script>
    <!-- 页面,刷新,停止刷新 -->
        //页面定时刷新 暂停 恢复
        var interval = setInterval('refreshStatus()', rTime);//定时刷新
        function refresh() {
            interval = setInterval('refreshStatus()', rTime);//刷新恢复
        }
 
        function stopRefresh() {
            clearInterval(interval);//停止刷新
        }
 
        $(function() {
            //流程卡详情页
            $('#lck_Info').on('hide.bs.modal', function() {
                refresh();
            })
 
            $('#lck_Info').on('show.bs.modal', function() {
                stopRefresh();
            })
            //报工确认页
            $('#baogong_info').on('hide.bs.modal', function() {
                refresh();
            })
 
            $('#baogong_info').on('show.bs.modal', function() {
                stopRefresh();
            })
            //设置次破页
            $('#div_cipo').on('hide.bs.modal', function() {
                refresh();
            })
 
            $('#div_cipo').on('show.bs.modal', function() {
                stopRefresh();
            })
            /* //班组页
            $('#div_banzu').on('hide.bs.modal', function() {
                refresh();
            })
 
            $('#div_banzu').on('show.bs.modal', function() {
                stopRefresh();
            }) */
            //操作确认页
            $('#CZ_Sure').on('hide.bs.modal', function() {
                refresh();
            })
 
            $('#CZ_Sure').on('show.bs.modal', function() {
                stopRefresh();
            })
            //绑定架子页
            $('#add-info').on('hide.bs.modal', function() {
                refresh();
            })
 
            $('#add-info').on('show.bs.modal', function() {
                stopRefresh();
            })
            //修改数量
            $('#modify-info').on('hide.bs.modal', function() {
                refresh();
            })
 
            $('#modify-info').on('show.bs.modal', function() {
                stopRefresh();
            })
 
        });
 
        function LookLCKXQ(rId) {
 
            var r = rId;
            var lck = $("table").find('tr').eq(r).find('td').eq(3).text();
            //alert(lck);
            $("#btnLCKBGQR").attr("onclick", "BaoGongSure('" + lck + "',1)");
            $("#btnLCKBGQR").attr("style", "display:''")
 
            look_detail(lck);
        }
 
        function LKCBaoGong(rId) {
            var r = rId;
            var lck = $("table").find('tr').eq(r).find('td').eq(3).text();
            $("#CZ_Sure").modal('toggle');
            $("#MsgShow").html("是否确认执行流程卡 " + lck + " 报工确认操作?");
 
            $("#btnSure").attr("onclick", "BaoGongSure('" + lck + "',0)")
        }
 
        function BaoGongSure(lck, lx) {
            /* alert("报工确认了"+lck);
            return; */
            if(lx==0){
                $("#MsgShow").html("是否确认执行流程卡 " + lck + " 报工确认操作?<br\><br\><br\><p>操作执行中,请稍等。。。</p>");
            }
            
            $.ajax({
 
                type : "post",
                data : {
                    caozuo : "报工确认",
                    line : group,
                    lckh : lck
 
                },
                dataType : "text",
                url : p_url,
                success : function(data) {
                    //alert("成功:"+data);
                    if (lx == 1) {
                        $('#lck_Info').modal("toggle");
                    } else {
                        $('#CZ_Sure').modal("toggle");
                    }
                    var str=data.split('_')[0]=='1'?"成功":"失败";
                    $("#cz_Ming").text("报工确认");
                    $("#cz_Zhuangtai").text(str);
                    $("#cz_mingxi").text(data);
                    $("#CZ_Msg").modal('toggle');
                },
                error : function(data) {
                    $("#CZ_Msg").modal('toggle');
                    $("#cz_Ming").text("报工确认");
                    $("#cz_Zhuangtai").text("失败");
                    $("#cz_mingxi").text(data);
                }
            });
 
        }
 
        getCiPoInfo();
    </script>
</body>
</html>