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['where']['salesperson_id'] = $request->user->uid;
// $config['where']['salesperson_id'] = $request->user->uid;
break;
case 'print':
case 'approval':
+1
View File
@@ -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)
+1 -1
View File
@@ -155,7 +155,7 @@ class IndexController
noticePush([
'title' => $title,
'content' => $content,
'recipient' => [1],
'recipient' => [1,74,78],
'email' => 1
]);
} catch (\Throwable $th) {
-4
View File
@@ -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);
}