查询报告 同时匹配 电话和身份证

main
yanzai 1 year ago
parent 2437349bf1
commit 77dd79201d

@ -590,11 +590,12 @@ class ReportController extends Controller
public function list(Request $request) public function list(Request $request)
{ {
$id_number = $request->post('id_number'); $id_number = $request->post('id_number');
$tel=$request->post('tel');
$hospital = Hospital::where('id', $request->post('hospital'))->where('del', 2)->first(); $hospital = Hospital::where('id', $request->post('hospital'))->where('del', 2)->first();
if (!$hospital) Yo::error_echo(100000, ['机构/医院']); if (!$hospital) Yo::error_echo(100000, ['机构/医院']);
$peis = new PEISApiController(); $peis = new PEISApiController();
$res = $peis::Post('体检报告查询', $hospital->id, [ $res = $peis::Post('体检报告查询', $hospital->id, [
"电话号码" => "", "电话号码" => $tel,
"证件号码" => $id_number, "证件号码" => $id_number,
"体检号" => '' "体检号" => ''
])['data']; ])['data'];

@ -10,7 +10,7 @@ if (dev === 1) {
chat_url = "http://192.168.31.106:5173" chat_url = "http://192.168.31.106:5173"
} }
export const ReportUrl = (data) => { export const ReportUrl = (data) => {
return $api('Report') + `?hospital=${data.hospital}&id_number=${data.id_number}` return $api('Report') + `?hospital=${data.hospital}&id_number=${data.id_number}&tel=${data.tel}`
} }
export const QuestionPushAction = async (data) => await $post({ export const QuestionPushAction = async (data) => await $post({
url: 'Question/push', url: 'Question/push',

@ -101,12 +101,13 @@
delta: 1 delta: 1
}) })
break; break;
case 'report': case 'report':
uni.$lu.jump({ uni.$lu.jump({
jump_type: 3, jump_type: 3,
jump_path: ReportUrl({ jump_path: ReportUrl({
hospital: hospital_info.value.id, hospital: hospital_info.value.id,
id_number: info.id_number id_number: info.id_number,
tel: info.phone
}), }),
login_type: 1 login_type: 1
}) })

@ -23,6 +23,10 @@
type: String, type: String,
default: '' default: ''
}, },
tel: {
type: String,
default: ''
},
hospital: { hospital: {
type: String, type: String,
default: '' default: ''
@ -30,7 +34,8 @@
}); });
const ReportList = async () => { const ReportList = async () => {
const response = await ReportListAction({ const response = await ReportListAction({
id_number: $props.id_number id_number: $props.id_number,
tel:$props.tel
}) })
$response(response, () => { $response(response, () => {
report_list.value = response.data.list report_list.value = response.data.list

Loading…
Cancel
Save