XMLWAN 4 jaren geleden
bovenliggende
commit
6f1708bcb2
2 gewijzigde bestanden met toevoegingen van 76 en 27 verwijderingen
  1. 23 11
      src/pages/allDoctorAdvice/index.vue
  2. 53 16
      src/pages/doctorAdvice/components/DoctorManagement.vue

+ 23 - 11
src/pages/allDoctorAdvice/index.vue Bestand weergeven

@@ -7,17 +7,21 @@
7 7
       </div>
8 8
     </van-sticky>
9 9
     <div class="orderBox">
10
-      <div class="orderBoxOne" v-for="(item, index) in doctorAdvicedetail" :key="index">
10
+      <div
11
+        class="orderBoxOne"
12
+        v-for="(item, index) in doctorAdvicedetail"
13
+        :key="index"
14
+      >
11 15
         <div v-for="(it, i) in item.child" :key="i">
12
-          <p class="time">{{ it.advice_date ? getTime(it.advice_date) : "" }}</p>
16
+          <p class="time">
17
+            {{ it.advice_date ? getTime(it.advice_date) : "" }}
18
+          </p>
13 19
           <div class="statOrder">
14 20
             <div v-if="it.advice_type == 1 && it.parent_id == 0">
15 21
               <div class="statOrderTitle">
16 22
                 <span>长期医嘱</span>
17 23
                 <span style="margin-left:1rem">
18
-                  {{
19
-                  getTimes(it.start_time)
20
-                  }}
24
+                  {{ getTimes(it.start_time) }}
21 25
                 </span>
22 26
               </div>
23 27
               <div class="orderContent">
@@ -39,20 +43,24 @@
39 43
                   </p>
40 44
                 </div>
41 45
               </div>
42
-              <div class="doctorBox" v-if="it.advice_doctor || it.execution_staff || it.checker">
46
+              <div
47
+                class="doctorBox"
48
+                v-if="it.advice_doctor || it.execution_staff || it.checker"
49
+              >
43 50
                 <p>开嘱医生:{{ getDoctor(it.advice_doctor) }}</p>
44 51
                 <p>执行护士:{{ getDoctor(item.execution_staff) }}</p>
45 52
                 <p>核对护士:{{ getDoctor(item.checker) }}</p>
46 53
               </div>
47 54
             </div>
48 55
 
49
-            <div class="statOrder" v-if="it.advice_type == 3 && it.parent_id == 0">
56
+            <div
57
+              class="statOrder"
58
+              v-if="it.advice_type == 3 && it.parent_id == 0"
59
+            >
50 60
               <div class="longOrderTitle">
51 61
                 <span>临时医嘱</span>
52 62
                 <span style="margin-left:1rem">
53
-                  {{
54
-                  getTimes(item.child[0].start_time)
55
-                  }}
63
+                  {{ getTimes(item.child[0].start_time) }}
56 64
                 </span>
57 65
               </div>
58 66
               <div class="orderContent">
@@ -75,7 +83,10 @@
75 83
                   </p>
76 84
                 </div>
77 85
               </div>
78
-              <div class="doctorBox" v-if="it.advice_doctor || it.execution_staff || it.checker">
86
+              <div
87
+                class="doctorBox"
88
+                v-if="it.advice_doctor || it.execution_staff || it.checker"
89
+              >
79 90
                 <p>开嘱医生:{{ getDoctor(it.advice_doctor) }}</p>
80 91
                 <p>执行护士:{{ getDoctor(it.execution_staff) }}</p>
81 92
                 <p>核对护士:{{ getDoctor(it.checker) }}</p>
@@ -114,6 +125,7 @@ export default {
114 125
       GetDoctorAdviceDetail(id).then(response => {
115 126
         if (response.data.state === 1) {
116 127
           var doctorAdvicedetail = response.data.data.doctorAdvicedetail;
128
+          console.log("doctorAdvicedetail", doctorAdvicedetail);
117 129
           this.patient_name = doctorAdvicedetail[0].name;
118 130
           let objarr = [];
119 131
           for (let i = 0; i < doctorAdvicedetail.length; i++) {

+ 53 - 16
src/pages/doctorAdvice/components/DoctorManagement.vue Bestand weergeven

@@ -23,8 +23,17 @@
23 23
       </div>
24 24
 
25 25
       <div class="adviceBox" v-show="showOne">
26
-        <van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
27
-          <div class="adviceOne" v-for="(item, index) in doctorAdvice" :key="index">
26
+        <van-list
27
+          v-model="loading"
28
+          :finished="finished"
29
+          finished-text="没有更多了"
30
+          @load="onLoad"
31
+        >
32
+          <div
33
+            class="adviceOne"
34
+            v-for="(item, index) in doctorAdvice"
35
+            :key="index"
36
+          >
28 37
             <div v-for="(it, i) in item.child" :key="i">
29 38
               <div class="adviceTitle" v-if="it.advice_date">
30 39
                 <p>{{ it.advice_date ? getTime(it.advice_date) : "" }}</p>
@@ -35,13 +44,14 @@
35 44
                 />
36 45
               </div>
37 46
 
38
-              <div class="statOrder" v-if="it.advice_type == 1 && it.parent_id == 0">
47
+              <div
48
+                class="statOrder"
49
+                v-if="it.advice_type == 1 && it.parent_id == 0"
50
+              >
39 51
                 <div class="statOrderTitle" v-if="i < 3">
40 52
                   <span>长期医嘱</span>
41 53
                   <span style="margin-left:1rem">
42
-                    {{
43
-                    getTimes(it.start_time)
44
-                    }}
54
+                    {{ getTimes(it.start_time) }}
45 55
                   </span>
46 56
                 </div>
47 57
                 <div class="orderContent" v-if="i < 3">
@@ -65,7 +75,11 @@
65 75
                 </div>
66 76
                 <div
67 77
                   class="doctorBox"
68
-                  v-if="it.user_name || it.execution_staff || it.checker && i == item.child.length"
78
+                  v-if="
79
+                    it.user_name ||
80
+                      it.execution_staff ||
81
+                      (it.checker && i == item.child.length)
82
+                  "
69 83
                 >
70 84
                   <p>开嘱医生:{{ it.user_name }}</p>
71 85
                   <p>执行护士:{{ getDoctor(it.execution_staff) }}</p>
@@ -73,13 +87,14 @@
73 87
                 </div>
74 88
               </div>
75 89
 
76
-              <div class="statOrder" v-if="it.advice_type == 3 && it.parent_id == 0">
90
+              <div
91
+                class="statOrder"
92
+                v-if="it.advice_type == 3 && it.parent_id == 0"
93
+              >
77 94
                 <div class="longOrderTitle" v-if="i < 3">
78 95
                   <span>临时医嘱</span>
79 96
                   <span style="margin-left:1rem">
80
-                    {{
81
-                    getTimes(item.child[0].start_time)
82
-                    }}
97
+                    {{ getTimes(item.child[0].start_time) }}
83 98
                   </span>
84 99
                 </div>
85 100
                 <div class="orderContent" v-if="i < 3">
@@ -104,7 +119,11 @@
104 119
                 </div>
105 120
                 <div
106 121
                   class="doctorBox"
107
-                  v-if="it.user_name || it.execution_staff || it.checker && i == item.child.length"
122
+                  v-if="
123
+                    it.user_name ||
124
+                      it.execution_staff ||
125
+                      (it.checker && i == item.child.length)
126
+                  "
108 127
                 >
109 128
                   <p>开嘱医生:{{ it.user_name }}</p>
110 129
                   <p>执行护士:{{ getDoctor(it.execution_staff) }}</p>
@@ -112,7 +131,12 @@
112 131
                 </div>
113 132
               </div>
114 133
             </div>
115
-            <div class="all" @click="toDoctorAdviceDetail(item.child[0].groupno)">全部</div>
134
+            <div
135
+              class="all"
136
+              @click="toDoctorAdviceDetail(item.child[0].groupno)"
137
+            >
138
+              全部
139
+            </div>
116 140
           </div>
117 141
         </van-list>
118 142
       </div>
@@ -129,11 +153,24 @@
129 153
 
130 154
     <!-- 弹出层 -->
131 155
     <div>
132
-      <van-popup v-model="typeShow" position="bottom" :style="{ height: '40%' }">
133
-        <van-picker show-toolbar :columns="columns" @cancel="onCancel" @confirm="onConfirm" />
156
+      <van-popup
157
+        v-model="typeShow"
158
+        position="bottom"
159
+        :style="{ height: '40%' }"
160
+      >
161
+        <van-picker
162
+          show-toolbar
163
+          :columns="columns"
164
+          @cancel="onCancel"
165
+          @confirm="onConfirm"
166
+        />
134 167
       </van-popup>
135 168
 
136
-      <van-popup v-model="startShow" position="bottom" :style="{ height: '40%' }">
169
+      <van-popup
170
+        v-model="startShow"
171
+        position="bottom"
172
+        :style="{ height: '40%' }"
173
+      >
137 174
         <van-datetime-picker
138 175
           v-model="currentDate"
139 176
           type="date"