廖井涛
2025-06-06 32e8ae44d542d6f6d2dc82896f5ffe58ce695889
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
<%@ 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>
<script type="text/javascript" src="${ctx}/static/jquery/jquery-3.1.0.min.js"></script>
    <script>
    function taskurl(taskstate) {
        if(taskstate=="已完成"){
            window.location.href="${ctx }/tasks/alltasks?taskstate=11";
        }else if(taskstate=="未完成"){
            window.location.href="${ctx }/tasks/alltasks?taskstate=10";
        }else{
            window.location.href="${ctx }/tasks/alltasks?taskstate=0";
        }
        
    }
    function addinfo() {
        window.open("${ctx}/Config/minche",self);
    }
    function checkAll() {
        var checkedAll=document.getElementById("checkall");
        var ischeked=false;
        if(checkedAll.checked){
            ischeked=true;
        }
        var checkboxs=document.getElementsByClassName("checkboxs");
        for(var i=0;i<checkboxs.length;i++){
            checkboxs[i].checked=ischeked;
        }        
    }
    /*删除Delete  */ /*重置Reset  *//*完成Finsh  */
    function ResetDeleteFinsh(flag){
        var checkboxs=document.getElementsByClassName("checkboxs");         
        for(var i=0;i<checkboxs.length;i++){
            var checkbox=checkboxs[i];
            if(checkbox.checked){               
                var RowHtml=checkbox.parentNode.parentNode;                
                var OutTaskIdHtml=RowHtml.getElementsByClassName("OutTaskId")[0].innerHTML; 
                $.ajax({
                    cache:false,
                    type:"POST",
                    dataType : "json", 
                     url:"${ctx}/tasks/ResetDeleteFinsh",
                     data:{
                         "OutTaskId":OutTaskIdHtml,
                         "flag":flag,
                     },success:function(data){                        
                        window.location.href="${ctx}/tasks/alltasks";
                    }
                });
                 //alert(RackIdHtml+":"+type);
            }         
        } 
    }
    </script>
<title>任务管理</title>
<style type="text/css">
*{
    padding:0px;
    margin:0px;
    font-family: "microsoft yahei","Helvetica Neue", Helvetica, Arial, sans-serif;
}
#Top {
    display: block;
    margin-bottom: 10px;
    padding: 5px;
    padding-left: 6px;
    padding-right: 15px;
    line-height: 22px;
    /* border-left: 5px solid #15c142; */
    border-radius: 0 2px 2px 0;
    background-color: #f2f2f2;
}
.btn{
    height:35px;
    line-height:35px;
    background-color: #0dc316;
    padding:0 15px;
    color: #fff;
    border: none;
    border-radius: 2px;
}
#Table_Minche thead tr{
    background-color:#00BFFF;
    font-weight:800;
}
#Table_Minche thead td{
    border:1px solid #00BFFF;
}
#Table_Minche td{
    border:1px solid #f2f2f2;
    height:20px;
    line-height:20px;
    padding:9px 15px 9px 15px;
}
</style>
</head>
<body>
    <div class="content-wrapper" style="background-color: white;">
<!--         <section class="content-header"></section> -->
        <section class="content container-fluid">
            <div id="Top">
                <button class="btn" onclick="taskurl('未完成')">未完成</button>
                <button class="btn" onclick="taskurl('已完成')">已完成</button>
                <button class="btn" style="background-color: #fd5f56;" onclick="ResetDeleteFinsh('删除')">删除</button>
                <button class="btn" onclick="ResetDeleteFinsh('第一段')">第一段重新下发</button>
                <button class="btn" onclick="ResetDeleteFinsh('第二段')">第二段重新下发</button>
                <button class="btn" onclick="ResetDeleteFinsh('铁架已到位')">铁架到位</button>
                <button class="btn" onclick="ResetDeleteFinsh('完工')">完工</button>
                <button class="btn" onclick="ResetDeleteFinsh('任务完成')">任务完成</button>
                <span style="float:right;line-height: 40px">共有机器:0 台</span>
            </div>
            <div style="margin-top:20px;">
                <table id="Table_Minche" style="width: 100%; border-collapse: collapse; border-spacing: 0;">
                    <thead>
                        <tr>
                            <td style="text-align: center;"><input id="checkall" type="checkbox" /></td>
                            <td>ID</td>
                            <td>任务ID</td>
                            <td>任务类型</td>
                            <td>MES状态</td>
                            <td>机器状态</td>
                            <td>原片包ID</td>
                            <td>铁架号</td>
                            <td>目的地</td>
                            <td>计划上片数量1</td>
                            <td>计划上片数量2</td>
                            <td>计划上片数量3</td>
                            <td>架上总数量</td>
                            <td>已上片数量</td>
                            <td>破损数量</td>
                            <td>新原片包ID</td>
                            <td>新原片包内数量</td>
                            <td>原片宽</td>
                            <td>原片高</td>
                            <td>原片颜色</td>
                            <td>原片厚度</td>
                            <td>原片数量</td>
                            <td>铁架总厚度</td>
                        </tr>
                    </thead>
                    <tbody>${OutTaskshtml}
                    </tbody>
                </table>
            </div>
        </section>
    </div>
</body>
</html>