dialysisPrescription.vue 22KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588
  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">{{dialysis_mode}}</span>
  13. </li>
  14. <li v-if="isShow('目标超滤量')">
  15. <label>目标超滤量 :</label>
  16. <span class="content">{{target_ultrafiltration != '0'?target_ultrafiltration:''}}</span>
  17. <span v-if="this.$store.getters.user.template_info.template_id != 17" class="unit" >{{target_ultrafiltration != '0'?"L":''}}</span>
  18. <span v-if="this.$store.getters.user.template_info.template_id == 17" class="unit" >{{target_ultrafiltration != '0'?"ml":''}}</span>
  19. <!--<span-->
  20. <!--class="unit"-->
  21. <!--v-if="this.$store.getters.user.template_info.template_id == 6"-->
  22. <!--&gt;{{target_ultrafiltration != '0'?"ml":''}}</span>-->
  23. </li>
  24. <!--<li v-if="isShow('首剂')">-->
  25. <!--<label>首剂 :</label>-->
  26. <!--<span class="content">{{anticoagulant_shouji != '0'?anticoagulant_shouji:''}}</span>-->
  27. <!--<span class="unit">{{anticoagulant_shouji != '0'?"mg":''}}</span>-->
  28. <!--</li>-->
  29. <li v-if="isShow('钙')">
  30. <label>钙:</label>
  31. <span class="content">{{calcium != '0'?calcium:""}}</span>
  32. <span class="unit">{{calcium != '0'?"mmol/L":""}}</span>
  33. </li>
  34. <li v-if="isShow('置换量')">
  35. <label>置换量 :</label>
  36. <span class="content">{{replacement_total != '0'?replacement_total:""}}</span>
  37. <span class="unit">{{replacement_total != '0'?"L":""}}</span>
  38. </li>
  39. <li v-if="isShow('葡萄糖')">
  40. <label>葡萄糖 :</label>
  41. <span class="content">{{glucose != '0'?glucose:""}}</span>
  42. <span class="unit">{{glucose != '0'?"mmol/L":""}}</span>
  43. </li>
  44. <!-- </ul>
  45. <ul>-->
  46. <li v-if="isShow('透析时长')">
  47. <label>透析时长 : </label>
  48. <span class="content">{{dialysis_duration != '0'?dialysis_duration:""}}</span>
  49. </li>
  50. <li v-if="isShow('透析液配方')">
  51. <label>透析液配方 : </label>
  52. <span class="content">{{dialysate_formulation}}</span>
  53. </li>
  54. <li v-if="isShow('钾')">
  55. <label>钾 : </label>
  56. <span class="content">{{kalium != '0'?kalium:""}}</span>
  57. <span class="unit">{{kalium != '0'?"mmol/L":""}}</span>
  58. </li>
  59. <li v-if="isShow('碳酸氢盐')">
  60. <label>碳酸氢盐 : </label>
  61. <span class="content">{{bicarbonate != '0'?bicarbonate:""}}</span>
  62. <span class="unit">{{bicarbonate != '0'?"mmol/L":""}}</span>
  63. </li>
  64. <!-- <li>
  65. <label>干体重 : </label>
  66. <span class="content">{{dry_weight}}</span>
  67. <span class="unit">kg</span>
  68. </li> -->
  69. <li v-if="isShow('透析液温度')">
  70. <label>透析液温度 : </label>
  71. <span class="content">{{dialysate_temperature != '0'?dialysate_temperature:""}}</span>
  72. <span class="unit">{{dialysate_temperature != '0'?"℃":""}}</span>
  73. </li>
  74. <!-- </ul>
  75. <ul> -->
  76. <li v-if="isShow('血流量')">
  77. <label>血流量 : </label>
  78. <span class="content">{{blood_flow_volume != '0'?blood_flow_volume:''}}</span>
  79. <span class="unit">{{blood_flow_volume != '0'?"ml/min":''}}</span>
  80. </li>
  81. <li v-if="isShow('抗凝剂')">
  82. <label>抗凝剂 : </label>
  83. <span class="content">{{anticoagulant}}</span>
  84. </li>
  85. <li v-if="isShow('首剂')&&this.prescription.anticoagulant != 5">
  86. <label>首剂 : </label>
  87. <span class="content">{{anticoagulant_shouji != '0'?anticoagulant_shouji:''}}</span>
  88. <!--<span class="unit">{{anticoagulant_shouji != '0'?"mg":''}}</span>-->
  89. <span class="unit" v-if="this.prescription.anticoagulant == 2 && this.$store.getters.user.template_info.template_id != 13">{{anticoagulant_shouji != '0'?"iu":""}}</span>
  90. <span class="unit" v-if="this.prescription.anticoagulant == 2 && this.$store.getters.user.template_info.template_id == 13">{{anticoagulant_shouji != '0'?"mg":""}}</span>
  91. <span class="unit" v-if="this.prescription.anticoagulant == 3">{{anticoagulant_shouji != '0'?"iu":""}}</span>
  92. <span class="unit" v-if="this.prescription.anticoagulant == 1">{{anticoagulant_shouji != '0'?"mg":""}}</span>
  93. <span class="unit" v-if="this.prescription.anticoagulant == 4">{{anticoagulant_shouji != '0'?"mg":""}}</span>
  94. <span class="unit" v-if="this.prescription.anticoagulant == 5">{{anticoagulant_shouji != '0'?"mg":""}}</span>
  95. <span class="unit" v-if="this.prescription.anticoagulant == 6">{{anticoagulant_shouji != '0'?"iu":""}}</span>
  96. <span class="unit" v-if="this.prescription.anticoagulant == 7">{{anticoagulant_shouji != '0'?"iu":""}}</span>
  97. </li>
  98. <li v-if="isShow('维持')">
  99. <label>维持 : </label>
  100. <span class="content">{{anticoagulant_weichi != '0'?anticoagulant_weichi:""}}</span>
  101. <span class="unit" v-if="this.prescription.anticoagulant == 2 && this.$store.getters.user.template_info.template_id != 13">{{anticoagulant_weichi != '0'?"iu/h":""}}</span>
  102. <span class="unit" v-if="this.prescription.anticoagulant == 2 && this.$store.getters.user.template_info.template_id == 13">{{anticoagulant_weichi != '0'?"mg/h":""}}</span>
  103. <span class="unit" v-if="this.prescription.anticoagulant == 3">{{anticoagulant_weichi != '0'?"iu/h":""}}</span>
  104. <span class="unit" v-if="this.prescription.anticoagulant == 1">{{anticoagulant_weichi != '0'?"mg/h":""}}</span>
  105. <span class="unit" v-if="this.prescription.anticoagulant == 4">{{anticoagulant_weichi != '0'?"mg/h":""}}</span>
  106. <span class="unit" v-if="this.prescription.anticoagulant == 5">{{anticoagulant_weichi != '0'?"ml/h":""}}</span>
  107. <span class="unit" v-if="this.prescription.anticoagulant == 6">{{anticoagulant_weichi != '0'?"iu/h":""}}</span>
  108. <span class="unit" v-if="this.prescription.anticoagulant == 7">{{anticoagulant_weichi != '0'?"iu/h":""}}</span>
  109. </li>
  110. <li v-if="isShow('总量')&&this.prescription.anticoagulant != 5">
  111. <label>总量: </label>
  112. <span class="content">{{anticoagulant_zongliang != '0'?anticoagulant_zongliang:""}}</span>
  113. <span class="unit" v-if="this.prescription.anticoagulant == 2 && this.$store.getters.user.template_info.template_id != 13">{{anticoagulant_zongliang != '0'?"iu":""}}</span>
  114. <span class="unit" v-if="this.prescription.anticoagulant == 2 && this.$store.getters.user.template_info.template_id == 13">{{anticoagulant_zongliang != '0'?"mg":""}}</span>
  115. <span class="unit" v-if="this.prescription.anticoagulant == 3">{{anticoagulant_zongliang != '0'?"iu":""}}</span>
  116. <span class="unit" v-if="this.prescription.anticoagulant == 1">{{anticoagulant_zongliang != '0'?"mg":""}}</span>
  117. <span class="unit" v-if="this.prescription.anticoagulant == 4">{{anticoagulant_zongliang != '0'?"mg":""}}</span>
  118. <span class="unit" v-if="this.prescription.anticoagulant == 5">{{anticoagulant_zongliang != '0'?"ml":""}}</span>
  119. <span class="unit" v-if="this.prescription.anticoagulant == 6">{{anticoagulant_zongliang != '0'?"iu":""}}</span>
  120. <span class="unit" v-if="this.prescription.anticoagulant == 7">{{anticoagulant_zongliang != '0'?"iu":""}}</span>
  121. </li>
  122. <li v-if="isShow('钙名称')&&this.prescription.anticoagulant == 5">
  123. <label>钙名称: </label>
  124. <span class="content">{{this.prescription.anticoagulant_gaimingcheng}}</span>
  125. </li>
  126. <li v-if="isShow('钙剂量')&&this.prescription.anticoagulant == 5">
  127. <label>钙剂量: </label>
  128. <span class="content">{{this.prescription.anticoagulant_gaijiliang}}</span>
  129. <span class="unit" v-if="this.prescription.anticoagulant == 5">{{'ml'}}</span>
  130. </li>
  131. <li v-if="isShow('钠')">
  132. <label>钠 : </label>
  133. <span class="content">{{sodium != '0'?sodium:""}}</span>
  134. <span class="unit">{{sodium != '0'?"mmol/L":""}}</span>
  135. </li>
  136. <li v-if="isShow('透析液流量')">
  137. <label>透析液流量 : </label>
  138. <span class="content">{{dialysate_flow != '0'?dialysate_flow:""}}</span>
  139. <span class="unit">{{dialysate_flow != '0'?"ml/min":""}}</span>
  140. </li>
  141. <!-- </ul>
  142. <ul> -->
  143. <li v-if="isShow('透析器/灌流器')">
  144. <label>透析器/灌流器 : </label>
  145. <span class="content">{{getData(dialyzer_perfusion_apparatus)}}</span>
  146. <span class="unit"></span>
  147. </li>
  148. <li v-if="isShow('体液过多症状')">
  149. <label>体液过多症状: </label>
  150. <span class="content">{{body_fluid}}</span>
  151. <span class="unit"></span>
  152. </li>
  153. <li v-if="isShow('体液过多其他症状')">
  154. <label>体液过多其他症状: </label>
  155. <span class="content">{{this.prescription.body_fluid_other}}</span>
  156. <span class="unit"></span>
  157. </li>
  158. <li v-if="isShow('透析前使用特殊药物')">
  159. <label>透析前使用特殊药物: </label>
  160. <span class="content">{{special_medicine}}</span>
  161. <span class="unit"></span>
  162. </li>
  163. <li v-if="isShow('透析前使用其他特殊药物')">
  164. <label>透析前使用其他特殊药物: </label>
  165. <span class="content">{{special_medicine_other}}</span>
  166. <span class="unit"></span>
  167. </li>
  168. <li v-if="isShow('置换液')">
  169. <label v-if="this.$store.getters.user.template_info.template_id != 6">置换液: </label>
  170. <label v-if="this.$store.getters.user.template_info.template_id == 6">置换方式: </label>
  171. <span class="content">{{displace_liqui}}</span>
  172. <span class="unit"></span>
  173. </li>
  174. <li v-if="isShow('置换液总量')">
  175. <label>置换液总量: </label>
  176. <span class="content">{{getDisplaceLiquiValue() != '0'? getDisplaceLiquiValue():''}}</span>
  177. <span class="unit">{{getDisplaceLiquiValue() !='0'?"L":""}}</span>
  178. </li>
  179. <li v-if="isShow('血管通路')">
  180. <label>血管通路: </label>
  181. <span class="content">{{blood_access}}</span>
  182. <span class="unit"></span>
  183. </li>
  184. <!-- <li v-if="isShow('实际超滤量')">-->
  185. <!-- <label>实际超滤量2: </label>-->
  186. <!-- <span class="content">{{ultrafiltration != '0'? ultrafiltration:''}}</span>-->
  187. <!-- <span class="unit">{{ultrafiltration != '0'?"L":""}}</span>-->
  188. <!-- </li>-->
  189. <li v-if="isShow('目标KT/V')">
  190. <label>目标KT/V: </label>
  191. <span class="content">{{target_ktv != '0'? target_ktv:''}}</span>
  192. </li>
  193. <li v-if="isShow('电导度')">
  194. <label>电导度 : </label>
  195. <span class="content">{{conductivity != '0'?conductivity:""}}</span>
  196. <span class="unit">{{conductivity != '0'?"mS/cm":""}}</span>
  197. </li>
  198. </ul>
  199. </div>
  200. <div class="note">备注 : <span>{{note}}</span></div>
  201. </div>
  202. </template>
  203. <script>
  204. import { getDataConfig } from '@/utils/data'
  205. export default {
  206. name: 'DialysisPrescription',
  207. data () {
  208. return {
  209. title: '透析处方',
  210. perfusion_apparatus_map: {},
  211. dialysateFormulationMap: {},
  212. dialyzerPerfusionApparatus: []
  213. }
  214. },
  215. props: {
  216. prescription: {
  217. type: Object
  218. },
  219. solution: {
  220. type: Object
  221. },
  222. device_number_map: {
  223. type: Object
  224. }
  225. },
  226. computed: {
  227. target_ultrafiltration: function () {
  228. var v = this.getValueStr(
  229. 'target_ultrafiltration',
  230. 'target_ultrafiltration'
  231. )
  232. v = this.getFloat(v)
  233. return v.length == 0 ? '0' : v
  234. },
  235. dialysis_mode: function () {
  236. var mode = this.getValueStr('mode_id', 'mode_id')
  237. if (mode.length == 0) {
  238. return ''
  239. }
  240. if (this.$store.getters.treatment_mode[mode] != undefined) {
  241. return this.$store.getters.treatment_mode[mode].name
  242. }
  243. return ''
  244. },
  245. perfusion_apparatus: function () {
  246. var v = this.getValueStr('perfusion_apparatus', 'perfusion_apparatus')
  247. if (v.length == 0) {
  248. return ''
  249. }
  250. if (this.perfusion_apparatus_map[v] != undefined) {
  251. return this.perfusion_apparatus_map[v].name
  252. }
  253. return ''
  254. },
  255. displace_liqui: function () {
  256. var v = this.getValueStr('displace_liqui', 'displace_liqui')
  257. return v.length == 0 ? '0' : v
  258. },
  259. anticoagulant_shouji: function () {
  260. var v = this.getValueStr('anticoagulant_shouji', 'anticoagulant_shouji')
  261. return v.length == 0 ? '0' : v
  262. },
  263. kalium: function () {
  264. var v = this.getValueStr('kalium', 'kalium')
  265. v = this.getFloat(v)
  266. return v == 0 ? '0' : v
  267. },
  268. replacement_total: function () {
  269. var v = this.getValueStr('replacement_total', 'replacement_total')
  270. return v.length == 0 ? '0' : v
  271. },
  272. bicarbonate: function () {
  273. var v = this.getValueStr('bicarbonate', 'bicarbonate')
  274. return v.length == 0 ? '0' : v
  275. },
  276. dialysate_flow: function () {
  277. var v = this.getValueStr('dialysate_flow', 'dialysate_flow')
  278. return v.length == 0 ? '0' : v
  279. },
  280. dialysis_duration: function () {
  281. var dialysis_duration_hour = this.getValueStr(
  282. 'dialysis_duration_hour',
  283. 'dialysis_duration_hour'
  284. )
  285. var dialysis_duration_minute = this.getValueStr(
  286. 'dialysis_duration_minute',
  287. 'dialysis_duration_minute'
  288. )
  289. if (
  290. dialysis_duration_hour.length == 0 &&
  291. dialysis_duration_minute.length == 0
  292. ) {
  293. return '0'
  294. } else {
  295. var time =
  296. dialysis_duration_hour + 'h' + dialysis_duration_minute + 'min'
  297. return time.length == 0 ? '0' : time
  298. }
  299. },
  300. blood_flow_volume: function () {
  301. var v = this.getValueStr('blood_flow_volume', 'blood_flow_volume')
  302. return v.length == 0 ? '0' : v
  303. },
  304. replacement_way: function () {
  305. return this.getValueStr('replacement_way', 'replacement_way')
  306. },
  307. anticoagulant_weichi: function () {
  308. var v = this.getValueStr('anticoagulant_weichi', 'anticoagulant_weichi')
  309. return v.length == 0 ? '0' : v
  310. },
  311. sodium: function () {
  312. var v = this.getValueStr('sodium', 'sodium')
  313. console.log(v)
  314. v = this.getFloat(v)
  315. console.log(v)
  316. return v == 0 ? '0' : v
  317. },
  318. glucose: function () {
  319. var v = this.getValueStr('glucose', 'glucose')
  320. return v.length == 0 ? '0' : v
  321. },
  322. dialysate_temperature: function () {
  323. var v = this.getValueStr(
  324. 'dialysate_temperature',
  325. 'dialysate_temperature'
  326. )
  327. return v.length == 0 ? '0' : v
  328. },
  329. dialyzer: function () {
  330. var v = this.getValueStr('dialyzer', 'hemodialysis_machine')
  331. if (v.length == 0) {
  332. return ''
  333. }
  334. if (this.device_number_map[v] != undefined) {
  335. return this.device_number_map[v].name
  336. }
  337. return ''
  338. },
  339. dialysate_formulation: function () {
  340. var v = this.getValueStr(
  341. 'dialysate_formulation',
  342. 'dialysate_formulation'
  343. )
  344. if (v.length == 0) {
  345. return ''
  346. }
  347. if (v in this.dialysateFormulationMap) {
  348. return this.dialysateFormulationMap[v].name
  349. }
  350. return ''
  351. },
  352. prescription_dewatering: function () {
  353. var v = this.getValueStr('prescription_dewatering', 'dewater')
  354. return v.length == 0 ? '0' : v
  355. },
  356. anticoagulant: function () {
  357. var v = this.getValueStr('anticoagulant', 'anticoagulant')
  358. if (v.length == 0) {
  359. return ''
  360. }
  361. if (this.$store.getters.anticoagulants_confit[v] != undefined) {
  362. return this.$store.getters.anticoagulants_confit[v].name
  363. }
  364. return ''
  365. },
  366. anticoagulant_zongliang: function () {
  367. var v = this.getValueStr(
  368. 'anticoagulant_zongliang',
  369. 'anticoagulant_zongliang'
  370. )
  371. return v.length == 0 ? '0' : v
  372. },
  373. calcium: function () {
  374. var v = this.getValueStr('calcium', 'calcium')
  375. v = this.getFloat(v)
  376. return v == 0 ? '0' : v
  377. },
  378. conductivity: function () {
  379. var v = this.getValueStr('conductivity', 'conductivity')
  380. return v.length == 0 ? '0' : v
  381. },
  382. dialyzer_perfusion_apparatus: function () {
  383. return this.getValueStr(
  384. 'dialyzer_perfusion_apparatus',
  385. 'dialyzer_perfusion_apparatus'
  386. )
  387. },
  388. note: function () {
  389. return this.getValueStr('remark', 'remark')
  390. },
  391. body_fluid: function () {
  392. var id = this.getValueStr('body_fluid', 'body_fluid')
  393. if (id == 0) {
  394. return ''
  395. }
  396. var bodyFluidOptions = this.$store.getters.body_fluid
  397. for (let i = 0; i < bodyFluidOptions.length; i++) {
  398. if (bodyFluidOptions[i].id == id) {
  399. return bodyFluidOptions[i].name
  400. }
  401. }
  402. },
  403. special_medicine: function () {
  404. var id = this.getValueStr('special_medicine', 'special_medicine')
  405. if (id == 0) {
  406. return ''
  407. }
  408. // var special_medicine = this.$store.getters.special_medicine
  409. var special_medicine = [
  410. {id: 1, name: '无'},
  411. {id: 2, name: '降压药'},
  412. {id: 3, name: '抗凝'},
  413. {id: 4, name: '其他'},
  414. {id: 5, name: '降糖药'}
  415. ]
  416. for (let i = 0; i < special_medicine.length; i++) {
  417. if (special_medicine[i].id == id) {
  418. return special_medicine[i].name
  419. }
  420. }
  421. },
  422. special_medicine_other: function () {
  423. return this.getValueStr(
  424. 'special_medicine_other',
  425. 'special_medicine_other'
  426. )
  427. },
  428. blood_access: function () {
  429. var id = this.getValueStr('blood_access', 'blood_access')
  430. if (id == 0) {
  431. return ''
  432. }
  433. // var blood_access = this.$store.getters.blood_access
  434. var blood_access = getDataConfig('hemodialysis', 'vascular_access_desc')
  435. console.log('blood_access', blood_access)
  436. for (let i = 0; i < blood_access.length; i++) {
  437. if (blood_access[i].id == id) {
  438. return blood_access[i].name
  439. }
  440. }
  441. },
  442. displace_liqui: function () {
  443. var id = this.getValueStr('displace_liqui_part', 'displace_liqui_part')
  444. var displace_liqui_value = this.getValueStr(
  445. 'displace_liqui_value',
  446. 'displace_liqui_value'
  447. )
  448. var displace_liqui_part = ''
  449. var displace_liqui = this.$store.getters.displace_liqui
  450. for (let i = 0; i < displace_liqui.length; i++) {
  451. if (displace_liqui[i].id == id) {
  452. displace_liqui_part = displace_liqui[i].name
  453. }
  454. }
  455. return displace_liqui_part
  456. },
  457. ultrafiltration: function () {
  458. var v = this.getValueStr('ultrafiltration', 'ultrafiltration')
  459. v = this.getFloat(v)
  460. return v.length == 0 ? '0' : v
  461. },
  462. target_ktv: function () {
  463. var v = this.getValueStr('target_ktv', 'target_ktv')
  464. return v.length == 0 ? '0' : v
  465. }
  466. },
  467. created () {
  468. var perfusion_apparatus = this.$store.getters.perfusion_apparatus
  469. var map = {}
  470. for (let index = 0; index < perfusion_apparatus.length; index++) {
  471. const p = perfusion_apparatus[index]
  472. map[p.id] = p
  473. }
  474. this.perfusion_apparatus_map = map
  475. var dialysateFormulationOptions = getDataConfig(
  476. 'hemodialysis',
  477. 'dialysate_formulation'
  478. )
  479. for (var index in dialysateFormulationOptions) {
  480. this.dialysateFormulationMap[dialysateFormulationOptions[index].id] =
  481. dialysateFormulationOptions[index]
  482. }
  483. this.dialyzerPerfusionApparatus = getDataConfig(
  484. 'hemodialysis',
  485. 'dialyzer_perfusion_apparatus'
  486. )
  487. for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
  488. if (
  489. this.prescription.dialyzer_perfusion_apparatus ==
  490. this.dialyzerPerfusionApparatus[i].id
  491. ) {
  492. this.prescription.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
  493. i
  494. ].name
  495. }
  496. }
  497. console.log('透析处方----2', this.prescription)
  498. },
  499. methods: {
  500. getDisplaceLiquiValue: function () {
  501. return this.getValueStr('displace_liqui_value', 'displace_liqui_value')
  502. },
  503. isShow (name) {
  504. var filedList = this.$store.getters.user.fileds
  505. for (let i = 0; i < filedList.length; i++) {
  506. if (
  507. filedList[i].module == 1 &&
  508. filedList[i].filed_name_cn == name &&
  509. filedList[i].is_show == 1
  510. ) {
  511. return true
  512. }
  513. }
  514. return false
  515. },
  516. getValueStr (pkey, skey) {
  517. if (
  518. (this.prescription == null || this.prescription.id == '') &&
  519. (this.solution == null || this.solution.id == '')
  520. ) {
  521. return ''
  522. } else if (this.prescription != null && this.prescription.id != '') {
  523. if (
  524. this.prescription[pkey] == null ||
  525. this.prescription[pkey] == undefined
  526. ) {
  527. return ''
  528. }
  529. return this.prescription[pkey] + ''
  530. } else {
  531. if (this.solution[skey] == null || this.solution[skey] == undefined) {
  532. return ''
  533. }
  534. return this.solution[skey] + ''
  535. }
  536. },
  537. getFloat: function (x) {
  538. if (x != '.') {
  539. var f = Math.round(x * 100) / 100
  540. var s = f.toString()
  541. var rs = s.indexOf('.')
  542. if (rs <= 0) {
  543. rs = s.length
  544. s += '.'
  545. }
  546. while (s.length <= rs + 1) {
  547. s += '0'
  548. }
  549. return s
  550. } else {
  551. return '0.0'
  552. }
  553. },
  554. getData (val) {
  555. var obj = ''
  556. for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
  557. if (val == this.dialyzerPerfusionApparatus[i].id) {
  558. obj = this.dialyzerPerfusionApparatus[i].name
  559. }
  560. }
  561. return obj
  562. }
  563. }
  564. }
  565. </script>
  566. <style rel="stylesheet/scss" lang="scss" scoped>
  567. </style>