血透系统pad前端

acceptsAssessment.vue 7.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  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;" v-if="isShow('入室方式')">
  7. <label>入室方式 : </label>
  8. <span class="content">{{way}}</span>
  9. </li>
  10. <li style="height: 0.6rem;" v-if="isShow('病人情况')">
  11. <label>病人情况 : </label>
  12. <span class="content">{{condition}}</span>
  13. </li>
  14. <li style="height: 0.6rem;" v-if="isShow('病人意识')">
  15. <label>病人意识 : </label>
  16. <span class="content">{{consciousness}}</span>
  17. </li>
  18. <li style="height: 0.6rem;" v-if="isShow('体位')">
  19. <label>体位 : </label>
  20. <span class="content">{{posture}}</span>
  21. </li>
  22. <!-- </ul>
  23. <ul> -->
  24. <li style="height: 0.6rem;" v-if="isShow('病人食欲')">
  25. <label>病人食欲 : </label>
  26. <span class="content">{{appetite}}</span>
  27. </li>
  28. <li style="height: 0.6rem;" v-if="isShow('病情')">
  29. <label>病情 </label>
  30. <span class="content">{{sickCondition}} </span>
  31. </li>
  32. <li style="height: 0.6rem;" v-if="isShow('跌倒风险评估评分')">
  33. <label>跌倒风险评估评分:</label>
  34. <span class="content">{{this.record.score}}分</span>
  35. </li>
  36. <li style="height: 0.6rem;" v-if="isShow('风险程度')">
  37. <label>风险程度:</label>
  38. <span class="content">{{dangerLevel}}</span>
  39. </li>
  40. <li style="height: 0.6rem;" v-if="isShow('跌倒风险预防措施')">
  41. <label>跌倒风险预防措施:</label>
  42. <span class="content">{{precautions}}</span>
  43. </li>
  44. <li style="height: 0.6rem;" v-if="isShow('其他跌倒风险预防措施')">
  45. <label>其他跌倒风险预防措施:</label>
  46. <span class="content">{{this.record.precaution_other}}</span>
  47. </li>
  48. <li style="height: 0.6rem;" v-if="isShow('其他病情')">
  49. <label>其他病情 </label>
  50. <span class="content">{{this.record.sick_condition_other}} </span>
  51. </li>
  52. <li style="height: 0.6rem;" v-if="isShow('摄入量')">
  53. <label>摄入量:</label>
  54. <span class="content">{{intakes}}</span>
  55. </li>
  56. <!-- </ul>
  57. <ul > -->
  58. <li style="height: 0.6rem;" v-if="isShow('营养状况')">
  59. <label>营养状况:</label>
  60. <span class="content">{{nutritions}}</span>
  61. </li>
  62. <li style="height: 0.6rem;" v-if="isShow('心理评估')">
  63. <label> 心理评估</label>
  64. <span class="content">{{psychologicalAssessment}}</span>
  65. </li>
  66. <li style="height: 0.6rem;" v-if="isShow('心理评估异常原因')&&this.record.psychological_assessment == 2 ">
  67. <label>心理评估异常原因:</label>
  68. <span class="content">{{this.record.psychological_assessment_other}}</span>
  69. </li>
  70. <li style="height: 0.6rem;" v-if="isShow('其他心理评估') ">
  71. <label>其他心理评估:</label>
  72. <span class="content">{{this.record.psychological_other}}</span>
  73. </li>
  74. </ul>
  75. </div>
  76. </div>
  77. </template>
  78. <script>
  79. export default {
  80. name: "AcceptsAssessment",
  81. data() {
  82. return {
  83. title: "接诊评估 ",
  84. ways: {
  85. "1": "步行",
  86. "2": "扶行",
  87. "3": "轮椅",
  88. "4": "平车",
  89. },
  90. conditions: {
  91. "1": "住院",
  92. "2": "门诊",
  93. "3": "手术期",
  94. },
  95. consciousnesses: {
  96. "1": "清醒",
  97. "2": "嗜睡",
  98. "3": "昏迷",
  99. },
  100. appetites: {
  101. "1": "正常",
  102. "2": "减退",
  103. "3": "恶心",
  104. "4": "呕吐",
  105. "5": "腹泻",
  106. },
  107. postures: {
  108. "1": "自动体位",
  109. "2": "平卧位",
  110. "3": "半卧位",
  111. "4": "端坐位",
  112. "5": "躁动不安",
  113. }, sick_condition: {
  114. "1": "一般",
  115. "2": "重",
  116. "3": "危",
  117. }, danger_level: {
  118. "1": "无",
  119. "2": "低风险",
  120. "3": "中度风险",
  121. "4": "高风险",
  122. }, intake: {
  123. "1": "正常",
  124. "2": "减少",
  125. },nutrition: {
  126. "1": "正常",
  127. "2": "营养不良",
  128. },psychological_assessment: {
  129. "1": "正常",
  130. "2": "异常",
  131. },precaution: {
  132. "1": "镇定剂",
  133. "2": "约束带",
  134. "3": "床栏",
  135. "4": "加强宣教",
  136. }
  137. };
  138. },
  139. props: {
  140. record: {
  141. type: Object
  142. }
  143. },
  144. computed: {
  145. way: function() {
  146. if (this.record == null || this.record.id == "") {
  147. return ""
  148. } else {
  149. return this.ways[this.record.way] == undefined ? "" : (this.ways[this.record.way] + "")
  150. }
  151. },
  152. condition: function() {
  153. if (this.record == null || this.record.id == "") {
  154. return ""
  155. } else {
  156. return this.conditions[this.record.condition] == undefined ? "" : this.conditions[this.record.condition] + ""
  157. }
  158. },
  159. consciousness: function() {
  160. if (this.record == null || this.record.id == "") {
  161. return ""
  162. } else {
  163. return this.consciousnesses[this.record.consciousness] == undefined ? "" : this.consciousnesses[this.record.consciousness] + ""
  164. }
  165. },
  166. appetite: function() {
  167. if (this.record == null || this.record.id == "") {
  168. return ""
  169. } else {
  170. return this.appetites[this.record.appetite] == undefined ? "" : this.appetites[this.record.appetite] + ""
  171. }
  172. },
  173. posture: function() {
  174. if (this.record == null || this.record.id == "") {
  175. return ""
  176. } else {
  177. return this.postures[this.record.posture] == undefined ? "" : this.postures[this.record.posture] + ""
  178. }
  179. },sickCondition: function() {
  180. if (this.record == null || this.record.id == "") {
  181. return ""
  182. } else {
  183. return this.sick_condition[this.record.sick_condition] == undefined ? "" : this.sick_condition[this.record.sick_condition] + ""
  184. }
  185. },dangerLevel: function() {
  186. if (this.record == null || this.record.id == "") {
  187. return ""
  188. } else {
  189. return this.danger_level[this.record.danger_level] == undefined ? "" : this.danger_level[this.record.danger_level] + ""
  190. }
  191. },precautions: function() {
  192. if (this.record == null || this.record.id == "") {
  193. return ""
  194. } else {
  195. return this.precaution[this.record.precaution] == undefined ? "" : this.precaution[this.record.precaution] + ""
  196. }
  197. },intakes: function() {
  198. if (this.record == null || this.record.id == "") {
  199. return ""
  200. } else {
  201. return this.intake[this.record.intake] == undefined ? "" : this.intake[this.record.intake] + ""
  202. }
  203. },nutritions: function() {
  204. if (this.record == null || this.record.id == "") {
  205. return ""
  206. } else {
  207. return this.nutrition[this.record.nutrition] == undefined ? "" : this.nutrition[this.record.nutrition] + ""
  208. }
  209. },psychologicalAssessment: function() {
  210. if (this.record == null || this.record.id == "") {
  211. return ""
  212. } else {
  213. return this.psychological_assessment[this.record.psychological_assessment] == undefined ? "" : this.psychological_assessment[this.record.psychological_assessment] + ""
  214. }
  215. }
  216. },
  217. methods: {
  218. isShow(name){
  219. var filedList = this.$store.getters.user.fileds
  220. for (let i = 0; i < filedList.length; i++){
  221. if(filedList[i].module == 2 && filedList[i].filed_name_cn == name&&filedList[i].is_show == 1){
  222. return true
  223. }
  224. }
  225. return false
  226. },
  227. }
  228. };
  229. </script>
  230. <style rel="stylesheet/scss" lang="scss" scoped>
  231. </style>