血透系统pad前端

acceptsAssessment.vue 7.9KB

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