index.vue 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <template>
  2. <view class="dialysis">
  3. <view class="info">
  4. <img class="infoImg" src="../../static/images/avatar.png" alt="">
  5. <view class="infoRight">
  6. <view>
  7. <text class="name">{{ patient.name }}</text>
  8. <!-- <text class="relieve">解除绑定</text> -->
  9. </view>
  10. <view class="infoTxt">在诊医院:{{ orgInfo.org_name }}</view>
  11. <view class="infoTxt">在诊医院治疗次数:{{ patient.total_dialysis }}次</view>
  12. </view>
  13. </view>
  14. <view class="bgLine"></view>
  15. <view class="titleBox">
  16. <view class="line"></view>
  17. 门诊病历
  18. </view>
  19. <view class="record">
  20. <view class="recordTitle">主诉:</view>
  21. <view class="recordContent">{{ patient.patient_complains }}</view>
  22. <view class="recordTitle">现病历:</view>
  23. <view class="recordContent">{{ patient.present_history }}</view>
  24. <view class="recordTitle">既往史:</view>
  25. <view class="recordContent">{{ patient.past_history }}</view>
  26. <view class="recordTitle">体格检查:</view>
  27. <view class="recordContent">T {{ patient.temperature }}℃ P {{ patient.pulse }}次/分 R {{ patient.respiratory }}次/分 BP {{ patient.sbp }}/{{ patient.dbp }} mmHg</view>
  28. <view class="recordTitle">诊断:</view>
  29. <view class="recordContent">{{ patient.diagnose }}</view>
  30. </view>
  31. <van-toast id="van-toast" />
  32. </view>
  33. </template>
  34. <script>
  35. import { getRecord,getOrg } from '@/api/api.js';
  36. export default {
  37. data() {
  38. return {
  39. patient_id:0,
  40. patient:{},
  41. orgInfo:{}
  42. }
  43. },
  44. onLoad(){
  45. this.patient_id = this.$store.state.data.userInfo.id
  46. this.getRecord(this.patient_id)
  47. this.getOrg(this.patient_id)
  48. },
  49. methods:{
  50. async getRecord(patient_id){
  51. let params = {
  52. patient_id:patient_id
  53. }
  54. let res = await getRecord(params)
  55. this.patient = res.data.data.patient
  56. },
  57. async getOrg(patient_id){
  58. let params = {
  59. patient_id:patient_id
  60. }
  61. let res = await getOrg(params)
  62. this.orgInfo = res.data.data.orgInfo
  63. }
  64. }
  65. }
  66. </script>
  67. <style>
  68. .dialysis{
  69. height: 100%;
  70. background: #FFFFFF;
  71. overflow-x: hidden;
  72. padding-bottom: 0;
  73. padding-bottom: constant(safe-area-inset-bottom);
  74. padding-bottom: env(safe-area-inset-bottom);
  75. }
  76. .bgLine{
  77. background: #F2F2F2;
  78. height: 24rpx;
  79. }
  80. .info{
  81. display: flex;
  82. background: #FFFFFF;
  83. padding: 28rpx 24rpx;
  84. }
  85. .infoRight{
  86. flex: 1;
  87. margin-left: 24rpx;
  88. }
  89. .name{
  90. font-size: 32rpx;
  91. color: #000000;
  92. font-weight: bold;
  93. margin-right: 22rpx;
  94. }
  95. .infoImg{
  96. width: 122rpx;
  97. height: 122rpx;
  98. background: #FFFFFF;
  99. border-radius: 50%;
  100. }
  101. .relieve{
  102. width: 144rpx;
  103. height: 54rpx;
  104. background: linear-gradient(-90deg, #01BD5D, #28D87D);
  105. border-radius: 28rpx;
  106. font-size: 26rpx;
  107. color: #FFFFFF;
  108. text-align: center;
  109. line-height: 54rpx;
  110. display: inline-block;
  111. }
  112. .infoTxt{
  113. font-size: 26rpx;
  114. font-weight: bold;
  115. color: rgba(0, 0, 0, 0.5);
  116. margin-top: 22rpx;
  117. }
  118. .titleBox{
  119. width: 100%;
  120. height: 90rpx;
  121. background: #FFFFFF;
  122. box-shadow: 0px 1px 0px 0px #E7E7E7;
  123. font-size: 36rpx;
  124. color: #000000;
  125. display: flex;
  126. align-items: center;
  127. padding: 0 24rpx;
  128. }
  129. .line{
  130. width: 6rpx;
  131. height: 40rpx;
  132. background: linear-gradient(180deg, #00C692, #FFFFFF);
  133. border-radius: 4rpx;
  134. margin-right: 20rpx;
  135. }
  136. .record{
  137. padding: 22rpx 28rpx 50rpx 50rpx;
  138. }
  139. .recordTitle{
  140. font-size: 30rpx;
  141. color: #01BD5D;
  142. }
  143. .recordContent{
  144. font-size: 30rpx;
  145. color: #000000;
  146. margin-bottom: 36rpx;
  147. }
  148. </style>