血透系统pad前端

assessmentBefore.vue 19KB

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