transfer_ck.html 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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="2">出库</option>
  19. </select></li>
  20. <li style="height: 56px;line-height: 56px;padding: 0 88px;font-size: 26px;color: #fff;background-color: #2ca8a1;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. <audio id="music_jiaji">
  73. <source src="{$theme}music/jiaji.mp3" type="audio/mpeg">
  74. </audio>
  75. <script>
  76. var sysprint = 1;var transfer = 1;
  77. var dataurl = "/transfer/ck/";var fdataurl = "/transfer/ck/";
  78. window.onload = function() {
  79. if(typeof $("select[name='printer']").length < 1) return;
  80. setTimeout(function(){ wprinter.printer()},1000);};
  81. $(document).ready(function() {
  82. $("#transferout").focus();
  83. });
  84. $(".xz").click(function() {
  85. var f = "";
  86. $(".select").each(function() {
  87. f = f + $(this).attr("name") + "=" + $(this).children("option:selected").val() + "&";
  88. });
  89. $("input:text").each(function() {
  90. f = f + $(this).attr("name") + "=" + $(this).val() + "&";
  91. });
  92. $("input:hidden").each(function() {
  93. f = f + $(this).attr("name") + "=" + $(this).val() + "&";
  94. });
  95. window.location.href = "/transfer/excel/?fexcel=1&"+f;
  96. });
  97. $(document).keyup(function(event) {
  98. if (event.keyCode == 13) {
  99. if (typeof transfer != "undefined") {
  100. var f = "";
  101. $(".select").each(function() {
  102. f = f + $(this).attr("name") + "=" + $(this).children("option:selected").val() + "&";
  103. });
  104. $("input:text").each(function() {
  105. f = f + $(this).attr("name") + "=" + $(this).val() + "&";
  106. });
  107. $("input:hidden").each(function() {
  108. f = f + $(this).attr("name") + "=" + $(this).val() + "&";
  109. });
  110. $(".search .number").val("");
  111. $(".search .waybill").val("");
  112. $.ajax({
  113. url: "/transfer/out",
  114. data: "label=" + $("input[name='transferout']").val() + "&"+f,
  115. type: "POST",
  116. dataType: "json",
  117. success: function(b) {
  118. $(".systemwindow").hide();
  119. if (b && b.success) {
  120. if(b.hasOwnProperty('is_jiaji')){
  121. if(b.is_jiaji == 2){
  122. $("#wigsout").blur();
  123. $("#music_jiaji")[0].play();
  124. $(".express div p:eq(0)").html("此单为加急单、请优先加急生产!");
  125. $(".express div p:eq(1)").html("<font class='esc'>确 定</font>");
  126. $(".express").show();
  127. $("#transferout").val("");
  128. $("#transferout").focus();
  129. }else{
  130. $("#music_d")[0].play();
  131. $("#transferout").val("");
  132. $("#transferout").focus();
  133. }
  134. }else{
  135. $("#music_d")[0].play();
  136. $("#transferout").val("");
  137. $("#transferout").focus();
  138. }
  139. } else {
  140. $("#wigsout").blur();
  141. $("#music_c")[0].play();
  142. $(".express div p:eq(0)").html(b.msg);
  143. $(".express div p:eq(1)").html("<font class='esc'>确 定</font>");
  144. $(".express").show();
  145. $("#transferout").val("");
  146. $("#transferout").focus();
  147. }
  148. }
  149. });
  150. }
  151. }
  152. })
  153. </script>
  154. <script type="text/javascript" src="{$theme}js/laydate.js"></script>
  155. {Template footer}