zzququeu9gcbh.html 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. {Template header}
  2. <script src="{$theme}js/system.js"></script>
  3. <script type="text/javascript" src="{$theme}js/layer/layer.js"></script>
  4. <style>
  5. .layui-layer-page .layui-layer-content {
  6. overflow: none;
  7. }
  8. .layui-layer-content ul {
  9. padding: 0 8px;
  10. }
  11. .layui-layer-content ul li {
  12. margin: 8px 0;
  13. }
  14. #layui-layer1 {
  15. overflow: auto;
  16. }
  17. .layui-form-checked {
  18. margin-left: 10px;
  19. display: inline-block;
  20. }
  21. .shou_btn{
  22. width: 70px;
  23. height: 30px;
  24. line-height: 30px;
  25. background: #2ca8a1;
  26. text-align: center;
  27. color: #fff;
  28. border-radius: 5px;
  29. display: inline-block;
  30. margin-left: 20px;
  31. cursor: pointer;
  32. }
  33. </style>
  34. <body>
  35. <div class="warp">
  36. <div class="fixed">
  37. <ul class="search">
  38. <li>
  39. <li>编号:<input value="" name="order_no" type="text"></li>
  40. <li>出库时间<input id="timetk" value="{date('Y-m-d',time()-29*24*3600)} 0:00" name="timetk" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})"> 至&nbsp;&nbsp;&nbsp;&nbsp; <input id="timetj" value="{date('Y-m-d',time()+24*3600)} 0:00"
  41. name="timetj" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})"></li>
  42. <li><span>确 定</span></li>
  43. </ul>
  44. <div class="control">
  45. <!-- <a href="javascript:void(0);" class="btn btn-success" onclick="addData()">添 加</a> -->
  46. <!-- <a href="javascript:void(0);" style="font-size: 15px;" class="check">删 除</a> -->
  47. <a href="javascript:void(0);" style="font-size: 15px;background-color: #f39c12;" onclick="excelexport()">按条件导出</a>
  48. </div>
  49. <table class="datatitle data" border="0" style="border-collapse:collapse;">
  50. <tr>
  51. <td><label onClick=""><input name="checkbox" type="checkbox" class="regular-checkbox"></label></td>
  52. <td>编号</td>
  53. <td>类型</td>
  54. <td>成品入库</td>
  55. <td>调出单</td>
  56. <!-- <td>标准收货单</td> -->
  57. <td>添加时间</td>
  58. <td>最后更新时间</td>
  59. </tr>
  60. </table>
  61. </div>
  62. <table class="datatext data" border="0" style="border-collapse:collapse;">
  63. </table>
  64. <div class="lbwlxq"></div>
  65. <div class="bomf"></div>
  66. </div>
  67. <div class="ts"><p class="tsn"></p></div>
  68. <div class="systemwindow">
  69. <div>
  70. <p></p>
  71. <p><font class="button">确 定</font><font class="esc">取 消</font></p>
  72. </div>
  73. </div>
  74. <div class="lbwlxq"></div>
  75. <div class="bomf"></div>
  76. <script>
  77. customon = 1;
  78. var dataurl = "/zzququeu9/gcbh_index";
  79. function custom() {
  80. $(".data tr").each(function() {
  81. $(this).find('td:eq(0)').css("width", "1%");
  82. $(this).find('td:eq(1)').css("width", "8%");
  83. $(this).find('td:eq(2)').css("width", "6%");
  84. $(this).find('td:eq(3)').css("width", "8%");
  85. $(this).find('td:eq(4)').css("width", "10%");
  86. $(this).find('td:eq(5)').css("width", "8%");
  87. $(this).find('td:eq(6)').css("width", "8%");
  88. $(this).find('td:eq(7)').css("width", "8%");
  89. });
  90. }
  91. function doAction(that){
  92. let action = $(that).data('action')
  93. let process = $(that).data('process')
  94. let id = $(that).data('id')
  95. layx.load('loadId','提交中,请稍后',{shadable:0.6});
  96. $.ajax({
  97. url:"/zzququeu9/"+action+"/"+id,
  98. data:{},
  99. type:"post",
  100. dataType:"json",
  101. success:function(a){
  102. layx.destroy('loadId');
  103. if (a && a.success) {
  104. $(".systemwindow div p:eq(0)").html(a.msg);
  105. $(".systemwindow div p:eq(1)").html("<font onclick='doCheck()'>确 定</font>");
  106. $(".systemwindow").show();
  107. }else{
  108. $(".systemwindow div p:eq(0)").text(a.msg);
  109. $(".systemwindow div p:eq(1)").html("<p><font onclick='doCheck()'>确 定</font></p>");
  110. $(".systemwindow").show();
  111. }
  112. }
  113. })
  114. }
  115. //记录重发单的信息
  116. function addData(){
  117. layx.html('no-icon', '<span style="font-size:18px;padding-left:10px">录入订单编码</span>', layx.multiLine(function() {
  118. /*
  119. <style type="text/css">
  120. p{
  121. padding:10px;
  122. }
  123. .order_no {width:98%;margin:0px;height:90px}
  124. </style>
  125. <p><textarea class='order_no' name="order_no" style="border: 1px solid #000" placeholder="请输入要执行订单编码" ></textarea></p>
  126. */
  127. }), {
  128. minMenu: false,
  129. closeMenu: false,
  130. movable: false,
  131. shadable: true,
  132. width: 300,
  133. height: 50,
  134. statusBar: true,
  135. buttons: [
  136. {
  137. label: '取消',
  138. callback: function(id, button, event) {
  139. layx.destroy(id);
  140. },
  141. style: 'color:#000;font-size:16px;'
  142. },
  143. {
  144. label: '提交',
  145. callback: function(id, button, event) {
  146. let order_no = $(".order_no").val()
  147. layx.destroy(id);
  148. layx.load('loadId','提交中,请稍后',{shadable:0.6});
  149. $.post("/zzququeu9/add",{
  150. order_no:order_no
  151. },function(a){
  152. layx.destroy('loadId');
  153. if (a && a.success) {
  154. $(".systemwindow div p:eq(0)").html(a.msg);
  155. $(".systemwindow div p:eq(1)").html("<font onclick='doCheck()'>确 定</font>");
  156. $(".systemwindow").show();
  157. }else{
  158. $(".systemwindow div p:eq(0)").text(a.msg);
  159. $(".systemwindow div p:eq(1)").html("<p><font onclick='doCheck()'>确 定</font></p>");
  160. $(".systemwindow").show();
  161. }
  162. },'json')
  163. },
  164. style: 'color:#000;font-size:16px;'
  165. }
  166. ]
  167. });
  168. }
  169. function doCheck(){
  170. $(".systemwindow").hide();
  171. setTimeout('searchspan(2)', 500);
  172. }
  173. $(".datatext").on('mouseover mouseout',".method",function(event) {
  174. if (event.type === "mouseover") {
  175. $(this).parent().parent("td").append('<font style="position: absolute;z-index: 1;border-radius:3px;border: 1px solid #39F;padding:0 10px;background-color: #FFF;box-shadow: rgba(0, 0, 0, 0.3) 1px 1px 24px;">'+$(this).data("t")+'</font>');
  176. }else if(event.type == "mouseout"){
  177. $(this).parent().siblings("font").remove();
  178. }
  179. });
  180. $(".data").on('mouseover',".lbwlxx",function() {
  181. var offset = $(this).offset();
  182. ///得到位置
  183. var left1 = offset.left + 20;
  184. ///得到位置
  185. var top1 = offset.top + 20;
  186. $(".lbwlxq").css({'top': top1, 'left': left1});
  187. $(".lbwlxx").mouseover(function(){
  188. $(".lbwlxq").html($(this).find('font').html());
  189. $(".lbwlxq").show();
  190. });
  191. $(".data").on('mouseout',".lbwlxx",function() {
  192. $(".lbwlxq").html("");
  193. $(".lbwlxq").hide();
  194. });
  195. });
  196. function excelexport(){
  197. let url = "/zzququeu9/gcbhexcel"
  198. //timetk="+$("input[name='timetk']").val()+"&timetj="+$("input[name='timetj']").val();
  199. let order_no = $("input[name='order_no']").val();
  200. url += "?order_no="+order_no
  201. let timetk = $("input[name='timetk']").val();
  202. url += "&timetk="+timetk;
  203. let timetj = $("input[name='timetj']").val()
  204. url += "&timetj="+timetj;
  205. let status = $(".select").val()
  206. if(status){
  207. url += "&status="+status;
  208. }
  209. window.location.href = url
  210. }
  211. </script>
  212. <script type="text/javascript" src="{$theme}js/laydate.js"></script>
  213. <script type="text/javascript" src="{$theme}js/print.js?v=202007160001"></script>
  214. {Template footer}