csx il y a 4 ans
Parent
révision
d52ec42276
1 fichiers modifiés avec 51 ajouts et 23 suppressions
  1. 51 23
      src/xt_pages/outpatientCharges/outpatientChargesManagement.vue

+ 51 - 23
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Voir le fichier

@@ -69,13 +69,13 @@
69 69
           </el-button>
70 70
 
71 71
 
72
-           <el-button size="small" @click="open(6)" type="primary"
73
-                              >对账
72
+          <el-button size="small" @click="open(7)" type="primary"
73
+          >对账
74 74
           </el-button>
75 75
 
76 76
 
77
-          <el-button size="small" @click="open(7)" type="primary"
78
-                                 >明细对账
77
+          <el-button size="small" @click="open(8)" type="primary"
78
+          >明细对账
79 79
           </el-button>
80 80
         </div>
81 81
 
@@ -385,7 +385,7 @@
385 385
         this.$refs.charge.hide()
386 386
       },
387 387
       confirm(forms) {
388
-          forms['id'] = this.patientInfo.id,
388
+        forms['id'] = this.patientInfo.id,
389 389
           forms['record_time'] = this.record_date,
390 390
           this.loadingone = true
391 391
 
@@ -669,7 +669,7 @@
669 669
 
670 670
             })
671 671
 
672
-          }else{
672
+          } else {
673 673
 
674 674
             this.$confirm('是否退费', '退费', {
675 675
               confirmButtonText: '确 定',
@@ -700,13 +700,9 @@
700 700
             })
701 701
 
702 702
 
703
-
704 703
           }
705 704
 
706 705
 
707
-
708
-
709
-
710 706
         } else if (index == 6) {
711 707
 
712 708
           if (this.patientInfo.id == 0) {
@@ -717,27 +713,59 @@
717 713
           this.$refs.register.show(this.patientInfo)
718 714
 
719 715
 
720
-        }else if (index == 6) {
716
+        } else if (index == 7) {
717
+          let params={
718
+            start_time:"2020-12-01",
719
+            end_time:"2020-12-30",
720
+            insutype:"390",
721
+            clr_type:"11",
722
+          }
721 723
 
722
-            if (this.patientInfo.id == 0) {
723
-               this.$message.error('请先选择要挂号的病人')
724
-               return
725
-            }
724
+          if (this.$store.getters.xt_user.org_id == 4) {
725
+            axios.post('http://127.0.0.1:9532/api/checkaccount/get', {
726
+              params: params
727
+            })
728
+              .then(function (response) {
729
+                if (response.data.state == 0) {
730
+                  this.$message.error(response.data.msg)
731
+                  this.loadingtwo = false
732
+                  return false
733
+                } else {
734
+
735
+
736
+                }
737
+              })
738
+              .catch(function (error) {
739
+
740
+              });
726 741
 
727
-           this.$refs.register.show(this.patientInfo)
728 742
 
743
+          }
744
+
745
+        } else if (index == 8) {
746
+          let params={
747
+            start_time:"2020-12-01",
748
+            end_time:"2020-12-30",
749
+          }
750
+          axios.post('http://127.0.0.1:9532/api/checkdetailaccount/get', {
751
+            params: params
752
+          })
753
+            .then(function (response) {
754
+              if (response.data.state == 0) {
755
+                this.$message.error(response.data.msg)
756
+                this.loadingtwo = false
757
+                return false
758
+              } else {
729 759
 
730
-                 }else if (index == 6) {
760
+              }
761
+            })
762
+            .catch(function (error) {
731 763
 
732
-                            if (this.patientInfo.id == 0) {
733
-                              this.$message.error('请先选择要挂号的病人')
734
-                              return
735
-                            }
764
+            });
736 765
 
737
-                            this.$refs.register.show(this.patientInfo)
738 766
 
739 767
 
740
-                          }
768
+        }
741 769
       },
742 770
 
743 771
       choosePatient() {