|
@@ -61,7 +61,8 @@ class ServiceWorkLists extends BaseAdminDataLists implements ListsSearchInterfac
|
|
|
$work_ids = PropertyOrder::where('property_head_id','in',$data_rules['property_head_id'])->column('work_id')??[];
|
|
$work_ids = PropertyOrder::where('property_head_id','in',$data_rules['property_head_id'])->column('work_id')??[];
|
|
|
$where[] = ['id','in' ,$work_ids];
|
|
$where[] = ['id','in' ,$work_ids];
|
|
|
}
|
|
}
|
|
|
- if(in_array($this->adminId,OnlineCustomerService::$admin_ids['consultation']) || in_array($this->adminId,OnlineCustomerService::$admin_ids['servicework'])){
|
|
|
|
|
|
|
+ if((in_array($this->adminId,OnlineCustomerService::$admin_ids['consultation']) || in_array($this->adminId,OnlineCustomerService::$admin_ids['servicework']))
|
|
|
|
|
+ && !in_array($this->adminId,OnlineCustomerService::$manager_admin_ids)){
|
|
|
$where[] = ['admin_id','in' ,[0,$this->adminId]];
|
|
$where[] = ['admin_id','in' ,[0,$this->adminId]];
|
|
|
$time = [time() - (30 * 86400), time()];
|
|
$time = [time() - (30 * 86400), time()];
|
|
|
$where[] = ['create_time', 'between', $time];
|
|
$where[] = ['create_time', 'between', $time];
|
|
@@ -200,12 +201,13 @@ class ServiceWorkLists extends BaseAdminDataLists implements ListsSearchInterfac
|
|
|
},
|
|
},
|
|
|
'rechargeOrder' =>function(Query $query){
|
|
'rechargeOrder' =>function(Query $query){
|
|
|
$query->field('id,work_id,tenant_id,order_type,payment_type,pay_way,pay_status,pay_time,coupon_id,coupon_price,order_total,order_amount,paid_amount,refund_status');
|
|
$query->field('id,work_id,tenant_id,order_type,payment_type,pay_way,pay_status,pay_time,coupon_id,coupon_price,order_total,order_amount,paid_amount,refund_status');
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ 'admin'
|
|
|
])
|
|
])
|
|
|
->where($this->searchWhere)
|
|
->where($this->searchWhere)
|
|
|
->where($this->queryWhere())
|
|
->where($this->queryWhere())
|
|
|
->where($this->queryDataWhere())
|
|
->where($this->queryDataWhere())
|
|
|
- ->field(['id', 'spare_total','external_platform_id', 'work_total','work_sn', 'real_name', 'mobile', 'address', 'title', 'category_type', 'goods_category_ids', 'goods_category_id', 'base_service_fee', 'service_fee', 'work_status','work_pay_status', 'service_status', 'dispatch_time', 'receive_time', 'appointment_time', 'finished_images', 'finished_time', 'master_worker_id', 'work_amount', 'work_type', 'create_time', 'update_time','lon', 'lat','appoint_approval','refund_approval','finally_door_time','property_activity_id','order_effective_id','estimated_finish_time','third_type','area_name'])
|
|
|
|
|
|
|
+ ->field(['id', 'admin_id','spare_total','external_platform_id', 'work_total','work_sn', 'real_name', 'mobile', 'address', 'title', 'category_type', 'goods_category_ids', 'goods_category_id', 'base_service_fee', 'service_fee', 'work_status','work_pay_status', 'service_status', 'dispatch_time', 'receive_time', 'appointment_time', 'finished_images', 'finished_time', 'master_worker_id', 'work_amount', 'work_type', 'create_time', 'update_time','lon', 'lat','appoint_approval','refund_approval','finally_door_time','property_activity_id','order_effective_id','estimated_finish_time','third_type','area_name'])
|
|
|
->append(['service_status_text','category_type_text','third_type_text'])
|
|
->append(['service_status_text','category_type_text','third_type_text'])
|
|
|
->limit($this->limitOffset, $this->limitLength)
|
|
->limit($this->limitOffset, $this->limitLength)
|
|
|
->order(['id' => 'desc'])
|
|
->order(['id' => 'desc'])
|