patientInformationInfo.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  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 :class="{red:item.priority===1||item.priority==='1'}">{{ (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. .zwsj {
  96. text-align: center;
  97. .zwsj-img {
  98. width: 560rpx;
  99. }
  100. .zwsj-txt {
  101. font-size: 36rpx;
  102. font-weight: 700;
  103. margin-top: 20rpx;
  104. text-align: center;
  105. }
  106. }
  107. .page_head {
  108. background-color: #49b856;
  109. color: #fff;
  110. .title {
  111. font-size: 48rpx;
  112. padding-top: 24rpx;
  113. text-align: center;
  114. }
  115. .patientCode {
  116. padding-bottom: 12rpx;
  117. font-size: 28rpx;
  118. text-align: center;
  119. }
  120. .info {
  121. padding-bottom: 24rpx;
  122. margin: 8rpx 0;
  123. height: 80rpx;
  124. display: flex;
  125. justify-content: center;
  126. align-items: center;
  127. .bedNum,
  128. .waitingCount {
  129. width: 300rpx;
  130. height: 100%;
  131. display: flex;
  132. flex-direction: column;
  133. justify-content: center;
  134. align-items: center;
  135. .info_h {
  136. font-size: 30rpx;
  137. }
  138. .info_b {
  139. font-size: 26rpx;
  140. }
  141. }
  142. .bedNum {
  143. position: relative;
  144. &:after {
  145. content: "";
  146. position: absolute;
  147. width: 4rpx;
  148. height: 50rpx;
  149. right: -2rpx;
  150. top: 15rpx;
  151. background-color: #fff;
  152. }
  153. }
  154. }
  155. }
  156. .page_item {
  157. margin-top: 16rpx;
  158. margin-bottom: 16rpx;
  159. background: #fff;
  160. border-radius: 8rpx;
  161. overflow: hidden;
  162. padding: 0 16rpx;
  163. border: 2rpx solid #e5e9ed;
  164. .page_item_info {
  165. padding: 20rpx 16rpx;
  166. text-align: left;
  167. line-height: 60rpx;
  168. font-size: 30rpx;
  169. .page_item_info_title {
  170. font-weight: 700;
  171. text {
  172. font-weight: normal;
  173. &.red{
  174. color: red;
  175. }
  176. }
  177. }
  178. }
  179. }
  180. }
  181. </style>