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.
 
 
 
 
 

96 lines
3.2 KiB

<#import "../master.ftl" as master>
<@master.layout>
<style>
#fm label {
width: 150px;
}
</style>
<div class="page-header">
<h3>工单出货查询</h3>
</div>
<table id="dg" class="easyui-datagrid" style="width:100%;height:460px;display: none;"
data-options="pagination: false, showFooter: true, singleSelect:true, fitColumns:true , url:'/query/delivery/getDeliveryOrderRolls',method:'post',pageSize:20,toolbar:'#tb'">
<thead>
<tr>
<th data-options="field:'shipNo',width:90,editor:'textbox',align:'center'">出货单号</th>
<th data-options="field:'ifsDeliveryNoteNo',width:90,editor:'textbox',align:'center'">IFS单号</th>
<th data-options="field:'shippedDate',width:90,editor:'textbox',align:'center'">发货日期</th>
<th data-options="field:'customerNo',width:80,align:'center'">客户编码</th>
<th data-options="field:'customerName',width:80,align:'center'">Customer Name.</th>
<th data-options="field:'inBoxNo',width:80,align:'center'">入库箱号</th>
<th data-options="field:'outBoxNo',width:80,align:'center'">出货箱号</th>
<th data-options="field:'finalRollNo',width:90,editor:'textbox',align:'center'">Roll No</th>
<th data-options="field:'rollQty',width:90,editor:'textbox',align:'right'">Quantity</th>
<th data-options="field:'orderNo',width:80,editor:'textbox',align:'center'">SO No</th>
<th data-options="field:'locationNo',width:60,align:'center'">Location No</th>
</tr>
</thead>
</table>
<div id="tb" style="padding:10px 5px;display: none;">
<div>
Order No: <input class="easyui-textbox" id="orderNo" style="width:110px">
<a href="#nowhere" id="queryLink" class="easyui-linkbutton" iconCls="icon-search">Search</a>
<a class="easyui-linkbutton" iconCls="icon-add" onclick="downOrderExcel()">Export to Excel</a>
</div>
</div>
<script>
$(window).resize(function () {
$("#dg").datagrid({"height": $(window).height() - $(".datagrid").offset().top - 20});
});
$(function () {
$(window).resize();
});
$.extend($.fn.validatebox.defaults.rules, {
notRequired: function(value){
return true;
},
validDate: {
validator: function(value){
var date = $.fn.datebox.defaults.parser(value);
var s = $.fn.datebox.defaults.formatter(date);
return s==value;
},
message: 'Please enter a valid date.'
},
valueRange: {
validator: function(value,param){
return value >= param[0] && value <= param[1];
},
message: 'Field do not match.'
}
});
function myparser(s){
if(s) return new Date(s);
}
$("#queryLink").click(function(){
var dg = $('#dg').datagrid({
queryParams: {
orderNo: $("#orderNo").val()
}
});
});
//下载Excel数据
function downOrderExcel(){
let orderNo = $("#orderNo").val();
let print_url = '/export/delivery/downDeliveryBoxRollExcel?orderNo='+orderNo;
$("#ifmforprint").attr('src', print_url);
}
</script>
</@master.layout>