28169 1 rok temu
rodzic
commit
648d960dd4

+ 24 - 12
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue Wyświetl plik

242
                 || org_id == 10445
242
                 || org_id == 10445
243
                 || org_id == 10410 ||
243
                 || org_id == 10410 ||
244
                 org_id == 10495 ||
244
                 org_id == 10495 ||
245
+                org_id == 10375 ||
245
                 org_id == 10485) &&
246
                 org_id == 10485) &&
246
                 org_id!=10387
247
                 org_id!=10387
247
             "
248
             "
312
               org_id != 9555
313
               org_id != 9555
313
               && org_id!=10432 && org_id!=10445
314
               && org_id!=10432 && org_id!=10445
314
               && org_id!=10410 && org_id!=10495 &&
315
               && org_id!=10410 && org_id!=10495 &&
315
-               org_id!=10485 )
316
+               org_id!=10485 && org_id!=10395 )
316
               || org_id == 10387
317
               || org_id == 10387
317
             "
318
             "
318
           >
319
           >
366
                 org_id == 10432 ||
367
                 org_id == 10432 ||
367
                 org_id == 10445 ||
368
                 org_id == 10445 ||
368
                 org_id == 10410 ||
369
                 org_id == 10410 ||
369
-                org_id == 10495 
370
+                org_id == 10495  ||
371
+                org_id == 10395
370
                 || org_id == 10485)
372
                 || org_id == 10485)
371
                 && org_id!=10387
373
                 && org_id!=10387
372
             "
374
             "
420
               org_id!=10432 &&
422
               org_id!=10432 &&
421
               org_id!=10445 &&
423
               org_id!=10445 &&
422
               org_id!=10410 && org_id!=10495
424
               org_id!=10410 && org_id!=10495
423
-              && org_id!=10485) ||
425
+              && org_id!=10485 && org_id!=10395) ||
424
               org_id == 10387
426
               org_id == 10387
425
             "
427
             "
426
           >
428
           >
481
                 template_id == 56 ||
483
                 template_id == 56 ||
482
                 org_id ==10432 ||
484
                 org_id ==10432 ||
483
                 org_id ==10445 ||
485
                 org_id ==10445 ||
484
-                org_id ==10410
486
+                org_id ==10410 ||
487
+                org_id == 10395
485
 
488
 
486
                )
489
                )
487
             "
490
             "
510
               template_id != 56 &&
513
               template_id != 56 &&
511
               org_id !=10432 &&
514
               org_id !=10432 &&
512
               org_id !=10445 &&
515
               org_id !=10445 &&
516
+              org_id!=10395 && 
513
               org_id !=10410
517
               org_id !=10410
514
             "
518
             "
515
           >
519
           >
556
                 template_id == 48 ||
560
                 template_id == 48 ||
557
                 org_id == 10340 ||
561
                 org_id == 10340 ||
558
                 org_id == 10432 ||
562
                 org_id == 10432 ||
559
-                org_id == 10445)
563
+                org_id == 10445 ||
564
+                org_id == 10395)
560
             "
565
             "
561
           >
566
           >
562
             <template slot-scope="scope">
567
             <template slot-scope="scope">
588
               template_id != 48 &&
593
               template_id != 48 &&
589
               org_id !=10340 &&
594
               org_id !=10340 &&
590
               org_id !=10432 &&
595
               org_id !=10432 &&
591
-              org_id !=10445
596
+              org_id !=10445 &&
597
+              org_id!=10395
592
             "
598
             "
593
           >
599
           >
594
             <template slot-scope="scope">
600
             <template slot-scope="scope">
1245
                 org_id == 10445 ||
1251
                 org_id == 10445 ||
1246
                 org_id == 10410 ||
1252
                 org_id == 10410 ||
1247
                 org_id == 10495 ||
1253
                 org_id == 10495 ||
1248
-                org_id == 10485)
1254
+                org_id == 10485 ||
1255
+                org_id == 10395)
1249
                 && org_id!=10387
1256
                 && org_id!=10387
1250
             "
1257
             "
1251
           >
1258
           >
1302
               org_id!=10445 &&
1309
               org_id!=10445 &&
1303
               org_id!=10410 &&
1310
               org_id!=10410 &&
1304
               org_id!=10495 &&
1311
               org_id!=10495 &&
1305
-              org_id!=10485
1312
+              org_id!=10485 &&
1313
+              org_id!=10395
1306
               )
1314
               )
1307
               || org_id == 10387
1315
               || org_id == 10387
1308
             "
1316
             "
1345
               template_id != 53 &&
1353
               template_id != 53 &&
1346
               org_id!=10432 &&
1354
               org_id!=10432 &&
1347
               org_id!=10445 &&
1355
               org_id!=10445 &&
1348
-              org_id!=10410
1356
+              org_id!=10410 &&
1357
+              org_id!=10395
1349
             "
1358
             "
1350
           >
1359
           >
1351
             <el-form-item label="置换率(L/h):" :prop="isName('置换率')"
1360
             <el-form-item label="置换率(L/h):" :prop="isName('置换率')"
1370
                 template_id == 48 ||
1379
                 template_id == 48 ||
1371
                 org_id==10432 ||
1380
                 org_id==10432 ||
1372
                 org_id!=10445 ||
1381
                 org_id!=10445 ||
1373
-                org_id!=10410)
1382
+                org_id!=10410 ||
1383
+                org_id!=10395)
1374
             "
1384
             "
1375
           >
1385
           >
1376
             <el-form-item label="置换率(ml/min):" :prop="isName('置换率')"
1386
             <el-form-item label="置换率(ml/min):" :prop="isName('置换率')"
1402
               template_id != 48 &&
1412
               template_id != 48 &&
1403
               org_id!=10340 &&
1413
               org_id!=10340 &&
1404
               org_id!=10432 &&
1414
               org_id!=10432 &&
1405
-              org_id!=10445
1415
+              org_id!=10445 &&
1416
+              org_id!=10395
1406
             "
1417
             "
1407
           >
1418
           >
1408
             <el-form-item label="置换量(L):" :prop="isName('置换量')"
1419
             <el-form-item label="置换量(L):" :prop="isName('置换量')"
1430
                 template_id == 48 ||
1441
                 template_id == 48 ||
1431
                 org_id!=10340 ||
1442
                 org_id!=10340 ||
1432
                 org_id ==10432 ||
1443
                 org_id ==10432 ||
1433
-                org_id ==10445)
1444
+                org_id ==10445 ||
1445
+                org_id == 10395)
1434
             "
1446
             "
1435
           >
1447
           >
1436
             <el-form-item label="置换量(ml):" :prop="isName('置换量')"
1448
             <el-form-item label="置换量(ml):" :prop="isName('置换量')"

+ 26 - 25
src/xt_pages/medicalScheduling/index.vue Wyświetl plik

443
                     this.getStaffScheduleList()
443
                     this.getStaffScheduleList()
444
 
444
 
445
                     var doctorlist =  response.data.data.doctorlist
445
                     var doctorlist =  response.data.data.doctorlist
446
-                    let arr = []
446
+                  
447
                     for(let i=0;i<doctorlist.length;i++){
447
                     for(let i=0;i<doctorlist.length;i++){
448
                         if(doctorlist[i].sort == 0){
448
                         if(doctorlist[i].sort == 0){
449
                           doctorlist[i].sort = ""
449
                           doctorlist[i].sort = ""
647
             getStaffScheduleList(params).then(response=>{
647
             getStaffScheduleList(params).then(response=>{
648
                 if(response.data.state == 1){
648
                 if(response.data.state == 1){
649
                     var staffList =  response.data.data.staffList
649
                     var staffList =  response.data.data.staffList
650
-                    // console.log("获取所有排班",staffList)
650
+                    console.log("获取所有排班",staffList)
651
                     var sevenStr = ""
651
                     var sevenStr = ""
652
                     var oneStr = ""
652
                     var oneStr = ""
653
                     var twoStr = ""
653
                     var twoStr = ""
691
                         })
691
                         })
692
                         sevenStr = zeroStr
692
                         sevenStr = zeroStr
693
                     }
693
                     }
694
+                    
694
                     if(staffList[i].schedule_week == 1){
695
                     if(staffList[i].schedule_week == 1){
695
                         staffList[i].class_index = 1
696
                         staffList[i].class_index = 1
696
                         var arr = []
697
                         var arr = []
772
                         })
773
                         })
773
                         threeStr = strThree
774
                         threeStr = strThree
774
                     }
775
                     }
776
+
777
+
775
                     if(staffList[i].schedule_week == 4){
778
                     if(staffList[i].schedule_week == 4){
776
                         staffList[i].class_index = 4
779
                         staffList[i].class_index = 4
777
                         var arr = []
780
                         var arr = []
799
                         })
802
                         })
800
                         fourStr = strFour
803
                         fourStr = strFour
801
                     }
804
                     }
805
+
806
+                    
802
                     if(staffList[i].schedule_week == 5){
807
                     if(staffList[i].schedule_week == 5){
803
                         staffList[i].class_index = 5
808
                         staffList[i].class_index = 5
804
 
809
 
827
                         })
832
                         })
828
                          fiveStr = strFive
833
                          fiveStr = strFive
829
                     }
834
                     }
835
+
830
                     if(staffList[i].schedule_week == 6){
836
                     if(staffList[i].schedule_week == 6){
831
                         staffList[i].class_index = 6
837
                         staffList[i].class_index = 6
832
                          var arr = []
838
                          var arr = []
857
                     }
863
                     }
858
                     let tempArr = [], newArr = []
864
                     let tempArr = [], newArr = []
859
                     for (let i = 0; i < staffList.length; i++) {
865
                     for (let i = 0; i < staffList.length; i++) {
860
-                        if (tempArr.indexOf(staffList[i].user_name) === -1) {
866
+                        if (tempArr.indexOf(staffList[i].user_name) == -1) {
867
+                            console.log("tempArr",staffList[i].user_name)
861
                             newArr.push({
868
                             newArr.push({
862
                                 user_name: staffList[i].user_name,
869
                                 user_name: staffList[i].user_name,
863
                                 admin_user_id:staffList[i].admin_user_id,
870
                                 admin_user_id:staffList[i].admin_user_id,
869
                             tempArr.push(staffList[i].user_name);
876
                             tempArr.push(staffList[i].user_name);
870
                         } else {
877
                         } else {
871
                             for (let j = 0; j < newArr.length; j++) {
878
                             for (let j = 0; j < newArr.length; j++) {
872
-                                if (newArr[j].user_name == staffList[i].user_name) {
879
+                                if (newArr[j].admin_user_id == staffList[i].admin_user_id) {
873
                                     newArr[j].list.push({class_name:staffList[i].class_name,admin_user_id:staffList[i].admin_user_id,schedule_week:staffList[i].schedule_week,user_type:staffList[i].doctor_type,class_attributes:staffList[i].class_attributes})
880
                                     newArr[j].list.push({class_name:staffList[i].class_name,admin_user_id:staffList[i].admin_user_id,schedule_week:staffList[i].schedule_week,user_type:staffList[i].doctor_type,class_attributes:staffList[i].class_attributes})
874
                                 }
881
                                 }
875
                             }
882
                             }
876
                         }
883
                         }
877
                     }
884
                     }
878
-
879
-                    let arr = [...newArr]
885
+                    console.log("newArr22o2o2o2o2wo",newArr)
886
+                    let arrTen = [...newArr]
880
                     let newNurse = []
887
                     let newNurse = []
881
                     let newDoctor = []
888
                     let newDoctor = []
882
-                    arr.map(item => {
889
+                    arrTen.map(item => {
883
                         if(item.user_type == 2){
890
                         if(item.user_type == 2){
884
                             newDoctor.push(item)
891
                             newDoctor.push(item)
885
                         }
892
                         }
904
                         }
911
                         }
905
                     })
912
                     })
906
                     newNurse.sort(this.compare('sort'))
913
                     newNurse.sort(this.compare('sort'))
907
-
914
+                    console.log("newNurse",newNurse)
908
                     //医生
915
                     //医生
909
                     newDoctor.sort(this.compare('admin_user_id'))
916
                     newDoctor.sort(this.compare('admin_user_id'))
910
                     let newDoctorTableData = []
917
                     let newDoctorTableData = []
924
                     newDoctor.sort(this.compare('sort'))
931
                     newDoctor.sort(this.compare('sort'))
925
 
932
 
926
 
933
 
927
-                    // arr.sort(this.compare('admin_user_id'))
928
-                    // this.doctorlist.sort(this.compare('admin_user_id'))
929
-                    // this.doctorlist.forEach((item, index) => {
930
-                    //   if (arr[index] && item.admin_user_id == arr[index].admin_user_id) {
931
-
932
-                    //   }else{
933
-                    //     arr.splice(index, 0, {user_name: item.user_name, admin_user_id: item.admin_user_id, list: [],user_type:item.user_type})
934
-                    //   }
935
-                    // })
936
-                    // arr.sort(this.compare('user_type'))
937
-
938
                     let arr2 = []
934
                     let arr2 = []
935
+                    
939
                     arr2.push({class_name:oneStr,schedule_week:1})
936
                     arr2.push({class_name:oneStr,schedule_week:1})
940
                     arr2.push({class_name:twoStr,schedule_week:2})
937
                     arr2.push({class_name:twoStr,schedule_week:2})
941
                     arr2.push({class_name:threeStr,schedule_week:3})
938
                     arr2.push({class_name:threeStr,schedule_week:3})
942
                     arr2.push({class_name:fourStr,schedule_week:4})
939
                     arr2.push({class_name:fourStr,schedule_week:4})
943
                     arr2.push({class_name:fiveStr,schedule_week:5})
940
                     arr2.push({class_name:fiveStr,schedule_week:5})
944
                     arr2.push({class_name:sixStr,schedule_week:6})
941
                     arr2.push({class_name:sixStr,schedule_week:6})
945
-                    arr2.push({class_name:zeroStr,schedule_week:0})
942
+                    arr2.push({class_name:sevenStr,schedule_week:0})
946
                     var obj = {}
943
                     var obj = {}
947
                     obj.admin_user_id = "1000000"
944
                     obj.admin_user_id = "1000000"
948
                     obj.user_name = "合计"
945
                     obj.user_name = "合计"
951
                     arr.push(obj)
948
                     arr.push(obj)
952
 
949
 
953
                     let data = []
950
                     let data = []
951
+                  
954
                     data.push(...newNurse)
952
                     data.push(...newNurse)
955
                     data.push(...newDoctor)
953
                     data.push(...newDoctor)
956
                     data.push(obj)
954
                     data.push(obj)
957
                     console.log("data2o2oo2o2o2o22o",data)
955
                     console.log("data2o2oo2o2o2o22o",data)
958
-                    this.tableData = this.distinct(data)
956
+                    
957
+                    // this.tableData = this.distinct(data)
958
+                    this.tableData = data
959
 
959
 
960
 
960
 
961
                 }
961
                 }
1071
                         })
1071
                         })
1072
                         sevenStr = zeroStr
1072
                         sevenStr = zeroStr
1073
                     }
1073
                     }
1074
+
1074
                     if(staffList[i].schedule_week == 1){
1075
                     if(staffList[i].schedule_week == 1){
1075
                         staffList[i].class_index = 1
1076
                         staffList[i].class_index = 1
1076
                         var arr = []
1077
                         var arr = []
1322
                     arr2.push({class_name:fourStr,schedule_week:4})
1323
                     arr2.push({class_name:fourStr,schedule_week:4})
1323
                     arr2.push({class_name:fiveStr,schedule_week:5})
1324
                     arr2.push({class_name:fiveStr,schedule_week:5})
1324
                     arr2.push({class_name:sixStr,schedule_week:6})
1325
                     arr2.push({class_name:sixStr,schedule_week:6})
1325
-                    arr2.push({class_name:zeroStr,schedule_week:0})
1326
+                    arr2.push({class_name:sevenStr,schedule_week:0})
1326
                     var obj = {}
1327
                     var obj = {}
1327
                     obj.admin_user_id = "1000000"
1328
                     obj.admin_user_id = "1000000"
1328
                     obj.user_name = "合计"
1329
                     obj.user_name = "合计"
1641
                         arr2.push({class_name:fourStr,schedule_week:4})
1642
                         arr2.push({class_name:fourStr,schedule_week:4})
1642
                         arr2.push({class_name:fiveStr,schedule_week:5})
1643
                         arr2.push({class_name:fiveStr,schedule_week:5})
1643
                         arr2.push({class_name:sixStr,schedule_week:6})
1644
                         arr2.push({class_name:sixStr,schedule_week:6})
1644
-                        arr2.push({class_name:zeroStr,schedule_week:0})
1645
+                        arr2.push({class_name:sevenStr,schedule_week:0})
1645
                         var obj = {}
1646
                         var obj = {}
1646
                         obj.admin_user_id = "1000000"
1647
                         obj.admin_user_id = "1000000"
1647
                         obj.user_name = "合计"
1648
                         obj.user_name = "合计"
1680
                         arr2.push({class_name:fourStr,schedule_week:4})
1681
                         arr2.push({class_name:fourStr,schedule_week:4})
1681
                         arr2.push({class_name:fiveStr,schedule_week:5})
1682
                         arr2.push({class_name:fiveStr,schedule_week:5})
1682
                         arr2.push({class_name:sixStr,schedule_week:6})
1683
                         arr2.push({class_name:sixStr,schedule_week:6})
1683
-                        arr2.push({class_name:zeroStr,schedule_week:0})
1684
+                        arr2.push({class_name:sevenStr,schedule_week:0})
1684
                         var obj = {}
1685
                         var obj = {}
1685
                         obj.admin_user_id = "1000000"
1686
                         obj.admin_user_id = "1000000"
1686
                         obj.user_name = "合计"
1687
                         obj.user_name = "合计"
1718
                         arr2.push({class_name:fourStr,schedule_week:4})
1719
                         arr2.push({class_name:fourStr,schedule_week:4})
1719
                         arr2.push({class_name:fiveStr,schedule_week:5})
1720
                         arr2.push({class_name:fiveStr,schedule_week:5})
1720
                         arr2.push({class_name:sixStr,schedule_week:6})
1721
                         arr2.push({class_name:sixStr,schedule_week:6})
1721
-                        arr2.push({class_name:zeroStr,schedule_week:0})
1722
+                        arr2.push({class_name:sevenStr,schedule_week:0})
1722
                         var obj = {}
1723
                         var obj = {}
1723
                         obj.admin_user_id = "1000000"
1724
                         obj.admin_user_id = "1000000"
1724
                         obj.user_name = "合计"
1725
                         obj.user_name = "合计"