调整备货单&审批
This commit is contained in:
@@ -107,13 +107,22 @@ class StockOrdersController extends BaseController
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
protected function printFormat($data)
|
||||
{
|
||||
$data['file_url_full'] = (!empty($data['file_url'])) ? (new \app\common\service\OssService)->generatePrivateUrl($data['file_url']) : '';
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
public function print(Request $request)
|
||||
{
|
||||
try {
|
||||
$raw = $this->service->servicePrint($request);
|
||||
return $this->success($raw);
|
||||
$data = $this->transformData($raw, method_exists($this, 'printFormat')
|
||||
? [$this, 'printFormat']
|
||||
: null);
|
||||
return $this->success($data);
|
||||
} catch (\Throwable $e) {
|
||||
return $this->error($e->getMessage());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user