detail.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. <template>
  2. <view class="main">
  3. <view class="content">
  4. <view class="nameBox">
  5. <view class="name">{{patientName}}</view>
  6. </view>
  7. <view class="list">
  8. <view class="item" v-for="(item, index) in item">
  9. <view class="topTitle">{{ titleType(item.diagnosticType) }}</view>
  10. <view class="title">{{ item.diagnosticName }}</view>
  11. <view class="doc">主治医生: {{item.doctor}} </view>
  12. <view class="dept">就诊科室: {{item.departmentName}} </view>
  13. <view class="botBox">
  14. <view class="time">诊断时间: {{item.diagnosisTime}} </view>
  15. <view class="type">{{ diaCode(item.diagnosticCategoryCode) }}</view>
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. export default {
  24. data() {
  25. return {
  26. item: [],
  27. patientName:'',
  28. cardId:'',
  29. }
  30. },
  31. onLoad(e) {
  32. console.log(e);
  33. this.cardId = e.cardId
  34. this.patientName = e.patientName
  35. this.http.request({
  36. url: '/work/diagnosis/list?visitId=' + e.id,
  37. loading: 'true',
  38. success: (res) => {
  39. this.item = res.data.data;
  40. }
  41. });
  42. },
  43. methods: {
  44. titleType(type) {
  45. // 诊断类型代码:
  46. // 0-主要诊断
  47. // 1-第一辅诊
  48. // 2-第二辅诊
  49. switch (type) {
  50. case '0':
  51. return "主要诊断:"
  52. break;
  53. case '1':
  54. return "第一辅诊:"
  55. break;
  56. case '2':
  57. return "第二辅诊:"
  58. break;
  59. }
  60. },
  61. diaCode(code) {
  62. // 诊断类别代码:
  63. // 0-门诊诊断
  64. // 1-入院诊断
  65. // 2-出院诊断
  66. // 3-中医入院诊断
  67. // 4-中医出院诊断
  68. // 5-修正诊断
  69. // 6-最终诊断
  70. // 7-初步诊断
  71. // 8 目前诊断
  72. // 9-术前诊断
  73. // 10-术后诊断
  74. // 11-产后诊断
  75. // 99-其他诊断
  76. switch (code) {
  77. case '0':
  78. return "门诊诊断"
  79. break;
  80. case '1':
  81. return "入院诊断"
  82. break;
  83. case '2':
  84. return "出院诊断"
  85. break;
  86. case '3':
  87. return "中医入院诊断"
  88. break;
  89. case '4':
  90. return "中医出院诊断"
  91. break;
  92. case '5':
  93. return "修正诊断"
  94. break;
  95. case '6':
  96. return "最终诊断"
  97. break;
  98. case '7':
  99. return "初步诊断"
  100. break;
  101. case '8':
  102. return "目前诊断"
  103. break;
  104. case '9':
  105. return "术前诊断"
  106. break;
  107. case '10':
  108. return "术后诊断"
  109. break;
  110. case '11':
  111. return "产后诊断"
  112. break;
  113. case '99':
  114. return "其他诊断"
  115. break;
  116. }
  117. },
  118. }
  119. }
  120. </script>
  121. <style lang="scss">
  122. .content {
  123. padding: 15px;
  124. background-color: white;
  125. border-radius: 8px;
  126. .nameBox {
  127. display: flex;
  128. align-items: center;
  129. .name {
  130. font-weight: bold;
  131. font-size: 16px;
  132. }
  133. }
  134. .cardNum {
  135. padding-top: 10px;
  136. font-size: 14px;
  137. }
  138. .list {
  139. .item {
  140. overflow: hidden;
  141. padding: 13px 0;
  142. border-bottom: 1px solid $line;
  143. margin-bottom: 10px;
  144. .topTitle{
  145. font-size: 18px;
  146. font-weight: bold;
  147. }
  148. .title {
  149. font-size: 24px;
  150. font-weight: bold;
  151. }
  152. .botBox {
  153. display: flex;
  154. justify-content: space-between;
  155. align-items: center;
  156. .time,
  157. .type {
  158. font-size: 14px;
  159. padding-top: 15px;
  160. color: $font-c;
  161. }
  162. }
  163. }
  164. }
  165. }
  166. </style>