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

3 days ago
  1. <#import "../master.ftl" as master>
  2. <@master.layout>
  3. <style>
  4. #fm label {
  5. width: 150px;
  6. }
  7. </style>
  8. <div class="page-header">
  9. <h3>工单出货查询</h3>
  10. </div>
  11. <table id="dg" class="easyui-datagrid" style="width:100%;height:460px;display: none;"
  12. data-options="pagination: false, showFooter: true, singleSelect:true, fitColumns:true , url:'/query/delivery/getDeliveryOrderRolls',method:'post',pageSize:20,toolbar:'#tb'">
  13. <thead>
  14. <tr>
  15. <th data-options="field:'shipNo',width:90,editor:'textbox',align:'center'">出货单号</th>
  16. <th data-options="field:'ifsDeliveryNoteNo',width:90,editor:'textbox',align:'center'">IFS单号</th>
  17. <th data-options="field:'shippedDate',width:90,editor:'textbox',align:'center'">发货日期</th>
  18. <th data-options="field:'customerNo',width:80,align:'center'">客户编码</th>
  19. <th data-options="field:'customerName',width:80,align:'center'">Customer Name.</th>
  20. <th data-options="field:'inBoxNo',width:80,align:'center'">入库箱号</th>
  21. <th data-options="field:'outBoxNo',width:80,align:'center'">出货箱号</th>
  22. <th data-options="field:'finalRollNo',width:90,editor:'textbox',align:'center'">Roll No</th>
  23. <th data-options="field:'rollQty',width:90,editor:'textbox',align:'right'">Quantity</th>
  24. <th data-options="field:'orderNo',width:80,editor:'textbox',align:'center'">SO No</th>
  25. <th data-options="field:'locationNo',width:60,align:'center'">Location No</th>
  26. </tr>
  27. </thead>
  28. </table>
  29. <div id="tb" style="padding:10px 5px;display: none;">
  30. <div>
  31. Order No: <input class="easyui-textbox" id="orderNo" style="width:110px">
  32. <a href="#nowhere" id="queryLink" class="easyui-linkbutton" iconCls="icon-search">Search</a>
  33. <a class="easyui-linkbutton" iconCls="icon-add" onclick="downOrderExcel()">Export to Excel</a>
  34. </div>
  35. </div>
  36. <script>
  37. $(window).resize(function () {
  38. $("#dg").datagrid({"height": $(window).height() - $(".datagrid").offset().top - 20});
  39. });
  40. $(function () {
  41. $(window).resize();
  42. });
  43. $.extend($.fn.validatebox.defaults.rules, {
  44. notRequired: function(value){
  45. return true;
  46. },
  47. validDate: {
  48. validator: function(value){
  49. var date = $.fn.datebox.defaults.parser(value);
  50. var s = $.fn.datebox.defaults.formatter(date);
  51. return s==value;
  52. },
  53. message: 'Please enter a valid date.'
  54. },
  55. valueRange: {
  56. validator: function(value,param){
  57. return value >= param[0] && value <= param[1];
  58. },
  59. message: 'Field do not match.'
  60. }
  61. });
  62. function myparser(s){
  63. if(s) return new Date(s);
  64. }
  65. $("#queryLink").click(function(){
  66. var dg = $('#dg').datagrid({
  67. queryParams: {
  68. orderNo: $("#orderNo").val()
  69. }
  70. });
  71. });
  72. //下载Excel数据
  73. function downOrderExcel(){
  74. let orderNo = $("#orderNo").val();
  75. let print_url = '/export/delivery/downDeliveryBoxRollExcel?orderNo='+orderNo;
  76. $("#ifmforprint").attr('src', print_url);
  77. }
  78. </script>
  79. </@master.layout>