|
@@ -64,7 +64,23 @@
|
64
|
64
|
</ul>
|
65
|
65
|
</div>
|
66
|
66
|
</div>
|
67
|
|
-
|
|
67
|
+
|
|
68
|
+ <div class="cell clearfix">
|
|
69
|
+ <label class="title"> <span class="name">给药途径</span> : </label>
|
|
70
|
+ <div class="time">
|
|
71
|
+ <ul class>
|
|
72
|
+ <li
|
|
73
|
+ :class="item.id == delivery_way ? 'active' : ''"
|
|
74
|
+ @click="selectDeliveryWay(item.id)"
|
|
75
|
+ v-for="item in deliveryWay"
|
|
76
|
+ :key="item.id"
|
|
77
|
+ >
|
|
78
|
+ {{ item.name }}
|
|
79
|
+ </li>
|
|
80
|
+ </ul>
|
|
81
|
+ </div>
|
|
82
|
+ </div>
|
|
83
|
+
|
68
|
84
|
<el-table :data="scheduleMap" border :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
|
69
|
85
|
@selection-change="handleSelectionChange"
|
70
|
86
|
:row-class-name="tableRowClassName"
|
|
@@ -353,7 +369,7 @@ export default {
|
353
|
369
|
schedul_type: 0,
|
354
|
370
|
partition_type: 0,
|
355
|
371
|
schedul_time: "",
|
356
|
|
- keywords: ""
|
|
372
|
+ keywords: "",
|
357
|
373
|
},
|
358
|
374
|
selecting_schs: [],
|
359
|
375
|
partitionArr: [],
|
|
@@ -361,6 +377,8 @@ export default {
|
361
|
377
|
scheduleMap:[],
|
362
|
378
|
show:true,
|
363
|
379
|
showOne:false,
|
|
380
|
+ deliveryWay:[],
|
|
381
|
+ delivery_way:0,
|
364
|
382
|
};
|
365
|
383
|
},
|
366
|
384
|
created() {
|
|
@@ -417,6 +435,12 @@ export default {
|
417
|
435
|
this.listQuery.partition_type = partitionType;
|
418
|
436
|
this.requestSchedualDoctors();
|
419
|
437
|
},
|
|
438
|
+
|
|
439
|
+ selectDeliveryWay(val){
|
|
440
|
+ this.delivery_way = val
|
|
441
|
+ this.requestSchedualDoctors()
|
|
442
|
+ },
|
|
443
|
+
|
420
|
444
|
|
421
|
445
|
changeTime() {
|
422
|
446
|
this.listQuery.schedul_time = this.time;
|
|
@@ -430,16 +454,31 @@ export default {
|
430
|
454
|
} else {
|
431
|
455
|
this.partitionArr = response.data.data.zone;
|
432
|
456
|
this.partitionArr.unshift({ id: 0, name: "全部" });
|
|
457
|
+ var dics = response.data.data.dics
|
|
458
|
+ var obj = {id:0,name:"全部"}
|
|
459
|
+ this.deliveryWay.push(obj)
|
|
460
|
+ this.deliveryWay.push(...dics)
|
433
|
461
|
}
|
434
|
462
|
});
|
435
|
463
|
},
|
436
|
464
|
requestSchedualDoctors (time) {
|
|
465
|
+
|
|
466
|
+ var name = ""
|
|
467
|
+ for(let i=0;i<this.deliveryWay.length;i++){
|
|
468
|
+ if(this.delivery_way == this.deliveryWay[i].id){
|
|
469
|
+ name = this.deliveryWay[i].name
|
|
470
|
+ }
|
|
471
|
+ }
|
|
472
|
+ if(name == '全部'){
|
|
473
|
+ name = ""
|
|
474
|
+ }
|
|
475
|
+
|
437
|
476
|
let newTime = moment(time).format('YYYY-MM-DD')
|
438
|
477
|
getSchedualDoctors({
|
439
|
478
|
date: newTime,
|
440
|
479
|
patient_type: 0,
|
441
|
|
- advice_type: 2
|
442
|
|
- }).then(rs => {
|
|
480
|
+ advice_type: 2,
|
|
481
|
+ delivery_way:name}).then(rs => {
|
443
|
482
|
var resp = rs.data
|
444
|
483
|
if (resp.state == 1) {
|
445
|
484
|
this.admin_users = resp.data.adminUser
|
|
@@ -609,7 +648,16 @@ export default {
|
609
|
648
|
}
|
610
|
649
|
// console.log("sch_ids",sch_ids)
|
611
|
650
|
this.$store.dispatch("SetAdviceIDs", sch_ids);
|
612
|
|
- this.$router.push({ path: "/dialysis/doctorAdvicePrint",query:{time: new Date(this.time).getTime()} });
|
|
651
|
+ var name = ""
|
|
652
|
+ for(let i=0;i<this.deliveryWay.length;i++){
|
|
653
|
+ if(this.delivery_way == this.deliveryWay[i].id){
|
|
654
|
+ name = this.deliveryWay[i].name
|
|
655
|
+ }
|
|
656
|
+ }
|
|
657
|
+ if(name == '全部'){
|
|
658
|
+ name = ""
|
|
659
|
+ }
|
|
660
|
+ this.$router.push({ path: "/dialysis/doctorAdvicePrint",query:{time: new Date(this.time).getTime(),delivery_way:name} });
|
613
|
661
|
|
614
|
662
|
},
|
615
|
663
|
batchPrintActionOne: function() {
|