严智鑫
2024-05-13 cedce4883f0d204f5bf7bf87c0bf4858dabb0c23
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
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>仓储任务信息</title>
<!-- jQuery 3 -->
<script
    src="${ctx }/static/AdminLTE/bower_components/jquery/dist/jquery.min.js"></script>
<!-- Bootstrap 3.3.7 -->
<script
    src="${ctx }/static/AdminLTE/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- DataTables -->
<script
    src="${ctx }/static/AdminLTE/bower_components/datatables.net/js/jquery.dataTables.min.js"></script>
<script
    src="${ctx }/static/AdminLTE/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
<!-- SlimScroll -->
<script
    src="${ctx }/static/AdminLTE/bower_components/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<!-- FastClick -->
<script
    src="${ctx }/static/AdminLTE/bower_components/fastclick/lib/fastclick.js"></script>
 <script type="text/javascript">
    var interval = setInterval('refreshStatus()', 5000);
    $(document).ready(function(){
        var info = $("#info").attr("info");
        $("#infos").html(info);
});
    // 设备页面自动刷新
    /* function refreshStatus() {
        window.location.reload();
    } */
    
    // 停止页面自动刷新
    function disableAutoRefresh() {
        clearInterval(interval);
    }
    
    
    function delAll(type){
        var checkboxs=document.getElementsByName('id');
          for(var i=0;i<checkboxs.length;i++){
          var checkbox=checkboxs[i];
          if(checkbox.checked){               
            var RowHtml=checkbox.parentNode.parentNode;
            var taskid=RowHtml.getElementsByClassName("rankid")[0].innerHTML;
              
                $.ajax({
                  cache:false,
                  type:"POST",
                  dataType : "json", 
                   url:"${ctx}/shelfmanager/updateshelftask",
                   data:{
                       "taskid":taskid,
                       "type":type
                   },success:function(data){ 
                       window.location.href="${ctx}/shelfmanager/shelftask";
                  }
              }); 
          }         
      } 
    }
    </script>
</head>
 
<body style="padding: 20px;">
    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
        <h1>
            仓储任务 <small>详情</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="${ctx }/shelfmanager/taskimport"><i
                    class="fa fa-reply"></i>仓储任务</a></li>
            <li class="active">详情</li>
        </ol>
        </section>
        <div id = "allstatu" allstatu = "${allstatu}"></div>
           <div id = "info" info = "${info}"></div>
        <div>
 
            <!-- Main content -->
            <section class="content container-fluid">
            <div class="box box-default" style="background-color:#D5EAFF;">
                <div class="box-header with-border">
                    <h3 class="box-title">仓储</h3>
                    ${status}
                </div>
                <!-- /.box-header -->
                <button type="button" onclick="delAll('重新开始')" class="btn btn-primary ">重新开始</button>
                <button type="button" onclick="delAll('完成')" class="btn btn-primary ">任务完成</button>
                <button type="button" onclick="delAll('删除')" class="btn btn-primary ">删除任务</button>
                <div class="box-body" style="height:300px;overflow-y:auto;">
                    <table class="table table-striped table-hover"
                    style="font-size: 18px;" id="example2">
                    <thead>
                        <tr>
                            <th>选择</th>
                            <th style="display:none">编号</th>
                            <th>GlassID</th>
                            <th>任务描述</th>
                            <th>任务状态</th>
                            <th>玻璃厚度</th>
                            <th>玻璃膜系</th>
                            <th>创建时间</th>
                        </tr>
                    </thead>
                    <tbody>
                        ${shelftasks}
                    </tbody>
                </table>
             </div>
             </div>
                </section>
            </div>
            <div class="callout callout-warning" style="background-color:#D5EAFF !important; border-left:0px">
            <div style='text-align: center;color:red;font-size:30px;border-left:0;'>${lackGlassHtml}</div>
                <h4 style="color: black;">故障操作</h4>
                <p style="color: black;">当小车发生故障时,导致我们的任务没有完成就失败了。小车回零点,这样我们的任务就会一直堵在刚才的那个任务,完成与否我们都不清楚,需要去手动解决,任务完成的话,点击任务完成按钮,没有完成点击重新开始按钮</p>
                <br>
                <div style='text-align: center;'>
                    <span style='font-size: 30px;color: black;'>当前任务:${workingtask.description}</span><br>
                    
                    <br> <%-- <a class="btn btn-large btn-success"
                        href="${ctx }/shelfmanager/finishshelftask"
                        style='text-decoration: none;'>任务完成</a>&nbsp;&nbsp; --%>
                    <%-- <a class="btn btn-large btn-success"
                        href="${ctx }/shelfmanager/againshelftask"
                        style='text-decoration: none;'>重新开始</a>&nbsp;&nbsp;
                        
                        <a class="btn btn-large btn-danger"
                        href="${ctx }/shelfmanager/deletetask"
                        style='text-decoration: none;'>删除所有的吊装任务</a>&nbsp;&nbsp;
                        
                        <a class="btn btn-large btn-danger"
                        href="${ctx }/shelfmanager/deletetloadask"
                        style='text-decoration: none;'>删除上片任务</a> --%>
                
                </div>
            </div>
            
        </div>
        <!-- /.content -->
    <!-- /.content-wrapper -->
    <!-- page script -->
 
 
    <script>
        $(function() {
            $('#example2').DataTable({
                'paging' : true,
                'lengthChange' : false,
                'searching' : false,
                'ordering' : true,
                'info' : true,
                'autoWidth' : false
            })
        })
    </script>
</body>
</html>