严智鑫
2025-08-18 3b65a5dc04be7cdac460c84ebaa38bf009405128
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
<%@ 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 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>
<title>当前小片信息</title>
<script type="text/javascript">
var interval = setInterval('refreshStatus()', 100000);
$(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 modifyload(loadMachineRackId){
          disableAutoRefresh()
         $("#modify-info").modal('show');
         $("#midifyRawPackage").val(loadMachineRackId);
 }
 
  function print(loadMachineRackId){
         disableAutoRefresh()
        $('#confirm').modal('toggle');
         $('#1').attr("onclick","check("+loadMachineRackId+")");
}
  
  function check(id){
         var id = id;
        $.ajax({ 
                async: false, 
            
                type:"GET", 
 
                 url:"${ctx}/identifymachine/damageglass/"+id, 
 
                 dataType:"text", 
 
                success:function(data){
                    
                    if(data=="ok"){
                        window.location.href="${ctx}/identifymachine/damage";
                    }else if(data=="notask"){
                        alert("当前产线无任务,请先领取任务!");
                        return false;
                    }
                    return false;
                },
                error: function (err) {
                    alert(err)
            },
        });
    } 
 
  </script>
</head>
<body>
      <div class="content-wrapper">
    <div>
        <section class="content-header">
              <h1>
            小片信息
                <small></small>
              </h1>
          <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-reply"></i>小片信息</a></li>
            <li class="active"></li>
          </ol>
        </section>
           <div id = "info" info = "${info}"></div>
    </div>
    <div>
    <!-- Main content -->
    <section class="content container-fluid">
    <a href="/gmms2/identifymachine/manage/1" type='botton' class='btn btn-success'>返回上一页</a>
        <div class="box" style="height: 620px; 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 width="10%">序号</th>
                               <th width="10%">批次</th>
                               <th width="10%">宽度</th>
                               <th width="10%">高度</th>
                               <th width="10%">厚度</th>
                               <th width="10%">颜色膜系</th>
                               <th width="10%">片数</th>
                               <th width="10%">完成片数</th>
                               <th width="10%">破损片数</th>
                               <th width="10%">故障处理</th>
                           </tr>
                       </thead>
                       <tbody>
                           ${erroedealhtml}
                       </tbody>
                   </table>
               </div>
           </div>
           <!--确认完成任务-->
            <div id="confirm" class="modal fade" tabindex="-1" role="dialog"
                aria-labelledby="myModalLabel" aria-hidden="true"
                style="height: 300px;">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"
                        aria-hidden="true">×</button>
                    <h3 id="myModalLabel"></h3>
                </div>
                <div class="modal-body" style="text-align: center;">
                    <input type="hidden" id="confirmInput" /> <input type="text"
                        id="bodyTxt"
                        style="width: 230px; font-size: large; border: 0px; font-weight: bolder; background-color: white;"
                        readonly="readonly" value="是否破损当前的玻璃小片!" />
                </div>
                <div class="modal-footer">
                    <a href="javascript:void(0)" name='check' class="btn btn-primary"
                        id='1'  type="button">是</a>
                    <button type="button" class="btn" data-dismiss="modal">关闭</button>
                </div>
            </div>
    </section>
    </div>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->
</body>
</html>