csx 4 years ago
parent
commit
d52ec42276
1 changed files with 51 additions and 23 deletions
  1. 51 23
      src/xt_pages/outpatientCharges/outpatientChargesManagement.vue

+ 51 - 23
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

69
           </el-button>
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
           </el-button>
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
           </el-button>
79
           </el-button>
80
         </div>
80
         </div>
81
 
81
 
385
         this.$refs.charge.hide()
385
         this.$refs.charge.hide()
386
       },
386
       },
387
       confirm(forms) {
387
       confirm(forms) {
388
-          forms['id'] = this.patientInfo.id,
388
+        forms['id'] = this.patientInfo.id,
389
           forms['record_time'] = this.record_date,
389
           forms['record_time'] = this.record_date,
390
           this.loadingone = true
390
           this.loadingone = true
391
 
391
 
669
 
669
 
670
             })
670
             })
671
 
671
 
672
-          }else{
672
+          } else {
673
 
673
 
674
             this.$confirm('是否退费', '退费', {
674
             this.$confirm('是否退费', '退费', {
675
               confirmButtonText: '确 定',
675
               confirmButtonText: '确 定',
700
             })
700
             })
701
 
701
 
702
 
702
 
703
-
704
           }
703
           }
705
 
704
 
706
 
705
 
707
-
708
-
709
-
710
         } else if (index == 6) {
706
         } else if (index == 6) {
711
 
707
 
712
           if (this.patientInfo.id == 0) {
708
           if (this.patientInfo.id == 0) {
717
           this.$refs.register.show(this.patientInfo)
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
       choosePatient() {
771
       choosePatient() {