Browse Source

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

28169 7 months ago
parent
commit
b114a81296

+ 55 - 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,6 +1596,30 @@ 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
 
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
+                  }
1621
+
1622
+
1593 1623
                   that.info['bed_cost_total'] = response.data.data.bedCostTotal
1594 1624
                   that.info['bed_cost_self_total'] =
1595 1625
                     response.data.data.bedCostSelfTotal
@@ -1648,6 +1678,27 @@ export default {
1648 1678
                     response.data.data.treatCostSelfTotal
1649 1679
                   that.info['treat_cost_part_self_total'] =
1650 1680
                     response.data.data.treatCostPartSelfTotal
1681
+
1682
+                  if(response.data.data.zcCostTotal){
1683
+                    that.info['zc_cost_total'] =
1684
+                      response.data.data.zcCostTotal
1685
+                  }else{
1686
+                    that.info['zc_cost_total'] = 0
1687
+                  }
1688
+                  if(response.data.data.zcCostSelfTotal){
1689
+                    that.info['zc_cost_self_total'] =
1690
+                      response.data.data.zcCostSelfTotal
1691
+                  }else{
1692
+                    that.info['zc_cost_self_total'] = 0
1693
+                  }
1694
+                  if(response.data.data.zcCostPartSelfTotal){
1695
+                    that.info['zc_cost_part_self_total'] =
1696
+                      response.data.data.zcCostPartSelfTotal
1697
+                  }else{
1698
+                    that.info['zc_cost_part_self_total'] = 0
1699
+                  }
1700
+
1701
+
1651 1702
                   that.info['date'] = response.data.data.date
1652 1703
                   that.info['number'] = response.data.data.number
1653 1704
                   that.info['order_infos'] = response.data.data.order_infos
@@ -1698,6 +1749,8 @@ export default {
1698 1749
                     response.data.data.otherSelfTotal
1699 1750
                   that.info['dia_config'] = response.data.data.dia_config
1700 1751
 
1752
+
1753
+
1701 1754
                   //org_id 10485,此代码为阳春恒健血液透析中心结算单模版数据处理逻辑
1702 1755
                   var list = []
1703 1756
                   //获取所有项目类型进行去重
@@ -1855,12 +1908,7 @@ export default {
1855 1908
                   }
1856 1909
                   that.info['funds'] = funds
1857 1910
 
1858
-                  that.info['zc_cost_total'] =
1859
-                    response.data.data.zcCostTotal
1860
-                  that.info['zc_cost_self_total'] =
1861
-                    response.data.data.zcCostSelfTotal
1862
-                  that.info['zc_cost_part_self_total'] =
1863
-                    response.data.data.zcCostPartSelfTotal
1911
+
1864 1912
 
1865 1913
                 }
1866 1914
               })

+ 1 - 1
src/xt_pages/outpatientCharges/statementTemplate/printOne.vue View File

@@ -260,7 +260,7 @@
260 260
           parseFloat(info.operation_cost_self_total) + parseFloat(info.other_cost_self_total) +
261 261
           parseFloat(info.material_cost_self_total) + parseFloat(info.western_medicine_cost_self_total) +
262 262
           parseFloat(info.chinese_traditional_medicine_cost_self_total) + parseFloat(info.check_cost_self_total) +
263
-          parseFloat(info.laboratory_cost_self_total) + parseFloat(info.treat_cost_self_total) + parseFloat(info.zc_cost_total)).toFixed(2)}}
263
+          parseFloat(info.laboratory_cost_self_total) + parseFloat(info.treat_cost_self_total) + parseFloat(info.zc_cost_self_total)).toFixed(2)}}
264 264
         </td>
265 265
         <td colspan="2" style="text-align:right;padding-right:10px;">{{(parseFloat(info.bed_cost_part_self_total) +
266 266
           parseFloat(info.operation_cost_part_self_total) + parseFloat(info.other_cost_part_self_total) +