|
|
|
@ -49,10 +49,16 @@
|
|
|
|
uni.hideLoading()
|
|
|
|
uni.hideLoading()
|
|
|
|
$response(response, () => {
|
|
|
|
$response(response, () => {
|
|
|
|
report_content.value = {
|
|
|
|
report_content.value = {
|
|
|
|
|
|
|
|
baseInfo:response.data.baseInfo,
|
|
|
|
content: response.data.content,
|
|
|
|
content: response.data.content,
|
|
|
|
conclusion: response.data.conclusion,
|
|
|
|
conclusion: response.data.conclusion,
|
|
|
|
list: response.data.list,
|
|
|
|
list: response.data.list,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if(report_content.value.baseInfo.leixing =='健康证' && Number($props.type) !== 3){
|
|
|
|
|
|
|
|
uni.redirectTo({
|
|
|
|
|
|
|
|
url: `/pages/main/report/report?hospital=${$props.hospital}&type=3&id=${$props.id}`
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -67,14 +73,14 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<view>
|
|
|
|
<view>
|
|
|
|
<view class="type_group_top_blank_wrapper"></view>
|
|
|
|
<view class="type_group_top_blank_wrapper"></view>
|
|
|
|
<view class="type_group_wrapper">
|
|
|
|
<view class="type_group_wrapper" v-if="report_content.baseInfo">
|
|
|
|
<view @click="chooseTypeClick(1)" class="type_item_wrapper" :class="[
|
|
|
|
<view v-if="report_content.baseInfo.leixing !='健康证'" @click="chooseTypeClick(1)" class="type_item_wrapper" :class="[
|
|
|
|
Number($props.type) === 1 ? 'type_item_active_wrapper' : ''
|
|
|
|
Number($props.type) === 1 ? 'type_item_active_wrapper' : ''
|
|
|
|
]">
|
|
|
|
]">
|
|
|
|
<view class="type_item_text_wrapper">总检结论</view>
|
|
|
|
<view class="type_item_text_wrapper">总检结论</view>
|
|
|
|
<view class="type_item_line_wrapper"></view>
|
|
|
|
<view class="type_item_line_wrapper"></view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view @click="chooseTypeClick(2)" class="type_item_wrapper " :class="[
|
|
|
|
<view v-if="report_content.baseInfo.leixing !='健康证'" @click="chooseTypeClick(2)" class="type_item_wrapper " :class="[
|
|
|
|
Number($props.type) === 2 ? 'type_item_active_wrapper' : ''
|
|
|
|
Number($props.type) === 2 ? 'type_item_active_wrapper' : ''
|
|
|
|
]">
|
|
|
|
]">
|
|
|
|
<view class="type_item_text_wrapper">报告详情</view>
|
|
|
|
<view class="type_item_text_wrapper">报告详情</view>
|
|
|
|
@ -88,8 +94,8 @@
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view v-if="!!report_content" class="report_content_wrapper">
|
|
|
|
<view v-if="!!report_content" class="report_content_wrapper">
|
|
|
|
<ReportType1 :info="report_content.conclusion" v-if="Number($props.type) === 1"></ReportType1>
|
|
|
|
<ReportType1 :info="report_content.conclusion" v-if="Number($props.type) === 1 && report_content.baseInfo.leixing !='健康证'"></ReportType1>
|
|
|
|
<ReportType2 :info="report_content.content" v-if="Number($props.type) === 2"></ReportType2>
|
|
|
|
<ReportType2 :info="report_content.content" v-if="Number($props.type) === 2 && report_content.baseInfo.leixing !='健康证'"></ReportType2>
|
|
|
|
<ReportType3 :list="report_content.list" v-if="Number($props.type) === 3"></ReportType3>
|
|
|
|
<ReportType3 :list="report_content.list" v-if="Number($props.type) === 3"></ReportType3>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|