CfContent.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <template>
  2. <view class="cf-content">
  3. <pub-loading-view :loaded="loaded" height="100%">
  4. <view class="cf-content-section" v-if="dataList">
  5. <view class="cf-content-title">{{dataList.hosName}}</view>
  6. <view class="cf-content-info">
  7. <view class="cf-content-info-left">
  8. <view>患者</view>
  9. <view>{{dataList.name}}</view>
  10. <view>{{dataList.sex}}</view>
  11. <view>{{dataList.age}}</view>
  12. </view>
  13. <view class="cf-content-info-right">
  14. <view>处方号</view>
  15. <view>{{dataList.cfNo}}</view>
  16. </view>
  17. </view>
  18. <view class="cf-content-list">
  19. <view class="cf-content-item" v-for="item in dataList.list" :key="item">
  20. <view>{{item.ypmc}}</view>
  21. <view>{{ item.jl+item.ypdw }}</view>
  22. </view>
  23. </view>
  24. <view class="cf-content-total">
  25. <view>{{dataList.ts}}</view>
  26. <view>{{dataList.fs}}</view>
  27. <view>{{dataList.kd}}</view>
  28. </view>
  29. <view class="cf-content-doctor">
  30. <view class="cf-content-doctor-left">
  31. <view>医生:</view>
  32. <view>{{dataList.doctor}}</view>
  33. </view>
  34. <view>{{dataList.date}}</view>
  35. </view>
  36. <view class="cf-content-note">{{dataList.note}}</view>
  37. </view>
  38. </pub-loading-view>
  39. </view>
  40. </template>
  41. <script lang="ts" setup>
  42. import { ref, PropType } from 'vue'
  43. const props = defineProps({
  44. dataList: {
  45. type: Object as PropType<any>,
  46. default: () => ({})
  47. },
  48. })
  49. const loaded = ref(false)
  50. </script>
  51. <style lang="scss" scoped>
  52. .cf-content {
  53. background: #fff;
  54. padding: $uni-spacing-col-s3 $page-row-spacing;
  55. height: 100%;
  56. box-sizing: border-box;
  57. overflow-y: auto;
  58. text-align: center;
  59. .cf-content-title {
  60. font-size: $uni-font-size-xl;
  61. line-height: $uni-line-height-xl;
  62. font-weight: 600;
  63. }
  64. .cf-content-info {
  65. @include flex-between;
  66. border-bottom: 1px dashed $uni-border-color;
  67. padding: 32rpx 24rpx;
  68. .cf-content-info-left,
  69. .cf-content-info-right {
  70. @include flex;
  71. >view {
  72. &+view {
  73. margin-left: 16rpx;
  74. }
  75. }
  76. }
  77. }
  78. .cf-content-list {
  79. display: flex;
  80. flex-wrap: wrap;
  81. padding: 20rpx 16rpx 20rpx;
  82. .cf-content-item {
  83. font-size: $uni-font-size-base;
  84. line-height: $uni-line-height-base;
  85. font-weight: 600;
  86. margin: 20rpx 8rpx;
  87. width: calc((100% - 48rpx)/3);
  88. text-align: left;
  89. display: flex;
  90. >view {
  91. &+view {
  92. margin-left: 8rpx;
  93. }
  94. }
  95. }
  96. }
  97. .cf-content-total {
  98. @include flex;
  99. padding: 0 24rpx 40rpx;
  100. border-bottom: 1px dashed $uni-border-color;
  101. color: $uni-text-color-grey;
  102. >view {
  103. &+view {
  104. margin-left: 32rpx;
  105. }
  106. }
  107. }
  108. .cf-content-doctor {
  109. // color: $uni-text-color-light;
  110. padding: 16rpx 24rpx 40rpx;
  111. @include flex-between;
  112. .cf-content-doctor-left {
  113. @include flex;
  114. }
  115. }
  116. .cf-content-note {
  117. color: $uni-text-color-light;
  118. padding: 0 24rpx 32rpx;
  119. text-align: left;
  120. font-size: $uni-font-size-sm;
  121. line-height: $uni-line-height-sm;
  122. }
  123. }
  124. </style>