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

NavIgation.vue 17KB

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