陈少旭 7 mesi fa
parent
commit
886770349d
1 ha cambiato i file con 54 aggiunte e 7 eliminazioni
  1. 54 7
      src/xt_pages/outpatientCharges/statementPrint.vue

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

743
         }
743
         }
744
         if (
744
         if (
745
           this.org_id == 10138 ||
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
           getPrivateExpenses(params).then((response) => {
748
           getPrivateExpenses(params).then((response) => {
749
             if (response.data.state == 0) {
749
             if (response.data.state == 0) {
893
               // that.info["department"] = response.data.data.department;
893
               // that.info["department"] = response.data.data.department;
894
               // that.info["health_card_no"] = response.data.data.health_card_no;
894
               // that.info["health_card_no"] = response.data.data.health_card_no;
895
 
895
 
896
+
897
+
898
+
896
               that.info['bed_cost_total'] = response.data.data.bedCostTotal
899
               that.info['bed_cost_total'] = response.data.data.bedCostTotal
897
               that.info['bed_cost_self_total'] =
900
               that.info['bed_cost_self_total'] =
898
                 response.data.data.bedCostSelfTotal
901
                 response.data.data.bedCostSelfTotal
1201
               that.info['material_cost_part_self_total'] =
1204
               that.info['material_cost_part_self_total'] =
1202
                 response.data.data.materialCostPartSelfTotal
1205
                 response.data.data.materialCostPartSelfTotal
1203
 
1206
 
1207
+
1208
+
1209
+
1204
               that.info['western_medicine_cost_total'] =
1210
               that.info['western_medicine_cost_total'] =
1205
                 response.data.data.westernMedicineCostTotal
1211
                 response.data.data.westernMedicineCostTotal
1206
               that.info['western_medicine_cost_self_total'] =
1212
               that.info['western_medicine_cost_self_total'] =
1590
                   that.info['department'] = response.data.data.department
1596
                   that.info['department'] = response.data.data.department
1591
                   that.info['health_card_no'] = response.data.data.health_card_no
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
                   that.info['bed_cost_total'] = response.data.data.bedCostTotal
1623
                   that.info['bed_cost_total'] = response.data.data.bedCostTotal
1656
                     response.data.data.treatCostSelfTotal
1678
                     response.data.data.treatCostSelfTotal
1657
                   that.info['treat_cost_part_self_total'] =
1679
                   that.info['treat_cost_part_self_total'] =
1658
                     response.data.data.treatCostPartSelfTotal
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
                   that.info['date'] = response.data.data.date
1706
                   that.info['date'] = response.data.data.date
1660
                   that.info['number'] = response.data.data.number
1707
                   that.info['number'] = response.data.data.number
1661
                   that.info['order_infos'] = response.data.data.order_infos
1708
                   that.info['order_infos'] = response.data.data.order_infos