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

acceptsAssessment.vue 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. <template>
  2. <div class="plate-box">
  3. <h2 class="DetailsTit">
  4. <span>{{ title }}</span>
  5. </h2>
  6. <div class="plate ">
  7. <ul>
  8. <li v-if="isShow('入室方式')">
  9. <label>入室方式 : </label>
  10. <span class="content">{{ way }}</span>
  11. </li>
  12. <li v-if="isShow('体位')">
  13. <label>体位 : </label>
  14. <span class="content">{{ posture }}</span>
  15. </li>
  16. <li v-if="isShow('其他病情')">
  17. <label>其他病情:</label>
  18. <span class="content">{{ this.record.sick_condition_other }}</span>
  19. </li>
  20. <li v-if="isShow('跌倒风险预防措施')">
  21. <label>跌倒风险预防措施:</label>
  22. <span class="content">{{ precaution }}</span>
  23. </li>
  24. <li v-if="isShow('营养状况')">
  25. <label>营养状况:</label>
  26. <span class="content">{{nutritions}}</span>
  27. </li>
  28. <li v-if="isShow('其他心理评估')">
  29. <label>其他心理评估:</label>
  30. <span class="content">{{this.record.psychological_other}}</span>
  31. </li>
  32. </ul>
  33. <ul>
  34. <li v-if="isShow('病人情况')">
  35. <label>病人情况 : </label>
  36. <span class="content">{{ condition }}</span>
  37. </li>
  38. <li v-if="isShow('病人食欲')">
  39. <label>病人食欲 : </label>
  40. <span class="content">{{ appetite }}</span>
  41. </li>
  42. <li v-if="isShow('跌倒风险评估评分')">
  43. <label>跌倒风险评估评分:</label>
  44. <span class="content">{{ this.record.score }}分</span>
  45. </li>
  46. <li v-if="isShow('其他跌倒风险预防措施')">
  47. <label>其他跌倒风险预防措施:</label>
  48. <span class="content">{{ this.record.precaution_other }}</span>
  49. </li>
  50. <li v-if="isShow('心理评估')">
  51. <label> 心理评估</label>
  52. <span class="content">{{ psychologicalAssessment }}</span>
  53. </li>
  54. </ul>
  55. <ul>
  56. <li v-if="this.record.condition == 1">
  57. <label> 住院号:</label>
  58. <span class="content">{{ this.record.admission_number }}</span>
  59. </li>
  60. <li v-if="this.record.condition == 1">
  61. <label> 住院科室:</label>
  62. <span class="content">{{ this.record.his_department }}</span>
  63. </li>
  64. <li v-if="this.record.condition == 1">
  65. <label> 住院床位:</label>
  66. <span class="content">{{ this.record.his_bed }}</span>
  67. </li>
  68. <li v-if="isShow('病人意识')">
  69. <label>病人意识 :</label>
  70. <span class="content">{{ consciousness }}</span>
  71. </li>
  72. <li v-if="isShow('病情')">
  73. <label>病情 </label>
  74. <span class="content">{{sickCondition}} </span>
  75. </li>
  76. <li v-if="isShow('风险程度')">
  77. <label>风险程度:</label>
  78. <span class="content">{{ dangerLevel }}</span>
  79. </li>
  80. <li v-if="isShow('摄入量')">
  81. <label>摄入量:</label>
  82. <span class="content">{{intakes}}</span>
  83. </li>
  84. <li
  85. v-if="
  86. isShow('心理评估异常原因') &&
  87. this.record.psychological_assessment == 2
  88. "
  89. >
  90. <label>心理评估异常原因:</label>
  91. <span class="content">{{
  92. this.record.psychological_assessment_other
  93. }}</span>
  94. </li>
  95. <li v-if="isShow('是否跌倒')">
  96. <label>是否跌倒:</label>
  97. <span class="content">
  98. <span v-if="this.record.tumble == 1">是</span>
  99. <span v-if="this.record.tumble == 2">否</span>
  100. </span>
  101. </li>
  102. </ul>
  103. </div>
  104. <!-- <div class="note">处方医生 : {{doctor}}</div> -->
  105. <div class="middleLine"></div>
  106. </div>
  107. </template>
  108. <script>
  109. import store from '@/store'
  110. import { getDataConfig } from '@/utils/data'
  111. export default {
  112. name: 'AcceptsAssessment',
  113. data() {
  114. return {
  115. title: '接诊评估 ',
  116. ways: [],
  117. conditions: {
  118. '1': '住院',
  119. '2': '门诊',
  120. '3': '手术期',
  121. '4': '急诊'
  122. },
  123. consciousnesses:[],
  124. appetites: [],
  125. postures: [],
  126. sick_condition:[],
  127. danger_level: {
  128. '1': '无',
  129. '2': '低风险',
  130. '3': '中度风险',
  131. '4': '高风险'
  132. },
  133. intake:[],
  134. nutrition: [],
  135. psychological_assessment: {
  136. '1': '正常',
  137. '2': '异常'
  138. },
  139. precautions:[],
  140. }
  141. },
  142. props: {
  143. record: {
  144. type: Object
  145. }
  146. },
  147. computed: {
  148. way: function() {
  149. if (this.record.id == 0) {
  150. return ''
  151. } else {
  152. // return this.ways[this.record.way] == undefined ? '' : (this.ways[this.record.way] + '')
  153. for (let i = 0; i < this.ways.length; i++){
  154. if (this.record.way == this.ways[i].id){
  155. return this.ways[i].name
  156. }
  157. }
  158. }
  159. },
  160. condition: function() {
  161. if (this.record.id == 0) {
  162. return ''
  163. } else {
  164. return this.conditions[this.record.condition] == undefined ? '' : this.conditions[this.record.condition] + ''
  165. }
  166. },
  167. consciousness: function() {
  168. if (this.record.id == 0) {
  169. return ''
  170. } else {
  171. for (let i = 0; i < this.consciousnesses.length; i++){
  172. if (this.record.consciousness == this.consciousnesses[i].id){
  173. return this.consciousnesses[i].name
  174. }
  175. }
  176. // return this.consciousnesses[this.record.consciousness] == undefined ? '' : this.consciousnesses[this.record.consciousness] + ''
  177. }
  178. },
  179. appetite: function() {
  180. if (this.record.id == 0) {
  181. return ''
  182. } else {
  183. // return this.appetites[this.record.appetite] == undefined ? '' : this.appetites[this.record.appetite] + ''
  184. for (let i = 0; i < this.appetites.length; i++){
  185. if (this.record.appetite == this.appetites[i].id){
  186. return this.appetites[i].name
  187. }
  188. }
  189. }
  190. },
  191. posture: function() {
  192. if (this.record.id == 0) {
  193. return ''
  194. } else {
  195. // return this.postures[this.record.posture] == undefined ? '' : this.postures[this.record.posture] + ''
  196. for (let i = 0; i < this.postures.length; i++){
  197. if (this.record.posture == this.postures[i].id){
  198. return this.postures[i].name
  199. }
  200. }
  201. }
  202. }, sickCondition: function() {
  203. if (this.record == null || this.record.id == '') {
  204. return ''
  205. } else {
  206. for (let i = 0; i < this.sick_condition.length; i++){
  207. if (this.record.sick_condition == this.sick_condition[i].id){
  208. return this.sick_condition[i].name
  209. }
  210. }
  211. // return this.sick_condition[this.record.sick_condition] == undefined ? '' : this.sick_condition[this.record.sick_condition] + ''
  212. }
  213. }, dangerLevel: function() {
  214. if (this.record == null || this.record.id == '') {
  215. return ''
  216. } else {
  217. return this.danger_level[this.record.danger_level] == undefined ? '' : this.danger_level[this.record.danger_level] + ''
  218. }
  219. }, intakes: function() {
  220. if (this.record == null || this.record.id == '') {
  221. return ''
  222. } else {
  223. for (let i = 0; i < this.intake.length; i++){
  224. if (this.record.intake == this.intake[i].id){
  225. return this.intake[i].name
  226. }
  227. }
  228. // return this.intake[this.record.intake] == undefined ? '' : this.intake[this.record.intake] + ''
  229. }
  230. }, nutritions: function() {
  231. if (this.record == null || this.record.id == '') {
  232. return ''
  233. } else {
  234. for (let i = 0; i < this.nutrition.length; i++){
  235. if (this.record.nutrition == this.nutrition[i].id){
  236. return this.nutrition[i].name
  237. }
  238. }
  239. // return this.nutrition[this.record.nutrition] == undefined ? '' : this.nutrition[this.record.nutrition] + ''
  240. }
  241. }, psychologicalAssessment: function() {
  242. if (this.record == null || this.record.id == '') {
  243. return ''
  244. } else {
  245. return this.psychological_assessment[this.record.psychological_assessment] == undefined ? '' : this.psychological_assessment[this.record.psychological_assessment] + ''
  246. }
  247. },
  248. precaution: function() {
  249. if (this.record.id == 0 || this.record == null ) {
  250. return ''
  251. } else {
  252. //console.log("-----",this.record.precaution)
  253. var obj = this.record.precaution
  254. if(obj == null){
  255. return ""
  256. }
  257. if(obj !=null){
  258. var arr = obj.split(",")
  259. // console.log("arr----",arr)
  260. var arrtwo = []
  261. for(let i=0;i<arr.length;i++){
  262. for(let j=0;j<this.precautions.length;j++){
  263. if(parseInt(arr[i]) == this.precautions[j].id){
  264. arrtwo.push(this.precautions[j].name)
  265. }
  266. }
  267. }
  268. // console.log("arrtwo",arrtwo)
  269. var objtwo = arrtwo.join(",")
  270. // console.log("objtwo",objtwo)
  271. return objtwo
  272. }
  273. // for (let i = 0; i < this.precautions.length; i++){
  274. // if (this.record.precaution == this.precautions[i].id){
  275. // return this.precautions[i].name
  276. //
  277. // }
  278. // }
  279. // return this.precautions[this.record.precaution] == undefined ? '' : this.precautions[this.record.precaution] + ''
  280. }
  281. }
  282. },
  283. methods: {
  284. isShow(name) {
  285. var filedList = store.getters.xt_user.fileds
  286. for (let i = 0; i < filedList.length; i++) {
  287. if (filedList[i].module == 2 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
  288. return true
  289. }
  290. }
  291. return false
  292. }
  293. },
  294. created(){
  295. console.log("records",this.record)
  296. this.ways = getDataConfig('hemodialysis', 'way')
  297. this.consciousnesses = getDataConfig('hemodialysis', 'consciousness')
  298. this.appetites = getDataConfig('hemodialysis', 'appetite')
  299. this.postures = getDataConfig('hemodialysis', 'posture')
  300. this.sick_condition = getDataConfig('hemodialysis', 'sick_condition')
  301. this.precautions = getDataConfig('hemodialysis', 'precaution')
  302. //console.log("跌倒预防措施",this.precautions)
  303. this.intake = getDataConfig('hemodialysis', 'intake')
  304. this.nutrition = getDataConfig('hemodialysis', 'nutrition')
  305. console.log(this.ways)
  306. },
  307. }
  308. </script>
  309. <style rel="stylesheet/scss" lang="scss" scoped></style>