血透系统pad前端

dialysisPrescription.vue 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  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>
  7. <label>透析模式 : </label>
  8. <span class="content">{{dialysis_mode}}</span>
  9. </li>
  10. <li>
  11. <label>灌流器 : </label>
  12. <span class="content">{{perfusion_apparatus}}</span>
  13. </li>
  14. <li>
  15. <label>置换液(L) : </label>
  16. <span class="content">{{displace_liqui}}</span>
  17. <span class="unit">L</span>
  18. </li>
  19. <li>
  20. <label>首剂(mg) : </label>
  21. <span class="content">{{anticoagulant_shouji}}</span>
  22. <span class="unit">mg</span>
  23. </li>
  24. <li>
  25. <label>钾(mmol/L) : </label>
  26. <span class="content">{{kalium}}</span>
  27. <span class="unit">mmol/L</span>
  28. </li>
  29. <li>
  30. <label>碳酸氢盐 : </label>
  31. <span class="content">{{bicarbonate}}</span>
  32. <span class="unit">mmol/l</span>
  33. </li>
  34. <li>
  35. <label>透析液流量 : </label>
  36. <span class="content">{{dialysate_flow}}</span>
  37. <span class="unit">ml/min</span>
  38. </li>
  39. </ul>
  40. <ul>
  41. <li>
  42. <label>透析时长 : </label>
  43. <span class="content">{{dialysis_duration}}</span>
  44. <span class="unit">h</span>
  45. </li>
  46. <li>
  47. <label>血流量 : </label>
  48. <span class="content">{{blood_flow_volume}}</span>
  49. <span class="unit">ml/min</span>
  50. </li>
  51. <li>
  52. <label>置换方式 : </label>
  53. <span class="content">{{replacement_way}}</span>
  54. </li>
  55. <li>
  56. <label>维持(mg/h) : </label>
  57. <span class="content">{{anticoagulant_weichi}}</span>
  58. <span class="unit">mg/h</span>
  59. </li>
  60. <li>
  61. <label>钠(mmol/L): </label>
  62. <span class="content">{{sodium}}</span>
  63. <span class="unit">mmol/l</span>
  64. </li>
  65. <li>
  66. <label>葡萄糖 : </label>
  67. <span class="content">{{glucose}}</span>
  68. <span class="unit">mmol/l</span>
  69. </li>
  70. <li>
  71. <label>透析液温度 : </label>
  72. <span class="content">{{dialysate_temperature}}</span>
  73. <span class="unit"></span>
  74. </li>
  75. </ul>
  76. <ul>
  77. <li>
  78. <label>透析器 : </label>
  79. <span class="content">{{dialyzer}}</span>
  80. </li>
  81. <li>
  82. <label>脱水量 : </label>
  83. <span class="content">{{prescription_dewatering}}</span>
  84. <span class="unit">L</span>
  85. </li>
  86. <li>
  87. <label>抗疑剂 : </label>
  88. <span class="content">{{anticoagulant}}</span>
  89. </li>
  90. <li>
  91. <label>总量(mg) : </label>
  92. <span class="content">{{anticoagulant_zongliang}}</span>
  93. <span class="unit">mg</span>
  94. </li>
  95. <li>
  96. <label>钙(mmol/L): </label>
  97. <span class="content">{{calcium}}</span>
  98. <span class="unit">mmol/l</span>
  99. </li>
  100. <li>
  101. <label>干体重(kg) : </label>
  102. <span class="content">{{dry_weight}}</span>
  103. <span class="unit">kg</span>
  104. </li>
  105. <li>
  106. <label>电导率 : </label>
  107. <span class="content">{{conductivity}}</span>
  108. <span class="unit">mS/cm</span>
  109. </li>
  110. </ul>
  111. </div>
  112. <div class="note">备注 : <span>{{note}}</span></div>
  113. <!-- <div class="note">处方医生 : {{doctor}}</div> -->
  114. </div>
  115. </template>
  116. <script>
  117. export default {
  118. name: "DialysisPrescription",
  119. data() {
  120. return {
  121. title: "透析处方",
  122. // note: "",
  123. // doctor: "刘小军 医生",
  124. // row1: [
  125. // { value: "1", label: "透析模式 : ", content: "", unit: "" },
  126. // { value: "2", label: "灌流器 : ", content: "0", unit: "L" },
  127. // { value: "3", label: "置换液(L) : ", content: "0", unit: "L" },
  128. // { value: "4", label: "首剂(mg) : ", content: "0", unit: "mg" },
  129. // { value: "5", label: "钾(mmol/L) : ", content: "0", unit: "mmol/l" },
  130. // { value: "6", label: "碳酸氢盐 : ", content: "0", unit: "mmol/l" },
  131. // { value: "7", label: "透析液流量 : ", content: "0", unit: "ml/min" }
  132. // ],
  133. // row2: [
  134. // // { value: "1", label: "透析时长 : ", content: "0", unit: "h" },
  135. // { value: "2", label: "血流量 : ", content: "0", unit: "ml/min" },
  136. // { value: "3", label: "置换方式 : ", content: "", unit: "" },
  137. // { value: "4", label: "维持(mg/h) : ", content: "0", unit: "mg/h" },
  138. // { value: "5", label: "钠(mmol/L): ", content: "0", unit: "mmol/l" },
  139. // { value: "6", label: "葡萄糖 : ", content: "0", unit: "mmol/l" },
  140. // { value: "7", label: "透析液温度 : ", content: "0", unit: "℃" }
  141. // ],
  142. // row3: [
  143. // { value: "1", label: "透析器 : ", content: "0", unit: "L" },
  144. // { value: "2", label: "脱水量 : ", content: "0", unit: "L" },
  145. // { value: "3", label: "抗疑剂 : ", content: "", unit: "" },
  146. // { value: "4", label: "总量(mg) : ", content: "0", unit: "mg" },
  147. // { value: "5", label: "钙(mmol/L): ", content: "0", unit: "mmol/l" },
  148. // { value: "6", label: "干体重(kg) : ", content: "0", unit: "kg" },
  149. // { value: "7", label: "电导率 : ", content: "0", unit: "mS/cm" }
  150. // ],
  151. // prescription: null,
  152. // solution: null,
  153. };
  154. },
  155. props: {
  156. prescription: {
  157. type: Object,
  158. },
  159. solution: {
  160. type: Object,
  161. },
  162. config: {
  163. type: Object,
  164. },
  165. },
  166. // watch: {
  167. // prescription: function() {
  168. // this.setPrescription1(this.prescription, this.solution)
  169. // },
  170. // solution: function() {
  171. // this.setPrescription1(this.prescription, this.solution)
  172. // }
  173. // },
  174. computed: {
  175. // row1
  176. dialysis_mode: function() {
  177. return this.getValueStr("mode_id", "mode_id")
  178. },
  179. perfusion_apparatus: function() {
  180. return this.getValueStr("perfusion_apparatus", "perfusion_apparatus")
  181. },
  182. displace_liqui: function() {
  183. var v = this.getValueStr("displace_liqui", "displace_liqui")
  184. return v.length == 0 ? "0" : v
  185. },
  186. anticoagulant_shouji: function() {
  187. var v = this.getValueStr("anticoagulant_shouji", "anticoagulant_shouji")
  188. return v.length == 0 ? "0" : v
  189. },
  190. kalium: function() {
  191. var v = this.getValueStr("kalium", "kalium")
  192. return v.length == 0 ? "0" : v
  193. },
  194. bicarbonate: function() {
  195. var v = this.getValueStr("bicarbonate", "bicarbonate")
  196. return v.length == 0 ? "0" : v
  197. },
  198. dialysate_flow: function() {
  199. var v = this.getValueStr("dialysate_flow", "dialysate_flow")
  200. return v.length == 0 ? "0" : v
  201. },
  202. // row2
  203. dialysis_duration: function() {
  204. var v = this.getValueStr("dialysis_duration", "dialysis_duration")
  205. return v.length == 0 ? "0" : v
  206. },
  207. blood_flow_volume: function() {
  208. var v = this.getValueStr("blood_flow_volume", "blood_flow_volume")
  209. return v.length == 0 ? "0" : v
  210. },
  211. replacement_way: function() {
  212. return this.getValueStr("replacement_way", "replacement_way")
  213. },
  214. anticoagulant_weichi: function() {
  215. var v = this.getValueStr("anticoagulant_weichi", "anticoagulant_weichi")
  216. return v.length == 0 ? "0" : v
  217. },
  218. sodium: function() {
  219. var v = this.getValueStr("sodium", "sodium")
  220. return v.length == 0 ? "0" : v
  221. },
  222. glucose: function() {
  223. var v = this.getValueStr("glucose", "glucose")
  224. return v.length == 0 ? "0" : v
  225. },
  226. dialysate_temperature: function() {
  227. var v = this.getValueStr("dialysate_temperature", "dialysate_temperature")
  228. return v.length == 0 ? "0" : v
  229. },
  230. dialyzer: function() {
  231. var v = this.getValueStr("dialyzer", "hemodialysis_machine")
  232. return v.length == 0 ? "0" : v
  233. },
  234. prescription_dewatering: function() {
  235. var v = this.getValueStr("prescription_dewatering", "dewater")
  236. return v.length == 0 ? "0" : v
  237. },
  238. anticoagulant: function() {
  239. return this.getValueStr("anticoagulant", "anticoagulant")
  240. },
  241. anticoagulant_zongliang: function() {
  242. var v = this.getValueStr("anticoagulant_zongliang", "anticoagulant_zongliang")
  243. return v.length == 0 ? "0" : v
  244. },
  245. calcium: function() {
  246. var v = this.getValueStr("calcium", "calcium")
  247. return v.length == 0 ? "0" : v
  248. },
  249. dry_weight: function() {
  250. var v = this.getValueStr("dry_weight", "dry_weight")
  251. return v.length == 0 ? "0" : v
  252. },
  253. conductivity: function() {
  254. var v = this.getValueStr("conductivity", "conductivity")
  255. return v.length == 0 ? "0" : v
  256. },
  257. note: function() {
  258. return this.getValueStr("remark", "remark")
  259. }
  260. },
  261. methods: {
  262. // setPrescription(prescription, solution) {
  263. // this.prescription = prescription
  264. // this.solution = solution
  265. // },
  266. getValueStr(pkey, skey) {
  267. // console.log(this.prescription.id)
  268. if ((this.prescription == null || this.prescription.id == "") && (this.solution == null || this.solution.id == "")) {
  269. return ""
  270. } else if (this.prescription != null && this.prescription.id != "") {
  271. if (this.prescription[pkey] == null || this.prescription[pkey] == undefined) {
  272. return ""
  273. }
  274. return this.prescription[pkey] + ""
  275. } else {
  276. if (this.solution[skey] == null || this.solution[skey] == undefined) {
  277. return ""
  278. }
  279. return this.solution[skey] + ""
  280. }
  281. },
  282. // setPrescription1(prescription, solution) {
  283. // if (prescription == null && solution == null) {
  284. // this.row1[0].content = ""
  285. // this.row1[1].content = "0"
  286. // this.row1[2].content = "0"
  287. // this.row1[3].content = "0"
  288. // this.row1[4].content = "0"
  289. // this.row1[5].content = "0"
  290. // this.row1[6].content = "0"
  291. // this.row2[0].content = "0"
  292. // this.row2[1].content = "0"
  293. // this.row2[2].content = ""
  294. // this.row2[3].content = "0"
  295. // this.row2[4].content = "0"
  296. // this.row2[5].content = "0"
  297. // this.row2[6].content = "0"
  298. // this.row3[0].content = "0"
  299. // this.row3[1].content = "0"
  300. // this.row3[2].content = ""
  301. // this.row3[3].content = "0"
  302. // this.row3[4].content = "0"
  303. // this.row3[5].content = "0"
  304. // this.row3[6].content = "0"
  305. // this.note = ""
  306. // } else if (prescription != null) {
  307. // this.row1[0].content = prescription.mode_id
  308. // this.row1[1].content = prescription.perfusion_apparatus
  309. // this.row1[2].content = prescription.displace_liqui
  310. // this.row1[3].content = prescription.anticoagulant_shouji
  311. // this.row1[4].content = prescription.kalium
  312. // this.row1[5].content = prescription.bicarbonate
  313. // this.row1[6].content = prescription.dialysate_flow
  314. // this.row2[0].content = prescription.dialysis_duration
  315. // this.row2[1].content = prescription.blood_flow_volume
  316. // this.row2[2].content = prescription.replacement_way
  317. // this.row2[3].content = prescription.anticoagulant_weichi
  318. // this.row2[4].content = prescription.sodium
  319. // this.row2[5].content = prescription.glucose
  320. // this.row2[6].content = prescription.dialysate_temperature
  321. // this.row3[0].content = prescription.dialyzer
  322. // this.row3[1].content = prescription.prescription_dewatering
  323. // this.row3[2].content = prescription.anticoagulant
  324. // this.row3[3].content = prescription.anticoagulant_zongliang
  325. // this.row3[4].content = prescription.calcium
  326. // this.row3[5].content = prescription.dry_weight
  327. // this.row3[6].content = prescription.conductivity
  328. // this.note = prescription.remark
  329. // } else {
  330. // this.row1[0].content = solution.mode_id
  331. // this.row1[1].content = solution.perfusion_apparatus
  332. // this.row1[2].content = solution.displace_liqui
  333. // this.row1[3].content = solution.anticoagulant_shouji
  334. // this.row1[4].content = solution.kalium
  335. // this.row1[5].content = solution.bicarbonate
  336. // this.row1[6].content = solution.dialysate_flow
  337. // this.row2[0].content = solution.dialysis_duration
  338. // this.row2[1].content = solution.blood_flow_volume
  339. // this.row2[2].content = solution.replacement_way
  340. // this.row2[3].content = solution.anticoagulant_weichi
  341. // this.row2[4].content = solution.sodium
  342. // this.row2[5].content = solution.glucose
  343. // this.row2[6].content = solution.dialysate_temperature
  344. // this.row3[0].content = solution.dialyzer
  345. // this.row3[1].content = solution.prescription_dewatering
  346. // this.row3[2].content = solution.anticoagulant
  347. // this.row3[3].content = solution.anticoagulant_zongliang
  348. // this.row3[4].content = solution.calcium
  349. // this.row3[5].content = solution.dry_weight
  350. // this.row3[6].content = solution.conductivity
  351. // this.note = solution.remark
  352. // }
  353. // }
  354. }
  355. };
  356. </script>
  357. <style rel="stylesheet/scss" lang="scss" scoped>
  358. </style>