调整报告查询

main
yanzai 4 months ago
parent 04f4d39d71
commit 64d01bba48

@ -572,7 +572,7 @@ class ReportController extends Controller
foreach ($item['基础项目列表'] as $i) { foreach ($item['基础项目列表'] as $i) {
$content_list[] = [ $content_list[] = [
'title' => $i['基础项目名称'], 'title' => $i['基础项目名称'],
'content' => $i['结果值'] . $i['结果值单位'], 'content' => $i['结果值'] .' '. $i['结果值单位'],
'icon' => $i['异常标识'], 'icon' => $i['异常标识'],
'desc' => $i['结果值范围'], 'desc' => $i['结果值范围'],
]; ];
@ -595,11 +595,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');
$phone = $request->post('phone');
$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, [
"电话号码" => "", "电话号码" => $phone,
"证件号码" => $id_number, "证件号码" => $id_number,
"体检号" => '' "体检号" => ''
])['data']; ])['data'];

@ -58,7 +58,8 @@
//data:"fdfdfdfs", //data:"fdfdfdfs",
showToast: false, showToast: false,
success: () => { success: () => {
uni.$lu.toast("链接已复制到剪切板,请前往浏览器下载") window.open(url) ;
//uni.$lu.toast("")
// tiao(url) // tiao(url)
}, },
fail: (e) => { fail: (e) => {
@ -76,8 +77,8 @@
//data:"fdfdfdfs", //data:"fdfdfdfs",
showToast: false, showToast: false,
success: () => { success: () => {
window.open(url) ;
uni.$lu.toast("链接已复制到剪切板,请前往浏览器下载.") //uni.$lu.toast(".")
} }
}); });
@ -125,15 +126,15 @@
<view> <view>
<uni-popup ref="popup"> <uni-popup ref="popup">
<view class="tan"> <view class="tan">
<view class="t_row" @click="preview"> <!-- <view class="t_row" @click="preview">
<view class="t_logo"><uni-icons type="eye-filled" color="#42b983" size="60rpx"></uni-icons> <view class="t_logo"><uni-icons type="eye-filled" color="#42b983" size="60rpx"></uni-icons>
</view> </view>
<view class="t_title">报告预览</view> <view class="t_title">报告预览</view>
</view> </view> -->
<view class="t_row" v-if="Env != 'android'" @click="jianqieban(url)"> <view class="t_row" @click="jianqieban(url)">
<view class="t_logo"><uni-icons type="download-filled" color="#42b983" size="60rpx"></uni-icons> <view class="t_logo"><uni-icons type="download-filled" color="#42b983" size="60rpx"></uni-icons>
</view> </view>
<view class="t_title">报告下载</view> <view class="t_title">查看报告</view>
</view> </view>
</view> </view>
</uni-popup> </uni-popup>

@ -21,9 +21,10 @@
}, },
}); });
const id_number = ref('') const id_number = ref('')
const phone=ref('')
const toPage = () => { const toPage = () => {
uni.navigateTo({ uni.navigateTo({
url: `/pages/main/list/list?hospital=${$props.hospital}&id_number=${id_number.value}` url: `/pages/main/list/list?hospital=4&id_number=${id_number.value}&phone=${phone.value}`
}) })
} }
</script> </script>
@ -33,6 +34,10 @@
<view class="input_wrapper"> <view class="input_wrapper">
<input type="text" v-model="id_number"> <input type="text" v-model="id_number">
</view> </view>
<view class="title_wrapper" style="margin-top: 10rpx;">手机号</view>
<view class="input_wrapper">
<input type="tel" v-model="phone">
</view>
<view @click="toPage()" class="top_button_wrapper top_button1_wrapper"> <view @click="toPage()" class="top_button_wrapper top_button1_wrapper">
<view class="top_button_icon_wrapper"> <view class="top_button_icon_wrapper">
<image :src="$image('/storage/assets/report/home/报告对比@2x.png')"></image> <image :src="$image('/storage/assets/report/home/报告对比@2x.png')"></image>
@ -62,7 +67,8 @@
border-radius: 8rpx; border-radius: 8rpx;
align-items: center; align-items: center;
margin: 20rpx auto 0; margin: 20rpx auto 0;
background: #33333310; background: #ffffff;
border: 1px solid #16C5A9;
} }
.top_button_text_wrapper { .top_button_text_wrapper {

@ -28,9 +28,14 @@
}, },
}); });
const ReportList = async () => { const ReportList = async () => {
uni.showLoading({
title:'加载中...'
})
const response = await ReportListAction({ const response = await ReportListAction({
id_number: $props.id_number id_number: $props.id_number,
phone:$props.phone
}) })
uni.hideLoading()
$response(response, () => { $response(response, () => {
report_list.value = response.data.list report_list.value = response.data.list
}) })

@ -40,9 +40,13 @@
}) })
} }
const ReportInfo = async () => { const ReportInfo = async () => {
uni.showLoading({
title:'加载中...'
})
const response = await ReportInfoAction({ const response = await ReportInfoAction({
id: $props.id id: $props.id
}) })
uni.hideLoading()
$response(response, () => { $response(response, () => {
report_content.value = { report_content.value = {
content: response.data.content, content: response.data.content,

Loading…
Cancel
Save