|
@@ -2221,7 +2221,7 @@
|
2221
|
2221
|
|
2222
|
2222
|
|
2223
|
2223
|
<tr
|
2224
|
|
- v-if="org_id ==10206 || org_id == 10644 || org_id == 0 || org_id ==10489"
|
|
2224
|
+ v-if="org_id ==10206 || org_id ==10489"
|
2225
|
2225
|
v-for="(advice, advice_index) in projectsOne"
|
2226
|
2226
|
:key="advice_index"
|
2227
|
2227
|
>
|
|
@@ -2441,7 +2441,7 @@
|
2441
|
2441
|
|
2442
|
2442
|
|
2443
|
2443
|
<tr
|
2444
|
|
- v-if="org_id == 0 || org_id ==10206 || org_id ==10633 || org_id ==10644 || org_id == 10489"
|
|
2444
|
+ v-if="org_id == 0 || org_id ==10206 || org_id ==10633 || org_id == 10489"
|
2445
|
2445
|
v-for="(advice, advice_index) in projectsOne"
|
2446
|
2446
|
:key="advice_index"
|
2447
|
2447
|
>
|
|
@@ -5365,7 +5365,7 @@ export default {
|
5365
|
5365
|
|
5366
|
5366
|
console.log("haaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",this.doctor_advices)
|
5367
|
5367
|
|
5368
|
|
- if(this.org_id ==10206 || this.org_id ==10644 || this.org_id ==10633 || this.org_id == 0 || this.org_id == 10489){
|
|
5368
|
+ if(this.org_id ==10206 || this.org_id ==10644 || this.org_id ==10633 || this.org_id == 10489){
|
5369
|
5369
|
let projectsOne = [];
|
5370
|
5370
|
response.data.data.projects.map((item) => {
|
5371
|
5371
|
projectsOne.push(item);
|
|
@@ -5403,7 +5403,7 @@ export default {
|
5403
|
5403
|
}
|
5404
|
5404
|
|
5405
|
5405
|
//HIS客户显示临时医嘱的地方
|
5406
|
|
- if(this.org_id == 10510 || this.org_id ==10567 || this.org_id == 10489 || this.org_id == 0 || this.org_id == 10644){
|
|
5406
|
+ if(this.org_id == 10510 || this.org_id ==10567 || this.org_id == 10489 || this.org_id ==10644 || this.org_id == 0){
|
5407
|
5407
|
if(response.data.data.doctorAdevieInfo!=null && response.data.data.doctorAdevieInfo.length>0){
|
5408
|
5408
|
|
5409
|
5409
|
for(let i=0;i<response.data.data.doctorAdevieInfo.length;i++){
|
|
@@ -5413,7 +5413,7 @@ export default {
|
5413
|
5413
|
}
|
5414
|
5414
|
}
|
5415
|
5415
|
|
5416
|
|
- console.log("医护哦我我我哦我我哦",this.doctor_advices)
|
|
5416
|
+
|
5417
|
5417
|
|
5418
|
5418
|
let projects = [];
|
5419
|
5419
|
response.data.data.projects.map((item) => {
|
|
@@ -5424,11 +5424,13 @@ export default {
|
5424
|
5424
|
this.projects = projects;
|
5425
|
5425
|
|
5426
|
5426
|
|
5427
|
|
- console.log("this.projects", this.projects);
|
|
5427
|
+ // console.log("this.projects=========================================", this.projects);
|
5428
|
5428
|
|
5429
|
5429
|
|
5430
|
5430
|
|
5431
|
|
- if(this.org_id!=10510 && this.org_id!=0&&this.org_id!=10206 && this.org_id!=10478 && this.org_id!=0 && this.org_id!=10489 && this.org_id!=10644){
|
|
5431
|
+ if(this.org_id!=10510 &&this.org_id!=10206 && this.org_id!=10478 && this.org_id!=10489){
|
|
5432
|
+ console.log("列表===================================",this.projects)
|
|
5433
|
+ var newHisArr = []
|
5432
|
5434
|
if(this.projects!=null && this.projects.length >0){
|
5433
|
5435
|
for(let i=0;i<this.projects.length;i++){
|
5434
|
5436
|
if(this.projects[i].type== 2){
|
|
@@ -5437,7 +5439,7 @@ export default {
|
5437
|
5439
|
this.projects[i].project_team_id = 0
|
5438
|
5440
|
|
5439
|
5441
|
if(this.projects[i].team!= "undefined" && this.projects[i].team.id >0){
|
5440
|
|
- console.log("this.projects[i].project.team", this.projects[i].team)
|
|
5442
|
+
|
5441
|
5443
|
this.projects[i].project_team = this.projects[i].team.project_team
|
5442
|
5444
|
this.projects[i].project_team_id = this.projects[i].team.id
|
5443
|
5445
|
this.projects[i].start_time = this.projects[i].start_time
|
|
@@ -5448,8 +5450,8 @@ export default {
|
5448
|
5450
|
this.projects[i].advice_name = this.projects[i].team.project_team
|
5449
|
5451
|
this.projects[i].advice_doctor = this.projects[i].doctor
|
5450
|
5452
|
|
5451
|
|
-
|
5452
|
|
- this.doctor_advices.push(this.projects[i])
|
|
5453
|
+
|
|
5454
|
+ newHisArr.push(this.projects[i])
|
5453
|
5455
|
// this.doctor_advices_2.push(this.project[i])
|
5454
|
5456
|
}else{
|
5455
|
5457
|
this.projects[i].project_team = this.projects[i].project.project_name
|
|
@@ -5460,20 +5462,28 @@ export default {
|
5460
|
5462
|
this.projects[i].execution_time = this.projects[i].execution_time
|
5461
|
5463
|
this.projects[i].execution_staff= this.projects[i].execution_staff
|
5462
|
5464
|
this.projects[i].advice_doctor = this.projects[i].doctor
|
5463
|
|
- this.doctor_advices.push(this.projects[i])
|
|
5465
|
+ newHisArr.push(this.projects[i])
|
|
5466
|
+
|
|
5467
|
+
|
5464
|
5468
|
// this.doctor_advices_2.push(this.projects[i])
|
5465
|
5469
|
}
|
5466
|
5470
|
|
|
5471
|
+
|
|
5472
|
+
|
5467
|
5473
|
}
|
5468
|
5474
|
|
5469
|
5475
|
}
|
5470
|
|
- }
|
|
5476
|
+ }
|
|
5477
|
+
|
|
5478
|
+ var ordHisArr = this.getQuChong(newHisArr)
|
|
5479
|
+
|
|
5480
|
+ this.doctor_advices.push(...ordHisArr)
|
5471
|
5481
|
}
|
5472
|
5482
|
|
5473
|
5483
|
|
5474
|
5484
|
}
|
5475
|
5485
|
|
5476
|
|
- console.log("时间我我我哦我我",this.doctor_advices)
|
|
5486
|
+
|
5477
|
5487
|
|
5478
|
5488
|
//针对内蒙古阿拉善
|
5479
|
5489
|
if(this.org_id ==10206){
|
|
@@ -5575,8 +5585,10 @@ export default {
|
5575
|
5585
|
|
5576
|
5586
|
this.totollength = this.doctor_advices.length + this.monitors.length;
|
5577
|
5587
|
console.log("this.totollength",this.totollength)
|
|
5588
|
+
|
|
5589
|
+
|
5578
|
5590
|
if (this.totollength > 18) {
|
5579
|
|
- var temp_advice_length = 17 - this.monitors.length;
|
|
5591
|
+ var temp_advice_length = this.doctor_advices.length
|
5580
|
5592
|
var doctor_advices_1 = [];
|
5581
|
5593
|
var doctor_advices_2 = [];
|
5582
|
5594
|
for (let index = 0; index < this.doctor_advices.length; index++) {
|
|
@@ -5592,7 +5604,7 @@ export default {
|
5592
|
5604
|
}
|
5593
|
5605
|
// console.log(this.advice_groups);
|
5594
|
5606
|
|
5595
|
|
-
|
|
5607
|
+ console.log("医嘱列表=--=----------------------------------------------",this.doctor_advices)
|
5596
|
5608
|
} else {
|
5597
|
5609
|
this.loading = false;
|
5598
|
5610
|
this.$message.error("请求数据失败");
|
|
@@ -5600,7 +5612,17 @@ export default {
|
5600
|
5612
|
}
|
5601
|
5613
|
// })
|
5602
|
5614
|
},
|
5603
|
|
-
|
|
5615
|
+ getQuChong(tempArr) {
|
|
5616
|
+ let result = [];
|
|
5617
|
+ let obj = {};
|
|
5618
|
+ for (let i = 0; i < tempArr.length; i++) {
|
|
5619
|
+ if (!obj[tempArr[i].project_team]) {
|
|
5620
|
+ result.push(tempArr[i]);
|
|
5621
|
+ obj[tempArr[i].project_team] = true;
|
|
5622
|
+ };
|
|
5623
|
+ };
|
|
5624
|
+ return result;
|
|
5625
|
+ },
|
5604
|
5626
|
bloodAccessParOperaName(id) {
|
5605
|
5627
|
if (id in this.bloodAccessParOpera) {
|
5606
|
5628
|
return this.bloodAccessParOpera[id].name;
|