Elizabeth's proactive approach involves introducing urinal toilet attachment , an ingenious concept that optimizes space and functionality.

NavIgation.vue 15KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663
  1. <template>
  2. <div>
  3. <div class="grid">
  4. <div class="list">
  5. <ul>
  6. <li @click="showPrescription">
  7. <img src="@/assets/record/1.png" />
  8. <p>透析处方</p>
  9. </li>
  10. <li @click="showAccepts">
  11. <img src="@/assets/record/2.png" />
  12. <p>接诊评估</p>
  13. </li>
  14. <li @click="showAssessmentBefore">
  15. <img src="@/assets/record/3.png" />
  16. <p>透前评估</p>
  17. </li>
  18. <li @click="showDoctorAdviceDialog" class="newOrdersAdvice">
  19. <img src="@/assets/record/4.png" />
  20. <div>
  21. <p>临时医嘱</p>
  22. <span class="redpoint" v-if="getUnReadNum()">{{getUnReadNum()}}</span>
  23. </div>
  24. </li>
  25. <li @click="showDoubleCheck">
  26. <img src="@/assets/record/5.png" />
  27. <p>双人核对</p>
  28. </li>
  29. </ul>
  30. </div>
  31. <div class="list">
  32. <ul>
  33. <li @click="showComputerDialog">
  34. <img src="@/assets/record/6.png" />
  35. <p>透析上机</p>
  36. </li>
  37. <li @click="showMonitorDialog">
  38. <img src="@/assets/record/7.png" />
  39. <p>透析监测</p>
  40. </li>
  41. <li @click="showFinishDialog">
  42. <img src="@/assets/record/8.png" />
  43. <p>透析下机</p>
  44. </li>
  45. <li @click="showAssessmentAfterDialog">
  46. <img src="@/assets/record/9.png" />
  47. <p>透后评估</p>
  48. </li>
  49. <li @click="showrTeatmentSummary">
  50. <img src="@/assets/record/10.png" />
  51. <p>治疗小结</p>
  52. </li>
  53. </ul>
  54. </div>
  55. </div>
  56. <div class="middleLine"></div>
  57. <dialysis-prescription-dialog
  58. title="透析处方"
  59. ref="prescription"
  60. :patient="patient"
  61. :prescription="prescription"
  62. :solution="solution"
  63. @advice="adviceFunc"
  64. :niprocart_info="niprocart_info"
  65. :jms_info="jms_info"
  66. :fistula_needle_set_info="fistula_needle_set_info"
  67. :fistula_needle_set_16_info="fistula_needle_set_16_info"
  68. :hemoperfusion_info="hemoperfusion_info"
  69. :dialyser_sterilised_info="dialyser_sterilised_info"
  70. :filtryzer_info="filtryzer_info"
  71. :dialyzers_info="dialyzers_info"
  72. :injector_info="injector_info"
  73. :bloodlines_info="bloodlines_info"
  74. :tubingHemodialysis_info="tubingHemodialysis_info"
  75. :safe_package_info="safe_package_info"
  76. :aliquid_info="aliquid_info"
  77. :config="config"
  78. :admin_users="admin_users"
  79. :targetAdvices="longAdvices"
  80. :waitUploadAdvices="waitUploadAdvices"
  81. :is_open="is_open"
  82. :predialysis="predialysis_evaluation"
  83. :last_predialysis="last_predialysis_evaluation"
  84. :record="assessment_after_dislysis"
  85. :last_record="last_assessment_after_dislysis"
  86. :last_prescription="last_dialysis_prescribe"
  87. :dry_weight="last_dryWeight_dislysis"
  88. :schedual="temp_schedual"
  89. ></dialysis-prescription-dialog>
  90. <double-check-dialog
  91. title="双人核对"
  92. ref="doubleCheck"
  93. :patient="patient"
  94. :double_check="double_check"
  95. :admin_users="admin_users"
  96. ></double-check-dialog>
  97. <accepts-treatment-dialog
  98. title="接诊评估"
  99. ref="accepts"
  100. :patient="patient"
  101. :receiver_treatment_access="receiver_treatment_access"
  102. ></accepts-treatment-dialog>
  103. <assessment-before-dislysis-dialog
  104. title="透前评估"
  105. ref="assessmentBefore"
  106. :patient="patient"
  107. :last_predialysis="last_predialysis_evaluation"
  108. :predialysis_evaluation="predialysis_evaluation"
  109. :admin_users="admin_users"
  110. :dry_weight="last_dryWeight_dislysis"
  111. ></assessment-before-dislysis-dialog>
  112. <treatment-summary-dialog
  113. title="治疗小结"
  114. ref="treatmentSummary"
  115. :patient="patient"
  116. :treatment_summary="treatment_summary"
  117. ></treatment-summary-dialog>
  118. <doctor-advice-dialog
  119. title="临时医嘱"
  120. ref="doctor_advice"
  121. :doctor_advices="doctor_advices"
  122. :patient="patient"
  123. :admin_users="admin_users"
  124. :dialysis_order="dialysis_order"
  125. ></doctor-advice-dialog>
  126. <computer-dialog
  127. title="透析上机"
  128. ref="computer_dialog"
  129. :dialysis_order="dialysis_order"
  130. :schedule="schedual"
  131. @monitor="add_monitor"
  132. :admins="admin_users"
  133. :device_numbers="device_numbers"
  134. :special_premission="special_premission"
  135. ></computer-dialog>
  136. <monitor-dialog
  137. title="透析监测"
  138. ref="monitor_dialog"
  139. :monitors="monitor_records"
  140. @monitor="add_monitor"
  141. ></monitor-dialog>
  142. <finish-dialog
  143. title="透析下机"
  144. ref="finish_dialog"
  145. :dialysis_order="dialysis_order"
  146. :schedule="schedual"
  147. :admins="admin_users"
  148. :prescription="prescription"
  149. @assessmentAfterDislysis="assessmentAfterDislysisFunc"
  150. :special_premission="special_premission"
  151. ></finish-dialog>
  152. <assessment-after-dislysis
  153. title="透后评估"
  154. ref="assessment_after_dislysis"
  155. :assessment_after_dislysis="assessment_after_dislysis"
  156. :patient="patient"
  157. :dialysis_order="dialysis_order"
  158. ></assessment-after-dislysis>
  159. </div>
  160. </template>
  161. <script>
  162. import dialysisPrescriptionDialog from "./dialog/dialysisPrescriptionDialog";
  163. import doubleCheckDialog from "./dialog/doubleCheckDialog";
  164. import AssessmentAfterDislysis from "./dialog/AssessmentAfterDislysis";
  165. import acceptsTreatmentDialog from "./dialog/acceptsTreatmentDialog";
  166. import assessmentBeforeDislysisDialog from "./dialog/assessmentBeforeDislysisDialog";
  167. import MonitorDialog from "./dialog/monitor_dialog";
  168. import DoctorAdviceDialog from "./dialog/DoctorAdviceDialog";
  169. import treatmentSummaryDialog from "./dialog/treatmentSummaryDialog";
  170. import ComputerDialog from "./dialog/computer_dialog";
  171. import FinishDialog from "./dialog/finish_dialog";
  172. export default {
  173. name: "NavIgation",
  174. components: {
  175. dialysisPrescriptionDialog,
  176. doubleCheckDialog,
  177. AssessmentAfterDislysis,
  178. acceptsTreatmentDialog,
  179. assessmentBeforeDislysisDialog,
  180. treatmentSummaryDialog,
  181. MonitorDialog,
  182. DoctorAdviceDialog,
  183. ComputerDialog,
  184. FinishDialog
  185. },
  186. data() {
  187. return {
  188. temp_schedual: null
  189. };
  190. },
  191. mounted() {},
  192. props: {
  193. longAdvices: {
  194. // 临时医嘱
  195. type: Array,
  196. default: () => {
  197. return [];
  198. }
  199. },
  200. waitUploadAdvices: {
  201. // 临时医嘱
  202. type: Array,
  203. default: () => {
  204. return [];
  205. }
  206. },
  207. is_open: {
  208. // 临时医嘱
  209. type: Number,
  210. default: () => {
  211. return 0;
  212. }
  213. },
  214. patient: {
  215. // 患者信息
  216. type: Object,
  217. default: () => {
  218. return { id: 0 };
  219. }
  220. },
  221. schedual: {
  222. // 患者排班信息
  223. type: Object,
  224. default: () => {
  225. return { id: 0 };
  226. }
  227. },
  228. prescription: {
  229. // 透析处方
  230. type: Object,
  231. default: () => {
  232. return { id: 0 };
  233. }
  234. },
  235. solution: {
  236. // 透析方案
  237. type: Object,
  238. default: () => {
  239. return { id: 0 };
  240. }
  241. }, system_prescribe: {
  242. // 系统透析方案
  243. type: Object,
  244. default: () => {
  245. return { id: 0 };
  246. }
  247. },
  248. receiver_treatment_access: {
  249. // 接诊评估
  250. type: Object,
  251. default: () => {
  252. return { id: 0 };
  253. }
  254. },
  255. predialysis_evaluation: {
  256. // 透前评估
  257. type: Object,
  258. default: () => {
  259. return { id: 0 };
  260. }
  261. },
  262. doctor_advices: {
  263. // 临时医嘱
  264. type: Array,
  265. default: () => {
  266. return [];
  267. }
  268. },
  269. double_check: {
  270. // 双人核对
  271. type: Object,
  272. default: () => {
  273. return { id: 0 };
  274. }
  275. },
  276. assessment_after_dislysis: {
  277. // 透后评估
  278. type: Object,
  279. default: () => {
  280. return { id: 0 };
  281. }
  282. },
  283. treatment_summary: {
  284. // 治疗小结
  285. type: Object,
  286. default: () => {
  287. return { id: 0 };
  288. }
  289. },
  290. monitor_records: {
  291. // 透析监测
  292. type: Array,
  293. default: () => {
  294. return [];
  295. }
  296. },
  297. dialysis_order: {
  298. // 透析记录
  299. type: Object,
  300. default: () => {
  301. return { id: 0 };
  302. }
  303. },
  304. admin_users: {
  305. // 系统用户列表
  306. type: Array,
  307. default: () => {
  308. return [];
  309. }
  310. },
  311. devices: {
  312. // 设备
  313. type: Array,
  314. default: () => {
  315. return [];
  316. }
  317. },
  318. device_numbers: {
  319. // 床位
  320. type: Array,
  321. default: () => {
  322. return [];
  323. }
  324. },
  325. niprocart_info: {
  326. type: Array,
  327. default: () => {
  328. return [];
  329. }
  330. },
  331. jms_info: {
  332. type: Array,
  333. default: () => {
  334. return [];
  335. }
  336. },
  337. fistula_needle_set_info: {
  338. type: Array,
  339. default: () => {
  340. return [];
  341. }
  342. },
  343. fistula_needle_set_16_info: {
  344. type: Array,
  345. default: () => {
  346. return [];
  347. }
  348. },
  349. hemoperfusion_info: {
  350. type: Array,
  351. default: () => {
  352. return [];
  353. }
  354. },
  355. dialyser_sterilised_info: {
  356. type: Array,
  357. default: () => {
  358. return [];
  359. }
  360. },
  361. filtryzer_info: {
  362. type: Array,
  363. default: () => {
  364. return [];
  365. }
  366. },
  367. dialyzers_info: {
  368. type: Array,
  369. default: () => {
  370. return [];
  371. }
  372. },
  373. injector_info: {
  374. type: Array,
  375. default: () => {
  376. return [];
  377. }
  378. },
  379. bloodlines_info: {
  380. type: Array,
  381. default: () => {
  382. return [];
  383. }
  384. },
  385. tubingHemodialysis_info: {
  386. type: Array,
  387. default: () => {
  388. return [];
  389. }
  390. },
  391. safe_package_info: {
  392. type: Array,
  393. default: () => {
  394. return [];
  395. }
  396. },
  397. aliquid_info: {
  398. type: Array,
  399. default: () => {
  400. return [];
  401. }
  402. },
  403. headNurses: {
  404. type: Array,
  405. default: () => {
  406. return [];
  407. }
  408. },
  409. config: {
  410. type: Object,
  411. default: () => {
  412. return { id: 0 };
  413. }
  414. },
  415. admin_user_map: {
  416. // {user_id: admin_user object}
  417. type: Object,
  418. default: () => {
  419. return {};
  420. }
  421. },
  422. device_map: {
  423. // {device_id: device object}
  424. type: Object,
  425. default: () => {
  426. return {};
  427. }
  428. },
  429. device_number_map: {
  430. // {device_number_id: device_number object}
  431. type: Object,
  432. default: () => {
  433. return {};
  434. }
  435. },
  436. last_predialysis_evaluation: {
  437. //最后一条透前
  438. type: Object,
  439. default: () => {
  440. return { id: 0 };
  441. }
  442. },
  443. last_monitor_record: {
  444. //最后一条监测记录
  445. type: Object,
  446. default: () => {
  447. return { id: 0 };
  448. }
  449. },
  450. last_assessment_after_dislysis: {
  451. //最后一条透后记录 (除了今天录的)
  452. type: Object,
  453. default: () => {
  454. return { id: 0 };
  455. }
  456. },
  457. last_dialysis_prescribe: {
  458. //最后一条透析处方(除了今天录的)
  459. type: Object,
  460. default: () => {
  461. return { id: 0 };
  462. }
  463. },
  464. last_dryWeight_dislysis: {
  465. //最后一条干体重 (除了今天录的)
  466. type: Object,
  467. default: () => {
  468. return { id: 0 };
  469. }
  470. },
  471. special_premission: {
  472. type: Array,
  473. default: () => {
  474. return [];
  475. }
  476. }
  477. },
  478. methods: {
  479. getUnReadNum: function() {
  480. let doctorAdvice = [];
  481. for (let y = 0; y < this.doctor_advices.length; y++) {
  482. if (this.doctor_advices[y].execution_state == 2) {
  483. doctorAdvice.push(this.doctor_advices[y]);
  484. }
  485. }
  486. const sorted = this.groupBy(doctorAdvice, function(item) {
  487. return [item.groupno];
  488. });
  489. console.log(doctorAdvice);
  490. console.log(sorted.length);
  491. return sorted.length;
  492. },
  493. groupBy(array, f) {
  494. const groups = {};
  495. array.forEach(function(o) {
  496. const group = JSON.stringify(f(o));
  497. groups[group] = groups[group] || [];
  498. groups[group].push(o);
  499. });
  500. return Object.keys(groups).map(function(group) {
  501. return groups[group];
  502. });
  503. },
  504. setLastRecord: function(
  505. lastPredialysisEvaluation,
  506. lastMonitorRecord,
  507. lastAssessmentAfterDislysis,
  508. lastDialysisPrescribe,
  509. lastDryWeightDislysis,
  510. schedual,
  511. system_prescribe
  512. ) {
  513. this.$refs.assessmentBefore.setLastRecord(
  514. lastPredialysisEvaluation,
  515. lastDryWeightDislysis
  516. );
  517. this.$refs.prescription.setLastRecord(
  518. schedual,
  519. lastAssessmentAfterDislysis,
  520. lastPredialysisEvaluation,
  521. lastDialysisPrescribe,
  522. lastDryWeightDislysis,
  523. system_prescribe
  524. );
  525. // this.temp_schedual = schedual
  526. },
  527. add_monitor: function(monitor) {
  528. this.monitor_records.push(monitor);
  529. console.log(this.monitor_records);
  530. this.monitor_records.sort((a, b) => b.operate_time - a.operate_time);
  531. this.monitor_records.reverse();
  532. console.log(this.monitor_records);
  533. this.$refs.monitor_dialog.setRecords(this.monitor_records);
  534. },
  535. adviceFunc: function() {
  536. this.$emit("advice");
  537. },
  538. showMonitorDialog: function() {
  539. this.$refs.monitor_dialog.show();
  540. },
  541. showAssessmentAfterDialog: function() {
  542. this.$refs.assessment_after_dislysis.show(this.assessment_after_dislysis);
  543. },
  544. showDoctorAdviceDialog: function() {
  545. this.$refs.doctor_advice.show();
  546. },
  547. showComputerDialog: function() {
  548. this.$refs.computer_dialog.show(this.dialysis_order);
  549. },
  550. showFinishDialog: function() {
  551. this.$refs.finish_dialog.show(this.dialysis_order);
  552. },
  553. showPrescription: function() {
  554. this.$refs.prescription.show(this.prescription,this.schedual);
  555. },
  556. showAccepts: function() {
  557. this.$refs.accepts.show(this.receiver_treatment_access);
  558. },
  559. showAssessmentBefore: function() {
  560. this.$refs.assessmentBefore.show(this.predialysis_evaluation);
  561. },
  562. showDoubleCheck: function() {
  563. this.$refs.doubleCheck.show();
  564. },
  565. showrTeatmentSummary: function() {
  566. this.$refs.treatmentSummary.show(this.treatment_summary);
  567. },
  568. assessmentAfterDislysisFunc: function(val) {
  569. this.assessment_after_dislysis = val;
  570. this.$refs.assessment_after_dislysis.setRecords(
  571. this.assessment_after_dislysis
  572. );
  573. this.$emit("assessmentAfterDislysis", this.assessment_after_dislysis);
  574. }
  575. }
  576. };
  577. </script>
  578. <style style="stylesheet/scss" lang="scss" scoped>
  579. .grid {
  580. padding: 10px 0 20px 0;
  581. .list {
  582. ul {
  583. @include display-flex;
  584. @include align-items-center;
  585. @include text-align;
  586. @include justify-content-around;
  587. cursor: pointer;
  588. li {
  589. font-size: 12px;
  590. color: #5d6b7a;
  591. margin-top: 20px;
  592. p {
  593. height: 30px;
  594. line-height: 30px;
  595. color: #34495e;
  596. font-size: 14px;
  597. }
  598. img {
  599. width: 50px;
  600. height: 50px;
  601. }
  602. }
  603. }
  604. }
  605. }
  606. .txsj {
  607. text-align: center;
  608. margin-bottom: 20px;
  609. }
  610. .redpoint {
  611. display: inline-block;
  612. height: 26px;
  613. width: 26px;
  614. line-height: 26px;
  615. text-align: center;
  616. font-size: 16px;
  617. border-radius: 20px;
  618. color: #fff;
  619. background: #f56c6c;
  620. position: absolute;
  621. top: -6px;
  622. right: -8px;
  623. border: 1px solid #fff;
  624. }
  625. .newOrdersAdvice {
  626. position: relative;
  627. }
  628. </style>