|
|
@@ -298,12 +298,11 @@ class ServiceWorkLogic extends BaseLogic
|
|
|
return ServiceWork::with([
|
|
|
'worker'=> function(Query $query) {
|
|
|
$query->field('id,worker_number,real_name');
|
|
|
-// $query->with('workerRegister');
|
|
|
},
|
|
|
'rechargeOrder'=>function(Query $query){
|
|
|
- $query->field('id,order_type,work_id,sn,refund_status,pay_status,pay_time,order_total,order_amount,create_time,update_time')->order(['id'=>'desc']);
|
|
|
+ $query->visible(['id','sn','order_total','order_amount','pay_status','create_time','title','work_id'])->append(['pay_status_text','payment_type_text'])->order(['id'=>'desc']);
|
|
|
$query->with(['orderGoods'=>function(Query $query){
|
|
|
- $query->field('id,sn,goods_id,goods_name,goods_image,goods_number,good_unit,goods_size,goods_type,goods_brand,base_service_fee,service_total,service_fee')->order(['id'=>'desc']);
|
|
|
+ $query->visible(['goods_name','goods_image','goods_number','good_unit']);
|
|
|
}]);
|
|
|
}
|
|
|
])->append(['work_status_text','service_status_text'])
|