作者 何书鹏

评价状态

@@ -91,7 +91,7 @@ class Classification extends Api @@ -91,7 +91,7 @@ class Classification extends Api
91 $page = $this->request->post('page',1); 91 $page = $this->request->post('page',1);
92 $model = new Goods(); 92 $model = new Goods();
93 if ($sort_id > 0){ 93 if ($sort_id > 0){
94 - $list = $model->where('is_index','1') 94 + $list = $model
95 ->where('is_delete','0') 95 ->where('is_delete','0')
96 ->where('category_id',$sort_id) 96 ->where('category_id',$sort_id)
97 ->where('goods_status','10') 97 ->where('goods_status','10')
@@ -114,6 +114,8 @@ class Classification extends Api @@ -114,6 +114,8 @@ class Classification extends Api
114 }); 114 });
115 }else{ 115 }else{
116 $list = $model 116 $list = $model
  117 + ->where('is_delete','0')
  118 + ->where('goods_status','10')
117 ->field('goods_id,goods_name,image') 119 ->field('goods_id,goods_name,image')
118 ->paginate(10,false,['page'=>$page]) 120 ->paginate(10,false,['page'=>$page])
119 ->each(function ($item,$key){ 121 ->each(function ($item,$key){
@@ -107,7 +107,7 @@ class Order extends Api @@ -107,7 +107,7 @@ class Order extends Api
107 'fa_litestore_order.pay_status' => '20', 107 'fa_litestore_order.pay_status' => '20',
108 'fa_litestore_order.freight_status' => '20', 108 'fa_litestore_order.freight_status' => '20',
109 'fa_litestore_order.receipt_status' => '20', 109 'fa_litestore_order.receipt_status' => '20',
110 - 'fa_litestore_order.order_status' => '10', 110 + 'fa_litestore_order.comment_status' => '10',
111 ]; 111 ];
112 break; 112 break;
113 } 113 }
@@ -623,6 +623,7 @@ class Order extends Api @@ -623,6 +623,7 @@ class Order extends Api
623 $order->rider_status = '20'; //送达状态:已送达 623 $order->rider_status = '20'; //送达状态:已送达
624 $order->receipt_status = '20'; //收货状态:已收货 624 $order->receipt_status = '20'; //收货状态:已收货
625 $order->receipt_time = time(); //收货时间 625 $order->receipt_time = time(); //收货时间
  626 + $order->order_status = '30'; //订单状态变为已完成
626 $order->save(); 627 $order->save();
627 // 修改配送单信息 628 // 修改配送单信息
628 $rider_order->status = '2'; //已送达 629 $rider_order->status = '2'; //已送达
@@ -817,7 +818,7 @@ class Order extends Api @@ -817,7 +818,7 @@ class Order extends Api
817 } 818 }
818 819
819 $ordermodel = new \app\api\model\Order(); 820 $ordermodel = new \app\api\model\Order();
820 - $ordermodel->whereIn('id',$orderids)->update(['order_status'=>'30']); 821 + $ordermodel->whereIn('id',$orderids)->update(['comment_status'=>'20']);
821 $commentmodel = new GoodsComment(); 822 $commentmodel = new GoodsComment();
822 $commentmodel->isUpdate(false)->saveAll($params); 823 $commentmodel->isUpdate(false)->saveAll($params);
823 $this->success('评价成功'); 824 $this->success('评价成功');
@@ -332,6 +332,7 @@ class Rider extends Api @@ -332,6 +332,7 @@ class Rider extends Api
332 $order->rider_status = '20'; //送达状态:已送达 332 $order->rider_status = '20'; //送达状态:已送达
333 $order->receipt_status = '20'; //收货状态:已收货 333 $order->receipt_status = '20'; //收货状态:已收货
334 $order->receipt_time = time(); //收货时间 334 $order->receipt_time = time(); //收货时间
  335 + $order->order_status = '30'; //订单状态变为已完成
335 $order->save(); 336 $order->save();
336 // 修改配送单信息 337 // 修改配送单信息
337 $rider_order->status = '2'; //已送达 338 $rider_order->status = '2'; //已送达
@@ -45,6 +45,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','template','litestoreg @@ -45,6 +45,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','template','litestoreg
45 // {field: 'delivery_id', title: __('Delivery_id')}, 45 // {field: 'delivery_id', title: __('Delivery_id')},
46 {field: 'goods_status', title: __('Goods_status'), searchList: {"10":__('Goods_status 10'),"20":__('Goods_status 20')}, formatter: Table.api.formatter.status}, 46 {field: 'goods_status', title: __('Goods_status'), searchList: {"10":__('Goods_status 10'),"20":__('Goods_status 20')}, formatter: Table.api.formatter.status},
47 {field: 'is_delete', title: __('Is_delete'), searchList: {"0":__('Is_delete 0'),"1":__('Is_delete 1')}, formatter: Table.api.formatter.normal}, 47 {field: 'is_delete', title: __('Is_delete'), searchList: {"0":__('Is_delete 0'),"1":__('Is_delete 1')}, formatter: Table.api.formatter.normal},
  48 + {field: 'is_index', title: __('Is_index'), searchList: {"0":__('Is_index 0'),"1":__('Is_index 1')}, formatter: Table.api.formatter.normal},
48 {field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime}, 49 {field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
49 {field: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime}, 50 {field: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
50 {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate} 51 {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}