dialysisMonitoring.vue 8.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <template>
  2. <div class="plate-box">
  3. <h2 class="DetailsTit">
  4. <span>{{ title }}</span>
  5. </h2>
  6. <div style="width:100%;overflow:hildden;overflow-x:auto;">
  7. <table class="table" style="">
  8. <tr>
  9. <th v-if="isShow('监测时间')" width="124px">时间</th>
  10. <th v-if="isShow('体温')" width="72px">体温(℃)</th>
  11. <th v-if="isShow('血压')" width="72px">血压(mmHg)</th>
  12. <th v-if="isShow('脉搏')" width="80px">脉搏(次/分)</th>
  13. <th v-if="isShow('呼吸频率')" width="110px">呼吸频率(次/分)</th>
  14. <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
  15. <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
  16. <th v-if="isShow('跨膜压')" width="76px">跨膜压({{monitores[0]&&monitores[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
  17. <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 28 || template_id == 29 || template_id == 30 || template_id == 31 || this.$store.getters.xt_user.template_info.org_id == 9555)" width="76px" > 超滤量(ml)</th>
  18. <th v-if=" isShow('超滤量') && template_id != 6 && template_id != 9 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id !=27 && template_id!=28 && template_id!=29 && template_id!=30 && template_id!=31 && this.$store.getters.xt_user.template_info.org_id != 9555" width="76px"> 超滤量(L) </th>
  19. <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31)" width="50px"> 超滤率 <br />(ml/h) </th>
  20. <th v-if="isShow('超滤率') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && template_id !=29 && template_id !=30 && template_id !=31" width="50px"> 超滤率 <br />(L/h) </th>
  21. <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
  22. <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
  23. <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29) " width="92px" > 置换率(ml/min) </th>
  24. <th v-if=" isShow('置换率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29" width="92px" > 置换率(L/h) </th>
  25. <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919) || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29)" width="92px" > 置换量(ml) </th>
  26. <th v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919) && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29)" width="92px" > 置换量(L) </th>
  27. <th v-if=" isShow('SpO₂') && template_id != 6 && template_id != 10 && template_id != 11 " width="92px" > SpO₂(%) </th>
  28. <th v-if="isShow('电导度')" width="92px">电导度(mS/m)</th>
  29. <th v-if="isShow('置换液流量') && template_id != 27" width="92px">置换液流量(ml/h)</th>
  30. <th v-if="isShow('置换液流量') && template_id == 27" width="92px">置换液流量(ml/min)</th>
  31. <th v-if="isShow('透析液流量')" width="92px">透析液流量(ml/h)</th>
  32. <th v-if="isShow('肝素用量余量')" width="92px">肝素用量余量(ml)</th>
  33. <th v-if="isShow('KT/V') && org_id == 9987" width="92px">KT/V</th>
  34. <th v-if="isShow('病情变化')" width="92px">病情变化</th>
  35. <th v-if="isShow('处理')" width="92px">处理</th>
  36. <th v-if="isShow('结果')" width="92px">结果</th>
  37. </tr>
  38. <tr v-for="(monitor, index) in monitores" :key="index">
  39. <td v-if="isShow('监测时间')"> {{ parseTime(monitor.operate_time, "{y}-{m}-{d} {h}:{i}") }} </td>
  40. <td v-if="isShow('体温')"> {{ monitor.temperature ? monitor.temperature : "" }} </td>
  41. <td v-if="isShow('血压')"> {{ monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure : "" }}/{{ monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : "" }} </td>
  42. <td v-if="isShow('脉搏')"> {{ monitor.pulse_frequency ? monitor.pulse_frequency : "" }} </td>
  43. <td v-if="isShow('呼吸频率')"> {{ monitor.breathing_rate ? monitor.breathing_rate : "" }} </td>
  44. <td> {{ monitor.venous_pressure ? monitor.venous_pressure : "" }} /{{ monitor.arterial_pressure ? monitor.arterial_pressure : "" }} </td>
  45. <td v-if="isShow('血流量')"> {{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }} </td>
  46. <td v-if="isShow('跨膜压')"> {{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }} </td>
  47. <td v-if="isShow('超滤量')"> {{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }} </td>
  48. <td v-if="isShow('超滤率')" >{{monitor.ultrafiltration_rate?monitor.ultrafiltration_rate:''}}</td>
  49. <td v-if="isShow('钠浓度')"> {{ monitor.sodium_concentration ? monitor.sodium_concentration : "" }} </td>
  50. <td v-if="isShow('透析液温度')"> {{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }} </td>
  51. <td v-if="isShow('置换率')"> {{ monitor.replacement_rate ? monitor.replacement_rate : "" }} </td>
  52. <td v-if="isShow('置换量')"> {{ monitor.displacement_quantity ? monitor.displacement_quantity : "" }} </td>
  53. <td v-if="isShow('SpO₂')"> {{ monitor.blood_oxygen_saturation ? monitor.blood_oxygen_saturation : "" }} </td>
  54. <td v-if="isShow('电导度')"> {{ monitor.conductivity ? monitor.conductivity : "" }} </td>
  55. <th v-if="isShow('置换液流量')"> {{ monitor.displacement_flow_quantity ? monitor.displacement_flow_quantity : "" }} </th>
  56. <th v-if="isShow('透析液流量')"> {{ monitor.dialysate_flow ? monitor.dialysate_flow : "" }} </th>
  57. <th v-if="isShow('肝素用量余量')"> {{ monitor.heparin ? monitor.heparin : "" }} </th>
  58. <td v-if="isShow('KT/V') && org_id == 9987">{{ monitor.ktv?monitor.ktv:""}}</td>
  59. <td v-if="isShow('病情变化')">{{ monitor.symptom }}</td>
  60. <td v-if="isShow('处理')">{{ monitor.dispose }}</td>
  61. <td v-if="isShow('结果')">{{ monitor.result }}</td>
  62. </tr>
  63. </table>
  64. </div>
  65. <div class="middleLine"></div>
  66. </div>
  67. </template>
  68. <script>
  69. import store from '@/store'
  70. import { parseTime } from '@/utils'
  71. export default {
  72. name: 'statOrder',
  73. data() {
  74. return {
  75. title: '透析监测 ',
  76. template_id: 0
  77. }
  78. },
  79. props: {
  80. monitores: {
  81. type: Array
  82. }
  83. },
  84. created() {
  85. this.template_id = this.$store.getters.xt_user.template_info.template_id
  86. this.org_id = this.$store.getters.xt_user.template_info.org_id
  87. },
  88. methods: {
  89. parseTime(time, layout) {
  90. return parseTime(time, layout)
  91. },
  92. isShow(name) {
  93. var filedList = store.getters.xt_user.fileds
  94. for (let i = 0; i < filedList.length; i++) {
  95. if (filedList[i].module == 4 && filedList[i].filed_name_cn == name && filedList[i].is_show === 1) {
  96. return true
  97. }
  98. }
  99. return false
  100. }
  101. }
  102. }
  103. </script>
  104. <style rel="stylesheet/scss" lang="scss" scoped>
  105. .table {
  106. width: 1500px;
  107. overflow: auto;
  108. font-size: 14px;
  109. text-align: center;
  110. border: $border-color;
  111. padding-bottom: 2px;
  112. tr {
  113. padding: 0;
  114. margin: 0;
  115. padding: 10px 0;
  116. th {
  117. background: $main-color;
  118. border: none;
  119. color: #fff;
  120. padding: 0;
  121. margin: 0;
  122. height: 44px;
  123. font-weight: normal;
  124. padding: 18px 0;
  125. }
  126. td {
  127. background: #f0f5fa;
  128. border: none;
  129. padding: 18px 0;
  130. }
  131. }
  132. }
  133. </style>