|
|
|
|
@ -17,6 +17,8 @@ class ReportController extends Controller
|
|
|
|
|
"查询密码" => $request->post('password'),
|
|
|
|
|
"文件Id" => $request->post('id')
|
|
|
|
|
];
|
|
|
|
|
$reportname=$request->post('reportname');
|
|
|
|
|
$username=$request->post('name');
|
|
|
|
|
$hospital_info = Hospital::where('id', $request->post('hospital'))->where('del', 2)->first();
|
|
|
|
|
if (!$hospital_info) Yo::error_echo(100000, ['机构/医院']);
|
|
|
|
|
$code = $hospital_info->code;
|
|
|
|
|
@ -38,6 +40,7 @@ class ReportController extends Controller
|
|
|
|
|
$disk = Storage::disk('public');
|
|
|
|
|
$name = $request->post('id');
|
|
|
|
|
$date = $request->post('rid');
|
|
|
|
|
$name=$username.$data['体检号'].$reportname.'_'.$name;
|
|
|
|
|
$path = "/assets/upload/pdf/$date/$name.pdf";
|
|
|
|
|
$put = $disk->put($path, $res_string);
|
|
|
|
|
if (!$put) Yo::error_echo(100028, ['put']);
|
|
|
|
|
@ -555,6 +558,7 @@ class ReportController extends Controller
|
|
|
|
|
// ]);
|
|
|
|
|
|
|
|
|
|
$list['info']['id'] = $info['体检号'];
|
|
|
|
|
$list['info']['name'] = $info['姓名'];
|
|
|
|
|
$list['info']['password'] = $info['查询密码'];
|
|
|
|
|
$list['list'] = $info['报告文件列表'];
|
|
|
|
|
$conclusion = [
|
|
|
|
|
|