<%@ 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>
|
下片设备信息 <small>当前班组:</small> <span
|
id="s_current_banzu" style="font-weight: bold;"></span>
|
<!-- <button id="btnBanZu" type='button' class='btn btn-primary '
|
onclick='onChangeBanZu()'>选择班组</button> -->
|
|
<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">×</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">×</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">
|
选择 <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>
|