调整审批流&&增加人员分组
This commit is contained in:
@@ -182,6 +182,32 @@ class StockOrdersController extends BaseController
|
||||
}
|
||||
}
|
||||
|
||||
public function approvalNullify(Request $request)
|
||||
{
|
||||
try {
|
||||
$raw = $this->service->serviceApprovalNullify($request);
|
||||
$data = $this->transformData($raw, method_exists($this, 'approvalFormat')
|
||||
? [$this, 'approvalFormat']
|
||||
: null);
|
||||
return $this->success($data);
|
||||
} catch (\Throwable $e) {
|
||||
return $this->error($e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
public function approvalRevoke(Request $request)
|
||||
{
|
||||
try {
|
||||
$raw = $this->service->serviceApprovalRevoke($request);
|
||||
$data = $this->transformData($raw, method_exists($this, 'approvalFormat')
|
||||
? [$this, 'approvalFormat']
|
||||
: null);
|
||||
return $this->success($data);
|
||||
} catch (\Throwable $e) {
|
||||
return $this->error($e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 最终审批
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user