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

dialysisComputer.vue 7.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. <template>
  2. <div class="plate-box">
  3. <h2 class="DetailsTit"><span>{{ title }}</span></h2>
  4. <div class="plate ">
  5. <ul>
  6. <li v-if="isShow('班次')">
  7. <label>班次 : </label>
  8. <span class="content">{{ schedual_type }}</span>
  9. </li>
  10. <li v-if="isShow('上机床位')">
  11. <label>上机床位 : </label>
  12. <span class="content">{{ device_number }}</span>
  13. </li>
  14. <li v-if="isShow('上机护士')">
  15. <label>上机护士 : </label>
  16. <span class="content">{{ nurse }}</span>
  17. </li>
  18. </ul>
  19. <ul>
  20. <li v-if="isShow('穿刺者')">
  21. <label>穿刺者 : </label>
  22. <span class="content">{{ puncture_nurse }}</span>
  23. </li>
  24. <li v-if="isShow('冲管护士')">
  25. <label>冲管护士 : </label>
  26. <span class="content">{{ washpipe_nurse }}</span>
  27. </li>
  28. <li v-if="isShow('换药护士')">
  29. <label>换药护士 : </label>
  30. <span class="content">{{ change_nurse }}</span>
  31. </li>
  32. <li v-if="isShow('疑难穿刺护士')">
  33. <label>疑难穿刺护士 : </label>
  34. <span class="content">{{ difficult_puncture_nurse }}</span>
  35. </li>
  36. <li v-if="isShow('新开瘘护士')">
  37. <label>新开瘘护士 : </label>
  38. <span class="content">{{ new_fistula_nurse }}</span>
  39. </li>
  40. <li v-if="isShow('质控护士')">
  41. <label>质控护士 : </label>
  42. <span class="content">{{ quality_nurse_id }}</span>
  43. </li>
  44. <li v-if="isShow('穿刺针')">
  45. <label>穿刺针 : </label>
  46. <span class="content">{{record.puncture_needle }}</span>
  47. </li>
  48. <li v-if="isShow('穿刺方式')">
  49. <label>穿刺方式 : </label>
  50. <span class="content">{{ record.puncture_way }}</span>
  51. </li>
  52. <li v-if="isShow('透析器')">
  53. <label>透析器 : </label>
  54. <span class="content">{{ record.dialysis_dialyszers }}</span>
  55. </li>
  56. <li v-if="isShow('灌流器')">
  57. <label>灌流器 : </label>
  58. <span class="content">{{ record.dialysis_irrigation }}</span>
  59. </li>
  60. <li v-if="isShow('血管通路')">
  61. <label>血管通路 : </label>
  62. <span class="content">{{ blood_access_id }}</span>
  63. </li>
  64. <li>
  65. <label>状态 : </label>
  66. <span class="content">{{ stage }}</span>
  67. </li>
  68. </ul>
  69. <ul>
  70. <li v-if="isShow('核酸检测日期')">
  71. <label>核酸检测日期 : </label>
  72. <span class="content">{{getTimeOne(this.record.nuclein_date)}}</span>
  73. </li>
  74. </ul>
  75. <ul>
  76. <li v-if="isShow('排班备注')">
  77. <label>排班备注 : </label>
  78. <span class="content">{{this.record.schedule_remark}}</span>
  79. </li>
  80. </ul>
  81. <ul>
  82. <li v-if="isShow('上机备注')">
  83. <label>上机备注 : </label>
  84. <span class="content">{{this.record.order_remark}}</span>
  85. </li>
  86. </ul>
  87. <ul>
  88. <li v-if="isShow('上机时间')">
  89. <label>上机时间 : </label>
  90. <span class="content">{{start_time}}</span>
  91. </li>
  92. </ul>
  93. <ul>
  94. <li v-if="isShow('导管操作')">
  95. <label>导管操作 : </label>
  96. <span class="content">{{catheter_operation}}</span>
  97. </li>
  98. </ul>
  99. </div>
  100. <div class="middleLine"></div>
  101. </div>
  102. </template>
  103. <script>
  104. import { uParseTime } from '@/utils/tools'
  105. import { parseTime } from '@/utils'
  106. import store from '@/store'
  107. import { getDataConfig } from '@/utils/data'
  108. export default {
  109. name: 'DialysisComputer',
  110. data() {
  111. return {
  112. title: '透析上机 '
  113. }
  114. },
  115. props: {
  116. record: {
  117. type: Object
  118. },
  119. admin_map: {
  120. type: Object
  121. },
  122. device_number_map: {
  123. type: Object
  124. }
  125. },
  126. computed: {
  127. schedual_type: function() {
  128. if (this.record.id == 0) {
  129. return '-'
  130. }
  131. switch (this.record.schedual_type) {
  132. case 1:
  133. return '上午'
  134. break
  135. case 2:
  136. return '下午'
  137. break
  138. case 3:
  139. return '晚上'
  140. break
  141. }
  142. },
  143. device_number: function() {
  144. if (this.record.id == 0) {
  145. return '-'
  146. }
  147. if (this.device_number_map[this.record.bed_id].number.indexOf(this.device_number_map[this.record.bed_id].zone_name) == -1) {
  148. 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
  149. } else {
  150. return this.device_number_map[this.record.bed_id].number
  151. }
  152. },
  153. nurse: function() {
  154. if (this.record.id == 0) {
  155. return '-'
  156. }
  157. return this.admin_map[this.record.start_nurse] == null ? '' : this.admin_map[this.record.start_nurse].name
  158. },
  159. stage: function() {
  160. if (this.record.id == 0) {
  161. return '未上机'
  162. }
  163. return this.record.stage == 1 ? '已上机' : '已下机'
  164. }, start_time: function() {
  165. if (this.record == null || this.record.id == '') {
  166. return '-'
  167. }
  168. return parseTime(this.record.start_time, '{y}年{m}月{d}日 {h}时{i}分')
  169. }, puncture_nurse: function() {
  170. if (this.record.id == 0) {
  171. return '-'
  172. }
  173. return this.admin_map[this.record.puncture_nurse] == null ? '' : this.admin_map[this.record.puncture_nurse].name
  174. },
  175. washpipe_nurse: function() {
  176. if (this.record.id == 0) {
  177. return '-'
  178. }
  179. return this.admin_map[this.record.washpipe_nurse] == null ? '' : this.admin_map[this.record.washpipe_nurse].name
  180. },
  181. change_nurse:function(){
  182. if (this.record.id == 0) {
  183. return '-'
  184. }
  185. return this.admin_map[this.record.change_nurse] == null ? '' : this.admin_map[this.record.change_nurse].name
  186. },
  187. difficult_puncture_nurse:function(){
  188. if (this.record.id == 0) {
  189. return '-'
  190. }
  191. return this.admin_map[this.record.difficult_puncture_nurse] == null ? '' : this.admin_map[this.record.difficult_puncture_nurse].name
  192. },
  193. new_fistula_nurse:function(){
  194. if (this.record.id == 0) {
  195. return '-'
  196. }
  197. return this.admin_map[this.record.new_fistula_nurse] == null ? '' : this.admin_map[this.record.new_fistula_nurse].name
  198. },
  199. quality_nurse_id:function(){
  200. if (this.record.id == 0) {
  201. return '-'
  202. }
  203. return this.admin_map[this.record.quality_nurse_id] == null ? '' : this.admin_map[this.record.quality_nurse_id].name
  204. },
  205. blood_access_id:function(){
  206. var name = ""
  207. var list = getDataConfig(
  208. 'hemodialysis',
  209. 'vascular_access_desc'
  210. )
  211. for(let i=0;i<list.length;i++){
  212. if(this.record.blood_access_id == list[i].id){
  213. name = list[i].name
  214. }
  215. }
  216. return name
  217. },
  218. catheter_operation:function(){
  219. if(this.record.id == 0){
  220. return '-'
  221. }else{
  222. return this.record.catheter_operation
  223. }
  224. }
  225. },
  226. methods: {
  227. isShow(name) {
  228. var filedList = store.getters.xt_user.fileds
  229. var arr = []
  230. for (let i = 0; i < filedList.length; i++) {
  231. if (
  232. filedList[i].module == 7 &&
  233. filedList[i].filed_name_cn == name &&
  234. filedList[i].is_show == 1
  235. ) {
  236. return true
  237. }
  238. }
  239. return false
  240. },
  241. getTimeOne(val) {
  242. if(val == ""){
  243. return ""
  244. }else {
  245. return uParseTime(val, '{y}-{m}-{d}')
  246. }
  247. },
  248. }
  249. }
  250. </script>
  251. <style rel="stylesheet/scss" lang="scss" scoped>
  252. </style>