陈少旭 6 months ago
parent
commit
344ccc783e
1 changed files with 39 additions and 29 deletions
  1. 39 29
      src/xt_pages/outpatientDoctorStation/doctorDesk.vue

+ 39 - 29
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

2102
               if ( this.$store.getters.xt_user.org.id != 9919 && this.$store.getters.xt_user.org.id != 10485 && this.$store.getters.xt_user.org.id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
2102
               if ( this.$store.getters.xt_user.org.id != 9919 && this.$store.getters.xt_user.org.id != 10485 && this.$store.getters.xt_user.org.id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
2103
                 if (prescription.pre_time == 0) {
2103
                 if (prescription.pre_time == 0) {
2104
                   if (this.schedule.schedule_type == 1) {
2104
                   if (this.schedule.schedule_type == 1) {
2105
-                    if (this.org_id == 10028 || this.org_id == 10571 || this.org_id == 0 || this.org_id == 10633) {
2105
+                    if (this.org_id == 10028 || this.org_id == 10571  || this.org_id == 10633) {
2106
                       preTime = this.record_date + ' ' + '6:30'
2106
                       preTime = this.record_date + ' ' + '6:30'
2107
                     } else if(this.org_id == 10206 || this.org_id == 10598){
2107
                     } else if(this.org_id == 10206 || this.org_id == 10598){
2108
                       preTime = this.record_date + ' ' + '6:00'
2108
                       preTime = this.record_date + ' ' + '6:00'
2123
                     preTime = this.record_date + ' ' + '17:00'
2123
                     preTime = this.record_date + ' ' + '17:00'
2124
                   }
2124
                   }
2125
                   // preTime = nowTime
2125
                   // preTime = nowTime
2126
+                  if(this.$store.getters.xt_user.org.id == 10510 || this.org_id == 0){
2127
+                    preTime = nowTime
2128
+                  }
2129
+
2126
                 } else {
2130
                 } else {
2127
                   preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
2131
                   preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
2128
                 }
2132
                 }
2129
 
2133
 
2130
-                if(this.$store.getters.xt_user.org.id == 10510){
2131
-                  preTime = nowTime
2132
-                }
2133
 
2134
 
2134
               } else {
2135
               } else {
2135
 
2136
 
2138
                   if(nowTime.split(" ")[0] != this.record_date){
2139
                   if(nowTime.split(" ")[0] != this.record_date){
2139
                     // preTime = this.record_date
2140
                     // preTime = this.record_date
2140
                     if(this.schedule.schedule_type == 1){
2141
                     if(this.schedule.schedule_type == 1){
2141
-                      if(this.org_id == 10206  || this.org_id == 0 || this.org_id == 10598) {
2142
+                      if(this.org_id == 10206   || this.org_id == 10598) {
2142
                         preTime = this.record_date+ ' ' + '6:00'
2143
                         preTime = this.record_date+ ' ' + '6:00'
2143
                       }else {
2144
                       }else {
2144
                         preTime = this.record_date + ' ' + '7:00'
2145
                         preTime = this.record_date + ' ' + '7:00'
2157
                     }
2158
                     }
2158
 
2159
 
2159
 
2160
 
2160
-                    if(this.$store.getters.xt_user.org.id == 10510){
2161
+                    if(this.$store.getters.xt_user.org.id == 10510 || this.org_id == 0){
2161
                       preTime = nowTime
2162
                       preTime = nowTime
2162
                     }
2163
                     }
2163
 
2164
 
2310
                 var preTime = nowTime
2311
                 var preTime = nowTime
2311
                 if (this.$store.getters.xt_user.org.id != 9919 && this.$store.getters.xt_user.org.id != 10485 && this.$store.getters.xt_user.org.id != 10191 && this.$store.getters.xt_user.org.id != 10375 ) {
2312
                 if (this.$store.getters.xt_user.org.id != 9919 && this.$store.getters.xt_user.org.id != 10485 && this.$store.getters.xt_user.org.id != 10191 && this.$store.getters.xt_user.org.id != 10375 ) {
2312
                   if (this.schedule.schedule_type == 1) {
2313
                   if (this.schedule.schedule_type == 1) {
2313
-                    if (this.org_id == 10028 ||  this.org_id == 10571 || this.org_id == 0 || this.org_id == 10633) {
2314
+                    if (this.org_id == 10028 ||  this.org_id == 10571 || this.org_id == 10633) {
2314
                       preTime = this.record_date + ' ' + '6:30'
2315
                       preTime = this.record_date + ' ' + '6:30'
2315
                     } else if(this.org_id == 10206  || this.org_id == 10598) {
2316
                     } else if(this.org_id == 10206  || this.org_id == 10598) {
2316
                       preTime = this.record_date+ ' ' + '6:00'
2317
                       preTime = this.record_date+ ' ' + '6:00'
2331
                     preTime = this.record_date + ' ' + '17:00'
2332
                     preTime = this.record_date + ' ' + '17:00'
2332
                   }
2333
                   }
2333
 
2334
 
2334
-                  if(this.$store.getters.xt_user.org.id == 10510){
2335
+                  if(this.$store.getters.xt_user.org.id == 10510  || this.org_id == 0){
2335
                     preTime = nowTime
2336
                     preTime = nowTime
2336
                   }
2337
                   }
2337
                 }
2338
                 }
2702
                     if ( this.$store.getters.xt_user.org.id != 9919 && this.$store.getters.xt_user.org.id != 10485 && this.$store.getters.xt_user.org.id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
2703
                     if ( this.$store.getters.xt_user.org.id != 9919 && this.$store.getters.xt_user.org.id != 10485 && this.$store.getters.xt_user.org.id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
2703
                       if (prescription.pre_time == 0) {
2704
                       if (prescription.pre_time == 0) {
2704
                         if (this.schedule.schedule_type == 1) {
2705
                         if (this.schedule.schedule_type == 1) {
2705
-                          if (this.org_id == 10028 || this.org_id == 10571 || this.org_id == 0 || this.org_id == 10633) {
2706
+                          if (this.org_id == 10028 || this.org_id == 10571  || this.org_id == 10633) {
2706
                             preTime = this.record_date + ' ' + '6:30'
2707
                             preTime = this.record_date + ' ' + '6:30'
2707
                           } else if(this.org_id == 10206 || this.org_id == 10598){
2708
                           } else if(this.org_id == 10206 || this.org_id == 10598){
2708
                             preTime = this.record_date + ' ' + '6:00'
2709
                             preTime = this.record_date + ' ' + '6:00'
2723
                         } else if (this.schedule.schedule_type == 3) {
2724
                         } else if (this.schedule.schedule_type == 3) {
2724
                           preTime = this.record_date + ' ' + '17:00'
2725
                           preTime = this.record_date + ' ' + '17:00'
2725
                         }
2726
                         }
2727
+                        if(this.$store.getters.xt_user.org.id == 10510 || this.org_id == 0 ){
2728
+                          preTime = nowTime
2729
+                        }
2726
                       } else {
2730
                       } else {
2727
                         preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
2731
                         preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
2728
                       }
2732
                       }
2729
 
2733
 
2730
-                      if(this.$store.getters.xt_user.org.id == 10510){
2731
-                        preTime = nowTime
2732
-                      }
2733
                     } else {
2734
                     } else {
2734
                       if (prescription.pre_time == 0) {
2735
                       if (prescription.pre_time == 0) {
2735
                         if(nowTime.split(" ")[0] != this.record_date){
2736
                         if(nowTime.split(" ")[0] != this.record_date){
2736
                           if(this.schedule.schedule_type == 1){
2737
                           if(this.schedule.schedule_type == 1){
2737
-                            if(this.org_id == 10206  || this.org_id == 0 || this.org_id == 10598) {
2738
+                            if(this.org_id == 10206  || this.org_id == 10598) {
2738
                               preTime = this.record_date+ ' ' + '6:00'
2739
                               preTime = this.record_date+ ' ' + '6:00'
2739
                             }else {
2740
                             }else {
2740
                               preTime = this.record_date + ' ' + '7:00'
2741
                               preTime = this.record_date + ' ' + '7:00'
2752
                             preTime = this.record_date + ' ' + '17:00'
2753
                             preTime = this.record_date + ' ' + '17:00'
2753
                           }
2754
                           }
2754
                         }
2755
                         }
2756
+                        if(this.$store.getters.xt_user.org.id == 10510  || this.org_id == 0){
2757
+                          preTime = nowTime
2758
+                        }
2755
                         // preTime = nowTime
2759
                         // preTime = nowTime
2756
                       } else {
2760
                       } else {
2757
                         preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
2761
                         preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
2900
                       // var preTime = ''
2904
                       // var preTime = ''
2901
                       if ( this.org_id != 9919 && this.org_id != 10485 && this.org_id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
2905
                       if ( this.org_id != 9919 && this.org_id != 10485 && this.org_id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
2902
                         if (this.schedule.schedule_type == 1) {
2906
                         if (this.schedule.schedule_type == 1) {
2903
-                          if (this.org_id == 10028 || this.org_id == 10571 || this.org_id == 0 || this.org_id == 10633) {
2907
+                          if (this.org_id == 10028 || this.org_id == 10571 || this.org_id == 10633) {
2904
                             preTime = this.record_date + ' ' + '6:30'
2908
                             preTime = this.record_date + ' ' + '6:30'
2905
                           } else if(this.org_id == 10206 || this.org_id == 10598){
2909
                           } else if(this.org_id == 10206 || this.org_id == 10598){
2906
                             preTime = this.record_date + ' ' + '6:00'
2910
                             preTime = this.record_date + ' ' + '6:00'
2910
                           }
2914
                           }
2911
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
2915
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
2912
                         } else if (this.schedule.schedule_type == 2) {
2916
                         } else if (this.schedule.schedule_type == 2) {
2913
-                          if(this.org_id == 10206  || this.org_id == 0){
2917
+                          if(this.org_id == 10206 ){
2914
                             preTime =this.record_date + ' ' + '10:30'
2918
                             preTime =this.record_date + ' ' + '10:30'
2915
                           }else if(this.org_id == 10598){
2919
                           }else if(this.org_id == 10598){
2916
                             preTime = this.record_date + ' ' + '09:00'
2920
                             preTime = this.record_date + ' ' + '09:00'
2922
                           preTime = this.record_date + ' ' + '17:00'
2926
                           preTime = this.record_date + ' ' + '17:00'
2923
                         }
2927
                         }
2924
 
2928
 
2925
-                        if(this.$store.getters.xt_user.org.id == 10510){
2929
+                        if(this.$store.getters.xt_user.org.id == 10510  || this.org_id == 0){
2926
                           preTime = nowTime
2930
                           preTime = nowTime
2927
                         }
2931
                         }
2928
                       }
2932
                       }
4639
                           }
4643
                           }
4640
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4644
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4641
                         } else if (this.schedule.schedule_type == 2) {
4645
                         } else if (this.schedule.schedule_type == 2) {
4642
-                          if(this.org_id == 10206  || this.org_id == 0){
4646
+                          if(this.org_id == 10206  ){
4643
                             preTime = this.record_date + ' ' + '10:30'
4647
                             preTime = this.record_date + ' ' + '10:30'
4644
 
4648
 
4645
                           }else if(this.org_id == 10598){
4649
                           }else if(this.org_id == 10598){
4651
                         } else if (this.schedule.schedule_type == 3) {
4655
                         } else if (this.schedule.schedule_type == 3) {
4652
                           preTime = this.record_date + ' ' + '17:00'
4656
                           preTime = this.record_date + ' ' + '17:00'
4653
                         }
4657
                         }
4658
+                        if(this.$store.getters.xt_user.org.id == 10510 || this.org_id == 0){
4659
+                          preTime = nowTime
4660
+                        }
4654
                       } else {
4661
                       } else {
4655
                         preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
4662
                         preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
4656
                       }
4663
                       }
4657
 
4664
 
4658
-                      if(this.$store.getters.xt_user.org.id == 10510){
4659
-                        preTime = nowTime
4660
-                      }
4665
+
4661
                     } else {
4666
                     } else {
4662
                       console.log("0---00000000000")
4667
                       console.log("0---00000000000")
4663
                       if (prescription.pre_time == 0) {
4668
                       if (prescription.pre_time == 0) {
4664
                         // preTime = nowTime
4669
                         // preTime = nowTime
4665
                         if(nowTime.split(" ")[0] != this.record_date){
4670
                         if(nowTime.split(" ")[0] != this.record_date){
4666
                           if(this.schedule.schedule_type == 1){
4671
                           if(this.schedule.schedule_type == 1){
4667
-                            if(this.org_id == 10206  || this.org_id == 0 || this.org_id == 10598) {
4672
+                            if(this.org_id == 10206  || this.org_id == 10598) {
4668
                               preTime = this.record_date+ ' ' + '6:00'
4673
                               preTime = this.record_date+ ' ' + '6:00'
4669
                             }else {
4674
                             }else {
4670
                               preTime = this.record_date + ' ' + '7:00'
4675
                               preTime = this.record_date + ' ' + '7:00'
4682
                             preTime = this.record_date + ' ' + '17:00'
4687
                             preTime = this.record_date + ' ' + '17:00'
4683
                           }
4688
                           }
4684
                         }
4689
                         }
4690
+                        if(this.$store.getters.xt_user.org.id == 10510  || this.org_id == 0){
4691
+                          preTime = nowTime
4692
+                        }
4693
+
4685
                       } else {
4694
                       } else {
4686
                         preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
4695
                         preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
4687
                       }
4696
                       }
4828
                       var preTime = nowTime
4837
                       var preTime = nowTime
4829
                       if (this.org_id != 9919 && this.org_id != 10485 && this.org_id != 10191 && this.$store.getters.xt_user.org.id != 10375 ) {
4838
                       if (this.org_id != 9919 && this.org_id != 10485 && this.org_id != 10191 && this.$store.getters.xt_user.org.id != 10375 ) {
4830
                         if (this.schedule.schedule_type == 1) {
4839
                         if (this.schedule.schedule_type == 1) {
4831
-                          if (this.org_id == 10028 || this.org_id == 10571 || this.org_id == 0 || this.org_id == 10633) {
4840
+                          if (this.org_id == 10028 || this.org_id == 10571 || this.org_id == 10633) {
4832
                             preTime = this.record_date + ' ' + '6:30'
4841
                             preTime = this.record_date + ' ' + '6:30'
4833
                           } else if(this.org_id == 10206 || this.org_id == 10598){
4842
                           } else if(this.org_id == 10206 || this.org_id == 10598){
4834
                             preTime = this.record_date+ ' ' + '6:00'
4843
                             preTime = this.record_date+ ' ' + '6:00'
4849
                           preTime = this.record_date + ' ' + '17:00'
4858
                           preTime = this.record_date + ' ' + '17:00'
4850
                         }
4859
                         }
4851
 
4860
 
4852
-                        if(this.$store.getters.xt_user.org.id == 10510){
4861
+                        if(this.$store.getters.xt_user.org.id == 10510 || this.org_id == 0 ){
4853
                           preTime = nowTime
4862
                           preTime = nowTime
4854
                         }
4863
                         }
4855
                       }
4864
                       }
5286
                           }
5295
                           }
5287
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
5296
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
5288
                         } else if (this.schedule.schedule_type == 2) {
5297
                         } else if (this.schedule.schedule_type == 2) {
5289
-                          if(this.org_id == 10206  || this.org_id == 0){
5298
+                          if(this.org_id == 10206 ){
5290
                             preTime =this.record_date + ' ' + '10:30'
5299
                             preTime =this.record_date + ' ' + '10:30'
5291
                           }else if(this.org_id == 10598){
5300
                           }else if(this.org_id == 10598){
5292
                             preTime = this.record_date + ' ' + '09:00'
5301
                             preTime = this.record_date + ' ' + '09:00'
5298
                         } else if (this.schedule.schedule_type == 3) {
5307
                         } else if (this.schedule.schedule_type == 3) {
5299
                           preTime = this.record_date + ' ' + '17:00'
5308
                           preTime = this.record_date + ' ' + '17:00'
5300
                         }
5309
                         }
5310
+                        if(this.$store.getters.xt_user.org.id == 10510  || this.org_id == 0){
5311
+                          preTime = nowTime
5312
+                        }
5301
                       } else {
5313
                       } else {
5302
                         preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
5314
                         preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
5303
                       }
5315
                       }
5304
 
5316
 
5305
-                      if(this.$store.getters.xt_user.org.id == 10510){
5306
-                        preTime = nowTime
5307
-                      }
5317
+
5308
                     } else {
5318
                     } else {
5309
                       if (prescription.pre_time == 0) {
5319
                       if (prescription.pre_time == 0) {
5310
                         preTime = nowTime
5320
                         preTime = nowTime
5484
                           }
5494
                           }
5485
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
5495
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
5486
                         } else if (this.schedule.schedule_type == 2) {
5496
                         } else if (this.schedule.schedule_type == 2) {
5487
-                          if(this.org_id == 10206 ||  this.org_id == 0){
5497
+                          if(this.org_id == 10206 ){
5488
                             preTime = this.record_date + ' ' + '10:30'
5498
                             preTime = this.record_date + ' ' + '10:30'
5489
 
5499
 
5490
                           }else if(this.org_id == 10598){
5500
                           }else if(this.org_id == 10598){
5497
                           preTime = this.record_date + ' ' + '17:00'
5507
                           preTime = this.record_date + ' ' + '17:00'
5498
                         }
5508
                         }
5499
 
5509
 
5500
-                        if(this.$store.getters.xt_user.org.id == 10510){
5510
+                        if(this.$store.getters.xt_user.org.id == 10510 ||  this.org_id == 0){
5501
                           preTime = nowTime
5511
                           preTime = nowTime
5502
                         }
5512
                         }
5503
                       }
5513
                       }