ahc_dlz.html 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. {Template header}
  2. <body>
  3. <div class="warp">
  4. <div class="fixed">
  5. <ul class="search">
  6. <li><input id="timetk" value="{date('Y-m-d',time()-12*3600)} 0:00" name="timetk" type="text" onclick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})">
  7. 至&nbsp;&nbsp;&nbsp;&nbsp; <input id="timetj" value="{date('Y-m-d',time()-12*3600)} 23:59" name="timetj" type="text" onclick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})"></li>
  8. <input name="data" value="" type="hidden"> (美国时间)
  9. </ul>
  10. <div class="control">
  11. <a href="/fullorder/error/" style="background-color:#F00">待修改订单({$error})</a>
  12. <ul>
  13. <a href="javascript:void(0);" data-x="1">等待打印(<font></font>)</a>
  14. <a href="javascript:void(0);" data-x="2">等待出库(<font></font>)</a>
  15. <a href="javascript:void(0);" data-x="3" class="xz">已出库(<font></font>)</a>
  16. <a href="javascript:void(0);" data-x="4">已退库(<font></font>)</a>
  17. </ul>
  18. </div>
  19. <table class="datatitle data" border="0" style="border-collapse:collapse;">
  20. <tr>
  21. <td><label onClick="swapCheck()"><input name="checkbox" type="checkbox" class="regular-checkbox"></label></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. <td>订单时间</td>
  31. <!--<td>客户留言</td>-->
  32. <!--<td>打印状态</td>
  33. <td>出库状态</td>-->
  34. <td>物流方式</td>
  35. <td>运单号</td>
  36. <td>订单备注</td>
  37. <td>审核备注</td>
  38. <td>打印数</td>
  39. <td>操作</td>
  40. </tr>
  41. </table>
  42. </div>
  43. <table class="datatext data" border="0" style="border-collapse:collapse;">
  44. </table>
  45. <div class="bomf"></div>
  46. </div>
  47. <div style="display:none;">
  48. <input id="upload-file" name="files" accept="image/xls,image/xlsx" type="file">
  49. </div>
  50. <script>
  51. var dataurl = "/ahc/hcd";var operate = "/ahc/hcd";var excel = "/ahc/excel/";
  52. var customon = 1;
  53. function custom(){
  54. $(".data tr").each(function() {
  55. $(this).find('td:eq(0)').css("width","1%");
  56. $(this).find('td:eq(1)').css("width","7%");
  57. $(this).find('td:eq(5)').css("width","9%");
  58. $(this).find('td:eq(6)').css("width","9%");
  59. $(this).find('td:eq(8)').css("width","5%");
  60. $(this).find('td:eq(9)').css("width","6%");
  61. $(this).find('td:eq(13)').css("width","6%");
  62. });}
  63. $(document).ready(function() {
  64. xx(3);
  65. });
  66. $(".control ul a").click(function() {
  67. $(".control ul a").removeClass("xz");
  68. $(this).addClass("xz");
  69. $("input[name=data]").val($(this).data("x"))
  70. xx($(this).data("x"));
  71. });
  72. function xx(djtj) {
  73. $(".page").val(1);
  74. $(".datatext").html("");
  75. layx.load('loadId','数据加载中');
  76. var f = "";
  77. $(".select").each(function() {
  78. f = f + $(this).attr("name") + "=" + $(this).children("option:selected").val() + "&";
  79. });
  80. $("input:text").each(function() {
  81. f = f + $(this).attr("name") + "=" + $(this).val() + "&";
  82. });
  83. $("input:hidden").each(function() {
  84. f = f + $(this).attr("name") + "=" + $(this).val() + "&";
  85. });
  86. f = f + "data="+djtj
  87. $.ajax({
  88. url: dataurl,
  89. data: f,
  90. type: "POST",
  91. dataType: "json",
  92. success: function(c) {
  93. $('.control ul a:eq(0) font').text(c.xx[1]);
  94. $('.control ul a:eq(1) font').text(c.xx[2]);
  95. $('.control ul a:eq(2) font').text(c.xx[3]);
  96. $('.control ul a:eq(3) font').text(c.xx[4]);
  97. if (c.rows != "") {
  98. for (i = 0; i < c.rows.length; i++) {
  99. $(".datatext").append("<tr id=" + c.rows[i]["id"] + ">");
  100. $.each(c.rows[i], function(d, e) {
  101. if (d == "phone") {
  102. $(".datatext #" + c.rows[i]["id"]).append("<td class='" + e + "'>" + e + "</td>");
  103. } else if (d == "id") {
  104. $(".datatext #" + c.rows[i]["id"]).append("<td><input name='check' type='checkbox' value=" + e + "></td>");
  105. } else if (d == "classid") {
  106. } else if (d == "productweight") {
  107. } else if (d == "hl") {
  108. }
  109. else if (d == "libraryconfirm") {
  110. }
  111. else if (d == "clientremarks") {
  112. }else {
  113. $(".datatext #" + c.rows[i]["id"]).append("<td>" + e + "</td>");
  114. }
  115. });
  116. $(".datatext").append("</tr>");
  117. }
  118. if($("input[name=page]").val() == 1)
  119. {
  120. $(".bomf .sl").hide();
  121. $(".bomf .nl").show();
  122. }
  123. else
  124. {
  125. $(".bomf .sl").show();
  126. $(".bomf .nl").hide();
  127. }
  128. if (c.over < 1) {
  129. $(".bomf .sr").hide();
  130. $(".bomf .nr").show();
  131. } else {
  132. $(".bomf .sr").show();
  133. $(".bomf .nr").hide();
  134. }
  135. $(".bomf font").html(c.pagenum);
  136. $(".bomf .fnumber").text(' '+c.total+' 条记录');
  137. layx.destroy('loadId');
  138. datasort();
  139. win();//列表增点击窗口项
  140. if(c.money)
  141. {
  142. money(c.money);
  143. }
  144. } else {
  145. $(".save").hide();
  146. layx.destroy('loadId');
  147. layx.msg('没有更多内容了',{dialogIcon:'warn', position:'cc'});
  148. }
  149. }
  150. });
  151. }
  152. </script>
  153. <script type="text/javascript" src="{$theme}js/laydate.js"></script>
  154. {Template footer}