zzququeu9gcbh.html 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  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. <a href="javascript:void(0);" style="font-size: 15px;background-color: #66cc11;" onclick="excelexporthz()">按条件导出(汇总)</a>
  49. </div>
  50. <table class="datatitle data" border="0" style="border-collapse:collapse;">
  51. <tr>
  52. <td><label onClick=""><input name="checkbox" type="checkbox" class="regular-checkbox"></label></td>
  53. <td>编号</td>
  54. <td>类型</td>
  55. <td>成品入库</td>
  56. <td>调出单</td>
  57. <!-- <td>标准收货单</td> -->
  58. <td>添加时间</td>
  59. <td>最后更新时间</td>
  60. </tr>
  61. </table>
  62. </div>
  63. <table class="datatext data" border="0" style="border-collapse:collapse;">
  64. </table>
  65. <div class="lbwlxq"></div>
  66. <div class="bomf"></div>
  67. </div>
  68. <div class="ts"><p class="tsn"></p></div>
  69. <div class="systemwindow">
  70. <div>
  71. <p></p>
  72. <p><font class="button">确 定</font><font class="esc">取 消</font></p>
  73. </div>
  74. </div>
  75. <div class="lbwlxq"></div>
  76. <div class="bomf"></div>
  77. <script>
  78. customon = 1;
  79. var dataurl = "/zzququeu9/gcbh_index";
  80. function custom() {
  81. $(".data tr").each(function() {
  82. $(this).find('td:eq(0)').css("width", "1%");
  83. $(this).find('td:eq(1)').css("width", "8%");
  84. $(this).find('td:eq(2)').css("width", "6%");
  85. $(this).find('td:eq(3)').css("width", "8%");
  86. $(this).find('td:eq(4)').css("width", "10%");
  87. $(this).find('td:eq(5)').css("width", "8%");
  88. $(this).find('td:eq(6)').css("width", "8%");
  89. $(this).find('td:eq(7)').css("width", "8%");
  90. });
  91. }
  92. function doAction(that){
  93. let action = $(that).data('action')
  94. let process = $(that).data('process')
  95. let id = $(that).data('id')
  96. layx.load('loadId','提交中,请稍后',{shadable:0.6});
  97. $.ajax({
  98. url:"/zzququeu9/"+action+"/"+id,
  99. data:{},
  100. type:"post",
  101. dataType:"json",
  102. success:function(a){
  103. layx.destroy('loadId');
  104. if (a && a.success) {
  105. $(".systemwindow div p:eq(0)").html(a.msg);
  106. $(".systemwindow div p:eq(1)").html("<font onclick='doCheck()'>确 定</font>");
  107. $(".systemwindow").show();
  108. }else{
  109. $(".systemwindow div p:eq(0)").text(a.msg);
  110. $(".systemwindow div p:eq(1)").html("<p><font onclick='doCheck()'>确 定</font></p>");
  111. $(".systemwindow").show();
  112. }
  113. }
  114. })
  115. }
  116. //记录重发单的信息
  117. function addData(){
  118. layx.html('no-icon', '<span style="font-size:18px;padding-left:10px">录入订单编码</span>', layx.multiLine(function() {
  119. /*
  120. <style type="text/css">
  121. p{
  122. padding:10px;
  123. }
  124. .order_no {width:98%;margin:0px;height:90px}
  125. </style>
  126. <p><textarea class='order_no' name="order_no" style="border: 1px solid #000" placeholder="请输入要执行订单编码" ></textarea></p>
  127. */
  128. }), {
  129. minMenu: false,
  130. closeMenu: false,
  131. movable: false,
  132. shadable: true,
  133. width: 300,
  134. height: 50,
  135. statusBar: true,
  136. buttons: [
  137. {
  138. label: '取消',
  139. callback: function(id, button, event) {
  140. layx.destroy(id);
  141. },
  142. style: 'color:#000;font-size:16px;'
  143. },
  144. {
  145. label: '提交',
  146. callback: function(id, button, event) {
  147. let order_no = $(".order_no").val()
  148. layx.destroy(id);
  149. layx.load('loadId','提交中,请稍后',{shadable:0.6});
  150. $.post("/zzququeu9/add",{
  151. order_no:order_no
  152. },function(a){
  153. layx.destroy('loadId');
  154. if (a && a.success) {
  155. $(".systemwindow div p:eq(0)").html(a.msg);
  156. $(".systemwindow div p:eq(1)").html("<font onclick='doCheck()'>确 定</font>");
  157. $(".systemwindow").show();
  158. }else{
  159. $(".systemwindow div p:eq(0)").text(a.msg);
  160. $(".systemwindow div p:eq(1)").html("<p><font onclick='doCheck()'>确 定</font></p>");
  161. $(".systemwindow").show();
  162. }
  163. },'json')
  164. },
  165. style: 'color:#000;font-size:16px;'
  166. }
  167. ]
  168. });
  169. }
  170. function doCheck(){
  171. $(".systemwindow").hide();
  172. setTimeout('searchspan(2)', 500);
  173. }
  174. $(".datatext").on('mouseover mouseout',".method",function(event) {
  175. if (event.type === "mouseover") {
  176. $(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>');
  177. }else if(event.type == "mouseout"){
  178. $(this).parent().siblings("font").remove();
  179. }
  180. });
  181. $(".data").on('mouseover',".lbwlxx",function() {
  182. var offset = $(this).offset();
  183. ///得到位置
  184. var left1 = offset.left + 20;
  185. ///得到位置
  186. var top1 = offset.top + 20;
  187. $(".lbwlxq").css({'top': top1, 'left': left1});
  188. $(".lbwlxx").mouseover(function(){
  189. $(".lbwlxq").html($(this).find('font').html());
  190. $(".lbwlxq").show();
  191. });
  192. $(".data").on('mouseout',".lbwlxx",function() {
  193. $(".lbwlxq").html("");
  194. $(".lbwlxq").hide();
  195. });
  196. });
  197. function excelexporthz(){
  198. let url = "/zzququeu9/gcbh_hz_excel"
  199. //timetk="+$("input[name='timetk']").val()+"&timetj="+$("input[name='timetj']").val();
  200. let order_no = $("input[name='order_no']").val();
  201. url += "?order_no="+order_no
  202. let timetk = $("input[name='timetk']").val();
  203. url += "&timetk="+timetk;
  204. let timetj = $("input[name='timetj']").val()
  205. url += "&timetj="+timetj;
  206. let status = $(".select").val()
  207. if(status){
  208. url += "&status="+status;
  209. }
  210. window.location.href = url
  211. }
  212. function excelexport(){
  213. let url = "/zzququeu9/gcbhexcel"
  214. //timetk="+$("input[name='timetk']").val()+"&timetj="+$("input[name='timetj']").val();
  215. let order_no = $("input[name='order_no']").val();
  216. url += "?order_no="+order_no
  217. let timetk = $("input[name='timetk']").val();
  218. url += "&timetk="+timetk;
  219. let timetj = $("input[name='timetj']").val()
  220. url += "&timetj="+timetj;
  221. let status = $(".select").val()
  222. if(status){
  223. url += "&status="+status;
  224. }
  225. window.location.href = url
  226. }
  227. </script>
  228. <script type="text/javascript" src="{$theme}js/laydate.js"></script>
  229. <script type="text/javascript" src="{$theme}js/print.js?v=202007160001"></script>
  230. {Template footer}