血透系统pad前端

doubleCheck.vue 7.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  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">{{dialysis_item_check}}</span>
  9. </li>
  10. <li style="height: 0.6rem;">
  11. <label>透析参数核查 : </label>
  12. <span class="content">{{dialysis_parameter_check}}</span>
  13. </li>
  14. <li style="height: 0.6rem;">
  15. <label>血管通路核查 : </label>
  16. <span class="content">{{vascular_access_verification}}</span>
  17. </li>
  18. <li style="height: 0.6rem;">
  19. <label>管道连接核查 : </label>
  20. <span class="content">{{pipeline_connection_check}}</span>
  21. </li>
  22. </ul>
  23. <ul>
  24. <li style="height: 0.6rem;" >
  25. <label>{{dialysis_item_desc_title}}</label>
  26. <span class="content">{{dialysis_item_desc}}</span>
  27. </li>
  28. <li style="height: 0.6rem;" >
  29. <label>{{dialysis_parameter_desc_title}}</label>
  30. <span class="content">{{dialysis_parameter_desc}}</span>
  31. </li>
  32. <li style="height: 0.6rem;" >
  33. <label>{{vascular_access_desc_title}}</label>
  34. <span class="content">{{vascular_access_desc}}</span>
  35. </li>
  36. <li style="height: 0.6rem;" >
  37. <label>{{pipeline_connection_desc_title}}</label>
  38. <span class="content">{{pipeline_connection_desc}}</span>
  39. </li>
  40. </ul>
  41. <ul>
  42. <li style="height: 0.6rem;" >
  43. <label></label>
  44. <span class="content"> </span>
  45. </li>
  46. </ul>
  47. </div>
  48. <!-- <div class="note">处方医生 : {{doctor}}</div> -->
  49. </div>
  50. </template>
  51. <script>
  52. export default {
  53. name: 'DoubleCheck',
  54. data () {
  55. return {
  56. title: '双人查对 '
  57. // note: "无明显异常",
  58. // doctor: "刘小军 医生",
  59. // info1: [
  60. // { value: "1", label: "透析物品核查 : ", content: "", unit: "" },
  61. // { value: "2", label: "透析参数核查 : ", content: "", unit: "" },
  62. // { value: "3", label: "血管通路核查 : ", content: "", unit: "" },
  63. // { value: "4", label: "管道连接核查 : ", content: "", unit: "" }
  64. // ],
  65. // info2: [
  66. // { value: "1", label: "差错描述 : ", content: "", unit: "", hide: true },
  67. // { value: "2", label: "差错描述 : ", content: "", unit: "", hide: true },
  68. // { value: "3", label: "差错描述 : ", content: "", unit: "", hide: true },
  69. // { value: "4", label: "差错描述 : ", content: "", unit: "", hide: true }
  70. // ],
  71. // info3: [
  72. // { value: "1", label: " ", content: "", unit: "" },
  73. // ]
  74. }
  75. },
  76. props: {
  77. record: {
  78. type: Object
  79. }
  80. },
  81. computed: {
  82. dialysis_item_check: function () {
  83. if (this.record == null || this.record.id == '') {
  84. return ''
  85. }
  86. return this.record.dialysis_item_check == 1 ? '正确' : '错误'
  87. },
  88. dialysis_parameter_check: function () {
  89. if (this.record == null || this.record.id == '') {
  90. return ''
  91. }
  92. return this.record.dialysis_parameter_check == 1 ? '正确' : '错误'
  93. },
  94. vascular_access_verification: function () {
  95. if (this.record == null || this.record.id == '') {
  96. return ''
  97. }
  98. return this.record.vascular_access_verification == 1 ? '正确' : '错误'
  99. },
  100. pipeline_connection_check: function () {
  101. if (this.record == null || this.record.id == '') {
  102. return ''
  103. }
  104. return this.record.pipeline_connection_check == 1 ? '正确' : '错误'
  105. },
  106. dialysis_item_desc_title: function () {
  107. if (this.record == null || this.record.id == '') {
  108. return ''
  109. }
  110. return this.record.dialysis_item_check == 1 ? '' : '错误描述 : '
  111. },
  112. dialysis_parameter_desc_title: function () {
  113. if (this.record == null || this.record.id == '') {
  114. return ''
  115. }
  116. return this.record.dialysis_parameter_check == 1 ? '' : '错误描述 : '
  117. },
  118. vascular_access_desc_title: function () {
  119. if (this.record == null || this.record.id == '') {
  120. return ''
  121. }
  122. return this.record.vascular_access_verification == 1 ? '' : '错误描述 : '
  123. },
  124. pipeline_connection_desc_title: function () {
  125. if (this.record == null || this.record.id == '') {
  126. return ''
  127. }
  128. return this.record.pipeline_connection_check == 1 ? '' : '错误描述 : '
  129. },
  130. dialysis_item_desc: function () {
  131. if (this.record == null || this.record.id == '') {
  132. return ''
  133. }
  134. return this.record.dialysis_item_check == 1 ? '' : this.record.dialysis_item_desc
  135. },
  136. dialysis_parameter_desc: function () {
  137. if (this.record == null || this.record.id == '') {
  138. return ''
  139. }
  140. return this.record.dialysis_parameter_check == 1 ? '' : this.record.dialysis_parameter_desc
  141. },
  142. vascular_access_desc: function () {
  143. if (this.record == null || this.record.id == '') {
  144. return ''
  145. }
  146. return this.record.vascular_access_verification == 1 ? '' : this.record.vascular_access_desc
  147. },
  148. pipeline_connection_desc: function () {
  149. if (this.record == null || this.record.id == '') {
  150. return ''
  151. }
  152. return this.record.pipeline_connection_check == 1 ? '' : this.record.pipeline_connection_desc
  153. }
  154. },
  155. methods: {
  156. // setRecord(record) {
  157. // if (record == null) {
  158. // this.info1[0].content = ""
  159. // this.info1[1].content = ""
  160. // this.info1[2].content = ""
  161. // this.info1[3].content = ""
  162. // this.info2[0].hide = true
  163. // this.info2[1].hide = true
  164. // this.info2[2].hide = true
  165. // this.info2[3].hide = true
  166. // this.info2[0].content = ""
  167. // this.info2[1].content = ""
  168. // this.info2[2].content = ""
  169. // this.info2[3].content = ""
  170. // } else {
  171. // this.info1[0].content = record.dialysis_item_check == 1 ? "正确" : "错误"
  172. // this.info1[1].content = record.dialysis_parameter_check == 1 ? "正确" : "错误"
  173. // this.info1[2].content = record.vascular_access_verification == 1 ? "正确" : "错误"
  174. // this.info1[3].content = record.pipeline_connection_check == 1 ? "正确" : "错误"
  175. // this.info2[0].hide = record.dialysis_item_check == 1
  176. // this.info2[1].hide = record.dialysis_parameter_check == 1
  177. // this.info2[2].hide = record.vascular_access_verification == 1
  178. // this.info2[3].hide = record.pipeline_connection_check == 1
  179. // this.info2[0].content = record.dialysis_item_desc
  180. // this.info2[1].content = record.dialysis_parameter_desc
  181. // this.info2[2].content = record.vascular_access_desc
  182. // this.info2[3].content = record.pipeline_connection_desc
  183. // }
  184. // }
  185. }
  186. }
  187. </script>
  188. <style rel="stylesheet/scss" lang="scss" scoped>
  189. </style>