You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
3.2 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. @extends('admin.layouts.app')
  2. @section('title', '订单列表')
  3. @section('content')
  4. <script language="javascript" type="text/javascript" src="http://<?php echo env('APP_DOMAIN'); ?>/js/My97DatePicker/WdatePicker.js"></script>
  5. <form name="listarc" action="" method="get">
  6. <div class="bg-info" style="margin:10px 0;padding:10px;">
  7. <div class="form-inline" style="display:inline;float:left;">
  8. <div class="form-group">
  9. <label for="order_sn">订单号:</label>
  10. <input size="15" type="text" class="form-control" id="order_sn" name="order_sn" placeholder="">
  11. </div>
  12. <div class="form-group">
  13. <label for="name">收货人:</label>
  14. <input size="5" type="text" class="form-control" id="name" name="name" placeholder="">
  15. </div>
  16. <button type="submit" class="btn btn-success">查询</button>
  17. <button class="btn btn-warning" onclick="show_search()">高级</button>
  18. </div>
  19. <div class="form-inline" style="display:inline;float:right;">
  20. <div class="form-group">
  21. <label for="min_addtime">导出列表:</label>
  22. <input size="15" onclick="WdatePicker({el:this,dateFmt:'yyyy-MM-dd HH:mm:ss'})" type="text" class="form-control" id="min_addtime" name="min_addtime" placeholder="开始时间">
  23. </div>
  24. <div class="form-group">
  25. <input size="15" onclick="WdatePicker({el:this,dateFmt:'yyyy-MM-dd HH:mm:ss'})" type="text" class="form-control" id="max_addtime" name="max_addtime" placeholder="结束时间">
  26. </div>
  27. <button onclick="javascript:output();" class="btn btn-success">导出</button>
  28. </div>
  29. <div style="clear:both;"></div>
  30. </div>
  31. <div class="table-responsive"><table class="table table-striped table-hover">
  32. <thead><tr>
  33. <th>订单编号SN-ID</th>
  34. <th>支付信息</th>
  35. <th>收货人</th>
  36. <th>订单状态</th>
  37. <th>来源</th>
  38. <th>管理</th>
  39. </tr></thead>
  40. <tbody>
  41. <?php if($posts){foreach($posts as $row){ ?>
  42. <tr>
  43. <td><a href="<?php echo route('admin_order_detail',array('id'=>$row->id)); ?>"><?php echo $row->order_sn.'-'.$row->id; ?></a>, 金额:<?php echo $row->order_amount; ?><br>下单时间:<?php echo date('Y-m-d H:i:s',$row->add_time); ?></td>
  44. <td><?php if($row->pay_money){echo '支付金额:'.$row->pay_money;} ?><?php if($row->out_trade_no){echo ', 流水号:'.$row->out_trade_no;} ?><?php if($row->pay_name){echo '<br><font color="green">'.$row->pay_name.'</font>, ';} ?><?php if($row->pay_time){echo '支付时间:'.date('Y-m-d H:i:s',$row->pay_time);} ?></td>
  45. <td><?php echo $row->name.'[TEL:'.$row->mobile.']'; ?><br><?php echo $row->province_name; ?><?php echo $row->city_name; ?><?php echo $row->district_name; ?></td>
  46. <td><?php if($row->order_status_text=='待发货'){echo '<font color="red">'.$row->order_status_text.'</font>';}else{echo $row->order_status_text;} ?></td>
  47. <td><?php if($row->place_type==1){echo 'pc';}elseif($row->place_type==2){echo 'weixin';}elseif($row->place_type==3){echo 'app';}elseif($row->place_type==4){echo 'wap';} ?></td>
  48. <td><a href="<?php echo route('admin_order_detail',array('id'=>$row->id)); ?>">详情</a></td>
  49. </tr>
  50. <?php }} ?>
  51. </tbody>
  52. </table></div><!-- 表格结束 --></form><!-- 表单结束 -->
  53. @endsection