|
|
|
@ -16,21 +16,26 @@ class FenzhenController extends Controller
|
|
|
|
public function check()
|
|
|
|
public function check()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// 这里放 检查是否有 体检引导的数据
|
|
|
|
// 这里放 检查是否有 体检引导的数据
|
|
|
|
return \Yz::Return(true, "弃检成功");
|
|
|
|
$id_number =request('id_number');
|
|
|
|
|
|
|
|
$list=DB::table('orders')->where(['id_number'=>$id_number])->whereIn('status',[2,4])->get();
|
|
|
|
|
|
|
|
return \Yz::Return(true, "弃检成功",['list'=>$list]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public function list()
|
|
|
|
public function list()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
$id =request('id');
|
|
|
|
|
|
|
|
$info=DB::table('orders')->where(['id'=>$id])->whereIn('status',[2,4])->get();
|
|
|
|
|
|
|
|
if(!$info) return \Yz::echoError1("查询就诊人订单失败");
|
|
|
|
return \Yz::Return(true, "获取成功", [
|
|
|
|
return \Yz::Return(true, "获取成功", [
|
|
|
|
'info' => [
|
|
|
|
'info' => [
|
|
|
|
'name' => '张三',
|
|
|
|
'name' => $info->name,
|
|
|
|
'sex' => 1,
|
|
|
|
'sex' => $info->sex,
|
|
|
|
'combo_name' => '套餐名称',
|
|
|
|
'combo_name' => $info->title,
|
|
|
|
'check_date' => '2024-04-25',
|
|
|
|
'check_date' => $info->appointment_date,
|
|
|
|
'start_time' => '08:25',
|
|
|
|
'start_time' => $info->appointment_time,
|
|
|
|
'end_time' => '10:25',
|
|
|
|
'end_time' => '10:25',
|
|
|
|
'qrcode' => '',
|
|
|
|
'qrcode' => '',
|
|
|
|
'code' => '', // 体检条码
|
|
|
|
'code' => $info->appointment_number, // 体检条码
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'list' => [[
|
|
|
|
'list' => [[
|
|
|
|
'time' => '08:25',
|
|
|
|
'time' => '08:25',
|
|
|
|
@ -78,16 +83,19 @@ class FenzhenController extends Controller
|
|
|
|
|
|
|
|
|
|
|
|
public function info()
|
|
|
|
public function info()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
$id =request('id');
|
|
|
|
|
|
|
|
$info=DB::table('orders')->where(['id'=>$id])->whereIn('status',[2,4])->get();
|
|
|
|
|
|
|
|
if(!$info) return \Yz::echoError1("查询就诊人订单失败");
|
|
|
|
return \Yz::Return(true, "获取成功", [
|
|
|
|
return \Yz::Return(true, "获取成功", [
|
|
|
|
'info' => [
|
|
|
|
'info' => [
|
|
|
|
'name' => '张三',
|
|
|
|
'name' => $info->name,
|
|
|
|
'sex' => 1,
|
|
|
|
'sex' => $info->sex,
|
|
|
|
'combo_name' => '套餐名称',
|
|
|
|
'combo_name' => $info->title,
|
|
|
|
'check_date' => '2024-04-25',
|
|
|
|
'check_date' => $info->appointment_date,
|
|
|
|
'start_time' => '08:25',
|
|
|
|
'start_time' => $info->appointment_time,
|
|
|
|
'end_time' => '10:25',
|
|
|
|
'end_time' => '10:25',
|
|
|
|
'qrcode' => '',
|
|
|
|
'qrcode' => '',
|
|
|
|
'code' => '', // 体检条码
|
|
|
|
'code' => $info->appointment_number, // 体检条码
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'list' => [[
|
|
|
|
'list' => [[
|
|
|
|
'id' => '1',
|
|
|
|
'id' => '1',
|
|
|
|
|