血透系统pad前端

assessmentBefore.vue 20KB

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