Browse Source

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

yq1 2 months ago
parent
commit
278e56a5ea

+ 16 - 1
src/store/modules/globalConfig.js View File

@@ -1120,7 +1120,22 @@ const global_config = {
1120 1120
         zongliang_unit: 'mg',
1121 1121
         gaimingcheng_unit: '',
1122 1122
         gaijiliang_unit: ''
1123
-      }
1123
+      },
1124
+      18: {
1125
+        id: 18,
1126
+        name: '贝米肝素钠注射液',
1127
+        type: 1,
1128
+        shouji: 1,
1129
+        weichi: 1,
1130
+        zongliang: 1,
1131
+        gaimingcheng: -1,
1132
+        gaijiliang: -1,
1133
+        shouji_unit: 'iu',
1134
+        weichi_unit: 'iu/h',
1135
+        zongliang_unit: 'iu',
1136
+        gaimingcheng_unit: '',
1137
+        gaijiliang_unit: ''
1138
+      },
1124 1139
     },
1125 1140
     anticoagulants_set: {
1126 1141
       type: 2

+ 74 - 43
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

@@ -1724,57 +1724,85 @@ export default {
1724 1724
         }) .catch(function(error) {
1725 1725
           this.newLoading = false
1726 1726
         })
1727
-
1728 1727
       } else {
1729
-        var that = this
1730
-        axios.get('http://127.0.0.1:9532/api/upload/get', {
1731
-          params: form,
1732
-          headers: {
1733
-            'Permission': 5
1734
-          }
1735
-        })
1736
-          .then(function(response) {
1728
+        if((this.org_id == 10644 && this.other_prescriptions[0].med_type == "1112") || (this.org_id == 10644 && this.other_prescriptions[0].med_type == "1111")) {
1729
+          upload(form).then(response => {
1737 1730
             if (response.data.state == 0) {
1738
-              that.$message.error(response.data.msg)
1739
-
1740
-              that.loadingtwo = false
1741
-              that.$refs.charge.hide()
1742
-
1731
+              this.$message.error(response.data.msg)
1732
+              this.loadingtwo = false
1733
+              this.newLoading = false
1734
+              this.$refs.charge.hide()
1743 1735
               return false
1744 1736
             } else {
1745
-              if (response.data.data.failed_code == -10) {
1737
+              this.$refs.charge.hide()
1738
+              this.radio = 2
1739
+              this.changeRadioAndPatient(2)
1740
+              this.loadingtwo = false
1741
+              this.state = '已收费'
1742
+              this.$message({ message: '收费成功', type: 'success' })
1743
+              this.$refs.charge.hide()
1744
+              this.loadingtwo = false
1745
+              this.newLoading = false
1746
+            }
1747
+          }) .catch(function(error) {
1748
+            this.newLoading = false
1749
+          })
1750
+        }else{
1746 1751
 
1747
-                that.$confirm(response.data.data.msg, '医保错误信息', {
1748
-                  confirmButtonText: '确 定',
1749
-                  type: 'warning'
1750
-                }).then(() => {
1751
-                  that.$refs.charge.hide()
1752
-                  that.changeRadioAndPatient(1)
1753
-                  that.newLoading = false
1754
-                }).catch(() => {
1755
-                  that.$refs.charge.hide()
1756
-                  that.changeRadioAndPatient(1)
1757
-                  that.newLoading = false
1758
-                })
1752
+          var that = this
1753
+          axios.get('http://127.0.0.1:9532/api/upload/get', {
1754
+            params: form,
1755
+            headers: {
1756
+              'Permission': 5
1757
+            }
1758
+          })
1759
+            .then(function(response) {
1760
+              if (response.data.state == 0) {
1761
+                that.$message.error(response.data.msg)
1759 1762
 
1760
-              } else {
1761
-                that.radio = 2
1762
-                that.changeRadioAndPatient(2)
1763
-                that.$refs.charge.hide()
1764
-                that.loadingtwo = false
1765
-                that.state = '已收费'
1766
-                that.$message({ message: '收费成功', type: 'success', duration: 5000 })
1767 1763
                 that.loadingtwo = false
1768
-                that.cal_one = this.cal_one - 1
1769
-                that.cal_two = this.cal_two + 1
1770
-                that.patientTableData.splice(this.current_index, 1)
1771
-                that.newLoading = false
1764
+                that.$refs.charge.hide()
1765
+
1766
+                return false
1767
+              } else {
1768
+                if (response.data.data.failed_code == -10) {
1769
+
1770
+                  that.$confirm(response.data.data.msg, '医保错误信息', {
1771
+                    confirmButtonText: '确 定',
1772
+                    type: 'warning'
1773
+                  }).then(() => {
1774
+                    that.$refs.charge.hide()
1775
+                    that.changeRadioAndPatient(1)
1776
+                    that.newLoading = false
1777
+                  }).catch(() => {
1778
+                    that.$refs.charge.hide()
1779
+                    that.changeRadioAndPatient(1)
1780
+                    that.newLoading = false
1781
+                  })
1782
+
1783
+                } else {
1784
+                  that.radio = 2
1785
+                  that.changeRadioAndPatient(2)
1786
+                  that.$refs.charge.hide()
1787
+                  that.loadingtwo = false
1788
+                  that.state = '已收费'
1789
+                  that.$message({ message: '收费成功', type: 'success', duration: 5000 })
1790
+                  that.loadingtwo = false
1791
+                  that.cal_one = this.cal_one - 1
1792
+                  that.cal_two = this.cal_two + 1
1793
+                  that.patientTableData.splice(this.current_index, 1)
1794
+                  that.newLoading = false
1795
+                }
1772 1796
               }
1773
-            }
1774
-          })
1775
-          .catch(function(error) {
1776
-            that.newLoading = false
1777
-          })
1797
+            })
1798
+            .catch(function(error) {
1799
+              that.newLoading = false
1800
+            })
1801
+
1802
+        }
1803
+
1804
+
1805
+
1778 1806
       }
1779 1807
     },
1780 1808
     chargeCancel() {
@@ -3314,6 +3342,7 @@ export default {
3314 3342
         this.treatVisible = true
3315 3343
         // this.$router.push('/outpatientCharges/treatPrint?record_date=' + this.record_date + '&patient_id=' + this.patient_id + '&prescription_id=' + this.prescription_id)
3316 3344
       } else if (index == 4) {//收费
3345
+
3317 3346
         var ids = []
3318 3347
         for (let i = 0; i < prescriptions.length; i++) {
3319 3348
           ids.push(prescriptions[i].id)
@@ -3338,6 +3367,8 @@ export default {
3338 3367
             this.pwd = ''
3339 3368
           } else {
3340 3369
             if (this.activeName == 'first') {
3370
+
3371
+
3341 3372
               this.$refs.charge.show(this.getTotalFour(prescriptions), this.currentOrder,this.patientInfo.id)
3342 3373
             } else {
3343 3374
               this.$refs.charge.show(this.getTotalFour(prescriptions), this.currentOrder,this.patientInfo.id)

+ 18 - 6
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

@@ -2274,12 +2274,13 @@ export default {
2274 2274
       }
2275 2275
 
2276 2276
       this.state1 = info.sick_type
2277
-      if (this.state1 == 0 || this.state1 == '') {
2278
-        this.state1 = ''
2279
-        for (let i = 0; i < this.sick.length; i++) {
2280
-          this.state1 = this.sick[0].id
2281
-        }
2282
-      }
2277
+      // if (this.state1 == 0 || this.state1 == '') {
2278
+      //   this.state1 = ''
2279
+      //   for (let i = 0; i < this.sick.length; i++) {
2280
+      //     this.state1 = this.sick[0].id
2281
+      //
2282
+      //   }
2283
+      // }
2283 2284
 
2284 2285
       if (this.departmentValue == '' || this.departmentValue == 0) {
2285 2286
         if (department.length > 0) {
@@ -2296,6 +2297,12 @@ export default {
2296 2297
         this.state1 = 662
2297 2298
       }
2298 2299
 
2300
+      //
2301
+      // if (this.org_id == 10598 || this.org_id == 0) {
2302
+      //   this.state1 = 662
2303
+      // }
2304
+
2305
+
2299 2306
       if (info.id > 0) {
2300 2307
         this.doctorValue = info.doctor_id
2301 2308
         this.departmentValue = info.departments
@@ -2411,6 +2418,7 @@ export default {
2411 2418
         console.log('hhahahahah', this.patient_diagnose)
2412 2419
       }
2413 2420
 
2421
+      console.log('--------', info.sick_type)
2414 2422
       this.state1 = info.sick_type
2415 2423
       if (this.state1 == 0 || this.state1 == '') {
2416 2424
         this.state1 = ''
@@ -2423,6 +2431,10 @@ export default {
2423 2431
         this.state1 = 607
2424 2432
       }
2425 2433
 
2434
+      if (this.org_id == 10598 || this.org_id == 0) {
2435
+        this.state1 = 693
2436
+      }
2437
+
2426 2438
       if (this.departmentValue == '' || this.departmentValue == 0) {
2427 2439
         if (department.length > 0) {
2428 2440
           this.departmentValue = department[0].id

+ 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'

+ 9 - 4
src/xt_pages/outpatientTool/components/gather.vue View File

@@ -60,6 +60,8 @@
60 60
           <el-button slot="reference" style="margin:0 10px;" type="primary" size="small">打印</el-button>
61 61
 
62 62
         </el-popover> -->
63
+        <el-button size="small" type="primary" @click="query">查询</el-button>
64
+
63 65
         <el-button size="small" type="primary" @click="export_detail">报表下载</el-button>
64 66
       </div>
65 67
     </div>
@@ -158,9 +160,9 @@ export default {
158 160
     },
159 161
     changeDate() {
160 162
       // console.log(this.chargeDate)
161
-      this.getSummaryDetailList()
163
+      // this.getSummaryDetailList()
162 164
     },changeTimeItem(){
163
-      this.getSummaryDetailList()
165
+      // this.getSummaryDetailList()
164 166
     },
165 167
     changeItem() {
166 168
       this.new_item_type = this.item_type
@@ -169,14 +171,14 @@ export default {
169 171
       }else if(this.item_type == 5){
170 172
         this.new_item_type = -200
171 173
       }
172
-      this.getSummaryDetailList()
174
+      // this.getSummaryDetailList()
173 175
     }, uniquepid(arr) {
174 176
       const res = new Map()
175 177
       return arr.filter((arr) => !res.has(arr.p_id) && res.set(arr.p_id, 1))
176 178
     },
177 179
     searchAction() {
178 180
       this.item_type = '0'
179
-      this.getSummaryDetailList()
181
+      // this.getSummaryDetailList()
180 182
     },
181 183
     getSummaryDetailList() {
182 184
       this.gather_loading = true
@@ -493,6 +495,9 @@ export default {
493 495
       })
494 496
 
495 497
       return sums
498
+    },query(){
499
+      this.getSummaryDetailList()
500
+
496 501
     }, export_detail() {
497 502
 
498 503
       let list = []

+ 1 - 1
src/xt_pages/stock/drugs/drugInventory.vue View File

@@ -26,7 +26,7 @@
26 26
           <drug-damaged ref="childOne"></drug-damaged>
27 27
         </el-tab-pane>
28 28
 
29
-        <!-- <el-tab-pane label="盘点记录表" name="seven">
29
+        <!-- <el-tab-pane label="盘点日志表" name="seven">
30 30
             <inventory-record ref="childSeven"></inventory-record>
31 31
          </el-tab-pane> -->
32 32
       </el-tabs>

+ 1 - 1
src/xt_pages/stock/stockInventory.vue View File

@@ -22,7 +22,7 @@
22 22
                 <stockDamaged ref="childOne"></stockDamaged>
23 23
             </el-tab-pane>
24 24
 
25
-            <el-tab-pane label="盘点记录表" name="seven">
25
+            <el-tab-pane label="盘点日志表" name="seven">
26 26
                 <inventory-record ref="childSeven"></inventory-record>
27 27
             </el-tab-pane>
28 28
         </el-tabs>

+ 417 - 0
src/xt_pages/stock/stockInventoryModePrint.vue View File

@@ -0,0 +1,417 @@
1
+<template>
2
+    <div class="main-contain">
3
+        <div class="position">
4
+        <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+        <el-row style="float:right;">
6
+            <el-col :span="24">
7
+            <el-button size="small" icon="el-icon-printer" type="primary" @click="printAction">打印</el-button>
8
+            </el-col>
9
+        </el-row>
10
+        </div>
11
+        <div class="app-container" style="background-color: white;">
12
+            <div id="print_content">
13
+
14
+                <table class="printTable" border="0" cellspacing="0" align="center">
15
+                    <thead class="print_head">
16
+                        <tr><td colspan="11">{{org_name}}</td></tr>
17
+                        <tr><td colspan="11">耗材盘点</td></tr>
18
+                    </thead>
19
+                    <tbody class="print_body">
20
+                    <tr>
21
+                        <td align="center">耗材名称</td>
22
+                        <td align="center">规格</td>
23
+                     
24
+                        <td align="center">本月入库数量</td>
25
+                        <td align="center">本月出库数量</td>
26
+                        <td align="center">本月剩余库存</td>
27
+                        <td align="center">批号</td>
28
+                        <td align="center">生产日期</td> 
29
+                        <td align="center">有效日期</td>
30
+                        <td align="center">生产厂商</td>
31
+                        <td align="center">盘点数量</td>
32
+                       
33
+                    </tr>
34
+
35
+                    <tr v-for="(item,index) in tableList" :key="index">
36
+                        <td align="center">{{ item.good_name }}</td>
37
+                        <td align="center">{{ item.specification_name }}</td>
38
+                        <td align="center">{{ getInCount(item.good_id) }}</td>
39
+                        <td align="center">{{ getOutCount(item.good_id) }}</td> 
40
+                        <td align="center">{{ getSumCount(item.good_id) }}</td>
41
+                        <td align="center">
42
+                            <table
43
+                                class="ware_table"
44
+                                style="width: 100%; border-collapse: collapse"
45
+                                >
46
+                                <tr
47
+                                    v-for="(it, i) in item.child"
48
+                                    :key="i"
49
+                                    style="width: 100%"
50
+                                >
51
+                                    <td
52
+                                    :style="[
53
+                                        {
54
+                                        border:
55
+                                            i === item.child.length - 1
56
+                                            ? 'none'
57
+                                            : '',
58
+                                        },
59
+                                        {
60
+                                        borderStyle:
61
+                                            i === item.child.length - 1
62
+                                            ? 'initial'
63
+                                            : 'hidden',
64
+                                        },
65
+                                        {
66
+                                        borderBottom:
67
+                                            i === item.child.length - 1
68
+                                            ? 'none'
69
+                                            : '1px solid',
70
+                                        },
71
+                                    ]"
72
+                                    >
73
+                                    {{ it.number }}
74
+                                    </td>
75
+                              </tr>
76
+                            </table>
77
+                        </td>
78
+                       
79
+                        <td align="center">
80
+                            <table
81
+                                class="ware_table"
82
+                                style="width: 100%; border-collapse: collapse"
83
+                                >
84
+                                <tr
85
+                                    v-for="(it, i) in item.child"
86
+                                    :key="i"
87
+                                    style="width: 100%"
88
+                                >
89
+                                    <td
90
+                                    :style="[
91
+                                        {
92
+                                        border:
93
+                                            i === item.child.length - 1
94
+                                            ? 'none'
95
+                                            : '',
96
+                                        },
97
+                                        {
98
+                                        borderStyle:
99
+                                            i === item.child.length - 1
100
+                                            ? 'initial'
101
+                                            : 'hidden',
102
+                                        },
103
+                                        {
104
+                                        borderBottom:
105
+                                            i === item.child.length - 1
106
+                                            ? 'none'
107
+                                            : '1px solid',
108
+                                        },
109
+                                    ]"
110
+                                    >
111
+                                    {{ getTime(it.product_date) }}
112
+                                    </td>
113
+                              </tr>
114
+                            </table>
115
+                        </td>
116
+                        <td align="center">
117
+                            <table
118
+                                class="ware_table"
119
+                                style="width: 100%; border-collapse: collapse"
120
+                                >
121
+                                <tr
122
+                                    v-for="(it, i) in item.child"
123
+                                    :key="i"
124
+                                    style="width: 100%"
125
+                                >
126
+                                    <td
127
+                                    :style="[
128
+                                        {
129
+                                        border:
130
+                                            i === item.child.length - 1
131
+                                            ? 'none'
132
+                                            : '',
133
+                                        },
134
+                                        {
135
+                                        borderStyle:
136
+                                            i === item.child.length - 1
137
+                                            ? 'initial'
138
+                                            : 'hidden',
139
+                                        },
140
+                                        {
141
+                                        borderBottom:
142
+                                            i === item.child.length - 1
143
+                                            ? 'none'
144
+                                            : '1px solid',
145
+                                        },
146
+                                    ]"
147
+                                    >
148
+                                    {{ getTime(it.expiry_date) }}
149
+                                    </td>
150
+                              </tr>
151
+                            </table>
152
+                        </td>
153
+                        <td align="center">
154
+
155
+                            <table
156
+                                class="ware_table"
157
+                                style="width: 100%; border-collapse: collapse"
158
+                                >
159
+                                <tr
160
+                                    v-for="(it, i) in item.child"
161
+                                    :key="i"
162
+                                    style="width: 100%"
163
+                                >
164
+                                    <td
165
+                                    :style="[
166
+                                        {
167
+                                        border:
168
+                                            i === item.child.length - 1
169
+                                            ? 'none'
170
+                                            : '',
171
+                                        },
172
+                                        {
173
+                                        borderStyle:
174
+                                            i === item.child.length - 1
175
+                                            ? 'initial'
176
+                                            : 'hidden',
177
+                                        },
178
+                                        {
179
+                                        borderBottom:
180
+                                            i === item.child.length - 1
181
+                                            ? 'none'
182
+                                            : '1px solid',
183
+                                        },
184
+                                    ]"
185
+                                    >
186
+                                    {{ getManufacturerName(it.manufacturer) }}
187
+                                    </td>
188
+                              </tr>
189
+                            </table>
190
+
191
+                        </td>
192
+                        <td align="center">
193
+
194
+                            
195
+                        </td>
196
+                       
197
+                    </tr>
198
+                   
199
+                    </tbody>
200
+                </table>
201
+            </div>
202
+        </div>
203
+    </div>
204
+</template>
205
+
206
+<script>
207
+import print from "print-js"; 
208
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
209
+const moment = require('moment');
210
+import { uParseTime } from '@/utils/tools'
211
+import { getStockInventroyModePrintList } from  "@/api/stock"
212
+  export default {
213
+    components:{
214
+        BreadCrumb
215
+    },
216
+     data(){
217
+       return{
218
+        crumbs: [
219
+            { path: false, name: '库存管理' },
220
+            { path: false, name: '耗材管理' },
221
+            { path: false, name: '耗材模版打印' },
222
+          ],
223
+          tableList:[],
224
+          org_name: this.$store.getters.xt_user.org.org_name,
225
+          start_time:"",
226
+          end_time:"",
227
+          manufacturerList:[],
228
+          infoList:[],
229
+          outinfo:[],
230
+          flowProList:[],
231
+          flowNoProList:[],
232
+          goodInfo:[]
233
+       }
234
+     },
235
+     methods:{
236
+        printAction: function() {
237
+            const style = '@page{size:landscape;margin: 10mm;} @media print { print_content{width:960px;margin:0} .flex{display: flex;justify-content: space-between;} .printTable{width:100%;border-collapse: collapse;border:0px;margin:10px 0;} .printTable thead{text-align:center}.printTable td{padding:5px;} .print_body tr td{border: 1px solid;font-size:12px;border-collapse:collapse;} }';
238
+            printJS({ 
239
+            printable: 'print_content',
240
+            type: 'html',
241
+            documentTitle: '  ',
242
+            style: style,
243
+            scanStyles: false
244
+            })
245
+        },
246
+        getTime(val) {
247
+         if(val < 0){
248
+            return ""
249
+          }
250
+         if(val == ""){
251
+            return ""
252
+          }else {
253
+            return uParseTime(val, '{y}-{m}-{d}')
254
+         }
255
+        },
256
+        getlist(){
257
+          
258
+          var params = {
259
+            start_time:this.$route.query.start_time,
260
+            end_time:this.$route.query.end_time,
261
+          }
262
+          console.log("params-------",params)
263
+          getStockInventroyModePrintList(params).then(response=>{
264
+              if(response.data.state == 1){
265
+                 var list  =  response.data.data.list
266
+
267
+                 console.log("list===============",list)
268
+
269
+                if(list!=null && list.length > 0){
270
+                  let dataInfo = {}
271
+                  list.forEach((item, index) => {
272
+                  let { good_id } = item
273
+                  if (!dataInfo[good_id]) {
274
+                    dataInfo[good_id] = {
275
+                      good_id:item.good_id,
276
+                      child: [],
277
+                      count:0,
278
+                      specification_name:item.specification_name,
279
+                      good_name:item.good_name,
280
+                    }
281
+                  }
282
+                })
283
+                let arr = Object.values(dataInfo)
284
+                
285
+                for(let i=0;i<arr.length;i++){
286
+                   for(let j=0;j<list.length;j++){
287
+                       if(arr[i].good_id == list[j].good_id){
288
+                          arr[i].child.push(list[j])
289
+                       }
290
+                   }
291
+                }
292
+                
293
+                this.tableList = arr
294
+                console.log("arr--------------",arr)
295
+                }
296
+                 var manufacturerList = response.data.data.manufacturerList
297
+                 this.manufacturerList = manufacturerList
298
+
299
+                 this.infoList = response.data.data.infoList
300
+
301
+                 this.outinfo = response.data.data.outinfo
302
+
303
+                 this.flowNoProList = response.data.data.flowNoProList
304
+
305
+                 this.flowProList = response.data.data.flowProList
306
+
307
+                 this.goodInfo = response.data.data.goodInfo
308
+              }
309
+          })
310
+        },
311
+        getManufacturerName(id){
312
+           var manufacturer_name = ""
313
+           for(let i=0;i<this.manufacturerList.length;i++){
314
+             if(id == this.manufacturerList[i].id){
315
+                 manufacturer_name = this.manufacturerList[i].manufacturer_name
316
+             }
317
+           }
318
+           return manufacturer_name
319
+        },
320
+        
321
+        getInCount(good_id){
322
+          
323
+          var newArr =[]
324
+          var total_count =0
325
+          var newArrOne = []
326
+          var total_count_one  = 0
327
+          var total =0
328
+          for(let i=0;i<this.infoList.length;i++){
329
+            if(good_id == this.infoList[i].good_id){
330
+               newArr.push(this.infoList[i])
331
+            }
332
+          }
333
+          if(newArr!=null){
334
+            for(let i=0;i<newArr.length;i++){
335
+                total_count += parseInt(newArr[i].warehousing_count)
336
+            }
337
+          }
338
+
339
+          for(let i=0;i<this.flowProList.length;i++){
340
+            if(good_id == this.flowProList[i].good_id){
341
+               newArrOne.push(this.flowProList[i])
342
+            }
343
+          }
344
+          if(newArrOne!=null){
345
+            for(let i=0;i<newArrOne.length;i++){
346
+               total_count_one += newArrOne[i].count
347
+            }
348
+          }
349
+          total = total_count + total_count_one
350
+          return total
351
+        },
352
+        getOutCount(good_id){
353
+
354
+          var newArr =[]
355
+          var newArrOne = []
356
+          var total_count =0
357
+          var total_count_one  = 0
358
+          var total = 0
359
+          for(let i=0;i<this.outinfo.length;i++){
360
+            if(good_id == this.outinfo[i].good_id){
361
+               newArr.push(this.outinfo[i])
362
+            }
363
+          }
364
+          if(newArr!=null){
365
+            for(let i=0;i<newArr.length;i++){
366
+              total_count += parseInt(newArr[i].count)
367
+            }
368
+          }
369
+
370
+          for(let i=0;i<this.flowNoProList.length;i++){
371
+            if(good_id == this.flowNoProList[i].good_id){
372
+               newArrOne.push(this.flowNoProList[i])
373
+            }
374
+          }
375
+          if(newArrOne!=null){
376
+            for(let i=0;i<newArrOne.length;i++){
377
+               total_count_one += newArrOne[i].count
378
+            }
379
+          }
380
+
381
+
382
+          total = total_count + total_count_one
383
+          return total
384
+        },
385
+        getSumCount(good_id){
386
+          var sum_count = 0
387
+          for(let i=0;i<this.goodInfo.length;i++){
388
+             if(good_id == this.goodInfo[i].id){
389
+                sum_count = this.goodInfo[i].sum_count
390
+             }
391
+          }
392
+          return sum_count
393
+        }
394
+
395
+        
396
+     },
397
+     created(){
398
+        
399
+        this.getlist()
400
+     }
401
+
402
+  } 
403
+</script>
404
+
405
+
406
+<style rel="stylesheet/scss" lang="scss" scoped>
407
+.printTitle{font-size: 22px;text-align: center;}
408
+.flex{display: flex;justify-content: space-between;}
409
+.tableTitle{display: flex;border-top:1px solid #000;border-bottom: 1px solid #000;padding: 10px 0;}
410
+.tableTr{display: flex;border-bottom: 1px dashed #000;padding: 10px 0;}
411
+.tableBottom{display: flex;border-bottom: 1px solid #000;padding: 10px 0;}
412
+.printTable{width:100%;border-collapse: collapse;}
413
+.printTable td{padding:5px;}
414
+.print_head{border: none;display: table-header-group;}
415
+.print_head tr td{text-align: center;border: none;}
416
+.print_body tr td{border:1px solid}
417
+</style>