血透系统pad前端

assessmentBefore.vue 19KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619
  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">{{ weight_before ? weight_before : "" }}</span>
  13. <span class="unit">{{ weight_before ? "kg" : "" }}</span>
  14. </li>
  15. <li v-if="this.$store.getters.user.template_info.template_id == 6">
  16. <label>透前净体重 : </label>
  17. <span class="content">{{ weight_before ? parseFloat(weight_before - additional_weight).toFixed(1) : "" }}</span>
  18. <span class="unit">{{ weight_before ? "kg" : "" }}</span>
  19. </li>
  20. <li v-if="isShow('收缩压')">
  21. <label>收缩压 : </label>
  22. <span class="content">{{
  23. systolic_blood_pressure ? systolic_blood_pressure : ""
  24. }}</span>
  25. <span class="unit">{{ systolic_blood_pressure ? "mmHg" : "" }}</span>
  26. </li>
  27. <li v-if="isShow('舒张压')">
  28. <label>舒张压 : </label>
  29. <span class="content">{{
  30. diastolic_blood_pressure ? diastolic_blood_pressure : ""
  31. }}</span>
  32. <span class="unit">{{ diastolic_blood_pressure ? "mmHg" : "" }}</span>
  33. </li>
  34. <li v-if="isShow('前次透析后')">
  35. <label>前次透析后: </label>
  36. <span class="content">{{ last_post_dialysis }}</span>
  37. <span class="unit"></span>
  38. </li>
  39. <li v-if="isShow('导管')">
  40. <label>导管 : </label>
  41. <span class="content">{{ catheter }}</span>
  42. <span class="unit"></span>
  43. </li>
  44. <li v-if="isShow('衣物重')">
  45. <label>衣物重 : </label>
  46. <span class="content">{{
  47. additional_weight ? additional_weight : ""
  48. }}</span>
  49. <span class="unit">{{ additional_weight ? "kg" : "" }}</span>
  50. </li>
  51. <li v-if="isShow('干体重')">
  52. <label>干体重 : </label>
  53. <span class="content">{{ dry_weight ? dry_weight : "" }}</span>
  54. <span class="unit">{{ dry_weight ? "kg" : "" }}</span>
  55. </li>
  56. <li v-if="isShow('透析期间')">
  57. <label>透析期间 : </label>
  58. <span class="content">{{ dialysis_interphase }}</span>
  59. <span class="unit"></span>
  60. </li>
  61. <!-- </ul>
  62. <ul> -->
  63. <li v-if="isShow('体温')">
  64. <label>体温 : </label>
  65. <span class="content">{{ temperature ? temperature : "" }}</span>
  66. <span class="unit">{{ temperature ? "℃" : "" }}</span>
  67. </li>
  68. <li v-if="isShow('脉搏')">
  69. <label>脉搏 : </label>
  70. <span class="content">{{
  71. pulse_frequency ? pulse_frequency : ""
  72. }}</span>
  73. <span class="unit">{{ pulse_frequency ? "次/分" : "" }}</span>
  74. </li>
  75. <li v-if="isShow('呼吸频率')">
  76. <label>呼吸频率 : </label>
  77. <span class="content">{{
  78. breathing_rate ? breathing_rate : ""
  79. }}</span>
  80. <span class="unit">{{ breathing_rate ? "次/分" : "" }}</span>
  81. </li>
  82. <li v-if="isShow('透析前症状')">
  83. <label>透析前症状 : </label>
  84. <span class="content">{{ symptom_before_dialysis }}</span>
  85. <span class="unit"></span>
  86. </li>
  87. <li v-if="isShow('出血')">
  88. <label>出血:</label>
  89. <span class="content">{{
  90. is_hemorrhage ? hemorrhage + ";" + hemorrhage_other : "无"
  91. }}</span>
  92. <span class="unit"> </span>
  93. </li>
  94. <li v-if="isShow('并发症')">
  95. <label>并发症: </label>
  96. <span class="content">{{ complication }}</span>
  97. <span class="unit"></span>
  98. </li>
  99. <li v-if="isShow('透析前症状')">
  100. <label>透析前症状 : </label>
  101. <span class="content">{{ symptom_before_dialysis }}</span>
  102. <span class="unit"></span>
  103. </li>
  104. <!-- </ul>
  105. <ul> -->
  106. <li v-if="isShow('透析机型号')">
  107. <label>透析机型号: </label>
  108. <span class="content">{{ machine_type ? machine_type : "" }}</span>
  109. <span class="unit"></span>
  110. </li>
  111. <li v-if="isShow('透析频次')">
  112. <label>透析频次: </label>
  113. <span class="content">{{
  114. dialysis_count ? dialysis_count : ""
  115. }}</span>
  116. <span class="unit">{{ dialysis_count ? "次/周" : "" }}</span>
  117. </li>
  118. <li v-if="isShow('血管通路(内瘘)')">
  119. <label>血管通路(内瘘) : </label>
  120. <span class="content">{{ blood_access_internal_fistula }}</span>
  121. </li>
  122. <li v-if="isShow('血管杂音')">
  123. <label>血管杂音 : </label>
  124. <span class="content">{{
  125. getBloodAccessNoise(this.record.blood_access_noise)
  126. }}</span>
  127. </li>
  128. <li v-if="isShow('穿刺针')">
  129. <label>穿刺针 : </label>
  130. <span class="content">{{ this.record.puncture_needle }}</span>
  131. </li>
  132. <li v-if="isShow('穿刺方式')">
  133. <label>穿刺方式 : </label>
  134. <span class="content">{{ getWay(this.record.puncture_way) }}</span>
  135. </li>
  136. <li v-if="isShow('中心静脉置管')">
  137. <label>中心静脉置管:</label>
  138. <span class="content">{{
  139. getVenousCatheterization(this.record.venous_catheterization)
  140. }}</span>
  141. <span class="unit"> </span>
  142. </li>
  143. <!--
  144. </ul>
  145. <ul > -->
  146. <li v-if="isShow('位置')">
  147. <label>位置:</label>
  148. <span class="content">{{
  149. getVenousCatheterizationPart(
  150. this.record.venous_catheterization_part
  151. )
  152. }}</span>
  153. <span class="content">{{ venous_catheterization_part_other }}</span>
  154. </li>
  155. <li v-if="isShow('中心静脉导管')">
  156. <label>中心静脉导管: </label>
  157. <span class="content">{{ this.record.ductus_arantii }}</span>
  158. </li>
  159. <li v-if="isShow('其他中心静脉导管')">
  160. <label>其他中心静脉导管:</label>
  161. <span class="content">{{ ductus_arantii_other }}</span>
  162. <span class="unit"> </span>
  163. </li>
  164. <li v-if="isShow('急诊')">
  165. <label>急诊: </label>
  166. <span class="content">{{
  167. getEmergencyTreatment(this.record.emergency_treatment)
  168. }}</span>
  169. <span class="content">{{ emergency_treatment_other }}</span>
  170. </li>
  171. <li v-if="isShow('感染')">
  172. <label>感染:</label>
  173. <span class="content">{{
  174. this.record.is_infect == 1 ? "无" : "有"
  175. }}</span>
  176. <span class="unit"> </span>
  177. </li>
  178. <li v-if="isShow('其他感染情况')">
  179. <label>其他感染情况:</label>
  180. <span class="content">{{ infect_other }}</span>
  181. <span class="unit"> </span>
  182. </li>
  183. <li v-if="isShow('外露')">
  184. <label>外露:</label>
  185. <span class="content">{{
  186. this.record.exposed ? this.record.exposed : ""
  187. }}</span>
  188. <span class="unit">cm</span>
  189. </li>
  190. <li v-if="isShow('皮肤')">
  191. <label>皮肤:</label>
  192. <span class="content">{{ getSkin(this.record.skin) }}</span>
  193. <span class="unit"></span>
  194. </li>
  195. <li v-if="isShow('其他皮肤情况')">
  196. <label>其他皮肤情况:</label>
  197. <span class="content">{{ skin_other }}</span>
  198. <span class="unit"> </span>
  199. </li>
  200. <li v-if="isShow('血管通路部位')">
  201. <label>血管通路部位:</label>
  202. <span class="content">{{ getBloodAccessPart(this.record.blood_access_part_id) }}</span>
  203. <span class="unit"> </span>
  204. </li>
  205. <li v-if="isShow('血管通路操作')">
  206. <label>血管通路操作:</label>
  207. <span class="content">{{ getBloodAccessOpera(this.record.blood_access_part_opera_id) }}</span>
  208. <span class="unit"> </span>
  209. </li>
  210. </ul>
  211. </div>
  212. <div class="note">
  213. 备注 : <span>{{ remark }}</span>
  214. </div>
  215. </div>
  216. </template>
  217. <script>
  218. import { getDataConfig } from "@/utils/data";
  219. export default {
  220. name: "assessmentBefore",
  221. data() {
  222. return {
  223. title: "透前评估 ",
  224. template_id: 0
  225. };
  226. },
  227. props: {
  228. record: {
  229. type: Object
  230. },
  231. dry_weights: {
  232. type: Object
  233. }
  234. },
  235. created() {
  236. this.template_id = this.$store.getters.user.template_info.template_id;
  237. },
  238. computed: {
  239. machine_type: function() {
  240. if (this.record == null || this.record.id == "") {
  241. return "";
  242. }
  243. return this.record.machine_type;
  244. },
  245. weight_before: function() {
  246. if (this.record == null || this.record.id == "") {
  247. return "-";
  248. }
  249. return this.record.weight_before;
  250. },
  251. additional_weight: function() {
  252. if (this.record == null || this.record.id == "") {
  253. return "-";
  254. }
  255. return this.record.additional_weight;
  256. },
  257. systolic_blood_pressure: function() {
  258. if (this.record == null || this.record.id == "") {
  259. return "-";
  260. }
  261. return this.record.systolic_blood_pressure;
  262. },
  263. last_post_dialysis: function() {
  264. if (this.record == null || this.record.id == "") {
  265. return "-";
  266. }
  267. return this.record.last_post_dialysis;
  268. },
  269. dry_weight: function() {
  270. if (this.$store.getters.user.template_info.template_id == 6) {
  271. if (this.dry_weights != null && this.dry_weights.id > 0) {
  272. return this.dry_weights.dry_weight;
  273. } else {
  274. if (this.record == null || this.record.id == "") {
  275. return "-";
  276. }
  277. return this.record.dry_weight;
  278. }
  279. } else {
  280. if (this.record == null || this.record.id == "") {
  281. return "-";
  282. }
  283. return this.record.dry_weight;
  284. }
  285. },
  286. diastolic_blood_pressure: function() {
  287. if (this.record == null || this.record.id == "") {
  288. return "-";
  289. }
  290. return this.record.diastolic_blood_pressure;
  291. },
  292. dialysis_interphase: function() {
  293. if (this.record == null || this.record.id == "") {
  294. return "-";
  295. }
  296. return this.record.dialysis_interphase;
  297. },
  298. catheter: function() {
  299. if (this.record == null || this.record.id == "") {
  300. return "-";
  301. }
  302. return this.record.catheter;
  303. },
  304. temperature: function() {
  305. if (this.record == null || this.record.id == "") {
  306. return "-";
  307. }
  308. return this.record.temperature;
  309. },
  310. pulse_frequency: function() {
  311. if (this.record == null || this.record.id == "") {
  312. return "-";
  313. }
  314. return this.record.pulse_frequency;
  315. },
  316. breathing_rate: function() {
  317. if (this.record == null || this.record.id == "") {
  318. return "-";
  319. }
  320. return this.record.breathing_rate;
  321. },
  322. symptom_before_dialysis: function() {
  323. if (this.record == null || this.record.id == "") {
  324. return "-";
  325. }
  326. return this.record.symptom_before_dialysis;
  327. },
  328. complication: function() {
  329. if (this.record == null || this.record.id == "") {
  330. return "-";
  331. }
  332. return this.record.complication;
  333. },
  334. internal_fistula: function() {
  335. if (this.record == null || this.record.id == "") {
  336. return "-";
  337. }
  338. return this.record.internal_fistula;
  339. },
  340. is_hemorrhage: function() {
  341. if (this.record == null || this.record.id == "") {
  342. return false;
  343. }
  344. return this.record.is_hemorrhage == 1;
  345. },
  346. hemorrhage: function() {
  347. if (this.record == null || this.record.id == "") {
  348. return "-";
  349. }
  350. return this.record.hemorrhage;
  351. },
  352. hemorrhage_other: function() {
  353. if (this.record == null || this.record.id == "") {
  354. return "-";
  355. }
  356. return this.record.hemorrhage_other;
  357. },
  358. remark: function() {
  359. if (this.record == null || this.record.id == "") {
  360. return "";
  361. }
  362. return this.record.remark;
  363. },
  364. dialysis_count: function() {
  365. if (this.record == null || this.record.id == "") {
  366. return "-";
  367. }
  368. return this.record.dialysis_count;
  369. },
  370. internal_fistula_other: function() {
  371. if (this.record == null || this.record.id == "") {
  372. return "-";
  373. }
  374. return this.record.internal_fistula_other;
  375. },
  376. venous_catheterization_part_other: function() {
  377. if (this.record == null || this.record.id == "") {
  378. return "-";
  379. }
  380. return this.record.venous_catheterization_part_other;
  381. },
  382. emergency_treatment_other: function() {
  383. if (this.record == null || this.record.id == "") {
  384. return "-";
  385. }
  386. return this.record.emergency_treatment_other;
  387. },
  388. blood_access_internal_fistula: function() {
  389. var name1 = "";
  390. var name2 = "";
  391. if (this.record == null || this.record.id == "") {
  392. return "-";
  393. }
  394. if (this.record.blood_access_internal_fistula == undefined) {
  395. name1 = "";
  396. } else {
  397. name1 = this.record.blood_access_internal_fistula + ",";
  398. }
  399. if (this.record.internal_fistula_other == undefined) {
  400. name2 = "";
  401. } else {
  402. name2 = this.record.internal_fistula_other;
  403. }
  404. return name1 + name2;
  405. },
  406. infect_other: function() {
  407. if (this.record == null || this.record.id == "") {
  408. return "-";
  409. }
  410. return this.record.infect_other;
  411. },
  412. skin_other: function() {
  413. if (this.record == null || this.record.id == "") {
  414. return "-";
  415. }
  416. return this.record.skin_other;
  417. },
  418. ductus_arantii_other: function() {
  419. if (this.record == null || this.record.id == "") {
  420. return "-";
  421. }
  422. return this.record.ductus_arantii_other;
  423. }
  424. },
  425. methods: {
  426. getBloodAccessPart: function(id) {
  427. var BloodAccessPart = getDataConfig('hemodialysis', 'vascular_access')
  428. var BloodAccessPartName = ''
  429. for (let i = 0; i < BloodAccessPart.length; i++) {
  430. if (BloodAccessPart[i].id == id) {
  431. BloodAccessPartName = BloodAccessPart[i].name
  432. }
  433. }
  434. return BloodAccessPartName
  435. },
  436. getBloodAccessOpera: function(id) {
  437. var BloodAccessOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
  438. var BloodAccessOperaName = ''
  439. for (let i = 0; i < BloodAccessOpera.length; i++) {
  440. if (BloodAccessOpera[i].id == id) {
  441. BloodAccessOperaName = BloodAccessOpera[i].name
  442. }
  443. }
  444. return BloodAccessOperaName
  445. },
  446. isShow(name) {
  447. var filedList = this.$store.getters.user.fileds;
  448. for (let i = 0; i < filedList.length; i++) {
  449. if (
  450. filedList[i].module == 3 &&
  451. filedList[i].filed_name_cn == name &&
  452. filedList[i].is_show == 1
  453. ) {
  454. return true;
  455. }
  456. }
  457. return false;
  458. },
  459. getBloodAccessInternalFistula: function(id) {
  460. var BloodAccessInternalFistulaOptions = this.$store.getters
  461. .blood_access_internal_fistula;
  462. var BloodAccessInternalFistulaName = "";
  463. for (let i = 0; i < BloodAccessInternalFistulaOptions.length; i++) {
  464. if (BloodAccessInternalFistulaOptions[i].id == id) {
  465. BloodAccessInternalFistulaName =
  466. BloodAccessInternalFistulaOptions[i].name;
  467. }
  468. }
  469. return BloodAccessInternalFistulaName;
  470. },
  471. getBloodAccessNoise: function(id) {
  472. var BloodAccessNoiseOptions = this.$store.getters.blood_access_noise;
  473. var BloodAccessNoiseName = "";
  474. for (let i = 0; i < BloodAccessNoiseOptions.length; i++) {
  475. if (BloodAccessNoiseOptions[i].id == id) {
  476. BloodAccessNoiseName = BloodAccessNoiseOptions[i].name;
  477. }
  478. }
  479. return BloodAccessNoiseName;
  480. },
  481. getVenousCatheterization: function(id) {
  482. var VenousCatheterizationOptions = this.$store.getters
  483. .venous_catheterization;
  484. var VenousCatheterizationName = "";
  485. for (let i = 0; i < VenousCatheterizationOptions.length; i++) {
  486. if (VenousCatheterizationOptions[i].id == id) {
  487. VenousCatheterizationName = VenousCatheterizationOptions[i].name;
  488. }
  489. }
  490. return VenousCatheterizationName;
  491. },
  492. getWay: function(id) {
  493. var PunctureWayOptions = this.$store.getters.puncture_way;
  494. var PunctureWayOptionsName = "";
  495. for (let i = 0; i < PunctureWayOptions.length; i++) {
  496. if (PunctureWayOptions[i].id == id) {
  497. PunctureWayOptionsName = PunctureWayOptions[i].name;
  498. }
  499. }
  500. return PunctureWayOptionsName;
  501. },
  502. getVenousCatheterizationPart: function(id) {
  503. var venousCatheterizationPartOptions = this.$store.getters
  504. .venous_catheterization_part;
  505. var venousCatheterizationPartName = "";
  506. for (let i = 0; i < venousCatheterizationPartOptions.length; i++) {
  507. if (venousCatheterizationPartOptions[i].id == id) {
  508. venousCatheterizationPartName =
  509. venousCatheterizationPartOptions[i].name;
  510. }
  511. }
  512. return venousCatheterizationPartName;
  513. },
  514. getDuctusArantii: function(id) {
  515. var ductusArantiiOptions = this.$store.getters.ductus_arantii;
  516. var ductusArantiiOptionsName = "";
  517. for (let i = 0; i < ductusArantiiOptions.length; i++) {
  518. if (ductusArantiiOptions[i].id == id) {
  519. ductusArantiiOptionsName = ductusArantiiOptions[i].name;
  520. }
  521. }
  522. return ductusArantiiOptionsName;
  523. },
  524. getEmergencyTreatment: function(id) {
  525. var emergencyTreatmentOptions = this.$store.getters.emergency_treatment;
  526. var emergencyTreatmentName = "";
  527. for (let i = 0; i < emergencyTreatmentOptions.length; i++) {
  528. if (emergencyTreatmentOptions[i].id == id) {
  529. emergencyTreatmentName = emergencyTreatmentOptions[i].name;
  530. }
  531. }
  532. return emergencyTreatmentName;
  533. },
  534. getSkin: function(id) {
  535. var skinOptions = this.$store.getters.skin;
  536. var skinName = "";
  537. for (let i = 0; i < skinOptions.length; i++) {
  538. if (skinOptions[i].id == id) {
  539. skinName = skinOptions[i].name;
  540. }
  541. }
  542. return skinName;
  543. }
  544. // setRecord(record) {
  545. // if (record == null) {
  546. // this.info1[0].content = "0"
  547. // this.info1[1].content = "0"
  548. // this.info1[2].content = "0"
  549. // // this.info1[3].content = ""
  550. // this.info2[0].content = "0"
  551. // this.info2[1].content = "0"
  552. // this.info2[2].content = ""
  553. // this.info2[3].content = ""
  554. // this.info3[0].content = "0"
  555. // this.info3[1].content = "0"
  556. // this.info3[2].content = ""
  557. // this.info3[3].content = ""
  558. // this.note = ""
  559. // } else {
  560. // this.info1[0].content = record.weight_before
  561. // this.info1[1].content = record.systolic_blood_pressure
  562. // this.info1[2].content = record.last_post_dialysis
  563. // // this.info1[3].content = ""
  564. // this.info2[0].content = record.additional_weight
  565. // this.info2[1].content = record.diastolic_blood_pressure
  566. // this.info2[2].content = record.dialysis_interphase
  567. // this.info2[3].content = record.catheter
  568. // this.info3[0].content = record.temperature
  569. // this.info3[1].content = record.breathing_rate
  570. // this.info3[2].content = record.symptom_before_dialysis
  571. // this.info3[3].content = record.complication
  572. // this.note = record.remark
  573. // }
  574. // }
  575. }
  576. };
  577. </script>
  578. <style rel="stylesheet/scss" lang="scss" scoped></style>