|
@@ -49,12 +49,13 @@ class OrderLists extends BaseShopDataLists
|
|
|
->append(['goods_image', 'spec_value_str'])
|
|
->append(['goods_image', 'spec_value_str'])
|
|
|
->hidden(['goods_snap']);
|
|
->hidden(['goods_snap']);
|
|
|
}])
|
|
}])
|
|
|
- ->field(['id', 'sn', 'order_type', 'order_status', 'total_num', 'order_amount', 'delivery_type', 'is_team_success', 'pay_way', 'pay_status', 'pay_time', 'express_status','delivery_content', 'delivery_content1', 'delivery_content_type', 'create_time', 'presell_id', 'transaction_id' ])
|
|
|
|
|
|
|
+ ->field(['id', 'sn', 'order_type', 'order_status', 'total_num', 'order_amount', 'delivery_type', 'is_team_success', 'pay_way', 'pay_status', 'pay_time', 'express_status','delivery_content', 'delivery_content1', 'delivery_content_type', 'create_time', 'presell_id', 'transaction_id' ,'is_after_sale' ,'after_sale_status' ])
|
|
|
->append(['btn'])
|
|
->append(['btn'])
|
|
|
->order(['id' => 'desc'])
|
|
->order(['id' => 'desc'])
|
|
|
->limit($this->limitOffset, $this->limitLength)
|
|
->limit($this->limitOffset, $this->limitLength)
|
|
|
->select()->toArray();
|
|
->select()->toArray();
|
|
|
|
|
|
|
|
|
|
+
|
|
|
foreach ($lists as &$list){
|
|
foreach ($lists as &$list){
|
|
|
//查看提货码按钮
|
|
//查看提货码按钮
|
|
|
$list['btn']['pickup_btn'] = ($list['order_status'] == OrderEnum::STATUS_WAIT_DELIVERY && $list['delivery_type'] == DeliveryEnum::SELF_DELIVERY) ? 1 : 0;
|
|
$list['btn']['pickup_btn'] = ($list['order_status'] == OrderEnum::STATUS_WAIT_DELIVERY && $list['delivery_type'] == DeliveryEnum::SELF_DELIVERY) ? 1 : 0;
|