diff --git a/Laravel/app/Http/Controllers/API/mH5/PersonController.php b/Laravel/app/Http/Controllers/API/mH5/PersonController.php index e9e409e..62badad 100644 --- a/Laravel/app/Http/Controllers/API/mH5/PersonController.php +++ b/Laravel/app/Http/Controllers/API/mH5/PersonController.php @@ -106,7 +106,14 @@ class PersonController extends Controller return \Yz::echoError1('调用HSM解密失败'); } $get_info['tj_num'] = $HSM['data']; - $info=$info->where(['id'=>$get_info['tj_num']]); + if(isset($get_info['jigou_code'])){ //如果有体检机构 则根据体检机构和体检号进行查询,否则根据id查询 + $org=DB::table('medical_institution')->where(['sn'=>$get_info['jigou_code']])->first(); + if(!$org) return \Yz::echoError1('体检机构不存在'); + $info=$info->where(['tijian_num'=>$get_info['tj_num'],'institution_id'=>$org->id]); + }else{ + $info=$info->where(['id'=>$get_info['tj_num']]); + } + }else{ if(!isset($get_info['sfz'])) return \Yz::echoError1('身份证不能为空'); if(!isset($get_info['tel'])) return \Yz::echoError1('电话不能为空'); diff --git a/mH5/src/router/index.js b/mH5/src/router/index.js index 66b9617..d790141 100644 --- a/mH5/src/router/index.js +++ b/mH5/src/router/index.js @@ -72,6 +72,10 @@ const router = createRouter({ path: '/myappointment', name: 'MyAppointment', component: () => import('../views/MyAppointment.vue') + },{ + path: '/selectchecktype', + name: 'SelectCheckType', + component: () => import('../views/SelectCheckType.vue') }] }) diff --git a/mH5/src/views/AppLogin.vue b/mH5/src/views/AppLogin.vue index 4d6deb3..463c71e 100644 --- a/mH5/src/views/AppLogin.vue +++ b/mH5/src/views/AppLogin.vue @@ -16,7 +16,7 @@