Browse Source

加粉时间

sunhao 5 years ago
parent
commit
b468f88bb2

+ 3 - 1
app/Http/Controllers/Admin/OrderController.php

@@ -77,7 +77,9 @@ class OrderController extends Controller
77 77
                 $v['goods'][] = $item->goodsName.'  单价:¥'.$item->price.'  件数:'.$item->quantity.'';
78 78
             }
79 79
             */
80
-
80
+            #加粉时间
81
+            $fanTime = DB::table('customers')->select('fanTime')->where('phone', $v['receiverMobile'])->first();
82
+            $v['fanTime'] = isset($fanTime->fanTime) ? $fanTime->fanTime : '';
81 83
             $v['receiverMobile'] = substr($v['receiverMobile'], 0, 3).'****'.substr($v['receiverMobile'], 7);
82 84
         }
83 85
         

+ 3 - 1
resources/views/order/orderlist.blade.php

@@ -40,6 +40,7 @@
40 40
                     <th width="4%">买家名称</th>
41 41
                     <th width="4%">收货人</th>
42 42
                     <th width="5%">收货人手机号</th>
43
+                    <th width="4%">加粉时间</th>
43 44
                     <th width="7%">收货地址</th>
44 45
                     <th width="10%">商品信息</th>
45 46
                     <th width="4%">预发货时间</th>
@@ -47,7 +48,7 @@
47 48
                     @if($self_role !='销售' ) <th width="5%">成本</th> @endif
48 49
                     <th width="4%">发货仓库</th>
49 50
                     <th width="4%">付款金额</th>                  
50
-                    <th width="5%">下单时间</th>                   
51
+                    <th width="4%">下单时间</th>                   
51 52
                     <th width="3%">是否复购</th>                  
52 53
                     <th width="3%">是否退补单</th>                                                       
53 54
                     <th width="4%">应该退补差价</th>                  
@@ -66,6 +67,7 @@
66 67
                             <td>{{$a['customerName']}}</td>                            
67 68
                             <td>{{$a['receiverName']}}</td>                            
68 69
                             <td>{{$a['receiverMobile']}}</td>                            
70
+                            <td>{{$a['fanTime']}}</td>                            
69 71
                             <td>{{$a['receiverState']}}{{$a['receiverCity']}}{{$a['receiverDistrict']}}{{$a['receiverAddress']}}</td>                            
70 72
                             <td>{{$a['goods_note']}}</td> 
71 73
                             <td>{{$a['delivery_date']}}</td>