ts
This commit is contained in:
@@ -66,7 +66,7 @@ class StockOrdersService
|
||||
|
||||
$config['order']['id'] = 'desc';
|
||||
|
||||
$config['where']['salesperson_id'] = $request->user->uid;
|
||||
// $config['where']['salesperson_id'] = $request->user->uid;
|
||||
break;
|
||||
case 'print':
|
||||
case 'approval':
|
||||
|
||||
@@ -50,6 +50,7 @@ trait DataTransformer
|
||||
return [
|
||||
'error' => true,
|
||||
'message' => $e->getMessage(),
|
||||
// 'message' => $e->getMessage()."\n".$e->getLine()."\n".$e->getFile(),
|
||||
'code' => $e->getCode(),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -48,6 +48,9 @@ class ApprovalFlowService
|
||||
'initiator_id' => $initiatorId,
|
||||
'current_step' => $firstIndex,
|
||||
'status' => 'processing',
|
||||
'flow_type' => $flowType,
|
||||
'biz_type' => $bizType,
|
||||
'biz_id' => $bizId,
|
||||
];
|
||||
|
||||
// 解析首步审批人(支持 role_id 或 roles.name)
|
||||
|
||||
@@ -155,7 +155,7 @@ class IndexController
|
||||
noticePush([
|
||||
'title' => $title,
|
||||
'content' => $content,
|
||||
'recipient' => [1],
|
||||
'recipient' => [1,74,78],
|
||||
'email' => 1
|
||||
]);
|
||||
} catch (\Throwable $th) {
|
||||
|
||||
@@ -400,19 +400,15 @@ class StockOrdersService
|
||||
public function serviceUltimateApproval(Request $request)
|
||||
{
|
||||
$config = $this->buildQueryConfig($request, 'detail');
|
||||
|
||||
$item = $this->logicShow($config);
|
||||
foreach ($item->items as $k => $v) {
|
||||
if ($v->vin === '') {
|
||||
throw new BusinessException('存在未填写vin的车辆,无法完成提交审核');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$this->logicUpdateBy($config, [
|
||||
'approval_status' => 1
|
||||
]);
|
||||
// $item = $this->logicShow($config);
|
||||
$this->startApproval($item);
|
||||
return $this->postProcess('UltimateApproval', $item);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user