transfer_rk.html 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. {Template header}
  2. <body>
  3. <div class="warp">
  4. <div class="fixed">
  5. <div class="numberprint">
  6. <ul class="searchtop search" style="text-align: center;padding: 10px 0;margin-top:80px;">
  7. <li>
  8. <select name="transfer" class="select" style="height: 56px;font-size: 20px;text-align: center;">
  9. {if $vip == 1}
  10. <option value="">查看所有</option>
  11. {/if}
  12. {loop $transfer as $val}
  13. <option value="{$val['id']}">{$val['title']}</option>
  14. {/loop}
  15. </select>
  16. </li>
  17. <li style="display: none;"><select name="cz" class="select" style="font-size: 18px;">
  18. <option value="1">入库</option>
  19. </select></li>
  20. <li style="height: 56px;line-height: 56px;padding: 0 88px;font-size: 26px;color: #fff;background-color: #2084db;margin-right: 50px;border-radius: 5px; display: inline-block;;cursor: pointer;">请扫码入库</li>
  21. <li style="height: 56px;line-height: 56px;"><input value="" name="transferout" id="transferout" placeholder="点此处扫码" type="text" style="width:500px;height: 50px;line-height: 50px;"></li>
  22. <li style="display: none;">扫描时间:<input id="timetk" value="{date('Y-m-d',time()-1*24*3600)} 0:00" name="timetk" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})">
  23. 至&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'})"></li>
  24. <li style="display: none;"><span>确 定</span></li>
  25. </ul>
  26. </div>
  27. <table class="datatitle data" border="0" style="border-collapse:collapse;">
  28. <tr>
  29. <td><label onClick="swapCheck()"><input name="checkbox" type="checkbox" class="regular-checkbox"></label></td>
  30. <td>编号</td>
  31. <td>品名</td>
  32. <td>备注</td>
  33. <td>打印时间</td>
  34. <td>操作时间</td>
  35. </tr>
  36. </table>
  37. </div>
  38. <table class="datatext data" border="0" style="border-collapse:collapse;">
  39. </table>
  40. <div class="bomf"></div>
  41. </div>
  42. <div class="print none"></div>
  43. <div class="ts"><p class="tsn"></p></div>
  44. <div class="systemwindow">
  45. <div>
  46. <p></p>
  47. <p><font class="button">确 定</font><font class="esc">取 消</font></p>
  48. </div>
  49. </div>
  50. <div class="boundtj">
  51. <div>
  52. <p></p>
  53. <p><font class="button">确 定</font><font class="esc">取 消</font></p>
  54. </div>
  55. </div>
  56. <div class="tyrows"><div><p></p><p></p></div></div>
  57. <audio id="music_d">
  58. <source src="{$theme}music/d.mp3" type="audio/mpeg">
  59. </audio>
  60. <audio id="music_c">
  61. <source src="{$theme}music/c.mp3" type="audio/mpeg">
  62. </audio>
  63. <audio id="music_print">
  64. <source src="{$theme}music/print.mp3" type="audio/mpeg">
  65. </audio>
  66. <audio id="music_print_error">
  67. <source src="{$theme}music/print_error.mp3" type="audio/mpeg">
  68. </audio>
  69. <audio id="music_print_ok">
  70. <source src="{$theme}music/print_ok.mp3" type="audio/mpeg">
  71. </audio>
  72. <script>
  73. var sysprint = 1;var transfer = 1;
  74. var dataurl = "/transfer/rk/";var fdataurl = "/transfer/rk/";
  75. window.onload = function() {
  76. if(typeof $("select[name='printer']").length < 1) return;
  77. setTimeout(function(){ wprinter.printer()},1000);};
  78. $(document).ready(function() {
  79. $("#transferout").focus();
  80. });
  81. $(".xz").click(function() {
  82. var f = "";
  83. $(".select").each(function() {
  84. f = f + $(this).attr("name") + "=" + $(this).children("option:selected").val() + "&";
  85. });
  86. $("input:text").each(function() {
  87. f = f + $(this).attr("name") + "=" + $(this).val() + "&";
  88. });
  89. $("input:hidden").each(function() {
  90. f = f + $(this).attr("name") + "=" + $(this).val() + "&";
  91. });
  92. window.location.href = "/transfer/excel/?fexcel=1&"+f;
  93. });
  94. $(document).keyup(function(event) {
  95. if (event.keyCode == 13) {
  96. if (typeof transfer != "undefined") {
  97. var f = "";
  98. $(".select").each(function() {
  99. f = f + $(this).attr("name") + "=" + $(this).children("option:selected").val() + "&";
  100. });
  101. $("input:text").each(function() {
  102. f = f + $(this).attr("name") + "=" + $(this).val() + "&";
  103. });
  104. $("input:hidden").each(function() {
  105. f = f + $(this).attr("name") + "=" + $(this).val() + "&";
  106. });
  107. $(".search .number").val("");
  108. $(".search .waybill").val("");
  109. $.ajax({
  110. url: "/transfer/out",
  111. data: "label=" + $("input[name='transferout']").val() + "&"+f,
  112. type: "POST",
  113. dataType: "json",
  114. success: function(b) {
  115. $(".systemwindow").hide();
  116. if (b && b.success) {
  117. $("#music_d")[0].play();
  118. $("#transferout").val("");
  119. $("#transferout").focus();
  120. } else {
  121. $("#wigsout").blur();
  122. $("#music_c")[0].play();
  123. $(".express div p:eq(0)").html(b.msg);
  124. $(".express div p:eq(1)").html("<font class='esc'>确 定</font>");
  125. $(".express").show();
  126. $("#transferout").val("");
  127. $("#transferout").focus();
  128. }
  129. }
  130. });
  131. }
  132. }
  133. })
  134. </script>
  135. <script type="text/javascript" src="{$theme}js/laydate.js"></script>
  136. {Template footer}