whlabel_printck.html 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. {Template header}
  2. <body>
  3. <div class="warp">
  4. <div class="fixed">
  5. <div class="numberprint">
  6. <p><span style="padding-right:15px;font-size:22px;color:#000;">出库数量<input value="1" name="num" type="text" style="width:38px;margin-left:15px;vertical-align:middle;"> <!--出库类型<select name="cktype" class="select" style="width: 150px;height: 32px;line-height: 32px;color: #333;border: 1px #ccc solid;font-size: 16px;margin:0 15px;border-radius: 5px; vertical-align:middle;">
  7. <option value="">请选择</option>
  8. <option value="1">销售出库</option>
  9. <option value="2">销售美国出库</option>
  10. <option value="3">盘亏调整</option>
  11. <option value="4">其他调整出库</option>
  12. <option value="5">形态转换出库</option>
  13. </select>--><input style="vertical-align:middle;" value="" name="tmsku" id="tmsku" placeholder="点此处扫码出库" type="text"></span></p>
  14. </div>
  15. <ul class="search">
  16. <li>类目:<select name="category" class="select">
  17. <option value="">请选择</option>{loop typeclass(16) as $val}
  18. <option value="{$val['id']}">{$val['title']}</option>{/loop}</select></li>
  19. <li>长度:<select name="size" class="select">
  20. <option value="">请选择</option>{loop typeclass(14) as $val}
  21. <option value="{$val['id']}">{$val['title']}</option>{/loop}</select></li>
  22. <li>等级:<select name="grade" class="select">
  23. <option value="">请选择</option>{loop typeclass(13) as $val}
  24. <option value="{$val['id']}">{$val['title']}</option>{/loop}</select></li>
  25. <li>颜色:<select name="color" class="select">
  26. <option value="">请选择</option>{loop typeclassyc(8) as $val}
  27. <option value="{$val['id']}">{$val['title']}</option>{/loop}</select></li>
  28. <li>曲度:<select name="lowe" class="select">
  29. <option value="">请选择</option>{loop typeclassyc(15) as $val}
  30. <option value="{$val['id']}">{$val['title']}</option>{/loop}</select></li>
  31. <li>统计时间:<input id="ktime" value="{date('Y-m-d',time()-7*24*3600)}" name="ktime" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD'})" style="width:140px;">
  32. 至&nbsp;&nbsp;&nbsp;&nbsp; <input id="jtime" value="{date('Y-m-d',time()+24*3600)}" name="jtime" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD'})" style="width:140px;"></li>
  33. <li>SKU:<input value="" name="sku" type="text" ></li>
  34. <li>仓库:<select name="warehouse" class="select">
  35. <option value="12">特殊仓</option>
  36. <option value="13">许昌现货仓</option></select></li>
  37. <li>供应商:<select name="purchase" class="select">
  38. <option value="">全部</option>
  39. {loop purchase(100) as $val}
  40. <option value="{$val['id']}">{$val['title']}</option>
  41. {/loop}
  42. </select></li>
  43. <li><span>确 定</span></li>
  44. </ul>
  45. <table class="datatitle data" border="0" style="border-collapse:collapse;">
  46. <tr>
  47. <td><label onClick="swapCheck()"><input name="checkbox" type="checkbox" class="regular-checkbox"></label></td>
  48. <td>仓库</td>
  49. <td>供应商</td>
  50. <td>sku</td>
  51. <td>名称</td>
  52. <td>状态</td>
  53. <td>出库时间</td>
  54. <td>所在位置</td>
  55. </tr>
  56. </table>
  57. </div>
  58. <table class="datatext data" border="0" style="border-collapse:collapse;">
  59. </table>
  60. <div class="bomf"></div>
  61. </div>
  62. <div class="print none"></div>
  63. <div class="ts"><p class="tsn"></p></div>
  64. <div class="systemwindow">
  65. <div>
  66. <p></p>
  67. <p><font class="button">确 定</font><font class="esc">取 消</font></p>
  68. </div>
  69. </div>
  70. <div class="boundtj">
  71. <div>
  72. <p></p>
  73. <p><font class="button">确 定</font><font class="esc">取 消</font></p>
  74. </div>
  75. </div>
  76. <div class="tyrows"><div><p></p><p></p></div></div>
  77. <audio id="music_d">
  78. <source src="{$theme}music/d.mp3" type="audio/mpeg">
  79. </audio>
  80. <audio id="music_c">
  81. <source src="{$theme}music/c.mp3" type="audio/mpeg">
  82. </audio>
  83. <audio id="music_print">
  84. <source src="{$theme}music/print.mp3" type="audio/mpeg">
  85. </audio>
  86. <audio id="music_print_error">
  87. <source src="{$theme}music/print_error.mp3" type="audio/mpeg">
  88. </audio>
  89. <audio id="music_print_ok">
  90. <source src="{$theme}music/print_ok.mp3" type="audio/mpeg">
  91. </audio>
  92. <input value="{date('Y-m-d h:i:s',time())}" name="tjtime" type="hidden">
  93. <script>
  94. var sysprint = 1;var systembound = 1;
  95. var dataurl = "/whlabel/printck/";var fdataurl = "/whlabel/printck/";
  96. var customon = 1;
  97. function custom(){
  98. $(".data tr").each(function() {
  99. $(this).find('td:eq(0)').css("width","1%");
  100. $(this).find('td:eq(1)').css("width","6%");
  101. $(this).find('td:eq(2)').css("width","10%");
  102. $(this).find('td:eq(3)').css("width","23%");
  103. $(this).find('td:eq(4)').css("width","25%");
  104. $(this).find('td:eq(5)').css("width","5%");
  105. $(this).find('td:eq(6)').css("width","12%");
  106. $(this).find('td:eq(7)').css("width","16%");
  107. });}
  108. $(document).ready(function() {
  109. $("#tmsku").focus();
  110. });
  111. $(document).keyup(function(event){
  112. if(event.keyCode ==13){
  113. layx.load('loadId','处理中');
  114. $(".search .number").val("");
  115. $(".search .waybill").val("");
  116. $.ajax({
  117. url: dataurl,
  118. data: "num=" + $("input[name='num']").val() + "&cktype=" + $("select[name='cktype']").children("option:selected").val() + "&tmsku=" + $("input[name='tmsku']").val(),
  119. type: "POST",
  120. dataType: "json",
  121. success: function(b) {
  122. layx.destroy('loadId');
  123. searchspan(1);
  124. $(".systemwindow").hide();
  125. if (b && b.success) {
  126. $("#music_d")[0].play();
  127. $("input[name='num']").val('1')
  128. $("#tmsku").val("");
  129. $("#tmsku").focus();
  130. } else {
  131. $("#tmsku").blur();
  132. $("#music_c")[0].play();
  133. $(".systemwindow div p:eq(0)").html(b.msg);
  134. $(".systemwindow div p:eq(1)").html("<font class='wcoutbound'>确 定</font>");
  135. $(".systemwindow").show();
  136. $("#tmsku").val("");
  137. }
  138. }
  139. });
  140. }});
  141. $(".systemwindow").on('click', ".wcoutbound", function() {
  142. $("#tmsku").focus();
  143. $(".systemwindow").hide();
  144. });
  145. </script>
  146. <script type="text/javascript" src="{$theme}js/laydate.js"></script>
  147. {Template footer}