|
|
@@ -264,8 +264,8 @@ class ServiceWorkLogic extends BaseLogic
|
|
|
if($work->isEmpty()){
|
|
|
throw new Exception('工单不存在');
|
|
|
}
|
|
|
- if($work->work_status !== 0 ){
|
|
|
- throw new \Exception('工单状态不是待确认');
|
|
|
+ if($work->work_status <6 ){
|
|
|
+ throw new \Exception('工单状态只能修改待结算之前的');
|
|
|
}
|
|
|
if($work->master_worker_id == $params['master_worker_id']){
|
|
|
throw new \Exception('分配的师傅相同');
|