dialysisOff.vue 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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">{{ nurse }}</span>
  9. </li>
  10. </ul>
  11. <ul>
  12. <li>
  13. <label>状态 : </label>
  14. <span class="content">{{ stage }}</span>
  15. </li>
  16. </ul>
  17. <ul>
  18. <li>
  19. <label>下机时间 : </label>
  20. <span class="content">{{end_time}}</span>
  21. </li>
  22. </ul>
  23. </div>
  24. <div class="middleLine"></div>
  25. </div>
  26. </template>
  27. <script>
  28. import { parseTime } from '@/utils'
  29. export default {
  30. name: 'DialysisComputer',
  31. data() {
  32. return {
  33. title: '透析下机 '
  34. }
  35. },
  36. props: {
  37. record: {
  38. type: Object
  39. },
  40. admin_map: {
  41. type: Object
  42. }
  43. },
  44. computed: {
  45. stage: function() {
  46. if (this.record.id == 0) {
  47. return '未上机'
  48. }
  49. return this.record.stage == 1 ? '未下机' : '已下机'
  50. },
  51. nurse: function() {
  52. if (this.record.id == 0) {
  53. return '-'
  54. } else if (this.record.stage == 1) {
  55. return '-'
  56. } else {
  57. return this.admin_map[this.record.finish_nurse] == null ? '' : this.admin_map[this.record.finish_nurse].name
  58. }
  59. }, end_time: function() {
  60. if (this.record == null || this.record.id == '') {
  61. return '-'
  62. } else if (this.record.stage == 1) {
  63. return '-'
  64. } else {
  65. return parseTime(this.record.end_time, '{y}年{m}月{d}日 {h}时{i}分')
  66. }
  67. }
  68. },
  69. methods: {
  70. }
  71. }
  72. </script>
  73. <style rel="stylesheet/scss" lang="scss" scoped>
  74. </style>