1
0

detail.vue 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <template>
  2. <view class="main">
  3. <view class="content">
  4. <view class="info">
  5. <view class="title">{{item.medTechProName}}</view>
  6. <view class="p5">报告编号:&nbsp;{{item.reportNo}}</view>
  7. <view class="p5">就 诊 人:&nbsp;{{item.patientName}}</view>
  8. <view class="p5">就诊卡号:&nbsp;{{item.cardId}}</view>
  9. <view class="p5">申请科室:&nbsp;{{item.inspectionDepartmentName}}</view>
  10. <view class="p5">申请医生:&nbsp;{{item.applyDoctorName}}</view>
  11. <view class="p5">采集时间:&nbsp;{{item.sampleReceivedDate}}</view>
  12. <view class="p5" style="padding-bottom: 10px;">报告时间:&nbsp;{{item.reportDate}}</view>
  13. </view>
  14. <view class="flex" style="font-weight: bold;font-size: 16px;margin: 10px 0;">
  15. <view class="f">项目</view>
  16. <view class="f">检查结果</view>
  17. <view class="f">提示</view>
  18. <view class="f">单位</view>
  19. <view class="f">参考范围</view>
  20. </view>
  21. <view class="flex" v-for="(i,index) in list" style="font-size: 12px;margin: 10px 0;">
  22. <view class="f">{{i.mecTechObsName}}</view>
  23. <view class="f">{{i.obsProjectDetail}}</view>
  24. <view class="f">
  25. <text class="icon arrow" style="color: red;" v-if="i.sign == '1'">&#xe65d;</text>
  26. <text class="icon arrow" style="color: red;" v-else-if="i.sign == '2'">&#xe65e;</text>
  27. <text v-else></text>
  28. </view>
  29. <view class="f">{{i.unitCode}}</view>
  30. <view class="f">{{i.result}}</view>
  31. </view>
  32. </view>
  33. </view>
  34. </template>
  35. <script>
  36. export default {
  37. data() {
  38. return {
  39. item: {},
  40. list:[],
  41. }
  42. },
  43. onLoad(e) {
  44. this.getData(e)
  45. },
  46. methods: {
  47. getData(e){
  48. console.log(e);
  49. this.http.request({
  50. url: '/work/result/getResults/' + e.id,
  51. loading: 'true',
  52. success: (res) => {
  53. this.list = res.data.data
  54. }
  55. });
  56. this.http.request({
  57. url: '/work/report/getReportByObrId/'+ e.orcId,
  58. loading: 'true',
  59. success: (res) => {
  60. this.item = res.data.data
  61. this.item.patientName = e.patientName
  62. this.item.sampleReceivedDate = e.sampleReceivedDate
  63. this.item.reportDate = e.reportDate
  64. }
  65. });
  66. }
  67. }
  68. }
  69. </script>
  70. <style lang="scss">
  71. .content {
  72. padding: 15px;
  73. background-color: white;
  74. border-radius: 8px;
  75. .info {
  76. border-bottom: 1px solid $line;
  77. font-size: 12px;
  78. padding-bottom: 10px;
  79. .title {
  80. font-weight: bold;
  81. font-size: 16px;
  82. padding-bottom: 5px;
  83. }
  84. }
  85. }
  86. .p5 {
  87. padding: 5px 0;
  88. }
  89. </style>