You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
99 lines
2.8 KiB
99 lines
2.8 KiB
<#import "../master.ftl" as master>
|
|
<@master.layout>
|
|
|
|
<div class="page-header">
|
|
<h3>倒卷一(不接卷)</h3>
|
|
</div>
|
|
|
|
<div class="row" id="app">
|
|
<div class="col-md-4">
|
|
<p><input id="fSerialNo" name="rollNo" type="text" class="form-control" placeholder="First SN" /></p>
|
|
<p><input id="eSerialNo" name="serialNo" type="text" class="form-control" placeholder="Last SN" /></p>
|
|
<p><td>本次已倒卷:</td></p>
|
|
<table id="tblInfo" class="table">
|
|
</table>
|
|
</div>
|
|
|
|
<div class="col-md-1" id="actions" style="">
|
|
<#-- <p><button id="btnConfirm" onclick="rewind()" class="btn btn-default">倒卷</button></p>-->
|
|
</div>
|
|
</div>
|
|
|
|
<style>
|
|
table.roll-op-serials {
|
|
border: 1px solid gray;
|
|
}
|
|
table.roll-op-serials td{
|
|
border: 1px dotted gray;
|
|
padding: 3px;
|
|
text-align: center;
|
|
text-align: center;
|
|
font-family: Arial,monospace;
|
|
font-size: 11px;
|
|
background-color: aliceblue;
|
|
}
|
|
|
|
table.roll-op-serials td .serial-no{
|
|
font-size: 11px;
|
|
}
|
|
|
|
|
|
</style>
|
|
|
|
<script src="/laydate/laydate.js"></script>
|
|
<script type="text/javascript" src="/js/layer/layer.js"></script>
|
|
<script>
|
|
$(function () {
|
|
$("#fSerialNo").focus();
|
|
})
|
|
function rewind(){
|
|
let fSerialNo=$("#fSerialNo").val();
|
|
let eSerialNo=$("#eSerialNo").val();
|
|
if("" == fSerialNo||null==fSerialNo){
|
|
layer.msg("Please scan one of the top 10 serial number!");
|
|
return false;
|
|
}
|
|
if("" == eSerialNo||null==eSerialNo){
|
|
layer.msg("Please scan one of the last 10 serial number!");
|
|
return false;
|
|
}
|
|
$.ajax({
|
|
url: "/rewind/scanSlittingNoForRewindOne",
|
|
type:"POST",
|
|
data:{
|
|
"fSerialNo": fSerialNo,
|
|
"eSerialNo": eSerialNo,
|
|
},// 你的formid
|
|
dataType:"JSON",
|
|
success: function (data) {
|
|
$("#fSerialNo").val("")
|
|
$("#eSerialNo").val("")
|
|
if(data.code=="200"){
|
|
var $tblInfo = $("#tblInfo");
|
|
$tblInfo.append("<tr><td>"+data.obj+" "+fSerialNo+"</td></tr>");
|
|
$("#ifmforprint").attr('src', "/print/slittingNo/"+data.obj+"/");
|
|
layer.msg("Saved!");
|
|
$("#fSerialNo").focus();
|
|
}else{
|
|
layer.msg(data.msg);
|
|
}
|
|
$("#fSerialNo").focus();
|
|
}
|
|
})
|
|
|
|
}
|
|
$("#fSerialNo").on("keydown", function(event){
|
|
if(event.keyCode==13) {
|
|
$("#eSerialNo").focus();
|
|
}
|
|
});
|
|
|
|
$("#eSerialNo").on("keydown", function(event){
|
|
if(event.keyCode==13) {
|
|
rewind();
|
|
}
|
|
|
|
});
|
|
</script>
|
|
|
|
</@master.layout>
|