| | |
| | | <!-- Theme style --> |
| | | <link rel="stylesheet" href="../static/AdminLTE/dist/css/AdminLTE.min.css"> |
| | | <link rel="stylesheet" href="../static/AdminLTE/dist/css/skins/skin-blue.min.css"> |
| | | |
| | | <link rel="stylesheet" href="../static/css/element.css"> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| | | <script type="text/javascript" src="../static/jquery/jquery-3.1.0.min.js"></script> |
| | | <script type="text/javascript" |
| | |
| | | clearInterval(interval); |
| | | } */ |
| | | |
| | | function delecttask(id){ |
| | | disableAutoRefresh(); |
| | | $.ajax({ |
| | | async: false, |
| | | |
| | | type:"GET", |
| | | |
| | | url:"${ctx}/cutmanage/delecttask/"+id, |
| | | |
| | | dataType:"text", |
| | | |
| | | success:function(data){ |
| | | window.location.href="${ctx}/cutmanage/gettask/"+id; |
| | | } |
| | | }); |
| | | } |
| | | |
| | | function delecttask1(id){ |
| | | disableAutoRefresh(); |
| | | $.ajax({ |
| | | async: false, |
| | | |
| | | type:"GET", |
| | | |
| | | url:"${ctx}/cutmanage/delecttask1/"+id, |
| | | |
| | | dataType:"text", |
| | | |
| | | success:function(data){ |
| | | window.location.href="${ctx}/cutmanage/gettask/"+id; |
| | | } |
| | | }); |
| | | } |
| | | |
| | | function updatetask(id){ |
| | | disableAutoRefresh(); |
| | | var groups=document.getElementsByName('groups')[0].value; |
| | | $.ajax({ |
| | | cache:false, |
| | | type:"POST", |
| | | dataType : "json", |
| | | url:"${ctx}/cutmanage/updatetask", |
| | | data:{ |
| | | "id":id, |
| | | },success:function(data){ |
| | | window.location.href="${ctx}/cutmanage/gettask/"+groups; |
| | | } |
| | | }); |
| | | } |
| | | |
| | | function updatetask1(id){ |
| | | disableAutoRefresh(); |
| | | var groups=document.getElementsByName('groups')[0].value; |
| | | $.ajax({ |
| | | cache:false, |
| | | type:"POST", |
| | | dataType : "json", |
| | | url:"${ctx}/cutmanage/updatetask1", |
| | | data:{ |
| | | "id":id, |
| | | },success:function(data){ |
| | | window.location.href="${ctx}/cutmanage/gettask/"+groups; |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | | |
| | | function able_entry(){ |
| | | //var g=${groups}; |
| | | |
| | | $.ajax({ url:"/gmms2/mesview/data/_service", |
| | | type:"post", |
| | | data:{m:"load_entery",p:g }, |
| | | success:function(data){ |
| | | var d=JSON.parse(data); |
| | | if(d.result!="ok") |
| | | alert(data); |
| | | else |
| | | window.location.reload(); |
| | | }, |
| | | error:function(data){ |
| | | alert(data); |
| | | } |
| | | } |
| | | ); |
| | | } |
| | | |
| | | |
| | | </script> |
| | |
| | | |
| | | <ol class="breadcrumb"> |
| | | |
| | | <li><a href="#">设备<i class="fa fa-dashboard"></i>任务 |
| | | |
| | | </a></li> |
| | | </ol> |
| | | </section> |
| | | |
| | | <div id = "allstatu" allstatu = "${allstatu}"></div> |
| | | <div id = "info" info = "${info}"></div> |
| | | <div id = "allstatu" ></div> |
| | | <div id = "info" ></div> |
| | | <!-- Main content --> |
| | | <input style="display:none" type="text" name="groups" value="${groups}" /> |
| | | <section class="content container-fluid"> |
| | | <div> |
| | | </div> |
| | | <div> |
| | | <span>状态:</span> |
| | | <span id="st"></span> |
| | | <button class="btn btn-large btn-success" style="margin-left:20px" @click="ableEntry">确认</button> |
| | | </div> |
| | | <div class="box" style="height: 120px; overflow: auto;margin-top: 10px;"> |
| | | |
| | | <div class="box" style="height: 620px; overflow: auto;margin-top: 10px;"> |
| | | <table class="table table-striped table-hover" |
| | | style="overflow-x: auto"> |
| | | <thead> |
| | | <tr> |
| | | <th>工程名称</th> |
| | | <!-- <th>宽度</th> |
| | | <th>高度</th> |
| | | <th>项目名称</th> |
| | | <th>原片宽度</th> |
| | | <th>原片高度</th> |
| | | <th>小片宽度</th> |
| | | <th>小片高度</th> |
| | | <th>厚度</th> |
| | | <th>类型</th> --> |
| | | <th>完成数量</th> |
| | | <th>总数量</th> |
| | | <th>完成面积(mm)</th> |
| | | <th>原片总数量</th> |
| | | <th>原片已加工数量</th> |
| | | <th>小片总数量</th> |
| | | <th>小片已加工数量</th> |
| | | <th>订单状态</th> |
| | | <th>制单人</th> |
| | | <th>操作</th> |
| | | |
| | | </tr> |
| | | </thead> |
| | | <tbody> |
| | | <tr v-for="items in shuzu"> |
| | | <td v-show="index>0" v-for='(item,key,index) in items'> |
| | | {{item}} |
| | | <td> |
| | | <td> |
| | | <button @click="deleteTask(items[0])" style='background-color: #5CADFE' class='btn btn-large btn-success' >中断任务</button> |
| | |   |
| | | <button @click="clearTask(items[0])" style='background-color: #5CADFE' class='btn btn-large btn-success' >结束任务</button> |
| | | <tr v-for="item in shuzu"> |
| | | <td>{{item[1]}}</td> |
| | | <td>{{item[2]}}</td> |
| | | <td>{{item[3]}}</td> |
| | | <td>{{item[4]}}</td> |
| | | <td>{{item[5]}}</td> |
| | | <td>{{item[6]}}</td> |
| | | <td>{{item[7]}}</td> |
| | | <td>{{item[8]}}</td> |
| | | <td>{{item[9]}}</td> |
| | | <td>{{item[10]}}</td> |
| | | <td v-if="item[11]==1"> |
| | | 已下发 |
| | | </td> |
| | | <td v-else-if="item[11]==2"> |
| | | 已领取 |
| | | </td> |
| | | <td v-else-if="item[11]==3"> |
| | | 已完成 |
| | | </td> |
| | | <td v-else-if="item[11]==4"> |
| | | 手动完成 |
| | | </td> |
| | | <td v-else> |
| | | |
| | | </td> |
| | | <td>{{item[12]}}</td> |
| | | <td v-if="item[11]==1"> |
| | | <button @click="dainjishijian('领取任务',item[0])" style='background-color: #5CADFE' class='btn btn-large btn-success' >领取任务</button> |
| | | |
| | | <button @click="dainjishijian('手动完成',item[0])" style='background-color: #5CADFE' class='btn btn-large btn-success' >手动完成</button> |
| | | </td> |
| | | <td v-else-if="item[11]==2"> |
| | | |
| | | <button @click="dainjishijian('结束任务',item[0])" style='background-color: #5CADFE' class='btn btn-large btn-success' >结束任务</button> |
| | | |
| | | <button @click="dainjishijian('取消任务',item[0])" style='background-color: #5CADFE' class='btn btn-large btn-success' >手动完成</button> |
| | | </td> |
| | | <!-- <td v-else-if="item[11]==2"> |
| | | <button @click="dainjishijian('重新下发',item[0])" style='background-color: #5CADFE' class='btn btn-large btn-success' >重新下发</button> |
| | | </td> --> |
| | | <td v-else> |
| | | |
| | | </td> |
| | | </tr> |
| | | </tbody> |
| | | </table> |
| | | </div> |
| | | <div class="box" style="height: 600px; overflow: auto;margin-top: 10px;"> |
| | | <table class="table table-striped table-hover2" |
| | | style="overflow-x: auto"> |
| | | <thead> |
| | | <tr> |
| | | <th>编号</th> |
| | | <th>宽度</th> |
| | | <th>高度</th> |
| | | <th>厚度</th> |
| | | <th>颜色</th> |
| | | <th>状态</th> |
| | | <th>操作</th> |
| | | |
| | | </tr> |
| | | </thead> |
| | | <tbody> |
| | | <tr v-for='items in shuzu1'> |
| | | <td v-show="index>0" v-for='(item,key,index) in items'> |
| | | {{item}} |
| | | </td> |
| | | <td> |
| | | <button @click="updatetask(items[0],0,'三号线任务重新开始')" style='background-color: #5CADFE' class='btn btn-large btn-success' >重新开始</button> |
| | |   |
| | | <button @click="updatetask(items[0],1,'三号线任务手动完成')" style='background-color: #5CADFE' class='btn btn-large btn-success' >设置完成</button> |
| | | </td> |
| | | </tr> |
| | | </tbody> |
| | | </table> |
| | | |
| | | <div class="modal fade" id="modify-info" tabindex="-1" role="dialog" |
| | | aria-labelledby="myModalLabel" aria-hidden="true"> |
| | | <form class="form-horizontal" role="form"> |
| | | <div class="modal-dialog"> |
| | | <div class="modal-content"> |
| | | <input type='hidden' id = "lineprint"> |
| | | <div class="modal-header"> |
| | | <button type="button" class="close" data-dismiss="modal" |
| | | aria-hidden="true">×</button> |
| | | <h3 class="modal-title" id="myModalLabel">提示信息</h3> |
| | | </div> |
| | | <div class="modal-body" style="text-align: left;"> |
| | | <h3>您确定要执行当前操作吗?</h3> |
| | | </div> |
| | | <div class="modal-footer"> |
| | | |
| | | <button type="button" @click='renwuguanliquxiao' class="btn btn-default btn-lg" |
| | | data-dismiss="modal">取消</button> |
| | | |
| | | <button id="dianjishijian" @click='renwuguanli' type="button" class="btn btn-primary btn-lg" |
| | | id="surefinish">确认</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | |
| | | </section> |
| | | <!-- /.content --> |
| | | </div> |
| | | <script> |
| | | //var st=""${able}; |
| | | var sp=document.getElementById("st"); |
| | | var str1="未知"; |
| | | if(st==0){ |
| | | str1="未确认"; |
| | | } |
| | | else{ |
| | | str1="已确认"; |
| | | } |
| | | sp.innerText=str1; |
| | | </script> |
| | | <script src="../js/vue.min.js"></script> |
| | | <script type="text/javascript" src="../static/jquery/jquery-3.1.0.min.js"></script> |
| | | <script type="text/javascript" src="../static/bootstrap/3.3.7/js/bootstrap.min.js"></script> |
| | | <script src="../js/vue.min.js"></script> |
| | | <script src="../js/mixins.js"></script> |
| | | <script src="../static/js/element.js"></script> |
| | | <script> |
| | | let app = new Vue({ |
| | | el:'#app', |
| | |
| | | data:{ |
| | | shuzu:[], |
| | | shuzu1:[], |
| | | lines:<%= request.getParameter("id") %> |
| | | lines:<%= request.getParameter("id") %>, |
| | | subval:{ |
| | | id:'', |
| | | type:'' |
| | | } |
| | | }, |
| | | methods:{ |
| | | deleteTask:function(ids){ |
| | | sql="{call AXJ_qiegeguanli_threelinetask_zhongduanrenwu(?,?,?)}~"+"{'ids':'"+ids+"'}"; |
| | | this.connects(this.lines+"号线中止",sql,2,1); |
| | | dainjishijian:function(type,id){ |
| | | console.log(type,id); |
| | | $("#modify-info").modal('show'); |
| | | if(type=="领取任务"){ |
| | | this.subval.type=2; |
| | | }else if(type=="结束任务"){ |
| | | this.subval.type=3; |
| | | }else if(type=="手动完成"){ |
| | | this.subval.type=4; |
| | | }else if(type=="取消任务"){ |
| | | this.subval.type=1; |
| | | } |
| | | this.subval.id=id |
| | | }, |
| | | clearTask:function(ids){ |
| | | sql="{call AXJ_qiegeguanli_threelinetask_jieshurenwu(?,?)}~"+"{'ids':'"+ids+"'}"; |
| | | this.connects(this.lines+"号线结束",sql,2,1); |
| | | renwuguanli:function(){ |
| | | sql="{call AXJ_qiegeguanli_threelinetask_renwuguanli(?,?,?)}~"+JSON.stringify(this.subval); |
| | | console.log(sql); |
| | | this.connects("任务修改",sql,1,1) |
| | | }, |
| | | updatetask:function(ids,types,clickname){ |
| | | sql="{call AXJ_qiegeguanli_threelinetask_updatetask(?,?,?)}~"+"{'ids':'"+ids+"','type':'"+types+"'}"; |
| | | this.connects(clickname,sql,2,1); |
| | | }, |
| | | ableEntry:function(){ |
| | | sql="{call AXJ_qiegeguanli_threelinetask_sure(?,?)}~"+"{'ids':'"+<%= request.getParameter("id") %>+"'}"; |
| | | this.connects(this.lines+'号线确认',sql,2,1); |
| | | renwuguanliquxiao:function(){ |
| | | this.subval=''; |
| | | } |
| | | |
| | | }, |
| | |
| | | line:<%= request.getParameter("id") %> |
| | | } |
| | | this.shuzu=""; |
| | | let sql="{call AXJ_qiegeguanli_threelinetask_list1(?,?)}~"+JSON.stringify(canshu); |
| | | let sql="{call AXJ_qiegeguanli_threelinetask_list1()}"; |
| | | let flag=2; |
| | | loadAjxs(this.lines+'号线list1',sql,flag,"shuzu"); |
| | | sql="{call AXJ_qiegeguanli_threelinetask_list2(?,?)}~"+JSON.stringify(canshu); |
| | | loadAjxs(this.lines+'号线list2',sql,flag,"shuzu1"); |
| | | loadAjxs('任务查询成功',sql,flag,"shuzu"); |
| | | } |
| | | |
| | | }) |