patientInformationInfo.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <template>
  2. <view class="patientInformationInfo" v-if="Object.keys(infoDATA).length > 0">
  3. <view class="page_head">
  4. <view class="title">{{ infoDATA.patientName }}</view>
  5. <view class="patientCode">{{ infoDATA.patientCode }}</view>
  6. <view class="info">
  7. <view class="bedNum">
  8. <text class="info_h">床号</text>
  9. <text class="info_b">{{ infoDATA.bedNum || "-" }}</text>
  10. </view>
  11. <view :class="infoDATA.careLevel?'bedNum':'waitingCount'">
  12. <text class="info_h">待检查数</text>
  13. <text class="info_b">{{ infoDATA.watingCount }}</text>
  14. </view>
  15. <view class="bedNum" v-if="infoDATA.careLevel">
  16. <text class="info_h">护理等级</text>
  17. <text class="info_b">{{ infoDATA.careLevel.name }}</text>
  18. </view>
  19. <view class="waitingCount" v-if="infoDATA.illnessState">
  20. <text class="info_h">病情级别</text>
  21. <text class="info_b">{{ infoDATA.illnessState.name }}</text>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="page_item" v-for="item in infoDATA.inspects" :key="item.id">
  26. <view class="page_item_info">
  27. <view class="page_item_info_title">检查项目:<text>{{ item.inspectName || "-" }}</text></view>
  28. <view class="page_item_info_title">检查科室:<text>{{
  29. item.execDept ? item.execDept.dept : "-"
  30. }}</text></view>
  31. <view class="page_item_info_title">预约时间:<text>{{ item.yyTime || "-" }}</text></view>
  32. <view class="page_item_info_title">预约叫号:<text>{{ item.reservationNumber || "-" }}</text></view>
  33. </view>
  34. </view>
  35. <view v-if="infoDATA.inspects.length == 0" class="zwsj">
  36. <image class="zwsj-img" mode="widthFix" src="../../static/img/zanwushuju.png"></image>
  37. <view class="zwsj-txt">暂无检查信息</view>
  38. </view>
  39. </view>
  40. </template>
  41. <script>
  42. import {
  43. get,
  44. post,
  45. SM,
  46. webHandle
  47. } from "../../http/http.js";
  48. export default {
  49. data() {
  50. return {
  51. infoDATA: {},
  52. };
  53. },
  54. methods: {
  55. // 请求详细页面的数据
  56. getInfo(patientCode) {
  57. uni.showLoading({
  58. title: "加载中",
  59. mask: true,
  60. });
  61. post("/nurse/workOrder/getPatientInspectInfo", {
  62. patientCode,
  63. }).then((res) => {
  64. uni.hideLoading();
  65. if (res.status == 200) {
  66. this.infoDATA = res.data;
  67. } else {
  68. uni.showToast({
  69. icon: "none",
  70. title: "请求失败!",
  71. });
  72. }
  73. });
  74. },
  75. },
  76. onLoad(options) {
  77. let {
  78. patientCode
  79. } = options;
  80. this.getInfo(patientCode);
  81. // #ifdef APP-PLUS
  82. webHandle("no", "app");
  83. // #endif
  84. // #ifdef H5
  85. webHandle("no", "wx");
  86. // #endif
  87. },
  88. };
  89. </script>
  90. <style lang="less">
  91. .patientInformationInfo {
  92. padding: 0 20rpx;
  93. overflow: hidden;
  94. .zwsj {
  95. text-align: center;
  96. .zwsj-img {
  97. width: 560rpx;
  98. }
  99. .zwsj-txt {
  100. font-size: 36rpx;
  101. font-weight: 700;
  102. margin-top: 20rpx;
  103. text-align: center;
  104. }
  105. }
  106. .page_head {
  107. background-color: #49b856;
  108. color: #fff;
  109. .title {
  110. font-size: 48rpx;
  111. padding-top: 24rpx;
  112. text-align: center;
  113. }
  114. .patientCode {
  115. padding-bottom: 12rpx;
  116. font-size: 28rpx;
  117. text-align: center;
  118. }
  119. .info {
  120. padding-bottom: 24rpx;
  121. margin: 8rpx 0;
  122. height: 80rpx;
  123. display: flex;
  124. justify-content: center;
  125. align-items: center;
  126. .bedNum,
  127. .waitingCount {
  128. width: 300rpx;
  129. height: 100%;
  130. display: flex;
  131. flex-direction: column;
  132. justify-content: center;
  133. align-items: center;
  134. .info_h {
  135. font-size: 30rpx;
  136. }
  137. .info_b {
  138. font-size: 26rpx;
  139. }
  140. }
  141. .bedNum {
  142. position: relative;
  143. &:after {
  144. content: "";
  145. position: absolute;
  146. width: 4rpx;
  147. height: 50rpx;
  148. right: -2rpx;
  149. top: 15rpx;
  150. background-color: #fff;
  151. }
  152. }
  153. }
  154. }
  155. .page_item {
  156. margin-top: 16rpx;
  157. margin-bottom: 16rpx;
  158. background: #fff;
  159. border-radius: 8rpx;
  160. overflow: hidden;
  161. padding: 0 16rpx;
  162. border: 2rpx solid #e5e9ed;
  163. .page_item_info {
  164. padding: 20rpx 16rpx;
  165. text-align: left;
  166. line-height: 60rpx;
  167. font-size: 30rpx;
  168. .page_item_info_title {
  169. font-weight: 700;
  170. text {
  171. font-weight: normal;
  172. }
  173. }
  174. }
  175. }
  176. }
  177. </style>