CheckTestDetail.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <window-size>
  3. <van-notice-bar left-icon="warning-o" text="仅供查阅参考,最终结果以医院纸质报告为准。" />
  4. <van-cell title="就诊人" :value="testResult.patientName"></van-cell>
  5. <van-cell title="送检医生" :value="testResult.doctorName"></van-cell>
  6. <van-cell title="报告时间" :value="testResult.checkTime"></van-cell>
  7. <van-cell title="报告单号" :value="testResult.patientUid"></van-cell>
  8. <div style="height: 5px"></div>
  9. <van-tag type="primary" plain style="margin-left: 8px">检查所见</van-tag>
  10. <div class="test-result-text">
  11. <p v-html="testResult.examinationSee"></p>
  12. </div>
  13. <div style="height: 12px"></div>
  14. <van-tag type="primary" plain style="margin-left: 8px">检查结论</van-tag>
  15. <div class="test-result-text">
  16. <p v-html="testResult.examinationreSult"></p>
  17. </div>
  18. </window-size>
  19. </template>
  20. <script setup>
  21. import { useRouter } from 'vue-router'
  22. import { checkTestDetail } from '../../../api/check-exam'
  23. import { onMounted, ref} from 'vue'
  24. const router = useRouter()
  25. const testResult = ref({})
  26. onMounted(() => {
  27. const params = router.currentRoute.value.params
  28. checkTestDetail(params).then((res) => {
  29. testResult.value = res
  30. })
  31. })
  32. </script>
  33. <style scoped>
  34. .test-result-text {
  35. font-size: 14px;
  36. color: black;
  37. padding: 4px 20px;
  38. }
  39. </style>