wigprint.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. {Template header}
  2. <body>
  3. <div class="warp">
  4. <div class="fixed">
  5. <ul class="search">
  6. <li>编号:<input value="" name="number" type="text"></li>
  7. <!--
  8. <li>在库状态:<select name="wiglibrary" class="select">
  9. <option value="">请选择</option>
  10. <option value="1">已入库</option>
  11. <option value="2">已出库</option>
  12. </select></li>
  13. -->
  14. <li>布标打印状态:<select name="wigprint" class="select">
  15. <option value="1">未打印</option>
  16. <option value="2">已打印</option>
  17. <option value="">全部</option>
  18. </select></li>
  19. <li>
  20. 时间筛选:<select name="time" class="select">
  21. <option value="wiglibraryrtime">扫码时间</option>
  22. <option value="printtime">发货单时间</option>
  23. <option value="wigprinttime">布标打印时间</option>
  24. <!--<option value="wiglibraryctime">出库时间</option>-->
  25. </select>
  26. </li>
  27. <li><input id="timetk" value="{date('Y-m-d',time()-30*24*3600)} 17:00" name="timetk" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})" readonly>
  28. 至&nbsp;&nbsp;&nbsp;&nbsp; <input id="timetj" value="{date('Y-m-d',time()+24*3600)} 0:00" name="timetj" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})" readonly></li>
  29. <li><span>确 定</span></li>
  30. <select name="czwarehouse" class="select none">
  31. <option value="{$czwarehouse}">{$czwarehouse}</option>
  32. </select>
  33. </ul>
  34. <div class="control zjcz">
  35. <div class="tabprint">
  36. <select name="printer" class="select" style="width:220px;">
  37. <option value="">选择打印机</option>
  38. </select>
  39. <b>扫描:<input value="" name="barcode" id="barcode" type="text" ></b>
  40. </div>
  41. <a href="javascript:void(0);" class="bbprint">打 印</a>
  42. <a href="javascript:void(0);" class="wigprintexcel">导出Excel</a>
  43. </div>
  44. <table class="datatitle data" border="0" style="border-collapse:collapse;">
  45. <tr>
  46. <td><label onClick="swapCheck()"><input name="checkbox" type="checkbox" class="regular-checkbox"></label></td>
  47. <td>编号</td>
  48. <td>发货单时间</td>
  49. <td>扫码时间</td>
  50. <td>打印时间</td>
  51. <!-- <td>出库时间</td>-->
  52. <td>仓库品名</td>
  53. </tr>
  54. </table>
  55. </div>
  56. <table class="datatext data" border="0" style="border-collapse:collapse;">
  57. </table>
  58. <div class="bomf"></div>
  59. </div>
  60. <div class="print none"></div>
  61. <div class="ts"><p class="tsn"></p></div>
  62. <div class="wigprintk">
  63. <div>
  64. <p></p>
  65. <p><font class="wigprintqd">确 定</font></p>
  66. </div>
  67. </div>
  68. <div class="tyrows"><div><p></p><p></p></div></div>
  69. <div class="list"><div><p>操作配置</p><ul class="fj"></ul><em></em></div></div>
  70. <audio id="music_d">
  71. <source src="{$theme}music/d.mp3" type="audio/mpeg">
  72. </audio>
  73. <audio id="music_c">
  74. <source src="{$theme}music/c.mp3" type="audio/mpeg">
  75. </audio>
  76. <audio id="music_print">
  77. <source src="{$theme}music/print.mp3" type="audio/mpeg">
  78. </audio>
  79. <audio id="music_print_error">
  80. <source src="{$theme}music/print_error.mp3" type="audio/mpeg">
  81. </audio>
  82. <audio id="music_print_ok">
  83. <source src="{$theme}music/print_ok.mp3" type="audio/mpeg">
  84. </audio>
  85. <span id="job" class="none"></span>
  86. <span id="site" class="none"></span>
  87. <script>
  88. var dataurl = "/wigprint/";var fdataurl = "/wigprint/";var ckty = "/wigprint/rk";var printurl = "/wigprint/bbprint/"; var jcprint = 2;//是否检测打印1检测2不检测
  89. function dyfs(data)
  90. {
  91. wprinter.bubiao(data);//打印方式
  92. }
  93. var sysprint = 1;
  94. var customon = 1;
  95. function custom(){
  96. $(".data tr").each(function() {
  97. $(this).find('td:eq(0)').css("width","1%");
  98. $(this).find('td:eq(5)').css("width","40%");
  99. });}
  100. $(document).ready(function() {
  101. $("#barcode").focus();
  102. });
  103. $(".wigprintexcel").click(function() {
  104. var f = "";
  105. $(".select").each(function() {
  106. f = f + $(this).attr("name") + "=" + $(this).children("option:selected").val() + "&";
  107. });
  108. $("input:text").each(function() {
  109. f = f + $(this).attr("name") + "=" + $(this).val() + "&";
  110. });
  111. $("input:hidden").each(function() {
  112. f = f + $(this).attr("name") + "=" + $(this).val() + "&";
  113. });
  114. var t = "";
  115. var i = 0;
  116. $(".datatitle td").each(function() {
  117. if (i > 0) {
  118. t = t + "<td>" + $(this).text() + "</td>";
  119. }
  120. i++;
  121. });
  122. var a = "";
  123. $(".datatext input[name='check']:checked").each(function() {
  124. a = a + $(this).val() + ",";
  125. });
  126. f = f + "excel=1&a=" + a + "&t=" + t;
  127. window.location.href = "/wigprint//excel?fexcel=1&" + f;
  128. $("select[name=fexcel] option:eq(0)").prop('selected', 'selected');
  129. });
  130. window.onload = function() {
  131. if(typeof $("select[name='printer']").length < 1) return;
  132. setTimeout(function(){ wprinter.printer()},1000);};
  133. </script>
  134. <script type="text/javascript" src="{$theme}js/laydate.js"></script>
  135. <script type="text/javascript" src="{$theme}js/print.js?v=202306260001"></script>
  136. {Template footer}