patientInformationInfo.vue 4.9 KB

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