陈少旭 7 months ago
parent
commit
ab5292c5ef
1 changed files with 14 additions and 3 deletions
  1. 14 3
      src/xt_pages/outpatientCharges/outpatientChargesManagement.vue

+ 14 - 3
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

1725
           this.newLoading = false
1725
           this.newLoading = false
1726
         })
1726
         })
1727
       } else {
1727
       } else {
1728
-        if((this.org_id == 10644 && this.other_prescriptions[0].med_type == "1112") || (this.org_id == 10644 && this.other_prescriptions[0].med_type == "1111")) {
1728
+        if((this.org_id == 10644 && this.other_prescriptions[0].med_type == "1112") || (this.org_id == 10644 && this.other_prescriptions[0].med_type == "1111") || (this.org_id == 0 && this.other_prescriptions[0].med_type == "1111") || (this.org_id == 0 && this.other_prescriptions[0].med_type == "1112")) {
1729
           upload(form).then(response => {
1729
           upload(form).then(response => {
1730
             if (response.data.state == 0) {
1730
             if (response.data.state == 0) {
1731
               this.$message.error(response.data.msg)
1731
               this.$message.error(response.data.msg)
1748
             this.newLoading = false
1748
             this.newLoading = false
1749
           })
1749
           })
1750
         }else{
1750
         }else{
1751
-
1752
           var that = this
1751
           var that = this
1753
           axios.get('http://127.0.0.1:9532/api/upload/get', {
1752
           axios.get('http://127.0.0.1:9532/api/upload/get', {
1754
             params: form,
1753
             params: form,
3386
 
3385
 
3387
       } else if (index == 5) {
3386
       } else if (index == 5) {
3388
         var that = this
3387
         var that = this
3389
-        if (that.hisPatientInfo.balance_accounts_type == 2) {
3388
+        var balance_accounts_type = that.hisPatientInfo.balance_accounts_type
3389
+        if(that.order.is_medicine_insurance == 1){
3390
+          balance_accounts_type = 1
3391
+        }else{
3392
+          balance_accounts_type = 2
3393
+        }
3394
+
3395
+        if (balance_accounts_type == 2) {
3390
           let params = {
3396
           let params = {
3391
             'order_id': that.order.id,
3397
             'order_id': that.order.id,
3392
             'number': that.order.number,
3398
             'number': that.order.number,
3696
             end_time: this.order.settle_end_time,
3702
             end_time: this.order.settle_end_time,
3697
             balance_accounts_type: this.hisPatientInfo.balance_accounts_type
3703
             balance_accounts_type: this.hisPatientInfo.balance_accounts_type
3698
           }
3704
           }
3705
+          if (this.order.is_medicine_insurance == 1){
3706
+            obj.balance_accounts_type = 1
3707
+          }else{
3708
+            obj.balance_accounts_type = 2
3709
+          }
3699
           this.orderObj = obj
3710
           this.orderObj = obj
3700
 
3711
 
3701
         }
3712
         }