瀏覽代碼

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 1 年之前
父節點
當前提交
1a2b79007e

+ 1 - 1
src/xt_pages/outpatientCharges/chargeDetailManagement.vue 查看文件

717
 
717
 
718
               } else {
718
               } else {
719
                 that.radio = 2
719
                 that.radio = 2
720
-                that.getPatientList()
721
                 that.$message({ message: '上传成功', type: 'success', duration: 5000 })
720
                 that.$message({ message: '上传成功', type: 'success', duration: 5000 })
721
+                that.getPatientList()
722
               }
722
               }
723
             }
723
             }
724
           })
724
           })

+ 1 - 1
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue 查看文件

3786
             console.log("-=======")
3786
             console.log("-=======")
3787
             for (let i = 0; i < this.zuobiao_project.length; i++) {
3787
             for (let i = 0; i < this.zuobiao_project.length; i++) {
3788
               for (let b = 0; b < this.tabProject.length; b++) {
3788
               for (let b = 0; b < this.tabProject.length; b++) {
3789
-                if (this.zuobiao_project[i].bbx01 == this.tabProject[b].bbx01 &&  this.zuobiao_project[i].bby06 == this.tabProject[b].specification_name){
3789
+                if (this.zuobiao_project[i].bbx01 == this.tabProject[b].bbx01 &&  this.zuobiao_project[i].bby06 == this.tabProject[b].single_dose){
3790
                   console.log( this.zuobiao_project[i].lsqty)
3790
                   console.log( this.zuobiao_project[i].lsqty)
3791
                   console.log( this.tabProject[b].zuobiao_stock_num)
3791
                   console.log( this.tabProject[b].zuobiao_stock_num)
3792
                   this.tabProject[b].zuobiao_stock_num = this.zuobiao_project[i].lsqty
3792
                   this.tabProject[b].zuobiao_stock_num = this.zuobiao_project[i].lsqty

+ 6 - 2
src/xt_pages/outpatientDoctorStation/components/prescriptionTemplateTable.vue 查看文件

608
         if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
608
         if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
609
           // scope.row.retail_price = scope.row.drug.min_number / scope.row.retail_price
609
           // scope.row.retail_price = scope.row.drug.min_number / scope.row.retail_price
610
           if (scope.row.prescribing_number > scope.row.drug.total) {
610
           if (scope.row.prescribing_number > scope.row.drug.total) {
611
-            this.$message.error(scope.row.drug_name + '库存不足')
611
+            if(this.$store.getters.xt_user.org_id != 10206) {
612
+              this.$message.error(scope.row.drug_name + '库存不足')
613
+            }
612
           }
614
           }
613
         } else {
615
         } else {
614
           if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.total) {
616
           if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.total) {
615
-            this.$message.error(scope.row.drug_name + '库存不足')
617
+            if(this.$store.getters.xt_user.org_id != 10206) {
618
+              this.$message.error(scope.row.drug_name + '库存不足')
619
+            }
616
           }
620
           }
617
           // scope.row.retail_price = scope.row.drug.retail_price * scope.row.prescribing_number
621
           // scope.row.retail_price = scope.row.drug.retail_price * scope.row.prescribing_number
618
         }
622
         }

+ 71 - 19
src/xt_pages/outpatientDoctorStation/doctorDesk.vue 查看文件

1829
               // }
1829
               // }
1830
 
1830
 
1831
               var preTime = nowTime
1831
               var preTime = nowTime
1832
-              if (this.org_id != 0 && 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) {
1832
+              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) {
1833
                 if (prescription.pre_time == 0) {
1833
                 if (prescription.pre_time == 0) {
1834
                   if (this.schedule.schedule_type == 1) {
1834
                   if (this.schedule.schedule_type == 1) {
1835
                     if (this.org_id == 10028) {
1835
                     if (this.org_id == 10028) {
1836
                       preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
1836
                       preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
1837
+                    } else if(this.org_id == 10206  || this.org_id == 0){
1838
+                      preTime = this.record_date + ' ' + '6:00'
1837
                     } else {
1839
                     } else {
1838
                       preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
1840
                       preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
1839
 
1841
 
1840
                     }
1842
                     }
1841
                   } else if (this.schedule.schedule_type == 2) {
1843
                   } else if (this.schedule.schedule_type == 2) {
1842
-                    preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
1844
+                     if(this.org_id == 10206  || this.org_id == 0 ){
1845
+                      preTime = this.record_date + ' ' + '10:00'
1846
+                    }else{
1847
+                     preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
1848
+                   }
1843
                   } else if (this.schedule.schedule_type == 3) {
1849
                   } else if (this.schedule.schedule_type == 3) {
1844
                     preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
1850
                     preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
1845
                   }
1851
                   }
1992
                   tempProject.push(obj)
1998
                   tempProject.push(obj)
1993
                 }
1999
                 }
1994
                 var preTime = nowTime
2000
                 var preTime = nowTime
1995
-                if (this.org_id != 0 && 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) {
2001
+                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) {
1996
                   if (this.schedule.schedule_type == 1) {
2002
                   if (this.schedule.schedule_type == 1) {
1997
                     if (this.org_id == 10028) {
2003
                     if (this.org_id == 10028) {
1998
                       preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
2004
                       preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
2005
+                    } else if(this.org_id == 10206  || this.org_id == 0) {
2006
+                      preTime = this.record_date+ ' ' + '6:00'
1999
                     } else {
2007
                     } else {
2000
                       preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
2008
                       preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
2001
 
2009
 
2002
                     }
2010
                     }
2003
                     // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
2011
                     // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
2004
                   } else if (this.schedule.schedule_type == 2) {
2012
                   } else if (this.schedule.schedule_type == 2) {
2005
-                    preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
2013
+                    if(this.org_id == 10206  || this.org_id == 0){
2014
+                      preTime = this.record_date + ' ' + '6:00'
2015
+                    }else {
2016
+                      preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
2017
+                    }
2006
                   } else if (this.schedule.schedule_type == 3) {
2018
                   } else if (this.schedule.schedule_type == 3) {
2007
                     preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
2019
                     preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
2008
                   }
2020
                   }
2321
                     // }
2333
                     // }
2322
 
2334
 
2323
                     var preTime = nowTime
2335
                     var preTime = nowTime
2324
-                    if (this.org_id != 0 && 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) {
2336
+                    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) {
2325
                       if (prescription.pre_time == 0) {
2337
                       if (prescription.pre_time == 0) {
2326
                         if (this.schedule.schedule_type == 1) {
2338
                         if (this.schedule.schedule_type == 1) {
2327
                           if (this.org_id == 10028) {
2339
                           if (this.org_id == 10028) {
2328
                             preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
2340
                             preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
2341
+                          } else if(this.org_id == 10206 || this.org_id == 0){
2342
+                            preTime = this.record_date + ' ' + '6:00'
2329
                           } else {
2343
                           } else {
2330
                             preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
2344
                             preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
2331
 
2345
 
2332
                           }
2346
                           }
2333
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
2347
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
2334
                         } else if (this.schedule.schedule_type == 2) {
2348
                         } else if (this.schedule.schedule_type == 2) {
2335
-                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
2349
+                          if(this.org_id == 10206  || this.org_id == 0){
2350
+                            preTime = this.record_date + ' ' + '10:00'
2351
+                          }else{
2352
+                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
2353
+                          }
2336
                         } else if (this.schedule.schedule_type == 3) {
2354
                         } else if (this.schedule.schedule_type == 3) {
2337
                           preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
2355
                           preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
2338
                         }
2356
                         }
2487
 
2505
 
2488
                       var preTime = nowTime
2506
                       var preTime = nowTime
2489
                       // var preTime = ''
2507
                       // var preTime = ''
2490
-                      if (this.org_id != 0 && this.org_id != 9919 && this.org_id != 10485 && this.org_id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
2508
+                      if ( this.org_id != 9919 && this.org_id != 10485 && this.org_id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
2491
                         if (this.schedule.schedule_type == 1) {
2509
                         if (this.schedule.schedule_type == 1) {
2492
                           if (this.org_id == 10028) {
2510
                           if (this.org_id == 10028) {
2493
                             preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
2511
                             preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
2512
+                          } else if(this.org_id == 10206  || this.org_id == 0){
2513
+                            preTime = this.record_date + ' ' + '6:00'
2494
                           } else {
2514
                           } else {
2495
                             preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
2515
                             preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
2496
 
2516
 
2497
                           }
2517
                           }
2498
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
2518
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
2499
                         } else if (this.schedule.schedule_type == 2) {
2519
                         } else if (this.schedule.schedule_type == 2) {
2500
-                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
2520
+                          if(this.org_id == 10206  || this.org_id == 0){
2521
+                            preTime =this.record_date + ' ' + '10:00'
2522
+                          }else{
2523
+
2524
+                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
2525
+
2526
+                          }
2501
                         } else if (this.schedule.schedule_type == 3) {
2527
                         } else if (this.schedule.schedule_type == 3) {
2502
                           preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
2528
                           preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
2503
                         }
2529
                         }
4025
 
4051
 
4026
                     var preTime = nowTime
4052
                     var preTime = nowTime
4027
 
4053
 
4028
-                    if (this.org_id != 0 && this.org_id != 9919 && this.org_id != 10485 && this.org_id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
4054
+                    if (this.org_id != 9919 && this.org_id != 10485 && this.org_id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
4029
                       if (prescription.pre_time == 0) {
4055
                       if (prescription.pre_time == 0) {
4030
                         if (this.schedule.schedule_type == 1) {
4056
                         if (this.schedule.schedule_type == 1) {
4031
                           if (this.org_id == 10028) {
4057
                           if (this.org_id == 10028) {
4032
                             preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
4058
                             preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
4059
+                          } else if(this.org_id == 10206 || this.org_id == 0){
4060
+
4061
+                            preTime = this.record_date + ' ' + '6:00'
4062
+
4033
                           } else {
4063
                           } else {
4034
                             preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4064
                             preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4035
 
4065
 
4036
                           }
4066
                           }
4037
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4067
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4038
                         } else if (this.schedule.schedule_type == 2) {
4068
                         } else if (this.schedule.schedule_type == 2) {
4039
-                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
4069
+                          if(this.org_id == 10206  || this.org_id == 0){
4070
+                            preTime = this.record_date + ' ' + '10:00'
4071
+
4072
+                          }else {
4073
+                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
4074
+                          }
4040
                         } else if (this.schedule.schedule_type == 3) {
4075
                         } else if (this.schedule.schedule_type == 3) {
4041
                           preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
4076
                           preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
4042
                         }
4077
                         }
4190
 
4225
 
4191
                       // var preTime = nowTime
4226
                       // var preTime = nowTime
4192
                       var preTime = nowTime
4227
                       var preTime = nowTime
4193
-                      if (this.org_id != 0 && this.org_id != 9919 && this.org_id != 10485 && this.org_id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
4228
+                      if (this.org_id != 9919 && this.org_id != 10485 && this.org_id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
4194
                         if (this.schedule.schedule_type == 1) {
4229
                         if (this.schedule.schedule_type == 1) {
4195
                           if (this.org_id == 10028) {
4230
                           if (this.org_id == 10028) {
4196
                             preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
4231
                             preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
4232
+                          } else if(this.org_id == 10206  || this.org_id == 0){
4233
+                            preTime = this.record_date+ ' ' + '6:00'
4197
                           } else {
4234
                           } else {
4198
                             preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4235
                             preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4199
-
4200
                           }
4236
                           }
4201
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4237
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4202
                         } else if (this.schedule.schedule_type == 2) {
4238
                         } else if (this.schedule.schedule_type == 2) {
4203
-                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
4239
+                          if(this.org_id == 10206  || this.org_id == 0){
4240
+                            preTime = this.record_date + ' ' + '10:00'
4241
+                          }else{
4242
+                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
4243
+                          }
4204
                         } else if (this.schedule.schedule_type == 3) {
4244
                         } else if (this.schedule.schedule_type == 3) {
4205
                           preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
4245
                           preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
4206
                         }
4246
                         }
4695
 
4735
 
4696
                     var preTime = nowTime
4736
                     var preTime = nowTime
4697
 
4737
 
4698
-                    if (this.org_id != 0 && this.org_id != 9919 && this.org_id != 10485 && this.org_id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
4738
+                    if ( this.org_id != 9919 && this.org_id != 10485 && this.org_id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
4699
                       if (prescription.pre_time == 0) {
4739
                       if (prescription.pre_time == 0) {
4700
                         // preTime = nowTime
4740
                         // preTime = nowTime
4701
                         if (this.schedule.schedule_type == 1) {
4741
                         if (this.schedule.schedule_type == 1) {
4702
                           if (this.org_id == 10028) {
4742
                           if (this.org_id == 10028) {
4703
                             preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
4743
                             preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
4744
+                          } else if(this.org_id == 10206 || this.org_id == 0){
4745
+                            preTime = this.record_date + ' ' + '6:00'
4704
                           } else {
4746
                           } else {
4705
                             preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4747
                             preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4706
-
4707
                           }
4748
                           }
4708
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4749
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4709
                         } else if (this.schedule.schedule_type == 2) {
4750
                         } else if (this.schedule.schedule_type == 2) {
4710
-                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
4751
+                          if(this.org_id == 10206  || this.org_id == 0){
4752
+                            preTime =this.record_date + ' ' + '10:00'
4753
+                          }else{
4754
+                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
4755
+
4756
+                          }
4711
                         } else if (this.schedule.schedule_type == 3) {
4757
                         } else if (this.schedule.schedule_type == 3) {
4712
                           preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
4758
                           preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
4713
                         }
4759
                         }
4862
 
4908
 
4863
                       var preTime = nowTime
4909
                       var preTime = nowTime
4864
                       // var preTime = ''
4910
                       // var preTime = ''
4865
-                      if (this.org_id != 0 && this.org_id != 9919 && this.org_id != 10485 && this.org_id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
4911
+                      if ( this.org_id != 9919 && this.org_id != 10485 && this.org_id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
4866
                         if (this.schedule.schedule_type == 1) {
4912
                         if (this.schedule.schedule_type == 1) {
4867
                           if (this.org_id == 10028) {
4913
                           if (this.org_id == 10028) {
4868
                             preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
4914
                             preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
4915
+                          } else if(this.org_id == 10206 ||  this.org_id == 0){
4916
+                            preTime = this.record_date + ' ' + '6:00'
4869
                           } else {
4917
                           } else {
4870
                             preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4918
                             preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4871
-
4872
                           }
4919
                           }
4873
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4920
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4874
                         } else if (this.schedule.schedule_type == 2) {
4921
                         } else if (this.schedule.schedule_type == 2) {
4875
-                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
4922
+                          if(this.org_id == 10206 ||  this.org_id == 0){
4923
+                            preTime = this.record_date + ' ' + '10:00'
4924
+
4925
+                          }else{
4926
+                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
4927
+                          }
4876
                         } else if (this.schedule.schedule_type == 3) {
4928
                         } else if (this.schedule.schedule_type == 3) {
4877
                           preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
4929
                           preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
4878
                         }
4930
                         }

+ 1 - 1
src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue 查看文件

2036
               console.log("-=======")
2036
               console.log("-=======")
2037
               for (let i = 0; i < this.zuobiao_project.length; i++) {
2037
               for (let i = 0; i < this.zuobiao_project.length; i++) {
2038
                 for (let b = 0; b < this.tabProject.length; b++) {
2038
                 for (let b = 0; b < this.tabProject.length; b++) {
2039
-                  if (this.zuobiao_project[i].bbx01 == this.tabProject[b].bbx01 && this.zuobiao_project[i].bby06 == this.tabProject[b].specification_name){
2039
+                  if (this.zuobiao_project[i].bbx01 == this.tabProject[b].bbx01 && this.zuobiao_project[i].bby06 == this.tabProject[b].single_dose){
2040
                     this.tabProject[b]["zuobiao_stock_num"] = this.zuobiao_project[i].lsqty
2040
                     this.tabProject[b]["zuobiao_stock_num"] = this.zuobiao_project[i].lsqty
2041
                     this.tabProject[b].price = this.zuobiao_project[i].price
2041
                     this.tabProject[b].price = this.zuobiao_project[i].price
2042
 
2042