陈少旭 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,7 +1725,7 @@ export default {
1725 1725
           this.newLoading = false
1726 1726
         })
1727 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 1729
           upload(form).then(response => {
1730 1730
             if (response.data.state == 0) {
1731 1731
               this.$message.error(response.data.msg)
@@ -1748,7 +1748,6 @@ export default {
1748 1748
             this.newLoading = false
1749 1749
           })
1750 1750
         }else{
1751
-
1752 1751
           var that = this
1753 1752
           axios.get('http://127.0.0.1:9532/api/upload/get', {
1754 1753
             params: form,
@@ -3386,7 +3385,14 @@ export default {
3386 3385
 
3387 3386
       } else if (index == 5) {
3388 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 3396
           let params = {
3391 3397
             'order_id': that.order.id,
3392 3398
             'number': that.order.number,
@@ -3696,6 +3702,11 @@ export default {
3696 3702
             end_time: this.order.settle_end_time,
3697 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 3710
           this.orderObj = obj
3700 3711
 
3701 3712
         }