XMLWAN 4 gadus atpakaļ
vecāks
revīzija
0dc5c075df
1 mainītis faili ar 16 papildinājumiem un 66 dzēšanām
  1. 16 66
      src/pages/doctorAdvice/components/DoctorManagement.vue

+ 16 - 66
src/pages/doctorAdvice/components/DoctorManagement.vue Parādīt failu

@@ -48,6 +48,7 @@
48 48
                     }}{{ it.prescribing_number_unit }} {{ it.single_dose
49 49
                     }}{{ it.single_dose_unit }} {{ it.delivery_way }}
50 50
                     {{ it.execution_frequency }}</p>
51
+
51 52
                 <div v-for="(i, index) in childList" :key="index">
52 53
                  <p v-if="i.parent_id == it.id">▲
53 54
                    {{ i.advice_name }} {{ i.advice_desc
@@ -58,6 +59,11 @@
58 59
                     {{ i.execution_frequency }}
59 60
                  </p>
60 61
                 </div>
62
+                <div class="doctorBox">
63
+                  <p>开嘱医生:{{ it.user_name }}</p>
64
+                  <p>执行护士:{{ getDoctor(it.execution_staff) }}</p>
65
+                  <p>核对护士:{{ getDoctor(it.checker) }}</p>
66
+                </div>
61 67
               </div>
62 68
             </div>
63 69
 
@@ -81,13 +87,18 @@
81 87
                     {{ i.execution_frequency }}</p>
82 88
                 </div>
83 89
               </div>
90
+               <div class="doctorBox">
91
+                  <p>开嘱医生:{{ it.user_name }}</p>
92
+                  <p>执行护士:{{ getDoctor(it.execution_staff) }}</p>
93
+                  <p>核对护士:{{ getDoctor(it.checker) }}</p>
94
+                </div>
84 95
             </div>
85 96
          </div>
86
-             <div class="doctorBox">
87
-                <p>开嘱医生:{{ item.child[0].user_name }}</p>
88
-                <p>执行护士:{{ getDoctor(item.child[0].execution_staff) }}</p>
89
-                <p>核对护士:{{ getDoctor(item.child[0].checker) }}</p>
90
-              </div>
97
+<!--             <div class="doctorBox">-->
98
+<!--                <p>开嘱医生:{{ item.child[0].user_name }}</p>-->
99
+<!--                <p>执行护士:{{ getDoctor(item.child[0].execution_staff) }}</p>-->
100
+<!--                <p>核对护士:{{ getDoctor(item.child[0].checker) }}</p>-->
101
+<!--              </div>-->
91 102
             <div class="all" @click="toDoctorAdviceDetail(item.groupno)">全部</div>
92 103
           </div>
93 104
         </van-list>
@@ -460,67 +471,6 @@ export default {
460 471
           this.total = total;
461 472
           console.log("total", total);
462 473
           this.loading = false;
463
-
464
-          // let objarr = []
465
-          // for (let i = 0; i < advice.length; i++) {
466
-          //   if (advice[i].parent_id != 0) {
467
-          //     objarr.push(advice[i])
468
-          //   }
469
-          // }
470
-          // this.childList = objarr
471
-          // var total = response.data.data.total
472
-          // this.total = total
473
-          //
474
-          // let dataInfo = {}
475
-          // advice.forEach((item, index) => {
476
-          //   let { groupno } = item
477
-          //   if (!dataInfo[groupno]) {
478
-          //     dataInfo[groupno] = {
479
-          //       groupno,
480
-          //       child: []
481
-          //     }
482
-          //   }
483
-          //   dataInfo[groupno].child.push(item)
484
-          // })
485
-          // let list = Object.values(dataInfo) // list 转换成功的数据
486
-          // console.log('list', list)
487
-          // let arr = []
488
-          //
489
-          // list.map(item => {
490
-          //   // console.log(item.child);
491
-          //   let arr2 = []
492
-          //   if (item.child.length > 1) {
493
-          //     item.child.map((it, index) => {
494
-          //       // console.log(it);
495
-          //       if (arr.indexOf(it.advice_date) == -1) {
496
-          //         arr.push(it.advice_date)
497
-          //       } else {
498
-          //         delete it['advice_date']
499
-          //       }
500
-          //     })
501
-          //     for (var i = item.child.length - 1; i != -1; i--) {
502
-          //       let obj = {}
503
-          //       obj.checker = item.child[i].checker
504
-          //       obj.execution_staff = item.child[i].execution_staff
505
-          //       obj.user_name = item.child[i].user_name
506
-          //       if (
507
-          //         JSON.stringify(arr2).includes(JSON.stringify(obj)) == false
508
-          //       ) {
509
-          //         arr2.push(obj)
510
-          //       } else {
511
-          //         delete item.child[i]['checker']
512
-          //         delete item.child[i]['execution_staff']
513
-          //         delete item.child[i]['user_name']
514
-          //       }
515
-          //     }
516
-          //   }
517
-          // })
518
-          //
519
-          // var doctor = response.data.data.doctor
520
-          // this.doctor = doctor
521
-          // this.doctorAdvice = list.reverse()
522
-          // this.loading = false
523
-          // this.finished = true
524 474
         }
525 475
       });
526 476
     },