血透系统pad前端

acceptsAssessment.vue 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <template>
  2. <div class="plate-box">
  3. <h2 class="title"><span class="line"></span><p>{{title}}</p><span class="line"></span> </h2>
  4. <div class="plate " >
  5. <ul>
  6. <li style="height: 0.6rem;">
  7. <label>入室方式 : </label>
  8. <span class="content">{{way}}</span>
  9. </li>
  10. <li style="height: 0.6rem;">
  11. <label>病人情况 : </label>
  12. <span class="content">{{condition}}</span>
  13. </li>
  14. </ul>
  15. <ul>
  16. <li style="height: 0.6rem;">
  17. <label>病人意识 : </label>
  18. <span class="content">{{consciousness}}</span>
  19. </li>
  20. <li style="height: 0.6rem;">
  21. <label> </label>
  22. <span class="content"> </span>
  23. </li>
  24. </ul>
  25. <ul>
  26. <li style="height: 0.6rem;">
  27. <label>病人食欲 : </label>
  28. <span class="content">{{appetite}}</span>
  29. </li>
  30. <li style="height: 0.6rem;">
  31. <label> </label>
  32. <span class="content"> </span>
  33. </li>
  34. </ul>
  35. </div>
  36. <!-- <div class="note">处方医生 : {{doctor}}</div> -->
  37. </div>
  38. </template>
  39. <script>
  40. export default {
  41. name: "AcceptsAssessment",
  42. data() {
  43. return {
  44. title: "接诊评估 ",
  45. // doctor: "刘小军 医生",
  46. // row1: [
  47. // { value: "1", label: "入室方式 : ", content: "", unit: "" },
  48. // { value: "2", label: "病人情况 : ", content: "", unit: "" }
  49. // ],
  50. // row2: [
  51. // { value: "1", label: "病人意识 : ", content: "", unit: "" },
  52. // { value: "2", label: " ", content: " ", unit: " " }
  53. // ],
  54. // row3: [
  55. // { value: "1", label: "病人食欲 : ", content: "", unit: "" },
  56. // { value: "2", label: " ", content: " ", unit: " " }
  57. // ],
  58. ways: {
  59. "1": "步行",
  60. "2": "扶行",
  61. "3": "轮椅",
  62. "4": "平车",
  63. },
  64. conditions: {
  65. "1": "住院",
  66. "2": "手术期",
  67. },
  68. consciousnesses: {
  69. "1": "清醒",
  70. "2": "嗜睡",
  71. "3": "昏迷",
  72. },
  73. appetites: {
  74. "1": "正常",
  75. "2": "减退",
  76. "3": "恶心",
  77. "4": "呕吐",
  78. "5": "腹泻",
  79. },
  80. };
  81. },
  82. props: {
  83. record: {
  84. type: Object
  85. }
  86. },
  87. computed: {
  88. way: function() {
  89. if (this.record == null || this.record.id == "") {
  90. return ""
  91. } else {
  92. return this.ways[this.record.way] + ""
  93. }
  94. },
  95. condition: function() {
  96. if (this.record == null || this.record.id == "") {
  97. return ""
  98. } else {
  99. return this.conditions[this.record.condition] + ""
  100. }
  101. },
  102. consciousness: function() {
  103. if (this.record == null || this.record.id == "") {
  104. return ""
  105. } else {
  106. return this.consciousnesses[this.record.consciousness] + ""
  107. }
  108. },
  109. appetite: function() {
  110. if (this.record == null || this.record.id == "") {
  111. return ""
  112. } else {
  113. return this.appetites[this.record.appetite] + ""
  114. }
  115. }
  116. },
  117. methods: {
  118. // setRecord(record) {
  119. // if (record == null) {
  120. // this.row1[0].content = ""
  121. // this.row1[1].content = ""
  122. // this.row2[0].content = ""
  123. // this.row3[0].content = ""
  124. // } else {
  125. // this.row1[0].content = this.ways[record.way]
  126. // this.row1[1].content = this.conditions[record.condition]
  127. // this.row2[0].content = this.consciousnesses[record.consciousness]
  128. // this.row3[0].content = this.appetites[record.appetite]
  129. // }
  130. // }
  131. }
  132. };
  133. </script>
  134. <style rel="stylesheet/scss" lang="scss" scoped>
  135. </style>