陈少旭 7 months ago
parent
commit
886770349d
1 changed files with 54 additions and 7 deletions
  1. 54 7
      src/xt_pages/outpatientCharges/statementPrint.vue

+ 54 - 7
src/xt_pages/outpatientCharges/statementPrint.vue View File

@@ -743,7 +743,7 @@ export default {
743 743
         }
744 744
         if (
745 745
           this.org_id == 10138 ||
746
-          this.org_id == 10278 ||  this.org_id == 10610 || this.org_id == 10537 || this.org_id == 0
746
+          this.org_id == 10278 ||  this.org_id == 10610 || this.org_id == 10537
747 747
         ) {
748 748
           getPrivateExpenses(params).then((response) => {
749 749
             if (response.data.state == 0) {
@@ -893,6 +893,9 @@ export default {
893 893
               // that.info["department"] = response.data.data.department;
894 894
               // that.info["health_card_no"] = response.data.data.health_card_no;
895 895
 
896
+
897
+
898
+
896 899
               that.info['bed_cost_total'] = response.data.data.bedCostTotal
897 900
               that.info['bed_cost_self_total'] =
898 901
                 response.data.data.bedCostSelfTotal
@@ -1201,6 +1204,9 @@ export default {
1201 1204
               that.info['material_cost_part_self_total'] =
1202 1205
                 response.data.data.materialCostPartSelfTotal
1203 1206
 
1207
+
1208
+
1209
+
1204 1210
               that.info['western_medicine_cost_total'] =
1205 1211
                 response.data.data.westernMedicineCostTotal
1206 1212
               that.info['western_medicine_cost_self_total'] =
@@ -1590,12 +1596,28 @@ export default {
1590 1596
                   that.info['department'] = response.data.data.department
1591 1597
                   that.info['health_card_no'] = response.data.data.health_card_no
1592 1598
 
1593
-                  that.info['zc_cost_total'] =
1594
-                    response.data.data.zcCostTotal
1595
-                  that.info['zc_cost_self_total'] =
1596
-                    response.data.data.zcCostSelfTotal
1597
-                  that.info['zc_cost_part_self_total'] =
1598
-                    response.data.data.zcCostPartSelfTotal
1599
+
1600
+                  if(response.data.data.zcCostTotal){
1601
+                    that.info['zc_cost_total'] =
1602
+                      response.data.data.zcCostTotal
1603
+                  }else{
1604
+                    that.info['zc_cost_total'] = 0
1605
+                  }
1606
+
1607
+                  if(response.data.data.zcCostSelfTotal){
1608
+                    that.info['zc_cost_self_total'] =
1609
+                      response.data.data.zcCostSelfTotal
1610
+                  }else{
1611
+                    that.info['zc_cost_self_total'] = 0
1612
+                  }
1613
+
1614
+
1615
+                  if(response.data.data.zcCostPartSelfTotal){
1616
+                    that.info['zc_cost_part_self_total'] =
1617
+                      response.data.data.zcCostPartSelfTotal
1618
+                  }else{
1619
+                    that.info['zc_cost_part_self_total'] = 0
1620
+                  }
1599 1621
 
1600 1622
 
1601 1623
                   that.info['bed_cost_total'] = response.data.data.bedCostTotal
@@ -1656,6 +1678,31 @@ export default {
1656 1678
                     response.data.data.treatCostSelfTotal
1657 1679
                   that.info['treat_cost_part_self_total'] =
1658 1680
                     response.data.data.treatCostPartSelfTotal
1681
+
1682
+
1683
+                  if(response.data.data.zcCostTotal){
1684
+                    that.info['zc_cost_total'] =
1685
+                      response.data.data.zcCostTotal
1686
+                  }else{
1687
+                    that.info['zc_cost_total'] = 0
1688
+                  }
1689
+
1690
+                  if(response.data.data.zcCostSelfTotal){
1691
+                    that.info['zc_cost_self_total'] =
1692
+                      response.data.data.zcCostSelfTotal
1693
+                  }else{
1694
+                    that.info['zc_cost_self_total'] = 0
1695
+                  }
1696
+
1697
+
1698
+                  if(response.data.data.zcCostPartSelfTotal){
1699
+                    that.info['zc_cost_part_self_total'] =
1700
+                      response.data.data.zcCostPartSelfTotal
1701
+                  }else{
1702
+                    that.info['zc_cost_part_self_total'] = 0
1703
+                  }
1704
+
1705
+
1659 1706
                   that.info['date'] = response.data.data.date
1660 1707
                   that.info['number'] = response.data.data.number
1661 1708
                   that.info['order_infos'] = response.data.data.order_infos