ts
This commit is contained in:
@@ -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':
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user