Browse Source

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

28169 2 months ago
parent
commit
1c7b212a3f

+ 6 - 3
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue View File

@@ -157,7 +157,8 @@
157 157
             </el-table-column>
158 158
             <el-table-column align="center" prop="project_name" label="规格">
159 159
                 <template slot-scope="scope">
160
-                  <span>{{ scope.row.project_name }}</span>
160
+                  <span v-if="scope.row.type==2">{{ scope.row.project_name }}</span>
161
+                  <span v-if="scope.row.type==3">{{ scope.row.good_info.specification_name }}</span>
161 162
                 </template>
162 163
             </el-table-column>
163 164
             <el-table-column align="center" prop="statistical_classification" width="100" label="组">
@@ -772,11 +773,13 @@
772 773
       this.getInitData()
773 774
 
774 775
     },
776
+    created(){
777
+      console.log('prescription',this.prescription);
778
+    },
775 779
     watch: {
776 780
       'prescription.advices': {
777 781
         handler(newVal, oldVal) {
778
-          console.log("检查我我我我",this.prescription.advices)
779
-          console.log("检查我我我我",this.prescription.project)
782
+          console.log("检查我我我我",this.prescription)
780 783
         },
781 784
         deep: true
782 785
       }

+ 27 - 27
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

@@ -1995,7 +1995,7 @@ export default {
1995 1995
           this.case_history.physical_examination = this.case_history.physical_examination
1996 1996
           this.case_history.special_inspection = this.case_history.special_inspection
1997 1997
           this.case_history.lab_apparatus = this.case_history.lab_apparatus
1998
-    
1998
+
1999 1999
           //处方相关
2000 2000
           this.prescriptionList = response.data.data.prescription
2001 2001
 
@@ -2104,7 +2104,7 @@ export default {
2104 2104
                   if (this.schedule.schedule_type == 1) {
2105 2105
                     if (this.org_id == 10028 || this.org_id == 10571 || this.org_id == 0 || this.org_id == 10633) {
2106 2106
                       preTime = this.record_date + ' ' + '6:30'
2107
-                    } else if(this.org_id == 10206 ){
2107
+                    } else if(this.org_id == 10206 || this.org_id == 10598){
2108 2108
                       preTime = this.record_date + ' ' + '6:00'
2109 2109
                     } else {
2110 2110
                       preTime = this.record_date + ' ' + '7:00'
@@ -2135,7 +2135,7 @@ export default {
2135 2135
                   if(nowTime.split(" ")[0] != this.record_date){
2136 2136
                     // preTime = this.record_date
2137 2137
                     if(this.schedule.schedule_type == 1){
2138
-                      if(this.org_id == 10206  || this.org_id == 0) {
2138
+                      if(this.org_id == 10206  || this.org_id == 0 || this.org_id == 10598) {
2139 2139
                         preTime = this.record_date+ ' ' + '6:00'
2140 2140
                       }else {
2141 2141
                         preTime = this.record_date + ' ' + '7:00'
@@ -2299,7 +2299,7 @@ export default {
2299 2299
                   if (this.schedule.schedule_type == 1) {
2300 2300
                     if (this.org_id == 10028 ||  this.org_id == 10571 || this.org_id == 0 || this.org_id == 10633) {
2301 2301
                       preTime = this.record_date + ' ' + '6:30'
2302
-                    } else if(this.org_id == 10206  ) {
2302
+                    } else if(this.org_id == 10206  || this.org_id == 10598) {
2303 2303
                       preTime = this.record_date+ ' ' + '6:00'
2304 2304
                     } else {
2305 2305
                       preTime = this.record_date + ' ' + '7:00'
@@ -2318,7 +2318,7 @@ export default {
2318 2318
 
2319 2319
                 if(nowTime.split(" ")[0] != this.record_date){
2320 2320
                   if(this.schedule.schedule_type == 1){
2321
-                    if(this.org_id == 10206  || this.org_id == 0) {
2321
+                    if(this.org_id == 10206  || this.org_id == 0 ||  this.org_id == 10598) {
2322 2322
                       preTime = this.record_date+ ' ' + '6:00'
2323 2323
                     }else {
2324 2324
                       preTime = this.record_date + ' ' + '7:00'
@@ -2374,7 +2374,7 @@ export default {
2374 2374
               if(nowTime.split(" ")[0] != this.record_date){
2375 2375
                 // preTime = this.record_date
2376 2376
                 if(this.schedule.schedule_type == 1){
2377
-                  if(this.org_id == 10206  || this.org_id == 0) {
2377
+                  if(this.org_id == 10206  || this.org_id == 0 || this.org_id == 10598) {
2378 2378
                     preTime = this.record_date+ ' ' + '6:00'
2379 2379
                   }else {
2380 2380
                     preTime = this.record_date + ' ' + '7:00'
@@ -2678,7 +2678,7 @@ export default {
2678 2678
                         if (this.schedule.schedule_type == 1) {
2679 2679
                           if (this.org_id == 10028 || this.org_id == 10571 || this.org_id == 0 || this.org_id == 10633) {
2680 2680
                             preTime = this.record_date + ' ' + '6:30'
2681
-                          } else if(this.org_id == 10206 ){
2681
+                          } else if(this.org_id == 10206 || this.org_id == 10598){
2682 2682
                             preTime = this.record_date + ' ' + '6:00'
2683 2683
                           } else {
2684 2684
                             preTime = this.record_date + ' ' + '7:00'
@@ -2701,7 +2701,7 @@ export default {
2701 2701
                       if (prescription.pre_time == 0) {
2702 2702
                         if(nowTime.split(" ")[0] != this.record_date){
2703 2703
                           if(this.schedule.schedule_type == 1){
2704
-                            if(this.org_id == 10206  || this.org_id == 0) {
2704
+                            if(this.org_id == 10206  || this.org_id == 0 || this.org_id == 10598) {
2705 2705
                               preTime = this.record_date+ ' ' + '6:00'
2706 2706
                             }else {
2707 2707
                               preTime = this.record_date + ' ' + '7:00'
@@ -2866,7 +2866,7 @@ export default {
2866 2866
                         if (this.schedule.schedule_type == 1) {
2867 2867
                           if (this.org_id == 10028 || this.org_id == 10571 || this.org_id == 0 || this.org_id == 10633) {
2868 2868
                             preTime = this.record_date + ' ' + '6:30'
2869
-                          } else if(this.org_id == 10206){
2869
+                          } else if(this.org_id == 10206 || this.org_id == 10598){
2870 2870
                             preTime = this.record_date + ' ' + '6:00'
2871 2871
                           } else {
2872 2872
                             preTime = this.record_date + ' ' + '7:00'
@@ -2887,7 +2887,7 @@ export default {
2887 2887
                       }
2888 2888
                       if(nowTime.split(" ")[0] != this.record_date){
2889 2889
                         if(this.schedule.schedule_type == 1){
2890
-                          if(this.org_id == 10206  || this.org_id == 0) {
2890
+                          if(this.org_id == 10206  || this.org_id == 0 || this.org_id == 10598) {
2891 2891
                             preTime = this.record_date+ ' ' + '6:00'
2892 2892
                           }else {
2893 2893
                             preTime = this.record_date + ' ' + '7:00'
@@ -2936,7 +2936,7 @@ export default {
2936 2936
                   } else {
2937 2937
                     if(nowTime.split(" ")[0] != this.record_date){
2938 2938
                       if(this.schedule.schedule_type == 1){
2939
-                        if(this.org_id == 10206  || this.org_id == 0) {
2939
+                        if(this.org_id == 10206  || this.org_id == 0 || this.org_id == 10598) {
2940 2940
                           preTime = this.record_date+ ' ' + '6:00'
2941 2941
                         }else {
2942 2942
                           preTime = this.record_date + ' ' + '7:00'
@@ -3323,7 +3323,7 @@ export default {
3323 3323
                       // preTime = nowTime
3324 3324
                       if(nowTime.split(" ")[0] != this.record_date){
3325 3325
                         if(this.schedule.schedule_type == 1){
3326
-                          if(this.org_id == 10206  || this.org_id == 0) {
3326
+                          if(this.org_id == 10206  || this.org_id == 0 || this.org_id == 10598) {
3327 3327
                             preTime = this.record_date+ ' ' + '6:00'
3328 3328
                           }else {
3329 3329
                             preTime = this.record_date + ' ' + '7:00'
@@ -3480,7 +3480,7 @@ export default {
3480 3480
                       var preTime = nowTime
3481 3481
                       if(nowTime.split(" ")[0] != this.record_date){
3482 3482
                         if(this.schedule.schedule_type == 1){
3483
-                          if(this.org_id == 10206  || this.org_id == 0) {
3483
+                          if(this.org_id == 10206  || this.org_id == 0 || this.org_id == 10598) {
3484 3484
                             preTime = this.record_date+ ' ' + '6:00'
3485 3485
                           }else {
3486 3486
                             preTime = this.record_date + ' ' + '7:00'
@@ -3527,7 +3527,7 @@ export default {
3527 3527
                   } else {
3528 3528
                     if(nowTime.split(" ")[0] != this.record_date){
3529 3529
                       if(this.schedule.schedule_type == 1){
3530
-                        if(this.org_id == 10206  || this.org_id == 0) {
3530
+                        if(this.org_id == 10206  || this.org_id == 0 || this.org_id == 10598) {
3531 3531
                           preTime = this.record_date+ ' ' + '6:00'
3532 3532
                         }else {
3533 3533
                           preTime = this.record_date + ' ' + '7:00'
@@ -3900,7 +3900,7 @@ export default {
3900 3900
                     // preTime = nowTime
3901 3901
                     if(nowTime.split(" ")[0] != this.record_date){
3902 3902
                       if(this.schedule.schedule_type == 1){
3903
-                        if(this.org_id == 10206  || this.org_id == 0) {
3903
+                        if(this.org_id == 10206  || this.org_id == 0 || this.org_id == 10598) {
3904 3904
                           preTime = this.record_date+ ' ' + '6:00'
3905 3905
                         }else {
3906 3906
                           preTime = this.record_date + ' ' + '7:00'
@@ -4056,7 +4056,7 @@ export default {
4056 4056
                     var preTime = nowTime
4057 4057
                     if(nowTime.split(" ")[0] != this.record_date){
4058 4058
                       if(this.schedule.schedule_type == 1){
4059
-                        if(this.org_id == 10206  || this.org_id == 0) {
4059
+                        if(this.org_id == 10206  || this.org_id == 0 || this.org_id == 10598) {
4060 4060
                           preTime = this.record_date+ ' ' + '6:00'
4061 4061
                         }else {
4062 4062
                           preTime = this.record_date + ' ' + '7:00'
@@ -4104,7 +4104,7 @@ export default {
4104 4104
                 } else {
4105 4105
                   if(nowTime.split(" ")[0] != this.record_date){
4106 4106
                     if(this.schedule.schedule_type == 1){
4107
-                      if(this.org_id == 10206  || this.org_id == 0) {
4107
+                      if(this.org_id == 10206  || this.org_id == 0 || this.org_id == 10598) {
4108 4108
                         preTime = this.record_date+ ' ' + '6:00'
4109 4109
                       }else {
4110 4110
                         preTime = this.record_date + ' ' + '7:00'
@@ -4564,7 +4564,7 @@ export default {
4564 4564
                         if (this.schedule.schedule_type == 1) {
4565 4565
                           if (this.org_id == 10028 || this.org_id == 10571 || this.org_id == 0 || this.org_id == 10633) {
4566 4566
                             preTime = this.record_date + ' ' + '6:30'
4567
-                          } else if(this.org_id == 10206){
4567
+                          } else if(this.org_id == 10206 || this.org_id == 10598){
4568 4568
 
4569 4569
                             preTime = this.record_date + ' ' + '6:00'
4570 4570
 
@@ -4592,7 +4592,7 @@ export default {
4592 4592
                         // preTime = nowTime
4593 4593
                         if(nowTime.split(" ")[0] != this.record_date){
4594 4594
                           if(this.schedule.schedule_type == 1){
4595
-                            if(this.org_id == 10206  || this.org_id == 0) {
4595
+                            if(this.org_id == 10206  || this.org_id == 0 || this.org_id == 10598) {
4596 4596
                               preTime = this.record_date+ ' ' + '6:00'
4597 4597
                             }else {
4598 4598
                               preTime = this.record_date + ' ' + '7:00'
@@ -4755,7 +4755,7 @@ export default {
4755 4755
                         if (this.schedule.schedule_type == 1) {
4756 4756
                           if (this.org_id == 10028 || this.org_id == 10571 || this.org_id == 0 || this.org_id == 10633) {
4757 4757
                             preTime = this.record_date + ' ' + '6:30'
4758
-                          } else if(this.org_id == 10206){
4758
+                          } else if(this.org_id == 10206 || this.org_id == 10598){
4759 4759
                             preTime = this.record_date+ ' ' + '6:00'
4760 4760
                           } else {
4761 4761
                             preTime = this.record_date + ' ' + '7:00'
@@ -4773,7 +4773,7 @@ export default {
4773 4773
                       }
4774 4774
                       if(nowTime.split(" ")[0] != this.record_date){
4775 4775
                         if(this.schedule.schedule_type == 1){
4776
-                          if(this.org_id == 10206  || this.org_id == 0) {
4776
+                          if(this.org_id == 10206  || this.org_id == 0 || this.org_id == 10598) {
4777 4777
                             preTime = this.record_date+ ' ' + '6:00'
4778 4778
                           }else {
4779 4779
                             preTime = this.record_date + ' ' + '7:00'
@@ -4828,7 +4828,7 @@ export default {
4828 4828
 
4829 4829
                     if(nowTime.split(" ")[0] != this.record_date){
4830 4830
                       if(this.schedule.schedule_type == 1){
4831
-                        if(this.org_id == 10206  || this.org_id == 0) {
4831
+                        if(this.org_id == 10206  || this.org_id == 0 || this.org_id == 10598) {
4832 4832
                           preTime = this.record_date+ ' ' + '6:00'
4833 4833
                         }else {
4834 4834
                           preTime = this.record_date + ' ' + '7:00'
@@ -5191,7 +5191,7 @@ export default {
5191 5191
                         if (this.schedule.schedule_type == 1) {
5192 5192
                           if (this.org_id == 10028 || this.org_id == 10571 || this.org_id == 0 || this.org_id == 10633) {
5193 5193
                             preTime = this.record_date + ' ' + '6:30'
5194
-                          } else if(this.org_id == 10206){
5194
+                          } else if(this.org_id == 10206 || this.org_id == 10598){
5195 5195
                             preTime = this.record_date + ' ' + '6:00'
5196 5196
                           } else {
5197 5197
                             preTime = this.record_date + ' ' + '7:00'
@@ -5215,7 +5215,7 @@ export default {
5215 5215
                         preTime = nowTime
5216 5216
                         if(nowTime.split(" ")[0] != this.record_date){
5217 5217
                           if(this.schedule.schedule_type == 1){
5218
-                            if(this.org_id == 10206  || this.org_id == 0) {
5218
+                            if(this.org_id == 10206  || this.org_id == 0 || this.org_id == 10598) {
5219 5219
                               preTime = this.record_date+ ' ' + '6:00'
5220 5220
                             }else {
5221 5221
                               preTime = this.record_date + ' ' + '7:00'
@@ -5379,7 +5379,7 @@ export default {
5379 5379
                         if (this.schedule.schedule_type == 1) {
5380 5380
                           if (this.org_id == 10028 || this.org_id == 10571 || this.org_id == 0 || this.org_id == 10633) {
5381 5381
                             preTime = this.record_date + ' ' + '6:30'
5382
-                          } else if(this.org_id == 10206){
5382
+                          } else if(this.org_id == 10206 || this.org_id == 10598){
5383 5383
                             preTime = this.record_date + ' ' + '6:00'
5384 5384
                           } else {
5385 5385
                             preTime = this.record_date + ' ' + '7:00'
@@ -5398,7 +5398,7 @@ export default {
5398 5398
                       }
5399 5399
                       if(nowTime.split(" ")[0] != this.record_date){
5400 5400
                         if(this.schedule.schedule_type == 1){
5401
-                          if(this.org_id == 10206  || this.org_id == 0) {
5401
+                          if(this.org_id == 10206  || this.org_id == 0 || this.org_id == 10598) {
5402 5402
                             preTime = this.record_date+ ' ' + '6:00'
5403 5403
                           }else {
5404 5404
                             preTime = this.record_date + ' ' + '7:00'
@@ -5452,7 +5452,7 @@ export default {
5452 5452
                   } else {
5453 5453
                     if(nowTime.split(" ")[0] != this.record_date){
5454 5454
                       if(this.schedule.schedule_type == 1){
5455
-                        if(this.org_id == 10206  || this.org_id == 0) {
5455
+                        if(this.org_id == 10206  || this.org_id == 0 || this.org_id == 10598) {
5456 5456
                           preTime = this.record_date+ ' ' + '6:00'
5457 5457
                         }else {
5458 5458
                           preTime = this.record_date + ' ' + '7:00'

+ 2 - 4
src/xt_pages/outpatientDoctorStation/pastInquiries.vue View File

@@ -166,6 +166,7 @@
166 166
       >
167 167
       </el-pagination>
168 168
       <inquiries-detail ref="inquiriesDetail"></inquiries-detail>
169
+
169 170
       <el-dialog
170 171
           class="centerDialog"
171 172
           width="600px"
@@ -213,7 +214,7 @@ import { uParseTime } from '@/utils/tools'
213 214
 import print from './batch_print_template/index'
214 215
 import treatPrint from './batch_print_treatTemplate/index'
215 216
 import checkPrint from './batch_print_checkTemplate/index'
216
-
217
+import prints from "print-js";
217 218
 export default {
218 219
   components: {
219 220
     BreadCrumb,
@@ -425,17 +426,14 @@ export default {
425 426
         }
426 427
         getBatchPrint(params).then((res) => {
427 428
           let Arr = res.data.data.patients
428
-
429 429
           let new_patients = []
430 430
           if (type != 3) {
431
-
432 431
             if (type == 1){
433 432
               Arr.forEach((i) => {
434 433
                 if (i.prescriptions.length != 0) {
435 434
                   new_patients.push(i)
436 435
                 }
437 436
               })
438
-
439 437
             }else {
440 438
               Arr.forEach((i) => {
441 439
                 if (i.prescriptions.length != 0) {