fullorder_repeat.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. {Template header}
  2. <body>
  3. <div class="warp">
  4. <div class="fixed">
  5. <ul class="search">
  6. <li>店铺名称:<select name="shop" class="select">
  7. <option value="">请选择</option>
  8. {loop usershop() as $val}
  9. <option value="{$val['id']}">{$val['shopname']}</option>
  10. {/loop}</select></li>
  11. <li>邮箱:<input value="" name="email" type="text" style="width:200px"></li>
  12. <li>订单时间:<input id="timetk" value="{date('Y-m-d',time()-30*24*3600)} 0:00" name="timetk" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})" style="width:130px">
  13. 至&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'})" style="width:130px"></li>
  14. <li><span>确 定</span></li><li><a href="javascript:void(0);" class="repeat" style="color: #fff;background-color: #2084db;">合并订单</a></li>
  15. </ul>
  16. <table class="datatitle data" border="0" style="border-collapse:collapse;">
  17. <tr>
  18. <td><label onClick="swapCheck()"><input name="checkbox" type="checkbox" class="regular-checkbox"></label></td>
  19. <td>店铺/仓库</td>
  20. <td>订单号</td>
  21. <td>编号</td>
  22. <td>客户姓名</td>
  23. <td>邮箱/电话</td>
  24. <td>客户具体地址</td>
  25. <td>订单状态</td>
  26. <td>订单时间</td>
  27. <td>仓库品名</td>
  28. <td>订单备注</td>
  29. <td>操作</td>
  30. </tr>
  31. </table>
  32. </div>
  33. <table class="datatext data" border="0" style="border-collapse:collapse;">
  34. </table>
  35. <div class="bomf"></div>
  36. </div>
  37. <script>
  38. $(document).ready(function() {
  39. $("#timetk").calendar();$("#timetj").calendar();
  40. });
  41. var dataurl = "/fullorder/repeat/";var fdataurl = "/fullorder/";
  42. var editurl = "/fullorder/edit/";var operate = "/fullorder/";
  43. var editdj = 3;
  44. var editt = "筛选订单";
  45. var customon = 1;
  46. function custom(){
  47. $(".data tr").each(function() {
  48. $(this).find('td:eq(0)').css("width","1%");
  49. $(this).find('td:eq(1)').css("width","5%");
  50. $(this).find('td:eq(2)').css("width","6%");
  51. $(this).find('td:eq(3)').css("width","6%");
  52. $(this).find('td:eq(4)').css("width","6%");
  53. $(this).find('td:eq(5)').css("width","9%");
  54. $(this).find('td:eq(6)').css("width","9%");
  55. $(this).find('td:eq(7)').css("width","4%");
  56. $(this).find('td:eq(8)').css("width","4%");
  57. $(this).find('td:eq(9)').css("width","12%");
  58. $(this).find('td:eq(10)').css("width","11%");
  59. $(this).find('td:eq(11)').css("width","4%");
  60. });}
  61. $(".repeat").click(function() {
  62. var a = "";
  63. $(".datatext input[name='check']:checked").each(function() {
  64. a = a + $(this).val()+",";
  65. });
  66. if (a) {
  67. layx.confirm('注意','是否确定合并选择的订单?',function(id){
  68. layx.load('loadId','数据加载中');
  69. merge();
  70. layx.destroy(id);
  71. });
  72. }
  73. else
  74. {
  75. $(".ts p").html("请勾选需要合并的内容");
  76. $(".ts").show();
  77. setTimeout('$(".ts").fadeOut()', 1000);
  78. }
  79. });
  80. //批量删除
  81. function merge() {
  82. $(".express").hide();
  83. var a = "";
  84. $(".datatext input[name='check']:checked").each(function() {
  85. a = a + $(this).val()+",";
  86. });
  87. $.ajax({
  88. url: operate+"merge",
  89. data: "s=" + a,
  90. type: "POST",
  91. dataType: "json",
  92. success: function(c) {
  93. layx.destroy('loadId');
  94. if (c && c.success) {
  95. if(c.d)
  96. {
  97. for (i = 0; i < c.d.length; i++)
  98. {
  99. $(".datatext #"+c.d[i]).find("td:eq(11)").text("被合并");
  100. }
  101. $(".datatext #"+c.b).find("td:eq(11)").text("已合并");
  102. }
  103. $(".ts p").html(c.msg);
  104. $(".ts").fadeIn();
  105. setTimeout('$(".ts").fadeOut()', 800);
  106. } else {
  107. $(".ts p").html(c.msg);
  108. $(".ts").fadeIn();
  109. setTimeout('$(".ts").fadeOut()', 900);
  110. return false;
  111. }
  112. }
  113. });
  114. };
  115. </script>
  116. <script type="text/javascript" src="{$theme}js/laydate.js"></script>
  117. {Template footer}