Elizabeth's proactive approach involves introducing urinal toilet attachment , an ingenious concept that optimizes space and functionality.

dialysisComputer.vue 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <template>
  2. <div class="plate-box">
  3. <h2 class="DetailsTit"><span>{{ title }}</span></h2>
  4. <div class="plate " >
  5. <ul>
  6. <li>
  7. <label>班次 : </label>
  8. <span class="content">{{ schedual_type }}</span>
  9. </li>
  10. <li>
  11. <label>上机床位 : </label>
  12. <span class="content">{{ device_number }}</span>
  13. </li>
  14. <li>
  15. <label>上机护士 : </label>
  16. <span class="content">{{ nurse }}</span>
  17. </li>
  18. </ul>
  19. <ul>
  20. <li>
  21. <label>穿刺护士 : </label>
  22. <span class="content">{{ puncture_nurse }}</span>
  23. </li>
  24. <li>
  25. <label>状态 : </label>
  26. <span class="content">{{ stage }}</span>
  27. </li>
  28. </ul>
  29. <ul>
  30. <li>
  31. <label>上机时间 : </label>
  32. <span class="content">{{start_time}}</span>
  33. </li>
  34. </ul>
  35. </div>
  36. <div class="middleLine"></div>
  37. </div>
  38. </template>
  39. <script>
  40. import { parseTime } from '@/utils';
  41. export default {
  42. name: 'DialysisComputer',
  43. data() {
  44. return {
  45. title: '透析上机 '
  46. }
  47. },
  48. props: {
  49. record: {
  50. type: Object
  51. },
  52. admin_map: {
  53. type: Object
  54. },
  55. device_number_map: {
  56. type: Object
  57. }
  58. },
  59. computed: {
  60. schedual_type:function(){
  61. if (this.record.id == 0) {
  62. return '-'
  63. }
  64. switch (this.record.schedual_type) {
  65. case 1:
  66. return "上午"
  67. break
  68. case 2:
  69. return "下午"
  70. break
  71. case 3:
  72. return "晚上"
  73. break
  74. }
  75. },
  76. device_number: function() {
  77. if (this.record.id == 0) {
  78. return '-'
  79. }
  80. if(this.device_number_map[this.record.bed_id].number.indexOf(this.device_number_map[this.record.bed_id].zone_name) == -1){
  81. return this.device_number_map[this.record.bed_id] == null ? '' :this.device_number_map[this.record.bed_id].zone_name +"-"+ this.device_number_map[this.record.bed_id].number
  82. }else{
  83. return this.device_number_map[this.record.bed_id].number
  84. }
  85. },
  86. nurse: function() {
  87. if (this.record.id == 0) {
  88. return '-'
  89. }
  90. return this.admin_map[this.record.start_nurse] == null ? '' : this.admin_map[this.record.start_nurse].name
  91. },
  92. stage: function() {
  93. if (this.record.id == 0) {
  94. return '未上机'
  95. }
  96. return this.record.stage == 1 ? '已上机' : '已下机'
  97. }, start_time: function() {
  98. if (this.record == null || this.record.id == '') {
  99. return '-'
  100. }
  101. return parseTime(this.record.start_time, '{y}年{m}月{d}日 {h}时{i}分')
  102. }, puncture_nurse: function() {
  103. if (this.record.id == 0) {
  104. return '-'
  105. }
  106. return this.admin_map[this.record.puncture_nurse] == null ? '' : this.admin_map[this.record.puncture_nurse].name
  107. }
  108. },
  109. methods: {
  110. }
  111. }
  112. </script>
  113. <style rel="stylesheet/scss" lang="scss" scoped>
  114. </style>