|
|
@@ -156,11 +156,6 @@ class ServiceWorkLogic extends BaseLogic
|
|
|
throw new Exception('工单不存在');
|
|
|
}
|
|
|
|
|
|
- $order = RechargeOrder::where(['sn'=>$params['order_sn'],'work_id'=>$work['id']])->findOrEmpty();
|
|
|
- if($order->isEmpty()){
|
|
|
- throw new Exception('订单不存在');
|
|
|
- }
|
|
|
-
|
|
|
if($work->work_status != 3){
|
|
|
throw new Exception('请勿重复点击');
|
|
|
}
|
|
|
@@ -498,7 +493,7 @@ class ServiceWorkLogic extends BaseLogic
|
|
|
|
|
|
public static function getDetailWorkServiceStatus($params)
|
|
|
{
|
|
|
- $result = ServiceWork::where('id',$params['id'])->field('work_status,user_confirm_status,appointment_time')->findOrEmpty()->toArray();
|
|
|
+ $result = ServiceWork::where('id',$params['id'])->field('work_status,user_confirm_status,appointment_time,price_approval,appoint_approval')->findOrEmpty()->toArray();
|
|
|
//工程师工单按钮状态
|
|
|
$work_service_status = 0;
|
|
|
//工单状态
|
|
|
@@ -538,7 +533,7 @@ class ServiceWorkLogic extends BaseLogic
|
|
|
if($result['work_status'] ==9){
|
|
|
$work_service_status = 12;
|
|
|
}
|
|
|
- return ['work_service_status'=>$work_service_status];
|
|
|
+ return ['work_service_status'=>$work_service_status,'price_approval'=>$result['price_approval'],'appoint_approval'=>$result['appoint_approval']];
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -650,6 +645,11 @@ class ServiceWorkLogic extends BaseLogic
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public static function submitChangePrice()
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
|
|
|
}
|