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