|
@@ -32,11 +32,11 @@
|
32
|
32
|
|
33
|
33
|
<div class="adviceOne" v-for="(item,index) in this.doctorAdvice" :key="index" v-show="showOne">
|
34
|
34
|
<div class="adviceTitle">
|
35
|
|
- <p>{{getTime(item.child[0].start_time)}}</p>
|
36
|
|
- <van-icon class="ellipsis" name="ellipsis" @click="Delete(item.groupno, index, item.child[0].execution_staff)" />
|
|
35
|
+ <p>{{getTime(item.start_time)}}</p>
|
|
36
|
+ <van-icon class="ellipsis" name="ellipsis" @click="Delete(item.start_time, index, item.child[0].execution_staff)" />
|
37
|
37
|
</div>
|
38
|
38
|
|
39
|
|
- <div v-for="(it,i) in item.child" :key="i">
|
|
39
|
+ <div v-for="(it,i) in item.child.slice(0,3)" :key="i">
|
40
|
40
|
<div class="statOrder" v-if="it.advice_type == 1 && it.parent_id == 0" >
|
41
|
41
|
<div class="statOrderTitle">
|
42
|
42
|
<span v-if="i<1">长期医嘱</span>
|
|
@@ -94,134 +94,11 @@
|
94
|
94
|
</div>
|
95
|
95
|
</div>
|
96
|
96
|
</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>-->
|
102
|
|
- <div class="all" @click="toDoctorAdviceDetail(item.groupno)">全部</div>
|
|
97
|
+ <div class="all" @click="toDoctorAdviceDetail(item.start_time)">全部</div>
|
103
|
98
|
</div>
|
104
|
99
|
</van-list>
|
105
|
100
|
</div>
|
106
|
101
|
|
107
|
|
-<!-- <div class="adviceBox" v-show="showOne">-->
|
108
|
|
-<!-- <van-list-->
|
109
|
|
-<!-- v-model="loading"-->
|
110
|
|
-<!-- :finished="finished"-->
|
111
|
|
-<!-- finished-text="没有更多了"-->
|
112
|
|
-<!-- @load="onLoad"-->
|
113
|
|
-<!-- >-->
|
114
|
|
-<!-- <div-->
|
115
|
|
-<!-- class="adviceOne"-->
|
116
|
|
-<!-- v-for="(item, index) in doctorAdvice"-->
|
117
|
|
-<!-- :key="index"-->
|
118
|
|
-<!-- >-->
|
119
|
|
-<!-- <div v-for="(it, i) in item.child" :key="i">-->
|
120
|
|
-<!-- <div class="adviceTitle" v-if="it.advice_date">-->
|
121
|
|
-<!-- <p>{{ it.advice_date ? getTime(it.advice_date) : "" }}</p>-->
|
122
|
|
-<!-- <van-icon-->
|
123
|
|
-<!-- class="ellipsis"-->
|
124
|
|
-<!-- name="ellipsis"-->
|
125
|
|
-<!-- @click="Delete(item.groupno, index, it.execution_staff)"-->
|
126
|
|
-<!-- />-->
|
127
|
|
-<!-- </div>-->
|
128
|
|
-
|
129
|
|
-<!-- <div-->
|
130
|
|
-<!-- class="statOrder"-->
|
131
|
|
-<!-- v-if="it.advice_type == 1 && it.parent_id == 0"-->
|
132
|
|
-<!-- >-->
|
133
|
|
-<!-- <div class="statOrderTitle" v-if="i < 3">-->
|
134
|
|
-<!-- <span>长期医嘱</span>-->
|
135
|
|
-<!-- <span style="margin-left:1rem">-->
|
136
|
|
-<!-- {{ getTimes(it.start_time) }}-->
|
137
|
|
-<!-- </span>-->
|
138
|
|
-<!-- </div>-->
|
139
|
|
-<!-- <div class="orderContent" v-if="i < 3">-->
|
140
|
|
-<!-- <p v-if="it.parent_id === 0">-->
|
141
|
|
-<!-- {{ it.advice_name }} {{ it.advice_desc-->
|
142
|
|
-<!-- }}{{ it.drug_spec_unit }} {{ it.prescribing_number-->
|
143
|
|
-<!-- }}{{ it.prescribing_number_unit }} {{ it.single_dose-->
|
144
|
|
-<!-- }}{{ it.single_dose_unit }} {{ it.delivery_way }}-->
|
145
|
|
-<!-- {{ it.execution_frequency }}-->
|
146
|
|
-<!-- </p>-->
|
147
|
|
-<!-- <div v-for="(i, index) in childList" :key="index">-->
|
148
|
|
-<!-- <p v-if="i.parent_id == it.id">-->
|
149
|
|
-<!-- ▲ {{ i.advice_name }} {{ i.advice_desc-->
|
150
|
|
-<!-- }}{{ i.drug_spec_unit }} {{ i.prescribing_number-->
|
151
|
|
-<!-- }}{{ i.prescribing_number_unit }} {{ i.single_dose-->
|
152
|
|
-<!-- }}{{ i.single_dose_unit }}-->
|
153
|
|
-<!-- {{ i.delivery_way }}-->
|
154
|
|
-<!-- {{ i.execution_frequency }}-->
|
155
|
|
-<!-- </p>-->
|
156
|
|
-<!-- </div>-->
|
157
|
|
-<!-- </div>-->
|
158
|
|
-<!-- <div-->
|
159
|
|
-<!-- class="doctorBox"-->
|
160
|
|
-<!-- v-if="-->
|
161
|
|
-<!-- it.user_name ||-->
|
162
|
|
-<!-- it.execution_staff ||-->
|
163
|
|
-<!-- (it.checker && i == item.child.length)-->
|
164
|
|
-<!-- "-->
|
165
|
|
-<!-- >-->
|
166
|
|
-<!-- <p>开嘱医生:{{ it.user_name }}</p>-->
|
167
|
|
-<!-- <p>执行护士:{{ getDoctor(it.execution_staff) }}</p>-->
|
168
|
|
-<!-- <p>核对护士:{{ getDoctor(it.checker) }}</p>-->
|
169
|
|
-<!-- </div>-->
|
170
|
|
-<!-- </div>-->
|
171
|
|
-
|
172
|
|
-<!-- <div-->
|
173
|
|
-<!-- class="statOrder"-->
|
174
|
|
-<!-- v-if="it.advice_type == 3 && it.parent_id == 0"-->
|
175
|
|
-<!-- >-->
|
176
|
|
-<!-- <div class="longOrderTitle" v-if="i < 3">-->
|
177
|
|
-<!-- <span>临时医嘱</span>-->
|
178
|
|
-<!-- <span style="margin-left:1rem">-->
|
179
|
|
-<!-- {{ getTimes(item.child[0].start_time) }}-->
|
180
|
|
-<!-- </span>-->
|
181
|
|
-<!-- </div>-->
|
182
|
|
-<!-- <div class="orderContent" v-if="i < 3">-->
|
183
|
|
-<!-- <p>-->
|
184
|
|
-<!-- {{ it.advice_name }} {{ it.advice_desc-->
|
185
|
|
-<!-- }}{{ it.drug_spec_unit }} {{ it.prescribing_number-->
|
186
|
|
-<!-- }}{{ it.prescribing_number_unit }} {{ it.single_dose-->
|
187
|
|
-<!-- }}{{ it.single_dose_unit }} {{ it.delivery_way }}-->
|
188
|
|
-<!-- {{ it.execution_frequency }}-->
|
189
|
|
-<!-- </p>-->
|
190
|
|
-<!-- <div v-for="(i, index) in childList" :key="index">-->
|
191
|
|
-<!-- <p v-if="i.parent_id == it.id">-->
|
192
|
|
-<!-- ▲ {{ i.advice_name }} {{ i.advice_desc-->
|
193
|
|
-<!-- }}{{ i.drug_spec_unit }} {{ i.prescribing_number-->
|
194
|
|
-<!-- }}{{ i.prescribing_number_unit }} {{ i.single_dose-->
|
195
|
|
-<!-- }}{{ i.single_dose_unit }}-->
|
196
|
|
-<!-- {{ i.delivery_way }}-->
|
197
|
|
-<!-- {{ i.execution_frequency }}-->
|
198
|
|
-<!-- </p>-->
|
199
|
|
-<!-- </div>-->
|
200
|
|
-<!-- </div>-->
|
201
|
|
-<!-- <div-->
|
202
|
|
-<!-- class="doctorBox"-->
|
203
|
|
-<!-- v-if="-->
|
204
|
|
-<!-- it.user_name ||-->
|
205
|
|
-<!-- it.execution_staff ||-->
|
206
|
|
-<!-- (it.checker && i == item.child.length)-->
|
207
|
|
-<!-- "-->
|
208
|
|
-<!-- >-->
|
209
|
|
-<!-- <p>开嘱医生:{{ it.user_name }}</p>-->
|
210
|
|
-<!-- <p>执行护士:{{ getDoctor(it.execution_staff) }}</p>-->
|
211
|
|
-<!-- <p>核对护士:{{ getDoctor(it.checker) }}</p>-->
|
212
|
|
-<!-- </div>-->
|
213
|
|
-<!-- </div>-->
|
214
|
|
-<!-- </div>-->
|
215
|
|
-<!-- <div-->
|
216
|
|
-<!-- class="all"-->
|
217
|
|
-<!-- @click="toDoctorAdviceDetail(item.child[0].groupno)"-->
|
218
|
|
-<!-- >-->
|
219
|
|
-<!-- 全部-->
|
220
|
|
-<!-- </div>-->
|
221
|
|
-<!-- </div>-->
|
222
|
|
-<!-- </van-list>-->
|
223
|
|
-<!-- </div>-->
|
224
|
|
-
|
225
|
102
|
<div class="noimgBox" v-show="showTwo">
|
226
|
103
|
<img src="../../../assets/images/none.png" alt />
|
227
|
104
|
</div>
|
|
@@ -345,7 +222,8 @@ export default {
|
345
|
222
|
index: 0,
|
346
|
223
|
staff: 0,
|
347
|
224
|
childId: 0,
|
348
|
|
- state: 0
|
|
225
|
+ state: 0,
|
|
226
|
+ list: []
|
349
|
227
|
};
|
350
|
228
|
},
|
351
|
229
|
methods: {
|
|
@@ -353,7 +231,7 @@ export default {
|
353
|
231
|
this.typeShow = false;
|
354
|
232
|
},
|
355
|
233
|
onConfirm(value) {
|
356
|
|
- this.page = 1;
|
|
234
|
+ this.form.page = 1;
|
357
|
235
|
this.type = value;
|
358
|
236
|
this.typeShow = false;
|
359
|
237
|
this.doctorAdvice = [];
|
|
@@ -367,7 +245,7 @@ export default {
|
367
|
245
|
);
|
368
|
246
|
},
|
369
|
247
|
getstartTime(value) {
|
370
|
|
- this.page = 1;
|
|
248
|
+ this.form.page = 1;
|
371
|
249
|
let year = value.getFullYear();
|
372
|
250
|
let month = value.getMonth() + 1;
|
373
|
251
|
let day = value.getDate();
|
|
@@ -391,7 +269,7 @@ export default {
|
391
|
269
|
this.startShow = false;
|
392
|
270
|
},
|
393
|
271
|
getstartTime2(value) {
|
394
|
|
- this.page = 1;
|
|
272
|
+ this.form.page = 1;
|
395
|
273
|
let year = value.getFullYear();
|
396
|
274
|
let month = value.getMonth() + 1;
|
397
|
275
|
let day = value.getDate();
|
|
@@ -435,22 +313,27 @@ export default {
|
435
|
313
|
).then(response => {
|
436
|
314
|
if (response.data.state === 1) {
|
437
|
315
|
var advice = response.data.data.advice;
|
438
|
|
- // console.log("advice", advice);
|
|
316
|
+ console.log("advice", advice);
|
439
|
317
|
var one = response.data.data.one;
|
|
318
|
+ console.log("one", one);
|
|
319
|
+ var total = response.data.data.total;
|
|
320
|
+ this.total = total;
|
|
321
|
+ console.log("total", total);
|
440
|
322
|
let dataInfo = {};
|
441
|
323
|
one.forEach((item, index) => {
|
442
|
|
- let { groupno } = item;
|
443
|
|
- if (!dataInfo[groupno]) {
|
444
|
|
- dataInfo[groupno] = {
|
445
|
|
- groupno,
|
|
324
|
+ let { start_time } = item;
|
|
325
|
+ if (!dataInfo[start_time]) {
|
|
326
|
+ dataInfo[start_time] = {
|
|
327
|
+ start_time,
|
446
|
328
|
child: []
|
447
|
329
|
};
|
448
|
330
|
}
|
449
|
331
|
});
|
450
|
332
|
let list = Object.values(dataInfo);
|
|
333
|
+ console.log("list", list);
|
451
|
334
|
list.map(item => {
|
452
|
335
|
for (let i = 0; i < advice.length; i++) {
|
453
|
|
- if (item.groupno === advice[i].groupno) {
|
|
336
|
+ if (item.start_time === advice[i].start_time) {
|
454
|
337
|
item.child.push(advice[i]);
|
455
|
338
|
}
|
456
|
339
|
}
|
|
@@ -464,10 +347,9 @@ export default {
|
464
|
347
|
this.childList = objarr;
|
465
|
348
|
let arr = this.doctorAdvice;
|
466
|
349
|
arr.push(...list.reverse());
|
|
350
|
+ console.log("arr", arr);
|
467
|
351
|
this.doctorAdvice = arr;
|
468
|
|
- var total = response.data.data.total;
|
469
|
|
- this.total = total;
|
470
|
|
- // console.log("total", total);
|
|
352
|
+
|
471
|
353
|
this.loading = false;
|
472
|
354
|
}
|
473
|
355
|
});
|
|
@@ -498,7 +380,7 @@ export default {
|
498
|
380
|
onLoad() {
|
499
|
381
|
setTimeout(() => {
|
500
|
382
|
this.form.page++;
|
501
|
|
- // console.log("page", this.form.page);
|
|
383
|
+ console.log("page", this.form.page);
|
502
|
384
|
if (this.form.page <= Math.ceil(this.total / 5)) {
|
503
|
385
|
this.getDoctorAdvices(
|
504
|
386
|
this.patient_id,
|
|
@@ -514,6 +396,7 @@ export default {
|
514
|
396
|
}
|
515
|
397
|
}, 1000);
|
516
|
398
|
},
|
|
399
|
+
|
517
|
400
|
toDoctorAdviceDetail(id) {
|
518
|
401
|
var patientid = this.$route.query.patientid;
|
519
|
402
|
this.$router.push(
|