|
|
|
@ -7,7 +7,7 @@ |
|
|
|
</style> |
|
|
|
|
|
|
|
<div class="page-header"> |
|
|
|
<h3>返工登记</h3> |
|
|
|
<h3>Rework Registration</h3> |
|
|
|
</div> |
|
|
|
|
|
|
|
<table id="dg" class="easyui-datagrid" style="width:100%;height:460px;display: none;" |
|
|
|
@ -42,8 +42,8 @@ |
|
|
|
to: <input class="easyui-datebox" id="createdDateTo" style="width:100px"> |
|
|
|
<a href="#nowhere" id="queryLink" class="easyui-linkbutton" iconCls="icon-search">Search</a> |
|
|
|
|
|
|
|
<a href="javascript:void(0)" id="tbAddBox" data-options="disabled:true" class="easyui-linkbutton" iconCls="icon-add" onclick="scanBoxModal()">登记返工箱</a> |
|
|
|
<a href="javascript:void(0)" id="tbAddRoll" data-options="disabled:true" class="easyui-linkbutton" iconCls="icon-add" onclick="scanRollModal()">登记返工卷</a> |
|
|
|
<a href="javascript:void(0)" id="tbAddBox" data-options="disabled:true" class="easyui-linkbutton" iconCls="icon-add" onclick="scanBoxModal()">Register Rework Box</a> |
|
|
|
<a href="javascript:void(0)" id="tbAddRoll" data-options="disabled:true" class="easyui-linkbutton" iconCls="icon-add" onclick="scanRollModal()">Register Rework Roll</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
@ -51,7 +51,7 @@ |
|
|
|
<div id="dlgBoxDtls" class="easyui-dialog" style="width:600px;display: none;" closed="true" data-options="modal:true" > |
|
|
|
<form method="post" novalidate onsubmit="return false;" style="margin:0; padding: 20px 20px"> |
|
|
|
<div style="margin-bottom:10px"> |
|
|
|
<label>箱号:</label> |
|
|
|
<label>Box No:</label> |
|
|
|
<input id="scan_box_no" name="boxNo" style="width: 75%; margin-left: 10px;"> |
|
|
|
</div> |
|
|
|
</form> |
|
|
|
@ -61,8 +61,8 @@ |
|
|
|
<tr> |
|
|
|
<th data-options="field:'boxNo',width:100">Box No</th> |
|
|
|
<th data-options="field:'rollNums',width:80">Roll Qty</th> |
|
|
|
<th data-options="field:'registerBy',width:80">登记人</th> |
|
|
|
<th data-options="field:'registerDate',width:150,align:'center', formatter: formatStringTime">登记日期</th> |
|
|
|
<th data-options="field:'registerBy',width:80">Registered By</th> |
|
|
|
<th data-options="field:'registerDate',width:150,align:'center', formatter: formatStringTime">Registration Date</th> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
</table> |
|
|
|
@ -83,8 +83,8 @@ |
|
|
|
<th data-options="field:'boxNo',width:100">Box No</th> |
|
|
|
<th data-options="field:'finalRollNo',width:100">Roll No</th> |
|
|
|
<th data-options="field:'rollQty',width:80">Quantity</th> |
|
|
|
<th data-options="field:'registerBy',width:80">登记人</th> |
|
|
|
<th data-options="field:'registerDate',width:150,align:'center', formatter: formatStringTime">登记日期</th> |
|
|
|
<th data-options="field:'registerBy',width:80">Registered By</th> |
|
|
|
<th data-options="field:'registerDate',width:150,align:'center', formatter: formatStringTime">Registration Date</th> |
|
|
|
<th data-options="field:'status',width:80">Status</th> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
@ -138,7 +138,7 @@ var currentRow; |
|
|
|
var p = n.split(','); |
|
|
|
if (p && p.length >= 3){ |
|
|
|
$("#revNo").textbox("setValue", p[2]); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
$.extend($.fn.validatebox.defaults.rules, { |
|
|
|
@ -164,8 +164,8 @@ var currentRow; |
|
|
|
function myparser(s){ |
|
|
|
if(s) return new Date(s); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* 选中行 */ |
|
|
|
function onTableRowSelect(index, row) { |
|
|
|
var noRowSelect = !!!row; |
|
|
|
@ -188,7 +188,7 @@ $("#queryLink").click(function(){ |
|
|
|
|
|
|
|
/* 查询返工单登记的箱 */ |
|
|
|
function scanBoxModal(){ |
|
|
|
$('#dlgBoxDtls').dialog('open').dialog('center').dialog('setTitle',currentRow.orderNo+'中的登记箱'); |
|
|
|
$('#dlgBoxDtls').dialog('open').dialog('center').dialog('setTitle','Registered Boxes in '+currentRow.orderNo); |
|
|
|
var opts = $('#rework_boxs').datagrid('options'); |
|
|
|
opts.queryParams = {'orderNo': currentRow.orderNo}; |
|
|
|
$("#rework_boxs").datagrid({url: "/rework/getReworkRegisterBoxs"}); |
|
|
|
@ -197,12 +197,12 @@ function scanBoxModal(){ |
|
|
|
//获取焦点 |
|
|
|
$("#scan_box_no").focus(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* 返工箱的操作 */ |
|
|
|
$("#scan_box_no").on("keyup", function(event){ |
|
|
|
var boxNo = $(this).val(); |
|
|
|
if(!boxNo || '' === boxNo){ |
|
|
|
$.messager.show({title: 'Point', msg: '请扫描登记的箱号!', timeout: 1500, showType: 'slide'}); |
|
|
|
$.messager.show({title: 'Point', msg: 'Please scan the registered box number!', timeout: 1500, showType: 'slide'}); |
|
|
|
return false; |
|
|
|
} |
|
|
|
if(event.keyCode == 13){ |
|
|
|
@ -237,7 +237,7 @@ $("#scan_box_no").on("keyup", function(event){ |
|
|
|
|
|
|
|
/* 查询返工单登记的卷 */ |
|
|
|
function scanRollModal(){ |
|
|
|
$('#dlgRollDtls').dialog('open').dialog('center').dialog('setTitle',currentRow.orderNo+'中的登记卷记录'); |
|
|
|
$('#dlgRollDtls').dialog('open').dialog('center').dialog('setTitle','Registered Rolls in '+currentRow.orderNo); |
|
|
|
var opts = $('#rework_rolls').datagrid('options'); |
|
|
|
opts.queryParams = {'orderNo': currentRow.orderNo}; |
|
|
|
$("#rework_rolls").datagrid({url: "/rework/getReworkRegisterRolls"}); |
|
|
|
@ -246,12 +246,12 @@ function scanRollModal(){ |
|
|
|
//获取焦点 |
|
|
|
$("#scan_roll_no").focus(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* 返工箱的操作 */ |
|
|
|
$("#scan_roll_no").on("keyup", function(event){ |
|
|
|
var finalRollNo = $(this).val(); |
|
|
|
if(!finalRollNo || '' === finalRollNo){ |
|
|
|
$.messager.show({title: 'Point', msg: '请扫描登记的卷号!', timeout: 1500, showType: 'slide'}); |
|
|
|
$.messager.show({title: 'Point', msg: 'Please scan the registered roll number!', timeout: 1500, showType: 'slide'}); |
|
|
|
return false; |
|
|
|
} |
|
|
|
if(event.keyCode == 13){ |
|
|
|
@ -286,8 +286,8 @@ $("#scan_roll_no").on("keyup", function(event){ |
|
|
|
|
|
|
|
/* 查询已经登记的卷信息 */ |
|
|
|
function seachRegisterRolls(){ |
|
|
|
|
|
|
|
$('#dlgRollsShow').dialog('open').dialog('center').dialog('setTitle',currentRow.orderNo+'中的登记卷记录'); |
|
|
|
|
|
|
|
$('#dlgRollsShow').dialog('open').dialog('center').dialog('setTitle','Registered Rolls in '+currentRow.orderNo); |
|
|
|
var opts = $('#show_rework_rolls').datagrid('options'); |
|
|
|
var searchStatus = $('#search_status').combobox('getValue'); |
|
|
|
opts.queryParams = {'orderNo': currentRow.orderNo, 'status': searchStatus}; |
|
|
|
@ -296,7 +296,7 @@ function seachRegisterRolls(){ |
|
|
|
|
|
|
|
/* 展示当前卷的信息 */ |
|
|
|
function viewRollsModal(orderNo){ |
|
|
|
$('#dlgRollsShow').dialog('open').dialog('center').dialog('setTitle',orderNo+'中的登记卷记录'); |
|
|
|
$('#dlgRollsShow').dialog('open').dialog('center').dialog('setTitle','Registered Rolls in '+orderNo); |
|
|
|
var opts = $('#show_rework_rolls').datagrid('options'); |
|
|
|
opts.queryParams = {'orderNo': orderNo, 'status': 'ALL'}; |
|
|
|
$('#search_status').combobox('setValue', 'ALL'); |
|
|
|
@ -306,7 +306,7 @@ function viewRollsModal(orderNo){ |
|
|
|
//检查卷信息 |
|
|
|
function formatAction(value, row){ |
|
|
|
return "<a href='javascript:viewRollsModal(\""+row.orderNo+"\")'>Roll detail</a>"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
var delay = (function(){ |
|
|
|
var timer = 0; |
|
|
|
|