Browse Source

12月10 结算单

yq1 2 weeks ago
parent
commit
27a373207e

+ 355 - 9
src/xt_pages/outpatientCharges/statementPrint.vue View File

@@ -70,21 +70,19 @@
70 70
       <printSixtheen :info="info" v-if="org_id == 10697"></printSixtheen>
71 71
       <!-- 杏康 -->
72 72
       <printSeventheen  :info="info" v-if=" org_id == 10721"></printSeventheen>
73
-      <!-- 乐安祥康 -->
74
-      <printeighteen :info="info" v-if=" org_id == 10726 || org_id == 0"></printeighteen>
73
+      <printeighteen :info="info" v-if=" org_id == 10726 "></printeighteen>
75 74
       <printOne :info="info" v-if=" org_id != 9990 &&
76 75
             org_id != 10138 && org_id != 9504 && org_id != 10028 &&
77 76
             org_id != 10610 && org_id !=10537 && org_id !=10697 &&
78 77
             org_id != 10278 && org_id != 10387 && org_id != 10191 &&
79 78
             org_id != 10210 &&org_id != 10485 &&org_id != 10480 &&
80
-            org_id != 10510 &&org_id != 10088 && org_id != 10721 &&
81
-            org_id != 10633 &&org_id != 10731 && org_id != 10726 && org_id != 0 && this.paramsObj.balance_accounts_type == 1">
79
+            org_id != 10510 &&org_id != 10088 && org_id != 10721 &&org_id != 10633 &&org_id != 10731 &&org_id != 0 && org_id != 10726 && this.paramsObj.balance_accounts_type == 1">
82 80
       </printOne>
83 81
       <privateChargePrint :info="info" v-if="org_id != 9990 &&
84 82
             org_id != 10138 && org_id != 9504 &&  org_id != 10028 && org_id !=10697 &&
85 83
             org_id != 10278 && org_id != 10610 && org_id !=10537 && org_id != 10387 &&
86 84
             org_id != 10191 &&org_id != 10210 &&org_id != 10485  &&org_id != 10480 &&
87
-            org_id != 10510 &&org_id != 10633 && org_id != 10721 && org_id != 10726 &&org_id != 0  && this.paramsObj.balance_accounts_type == 2">
85
+            org_id != 10510 &&org_id != 10633 && org_id != 10721 && org_id != 10726  && this.paramsObj.balance_accounts_type == 2">
88 86
       </privateChargePrint>
89 87
     </div>
90 88
   </div>
@@ -1155,7 +1153,7 @@ export default {
1155 1153
         }
1156 1154
       } else {
1157 1155
         console.log('1111111',this.org_id)
1158
-        if (this.org_id == 0) {
1156
+        if (this.org_id == 1000000) {
1159 1157
           let params = {
1160 1158
             order_id: obj.order_id,
1161 1159
             admin_user_id: this.$store.getters.xt_user.user.id
@@ -1310,7 +1308,11 @@ export default {
1310 1308
 
1311 1309
               that.info['L_list'] = L_list
1312 1310
               that.info['R_list'] = R_list
1313
-              console.log('that.info10721',this.info);
1311
+
1312
+              console.log(" that.info")
1313
+              console.log(that.info.Z_list)
1314
+              console.log(" that.info")
1315
+              console.log('that.info10721',that.info);
1314 1316
 
1315 1317
             }
1316 1318
           })
@@ -1565,7 +1567,300 @@ export default {
1565 1567
 
1566 1568
 
1567 1569
 
1568
-          } if(this.org_id == 10721){
1570
+          }else if(this.org_id == 10721){
1571
+            let params = {
1572
+              order_id: obj.order_id,
1573
+              admin_user_id: this.$store.getters.xt_user.user.id
1574
+            }
1575
+            getPrivateExpensesOrder(params).then((response) => {
1576
+              if (response.data.state == 0) {
1577
+                // this.$message.error(response.data.msg)
1578
+
1579
+                return false
1580
+              } else {
1581
+                var that = this
1582
+                that.info = response.data.data.info
1583
+                that.p_admin = response.data.data.printor_admin
1584
+                that.charge_admin = response.data.data.charge_admin
1585
+                that.info['new_order'] = response.data.data.info
1586
+                that.info['p_admin'] = that.p_admin
1587
+                that.info['charge_admin'] = that.charge_admin
1588
+                that.info['order_number'] = response.data.data.order_number
1589
+                that.info['patient'] = response.data.data.patient
1590
+                that.info['date'] = response.data.data.date
1591
+                that.info['number'] = response.data.data.number
1592
+                that.info['order_infos'] = response.data.data.order_infos
1593
+                that.info['diagnosis'] = response.data.data.diagnosis
1594
+                that.info['fixmedins_name'] = response.data.data.org_name
1595
+                that.info['fixmedins_code'] = response.data.data.org_code
1596
+                // that.info["doctor_code"] = response.data.data.doctor_code;
1597
+                // that.info["department"] = response.data.data.department;
1598
+                // that.info["health_card_no"] = response.data.data.health_card_no;
1599
+
1600
+                that.info['bed_cost_total'] = response.data.data.bedCostTotal
1601
+                that.info['bed_cost_self_total'] =
1602
+                  response.data.data.bedCostSelfTotal
1603
+                that.info['bed_cost_part_self_total'] =
1604
+                  response.data.data.bedCostPartSelfTotal
1605
+
1606
+                that.info['operation_cost_total'] =
1607
+                  response.data.data.operationCostTotal
1608
+                that.info['operation_cost_self_total'] =
1609
+                  response.data.data.operationCostSelfTotal
1610
+                that.info['operation_cost_part_self_total'] =
1611
+                  response.data.data.operationCostPartSelfTotal
1612
+
1613
+                that.info['other_cost_total'] = response.data.data.otherCostTotal
1614
+                that.info['other_cost_self_total'] =
1615
+                  response.data.data.otherCostSelfTotal
1616
+                that.info['other_cost_part_self_total'] =
1617
+                  response.data.data.otherCostPartSelfTotal
1618
+
1619
+                that.info['material_cost_total'] =
1620
+                  response.data.data.materialCostTotal
1621
+                that.info['material_cost_self_total'] =
1622
+                  response.data.data.materialCostSelfTotal
1623
+                that.info['material_cost_part_self_total'] =
1624
+                  response.data.data.materialCostPartSelfTotal
1625
+
1626
+                that.info['western_medicine_cost_total'] =
1627
+                  response.data.data.westernMedicineCostTotal
1628
+                that.info['western_medicine_cost_self_total'] =
1629
+                  response.data.data.westernMedicineCostSelfTotal
1630
+                that.info['western_medicine_cost_part_self_total'] =
1631
+                  response.data.data.westernMedicineCostPartSelfTotal
1632
+
1633
+                that.info['chinese_traditional_medicine_cost_total'] =
1634
+                  response.data.data.chineseTraditionalMedicineCostTotal
1635
+                that.info['chinese_traditional_medicine_cost_self_total'] =
1636
+                  response.data.data.chineseTraditionalMedicineCostSelfTotal
1637
+                that.info['chinese_traditional_medicine_cost_part_self_total'] =
1638
+                  response.data.data.chineseTraditionalMedicineCostPartSelfTotal
1639
+
1640
+                that.info['check_cost_total'] = response.data.data.checkCostTotal
1641
+                that.info['check_cost_self_total'] =
1642
+                  response.data.data.checkCostSelfTotal
1643
+                that.info['check_cost_part_self_total'] =
1644
+                  response.data.data.checkCostPartSelfTotal
1645
+
1646
+                that.info['laboratory_cost_total'] =
1647
+                  response.data.data.laboratoryCostTotal
1648
+                that.info['laboratory_cost_self_total'] =
1649
+                  response.data.data.laboratoryCostSelfTotal
1650
+                that.info['laboratory_cost_part_self_total'] =
1651
+                  response.data.data.laboratoryCostPartSelfTotal
1652
+
1653
+                that.info['treat_cost_total'] = response.data.data.treatCostTotal
1654
+                that.info['treat_cost_self_total'] =
1655
+                  response.data.data.treatCostSelfTotal
1656
+                that.info['treat_cost_part_self_total'] =
1657
+                  response.data.data.treatCostPartSelfTotal
1658
+
1659
+
1660
+
1661
+                that.info['date'] = response.data.data.date
1662
+                that.info['number'] = response.data.data.number
1663
+                that.info['order_infos'] = response.data.data.order_infos
1664
+                that.info['diagnosis'] = response.data.data.diagnosis
1665
+                that.info['his'] = response.data.data.his
1666
+                that.info['dia_config'] = response.data.data.dia_config
1667
+
1668
+
1669
+                for (let i = 0; i < response.data.data.order_infos.length; i++) {
1670
+                  if (response.data.data.order_infos[i].advice_id > 0 && response.data.data.order_infos[i].project_id == 0) {
1671
+                    response.data.data.order_infos[i].med_chrgitm_type = '09'
1672
+                  }
1673
+                  if (response.data.data.order_infos[i].advice_id == 0 && response.data.data.order_infos[i].project_id > 0) {
1674
+                    if (response.data.data.order_infos[i].project.type == 2) { //项目
1675
+                      if (response.data.data.order_infos[i].project.project.cost_classify == 2) {
1676
+                        response.data.data.order_infos[i].med_chrgitm_type = '05'
1677
+                      } else if (response.data.data.order_infos[i].project.project.cost_classify == 3) {
1678
+                        response.data.data.order_infos[i].med_chrgitm_type = '04'
1679
+                      } else {
1680
+                        response.data.data.order_infos[i].med_chrgitm_type = '14'
1681
+                      }
1682
+                    } else if (response.data.data.order_infos[i].project.type == 3) { //耗材
1683
+                      response.data.data.order_infos[i].med_chrgitm_type = '08'
1684
+                    }
1685
+                  }
1686
+                }
1687
+                console.log(response.data.data.order_infos)
1688
+                console.log(that.info)
1689
+
1690
+                let list = []
1691
+                for (let i = 0; i < response.data.data.order_infos.length; i++) {
1692
+                  let order = response.data.data.order_infos[i]
1693
+                  let obj = {
1694
+                    name: '',
1695
+                    spec: '',
1696
+                    cnt: '',
1697
+                    det_item_fee_sumamt: '',
1698
+                    price:'',
1699
+                  }
1700
+
1701
+                  if (order.advice_id > 0 && order.project_id == 0) {
1702
+                    obj.name = order.advice.advice_name
1703
+                    let spec = order.advice.drug.dose + order.advice.drug.dose_unit + '*' + order.advice.drug.min_number + order.advice.drug.min_unit + '/' + order.advice.drug.max_unit
1704
+                    obj.spec = spec
1705
+                    obj.cnt = order.cnt
1706
+                    obj.det_item_fee_sumamt = order.det_item_fee_sumamt
1707
+                    obj.price = order.pric
1708
+                    list.push(obj)
1709
+
1710
+                  } else if (order.advice_id == 0 && order.project_id > 0) {
1711
+                    if (order.project.type == 2) {
1712
+                      obj.name = order.project.project.project_name
1713
+                      obj.spec = ''
1714
+                      obj.cnt = order.cnt
1715
+                      obj.det_item_fee_sumamt = order.det_item_fee_sumamt
1716
+                      obj.price = order.pric
1717
+                    } else {
1718
+                      obj.name = order.project.good_info.good_name
1719
+                      obj.spec = order.project.good_info.specification_name
1720
+                      obj.cnt = order.cnt
1721
+                      obj.det_item_fee_sumamt = order.det_item_fee_sumamt
1722
+                      obj.price = order.pric
1723
+                    }
1724
+                    list.push(obj)
1725
+                  }
1726
+
1727
+                }
1728
+                that.info['Z_list'] = list
1729
+                console.log(" that.info")
1730
+                console.log(that.info.Z_list)
1731
+                console.log(" that.info")
1732
+
1733
+
1734
+                //获取所有项目类型进行去重
1735
+                let med_chrgitm_types = []
1736
+                for (let i = 0; i < response.data.data.order_infos.length; i++) {
1737
+                  med_chrgitm_types.push(response.data.data.order_infos[i].med_chrgitm_type)
1738
+                }
1739
+                const obj10 = {}
1740
+                med_chrgitm_types = med_chrgitm_types.reduce((cur, next) => {
1741
+                  obj10[next] ? '' : obj10[next] = true && cur.push(next)
1742
+                  return cur
1743
+                }, []) // 设置cur默认类型为数组,并且初始值为空的数组
1744
+                let tempOrderInfo = []
1745
+                for (let i = 0; i < med_chrgitm_types.length; i++) {
1746
+
1747
+                  let obj9 = {
1748
+                    details: [],
1749
+                    med_chrgitm_name: that.getType(med_chrgitm_types[i]),
1750
+                    total:0,
1751
+                  }
1752
+
1753
+                  // if(med_chrgitm_types[i] == '09'){
1754
+                  //   obj.sort = 99
1755
+                  // } else if(med_chrgitm_types[i] == '05'){
1756
+                  //   obj.sort = 98
1757
+                  // } else if(med_chrgitm_types[i] == '08'){
1758
+                  //   obj.sort = 97
1759
+                  // }else if(med_chrgitm_types[i] == '03'){
1760
+                  //   obj.sort = 96
1761
+                  // }
1762
+
1763
+                  let tempDetails = []
1764
+                  for (let b = 0; b < response.data.data.order_infos.length; b++) {
1765
+                    if (med_chrgitm_types[i] == response.data.data.order_infos[b].med_chrgitm_type) {
1766
+                      tempDetails.push(response.data.data.order_infos[b])
1767
+                    }
1768
+                  }
1769
+                  console.log(med_chrgitm_types[i])
1770
+                  console.log(tempDetails)
1771
+                  obj9.total = that.getTotal(tempDetails)
1772
+                  obj9.details = that.set10265NewData(tempDetails)
1773
+                  list.push(obj9)
1774
+                }
1775
+                that.info['new_list'] = list
1776
+                // list.sort((a,b) => a.sort < b.sort ? 1 : a.sort > b.sort ? -1 : 0)
1777
+
1778
+                let obj = {
1779
+                  type: 1,
1780
+                  details: [],
1781
+                  total: 0
1782
+                }
1783
+                let obj2 = {
1784
+                  type: 2,
1785
+                  details: [],
1786
+                  total: 0
1787
+                }
1788
+                let obj3 = {
1789
+                  type: 3,
1790
+                  details: [],
1791
+                  total: 0
1792
+                }
1793
+
1794
+                let obj4 = {
1795
+                  type: 4,
1796
+                  details: [],
1797
+                  total: 0
1798
+                }
1799
+                let num = 0
1800
+                that.info.order_infos.map((item) => {
1801
+                  if (item.advice_id > 0) {
1802
+                    obj.details.push(item)
1803
+                    obj.total += item.pric * item.advice.prescribing_number
1804
+                    num++
1805
+                  } else {
1806
+                    if (item.project.type == 2) {
1807
+                      obj2.details.push(item)
1808
+                      obj2.total += item.pric * item.project.count
1809
+                      num++
1810
+                    } else {
1811
+                      obj3.details.push(item)
1812
+                      obj3.total += item.pric * item.project.count
1813
+                      num++
1814
+                    }
1815
+                  }
1816
+                })
1817
+
1818
+                // this.info.order_infos.map(item => {
1819
+                //   obj4.total = item.Total
1820
+                //   obj4.details.push(item)
1821
+                //   num++
1822
+                //
1823
+                // })
1824
+                var funds = []
1825
+                for(let i = 0; i <  response.data.data.funds.length; i++){
1826
+                  var objs = {}
1827
+                  objs["number"] = i + 1
1828
+                  objs["fund_pay"] = response.data.data.funds[i].fund_payamt
1829
+                  objs["limit_pay"] = response.data.data.funds[i].inscp_scp_amt
1830
+                  objs["insp_pay"] = response.data.data.funds[i].inscp_scp_amt
1831
+                  for(let b = 0; b < that.fundsArray.length; b++){
1832
+                    if(response.data.data.funds[i].fund_pay_type ==  that.fundsArray[b].code){
1833
+                      objs["name"] =that.fundsArray[b].name
1834
+                    }
1835
+                  }
1836
+                  funds.push(objs)
1837
+                }
1838
+                that.info['funds'] = funds
1839
+                console.log(that.info)
1840
+
1841
+                that.info.new_detail_list = []
1842
+                that.info.new_detail_list.push(obj)
1843
+                that.info.new_detail_list.push(obj2)
1844
+                that.info.new_detail_list.push(obj3)
1845
+                // that.info.new_detail_list.push(obj4)
1846
+
1847
+                that.num = num
1848
+
1849
+                if (that.paramsObj.settle_type != 1) {
1850
+                  that.info.begndate = that.getTimes(that.paramsObj.start_time)
1851
+                  that.info.enddate = that.getTimes(that.paramsObj.end_time)
1852
+                }
1853
+
1854
+                that.info.order_infos.map((item) => {
1855
+
1856
+                })
1857
+
1858
+              }
1859
+            })
1860
+
1861
+
1862
+
1863
+          } else if(this.org_id == 10726){
1569 1864
             let params = {
1570 1865
               order_id: obj.order_id,
1571 1866
               admin_user_id: this.$store.getters.xt_user.user.id
@@ -1655,6 +1950,47 @@ export default {
1655 1950
                   response.data.data.treatCostPartSelfTotal
1656 1951
 
1657 1952
 
1953
+                that.info['bedInscpTotal'] =
1954
+                  response.data.data.bedInscpTotal
1955
+                that.info['bedSelfTotal'] =
1956
+                  response.data.data.bedSelfTotal
1957
+
1958
+                that.info['operationInscpTotal'] =
1959
+                  response.data.data.operationInscpTotal
1960
+                that.info['operationSelfTotal'] =
1961
+                  response.data.data.operationSelfTotal
1962
+
1963
+                that.info['checkInscpTotal'] =
1964
+                  response.data.data.checkInscpTotal
1965
+                that.info['checkSelfTotal'] =
1966
+                  response.data.data.checkSelfTotal
1967
+
1968
+                that.info['treatInscpTotal'] =
1969
+                  response.data.data.treatInscpTotal
1970
+                that.info['treatSelfTotal'] =
1971
+                  response.data.data.treatSelfTotal
1972
+
1973
+                that.info['laboratoryInscpTotal'] =
1974
+                  response.data.data.laboratoryInscpTotal
1975
+                that.info['laboratorySelfTotal'] =
1976
+                  response.data.data.laboratorySelfTotal
1977
+
1978
+                that.info['westernMedicineInscpTotal'] =
1979
+                  response.data.data.westernMedicineInscpTotal
1980
+                that.info['westernMedicineSelfTotal'] =
1981
+                  response.data.data.westernMedicineSelfTotal
1982
+
1983
+                that.info['materialInscpTotal'] =
1984
+                  response.data.data.materialInscpTotal
1985
+                that.info['materialSelfTotal'] =
1986
+                  response.data.data.materialSelfTotal
1987
+
1988
+                that.info['chineseTraditionalInscpTotal'] =
1989
+                  response.data.data.chineseTraditionalInscpTotal
1990
+                that.info['chineseTraditionalSelfTotal'] =
1991
+                  response.data.data.chineseTraditionalSelfTotal
1992
+
1993
+
1658 1994
 
1659 1995
                 that.info['date'] = response.data.data.date
1660 1996
                 that.info['number'] = response.data.data.number
@@ -1663,6 +1999,16 @@ export default {
1663 1999
                 that.info['his'] = response.data.data.his
1664 2000
                 that.info['dia_config'] = response.data.data.dia_config
1665 2001
 
2002
+                const jsonArr = JSON.parse(response.data.data.his.idetinfo);
2003
+                that.info['psn_idet_type'] = jsonArr[0].psn_idet_type
2004
+
2005
+
2006
+                const jsons = JSON.parse(response.data.data.his.iinfo);
2007
+                that.info['emp_name'] = jsons[0].emp_name
2008
+
2009
+
2010
+
2011
+
1666 2012
 
1667 2013
                 for (let i = 0; i < response.data.data.order_infos.length; i++) {
1668 2014
                   if (response.data.data.order_infos[i].advice_id > 0 && response.data.data.order_infos[i].project_id == 0) {
@@ -1858,7 +2204,7 @@ export default {
1858 2204
 
1859 2205
 
1860 2206
 
1861
-          }else{
2207
+          }else {
1862 2208
             var that = this
1863 2209
             axios
1864 2210
               .get('http://127.0.0.1:9532/api/settle/query', {

+ 116 - 154
src/xt_pages/outpatientCharges/statementTemplate/printeighteen.vue View File

@@ -10,55 +10,66 @@
10 10
         <table class="statementTable" border="1">
11 11
           <tr>
12 12
             <td width="100">机构编码</td>
13
-            <td width="150">{{"H36102502336"}}</td>
13
+            <td width="150">{{info.fixmedins_code}}</td>
14 14
             <td width="120">医保结算级别</td>
15 15
             <td width="150" colspan="2">
16
-              <span>二级</span>
16
+              <span  v-if="info.hosp_lv == '1'">三级特等</span>
17
+              <span  v-else-if="info.hosp_lv == '2'">三级甲等</span>
18
+              <span v-else-if="info.hosp_lv == '3'">三级乙等</span>
19
+              <span v-else-if="info.hosp_lv == '4'">三级丙等</span>
20
+              <span v-else-if="info.hosp_lv == '5'">二级甲等</span>
21
+              <span v-else-if="info.hosp_lv == '6'">二级乙等</span>
22
+              <span v-else-if="info.hosp_lv == '7'">二级丙等</span>
23
+              <span  v-else-if="info.hosp_lv == '8'">一级甲等</span>
24
+              <span v-else-if="info.hosp_lv == '9'">一级乙等</span>
25
+              <span v-else-if="info.hosp_lv == '10'">一级丙等</span>
26
+              <span  v-else-if="info.hosp_lv == '11'">无等级</span>
27
+              <span  v-else></span>
17 28
             </td>
18 29
             <td width="100">机构名称</td>
19
-            <td colspan="4">{{'乐安祥康血液透析中心'}}</td>
30
+            <td colspan="4">{{info.fixmedins_name}}</td>
20 31
           </tr>
21 32
           <tr>
22 33
             <td width="100">姓名</td>
23
-            <td width="150">{{info.new_order.psn_name}}</td>
34
+            <td width="150">{{info.psn_name}}</td>
24 35
             <td width="120">性别</td>
25
-            <td width="50" v-if="info.new_order.gend == '1'">男</td>
26
-            <td width="50" v-if="info.new_order.gend == '2'">女</td>
36
+            <td width="50" v-if="info.gend == '1'">男</td>
37
+            <td width="50" v-if="info.gend == '2'">女</td>
27 38
             <td width="100">出生日期</td>
28
-            <td width="100">{{getBirth(info.new_order.certno)}}</td>
39
+            <td width="100">{{getBirth(info.certno)}}</td>
29 40
             <td width="100">人员类别</td>
30
-            <td  width="150" v-if="info.new_order.psn_type == '11'">在职</td>
31
-            <td  width="150" v-else-if="info.new_order.psn_type == '1101'">职工在职</td>
32
-            <td  width="150" v-else-if="info.new_order.psn_type == '1102'">公务员在职</td>
33
-            <td  width="150" v-else-if="info.new_order.psn_type == '1103'">灵活就业人员在职</td>
34
-            <td  width="150" v-else-if="info.new_order.psn_type == '1160'">地方其他扩展人员</td>
35
-
36
-            <td  width="150" v-else-if="info.new_order.psn_type == '12'">退休人员</td>
37
-            <td  width="150" v-else-if="info.new_order.psn_type == '1201'">职工退休</td>
38
-            <td  width="150" v-else-if="info.new_order.psn_type == '1202'">公务员退休</td>
39
-            <td  width="150" v-else-if="info.new_order.psn_type == '1203'">灵活就业人员退休</td>
40
-            <td  width="150" v-else-if="info.new_order.psn_type == '1260'">地方其他扩展人员</td>
41
-
42
-            <td  width="150" v-else-if="info.new_order.psn_type == '13'">离休</td>
43
-            <td  width="150" v-else-if="info.new_order.psn_type == '1300'">离休人员</td>
44
-            <td  width="150" v-else-if="info.new_order.psn_type == '1360'">地方其他扩展人员</td>
45
-
46
-            <td  width="150" v-else-if="info.new_order.psn_type == '14'">居民(未成年)</td>
47
-            <td  width="150" v-else-if="info.new_order.psn_type == '1401'">新生儿</td>
48
-            <td  width="150" v-else-if="info.new_order.psn_type == '1402'">学龄前儿童</td>
49
-            <td  width="150" v-else-if="info.new_order.psn_type == '1403'">中小学生</td>
50
-            <td  width="150" v-else-if="info.new_order.psn_type == '1404'">大学生</td>
51
-            <td  width="150" v-else-if="info.new_order.psn_type == '1405'">未成年(未入学)</td>
52
-
53
-            <td  width="150" v-else-if="info.new_order.psn_type == '15'">居民(成年)</td>
54
-            <td  width="150" v-else-if="info.new_order.psn_type == '1501'">普通居民(成年)</td>
55
-            <td  width="150" v-else-if="info.new_order.psn_type == '1560'">地方其他扩展身份</td>
56
-
57
-            <td  width="150" v-else-if="info.new_order.psn_type == '16'">居民(老年)</td>
41
+            <td  width="150" v-if="info.psn_type == '11'">在职</td>
42
+            <td  width="150" v-else-if="info.psn_type == '1101'">职工在职</td>
43
+            <td  width="150" v-else-if="info.psn_type == '1102'">公务员在职</td>
44
+            <td  width="150" v-else-if="info.psn_type == '1103'">灵活就业人员在职</td>
45
+            <td  width="150" v-else-if="info.psn_type == '1160'">地方其他扩展人员</td>
46
+
47
+            <td  width="150" v-else-if="info.psn_type == '12'">退休人员</td>
48
+            <td  width="150" v-else-if="info.psn_type == '1201'">职工退休</td>
49
+            <td  width="150" v-else-if="info.psn_type == '1202'">公务员退休</td>
50
+            <td  width="150" v-else-if="info.psn_type == '1203'">灵活就业人员退休</td>
51
+            <td  width="150" v-else-if="info.psn_type == '1260'">地方其他扩展人员</td>
52
+
53
+            <td  width="150" v-else-if="info.psn_type == '13'">离休</td>
54
+            <td  width="150" v-else-if="info.psn_type == '1300'">离休人员</td>
55
+            <td  width="150" v-else-if="info.psn_type == '1360'">地方其他扩展人员</td>
56
+
57
+            <td  width="150" v-else-if="info.psn_type == '14'">居民(未成年)</td>
58
+            <td  width="150" v-else-if="info.psn_type == '1401'">新生儿</td>
59
+            <td  width="150" v-else-if="info.psn_type == '1402'">学龄前儿童</td>
60
+            <td  width="150" v-else-if="info.psn_type == '1403'">中小学生</td>
61
+            <td  width="150" v-else-if="info.psn_type == '1404'">大学生</td>
62
+            <td  width="150" v-else-if="info.psn_type == '1405'">未成年(未入学)</td>
63
+
64
+            <td  width="150" v-else-if="info.psn_type == '15'">居民(成年)</td>
65
+            <td  width="150" v-else-if="info.psn_type == '1501'">普通居民(成年)</td>
66
+            <td  width="150" v-else-if="info.psn_type == '1560'">地方其他扩展身份</td>
67
+
68
+            <td  width="150" v-else-if="info.psn_type == '16'">居民(老年)</td>
58 69
             <td width="150" v-else></td>
59 70
             <td width="120">公务员标志</td>
60 71
             <td width="80">否</td>
61
-
72
+            
62 73
           </tr>
63 74
           <tr>
64 75
             <td>单位名称</td>
@@ -66,50 +77,41 @@
66 77
             <td width="100">联系电话</td>
67 78
             <td width="100">{{info.patient.phone}}</td>
68 79
             <td width="150">人员身份类别</td>
69
-            <td colspan="2" v-if="info.psn_idet_type == '5'">公务员</td>
70
-            <td colspan="2" v-if="info.psn_idet_type == '21'">优抚人员</td>
71
-            <td colspan="2" v-if="info.psn_idet_type == '22'">医疗照顾人员</td>
72
-            <td colspan="2" v-if="info.psn_idet_type == '23'">医疗救助人员</td>
73
-            <td colspan="2" v-if="info.psn_idet_type == '2303'">低保救助对象</td>
74
-            <td colspan="2" v-else></td>
75
-
76
-
80
+            <td colspan="2"></td>
77 81
           </tr>
78 82
           <tr>
79 83
             <td width="100">结算ID</td>
80
-            <td width="150">{{info.new_order.setl_id}}</td>
84
+            <td width="150"></td>
81 85
             <td width="120">住院号</td>
82
-            <td width="150" colspan="2">{{info.new_order.mdtrt_id}}</td>
86
+            <td width="150" colspan="2">{{info.number}}</td>
83 87
             <td width="100">医疗类别</td>
84 88
             <td width="150">
85
-              <span v-if="info.new_order.med_type == '11'">普通门诊</span>
86
-              <span v-if="info.new_order.med_type == '12'">门诊挂号</span>
87
-              <span v-if="info.new_order.med_type == '13'">急诊</span>
88
-              <span v-if="info.new_order.med_type == '14'">门诊特殊病</span>
89
-              <span v-if="info.new_order.med_type == '15'">门诊统筹</span>
90
-              <span v-if="info.new_order.med_type == '16'">门诊慢性病</span>
91
-              <span v-if="info.new_order.med_type == '21'">普通住院</span>
92
-              <span v-if="info.new_order.med_type == '990101'">单病种门诊</span>
93
-
89
+              <span v-if="info.med_type == '11'">普通门诊</span>
90
+              <span v-if="info.med_type == '12'">门诊挂号</span>
91
+              <span v-if="info.med_type == '13'">急诊</span>
92
+              <span v-if="info.med_type == '14'">门诊特殊病</span>
93
+              <span v-if="info.med_type == '15'">门诊统筹</span>
94
+              <span v-if="info.med_type == '16'">门诊慢性病</span>
95
+              <span v-if="info.med_type == '21'">普通住院</span>
94 96
             </td>
95 97
             <td width="150">住院天数</td>
96
-            <td colspan="2">{{1}}</td>
98
+            <td colspan="2">{{getDay(info.begndate,info.enddate)}}</td>
97 99
           </tr>
98 100
           <tr>
99 101
             <td>身份证号</td>
100
-            <td colspan="4">{{info.new_order.certno}}</td>
102
+            <td colspan="4">{{info.certno}}</td>
101 103
             <td width="100">险种</td>
102 104
             <td width="100">
103
-              <span v-if="info.new_order.insutype == '310'">职工基本医疗保险</span>
104
-              <span v-if="info.new_order.insutype == '320'">公务员医疗补助</span>
105
-              <span v-if="info.new_order.insutype == '330'">大额医疗费用补助</span>
106
-              <span v-if="info.new_order.insutype == '340'">离休人员医疗保障</span>
107
-              <span v-if="info.new_order.insutype == '390'">城乡居民基本医疗保险</span>
108
-              <span v-if="info.new_order.insutype == '392'">城乡居民大病医疗保险</span>
109
-              <span v-if="info.new_order.insutype == '510'">生育保险</span>
105
+              <span v-if="info.insutype == '310'">职工基本医疗保险</span>
106
+              <span v-if="info.insutype == '320'">公务员医疗补助</span>
107
+              <span v-if="info.insutype == '330'">大额医疗费用补助</span>
108
+              <span v-if="info.insutype == '340'">离休人员医疗保障</span>
109
+              <span v-if="info.insutype == '390'">城乡居民基本医疗保险</span>
110
+              <span v-if="info.insutype == '392'">城乡居民大病医疗保险</span>
111
+              <span v-if="info.insutype == '510'">生育保险</span>
110 112
             </td>
111 113
             <td width="150">参保医保区划</td>
112
-            <td colspan="2">{{info.his.insuplc_admdvs}}</td>
114
+            <td colspan="2"></td>
113 115
           </tr>
114 116
           <tr>
115 117
             <td width="100">科别</td>
@@ -117,20 +119,17 @@
117 119
             <td width="120">床号</td>
118 120
             <td width="150" colspan="2"></td>
119 121
             <td width="100">入院日期</td>
120
-            <td width="150">{{info.new_order.setl_time ? info.new_order.setl_time.split(' ')[0] : ''}}</td>
122
+            <td width="150">{{info.begndate ? info.begndate.split(' ')[0] : ''}}</td>
121 123
             <td width="150">出院日期</td>
122
-            <td colspan="2">{{info.new_order.setl_time ? info.new_order.setl_time.split(' ')[0] : ''}}</td>
124
+            <td colspan="2">{{info.enddate ? info.enddate.split(' ')[0] : ''}}</td>
123 125
           </tr>
124 126
           <tr>
125 127
             <td width="100">入院主要诊断</td>
126
-            <td colspan="2" v-if="info.new_order.med_type == '990101'">{{"尿毒症(免费透析)"}}</td>
127
-            <td colspan="2" v-if="info.new_order.med_type == '14'">{{"慢性肾脏病5期"}}</td>
128
-
128
+            <td colspan="2">{{info.dise_name}}</td>
129 129
             <td width="150" colspan="2">出院主要诊断</td>
130
-            <td colspan="2" v-if="info.new_order.med_type == '990101'">{{"尿毒症(免费透析)"}}</td>
131
-            <td colspan="2" v-if="info.new_order.med_type == '14'">{{"慢性肾脏病5期"}}</td>
130
+            <td colspan="2">{{info.dise_name}}</td>
132 131
             <td width="150">结算时间</td>
133
-            <td colspan="2">{{info.new_order.setl_time}}</td>
132
+            <td colspan="2">{{info.setl_time ? info.setl_time.split(' ')[0] : ''}}</td>
134 133
           </tr>
135 134
           <tr>
136 135
             <td width="100">项目名称</td>
@@ -138,102 +137,65 @@
138 137
             <td width="200" colspan="2">符合政策范围</td>
139 138
             <td width="250" colspan="2">先行自付 </td>
140 139
             <td width="150">全自费</td>
141
-            <td colspan="2">超限价</td>
140
+            <td colspan="2">超限价</td> 
142 141
           </tr>
143
-          <tr v-if="info.new_order.treat_cost_total > 0">
142
+          <tr v-if="info.treat_cost_total > 0">
144 143
             <td width="100">治疗费</td>
145
-            <td width="200" colspan="2">{{info.new_order.treat_cost_total}}</td>
146
-            <td width="200" colspan="2">{{info.new_order.treatInscpTotal}}</td>
147
-            <td width="250" colspan="2">{{info.new_order.treat_cost_part_self_total}}</td>
148
-            <td width="150">{{info.new_order.treatSelfTotal}}</td>
149
-            <td colspan="2">{{info.new_order.treat_cost_self_total}}</td>
144
+            <td width="200" colspan="2">{{info.treat_cost_total}}</td>
145
+            <td width="200" colspan="2">{{info.treatInscpTotal}}</td>
146
+            <td width="250" colspan="2">{{info.treat_cost_part_self_total}}</td>
147
+            <td width="150">{{info.treatSelfTotal}}</td>
148
+            <td colspan="2">{{info.treat_cost_self_total}}</td>
149
+          </tr>
150
+          <tr>
151
+            <td width="100">护理费</td>
152
+            <td width="200" colspan="2"></td>
153
+            <td width="200" colspan="2"></td>
154
+            <td width="250" colspan="2"></td>
155
+            <td width="150"></td>
156
+            <td colspan="2"></td>
150 157
           </tr>
151
-          <tr v-if="info.new_order.material_cost_total > 0">
158
+          <tr v-if="info.material_cost_total > 0">
152 159
             <td width="100">卫生材料费</td>
153
-            <td width="200" colspan="2">{{info.new_order.material_cost_total}}</td>
154
-            <td width="200" colspan="2">{{info.new_order.materialInscpTotal}}</td>
155
-            <td width="250" colspan="2">{{info.new_order.material_cost_part_self_total}}</td>
156
-            <td width="150">{{info.new_order.materialSelfTotal}}</td>
157
-            <td colspan="2">{{info.new_order.material_cost_self_total}}</td>
160
+            <td width="200" colspan="2">{{info.material_cost_total}}</td>
161
+            <td width="200" colspan="2">{{info.materialInscpTotal}}</td>
162
+            <td width="250" colspan="2">{{info.material_cost_part_self_total}}</td>
163
+            <td width="150">{{info.materialSelfTotal}}</td>
164
+            <td colspan="2">{{info.material_cost_self_total}}</td>
158 165
           </tr>
159
-          <tr v-if="info.new_order.western_medicine_cost_total > 0">
166
+          <tr v-if="info.western_medicine_cost_total > 0">
160 167
             <td width="100">西药费</td>
161
-            <td width="200" colspan="2">{{info.new_order.western_medicine_cost_total}}</td>
162
-            <td width="200" colspan="2">{{info.new_order.westernMedicineInscpTotal}}</td>
163
-            <td width="250" colspan="2">{{info.new_order.western_medicine_cost_part_self_total}}</td>
164
-            <td width="150">{{info.new_order.westernMedicineSelfTotal}}</td>
165
-            <td colspan="2">{{info.new_order.western_medicine_cost_self_total}}</td>
166
-          </tr>
167
-
168
-
169
-          <tr v-if="info.new_order.chinese_traditional_medicine_cost_total > 0">
170
-            <td width="100">中成药</td>
171
-            <td width="200" colspan="2">{{info.new_order.chinese_traditional_medicine_cost_total}}</td>
172
-            <td width="200" colspan="2">{{info.new_order.chineseTraditionalInscpTotal}}</td>
173
-            <td width="250" colspan="2">{{info.new_order.chinese_traditional_medicine_cost_part_self_total}}</td>
174
-            <td width="150">{{info.new_order.chineseTraditionalSelfTotal}}</td>
175
-            <td colspan="2">{{info.new_order.chinese_traditional_medicine_cost_self_total}}</td>
168
+            <td width="200" colspan="2">{{info.western_medicine_cost_total}}</td>
169
+            <td width="200" colspan="2">{{info.westernMedicineInscpTotal}}</td>
170
+            <td width="250" colspan="2">{{info.western_medicine_cost_part_self_total}}</td>
171
+            <td width="150">{{info.westernMedicineSelfTotal}}</td>
172
+            <td colspan="2">{{info.western_medicine_cost_self_total}}</td>
176 173
           </tr>
177
-
178
-
179
-          <tr v-if="info.new_order.check_cost_total > 0">
180
-            <td width="100">检查费</td>
181
-            <td width="200" colspan="2">{{info.new_order.check_cost_total}}</td>
182
-            <td width="200" colspan="2">{{info.new_order.checkInscpTotal}}</td>
183
-            <td width="250" colspan="2">{{info.new_order.check_cost_part_self_total}}</td>
184
-            <td width="150">{{info.new_order.checkSelfTotal}}</td>
185
-            <td colspan="2">{{info.new_order.check_cost_self_total}}</td>
186
-          </tr>
187
-
188
-          <tr v-if="info.new_order.laboratory_cost_total > 0">
189
-            <td width="100">化验费</td>
190
-            <td width="200" colspan="2">{{info.new_order.laboratory_cost_total}}</td>
191
-            <td width="200" colspan="2">{{info.new_order.laboratoryInscpTotal}}</td>
192
-            <td width="250" colspan="2">{{info.new_order.laboratory_cost_part_self_total}}</td>
193
-            <td width="150">{{info.new_order.laboratorySelfTotal}}</td>
194
-            <td colspan="2">{{info.new_order.laboratory_cost_self_total}}</td>
195
-          </tr>
196
-
197
-
198
-
199
-          <tr v-if="info.new_order.operation_cost_total > 0">
200
-            <td width="100">手术费</td>
201
-            <td width="200" colspan="2">{{info.new_order.operation_cost_total}}</td>
202
-            <td width="200" colspan="2">{{info.new_order.operationInscpTotal}}</td>
203
-            <td width="250" colspan="2">{{info.new_order.operation_cost_part_self_total}}</td>
204
-            <td width="150">{{info.new_order.operationSelfTotal}}</td>
205
-            <td colspan="2">{{info.new_order.operation_cost_self_total}}</td>
206
-          </tr>
207
-
208
-
209
-
210
-
211
-
212 174
           <tr>
213 175
             <td width="100">金额合计</td>
214 176
             <td width="200" colspan="2">
215
-              {{(parseFloat(info.new_order.treat_cost_total) + parseFloat(info.new_order.material_cost_total) +
216
-                  parseFloat(info.new_order.western_medicine_cost_total)+parseFloat(info.new_order.chinese_traditional_medicine_cost_total) + parseFloat(info.new_order.check_cost_total) +  parseFloat(info.new_order.laboratory_cost_total) + parseFloat(info.new_order.operation_cost_total)  ).toFixed(2)
177
+              {{(parseFloat(info.treat_cost_total) + parseFloat(info.material_cost_total) + 
178
+                  parseFloat(info.western_medicine_cost_total) ).toFixed(2) 
217 179
               }}
218 180
             </td>
219 181
             <td width="200" colspan="2">
220
-              {{(parseFloat(info.new_order.treatInscpTotal) + parseFloat(info.new_order.materialInscpTotal) +
221
-                  parseFloat(info.new_order.westernMedicineInscpTotal) +  parseFloat(info.new_order.chineseTraditionalInscpTotal) + parseFloat(info.new_order.laboratoryInscpTotal) + parseFloat(info.new_order.checkInscpTotal) +  parseFloat(info.new_order.operationInscpTotal) ).toFixed(2)
182
+              {{(parseFloat(info.treatInscpTotal) + parseFloat(info.materialInscpTotal) + 
183
+                  parseFloat(info.westernMedicineInscpTotal) ).toFixed(2) 
222 184
               }}
223 185
             </td>
224 186
             <td width="250" colspan="2">
225
-              {{(parseFloat(info.new_order.treat_cost_part_self_total) + parseFloat(info.new_order.material_cost_part_self_total) +
226
-                  parseFloat(info.new_order.western_medicine_cost_part_self_total) + parseFloat(info.new_order.chinese_traditional_medicine_cost_part_self_total) + parseFloat(info.new_order.check_cost_part_self_total) + parseFloat(info.new_order.laboratory_cost_part_self_total) +  parseFloat(info.new_order.operation_cost_part_self_total)  ).toFixed(2)
187
+              {{(parseFloat(info.treat_cost_part_self_total) + parseFloat(info.material_cost_part_self_total) + 
188
+                  parseFloat(info.western_medicine_cost_part_self_total) ).toFixed(2) 
227 189
               }}
228 190
             </td>
229 191
             <td width="150">
230
-              {{(parseFloat(info.new_order.treatSelfTotal) + parseFloat(info.new_order.materialSelfTotal) +
231
-                  parseFloat(info.new_order.westernMedicineSelfTotal) + parseFloat(info.new_order.chineseTraditionalSelfTotal) + parseFloat(info.new_order.checkSelfTotal) +parseFloat(info.new_order.laboratorySelfTotal)  +  parseFloat(info.new_order.operationSelfTotal) ).toFixed(2)
192
+              {{(parseFloat(info.treatSelfTotal) + parseFloat(info.materialSelfTotal) + 
193
+                  parseFloat(info.westernMedicineSelfTotal) ).toFixed(2) 
232 194
               }}
233 195
             </td>
234 196
             <td colspan="2">
235
-              {{(parseFloat(info.new_order.treat_cost_self_total) + parseFloat(info.new_order.material_cost_self_total) +
236
-                  parseFloat(info.new_order.western_medicine_cost_self_total) + parseFloat(info.new_order.chinese_traditional_medicine_cost_self_total) + parseFloat(info.new_order.check_cost_self_total) + parseFloat(info.new_order.laboratory_cost_self_total)  +  parseFloat(info.new_order.operation_cost_self_total)  ).toFixed(2)
197
+              {{(parseFloat(info.treat_cost_self_total) + parseFloat(info.material_cost_self_total) + 
198
+                  parseFloat(info.western_medicine_cost_self_total) ).toFixed(2) 
237 199
               }}
238 200
             </td>
239 201
           </tr>
@@ -243,15 +205,15 @@
243 205
               {{info.new_order.act_pay_dedc}}
244 206
             </td>
245 207
             <td colspan="2">基本统筹基金支付</td>
246
-            <td colspan="3">{{info.new_order.hifp_pay}}</td>
208
+            <td colspan="3">{{info.hifp_pay}}</td>
247 209
           </tr>
248 210
           <tr>
249 211
             <td colspan="3">大病基金支付</td>
250 212
             <td colspan="2">
251
-              {{info.new_order.hifmi_pay}}
213
+              {{info.hifmi_pay}}
252 214
             </td>
253 215
             <td colspan="2">医疗救助基金支付</td>
254
-            <td colspan="3">{{info.new_order.maf_pay}}</td>
216
+            <td colspan="3">{{info.maf_pay}}</td>
255 217
           </tr>
256 218
           <tr>
257 219
             <td colspan="3">重大病疾病补充保险支付</td>
@@ -265,9 +227,9 @@
265 227
           </tr>
266 228
           <tr>
267 229
             <td colspan="3">其他基金支付</td>
268
-            <td colspan="2">{{info.new_order.oth_pay}}</td>
230
+            <td colspan="2">{{info.oth_pay}}</td>
269 231
             <td colspan="2">个人帐户支付</td>
270
-            <td colspan="3">{{info.new_order.acct_pay?info.new_order.acct_pay.toFixed(2):0}}</td>
232
+            <td colspan="3">{{info.acct_pay?info.acct_pay.toFixed(2):0}}</td>
271 233
           </tr>
272 234
           <tr>
273 235
             <td colspan="3">医院垫付金额</td>
@@ -281,8 +243,8 @@
281 243
           </tr>
282 244
           <tr>
283 245
             <td colspan="10" style="text-align: left;">
284
-              本次就医:总费用:{{info.new_order.medfee_sumamt}}元&nbsp; 基金支付:{{info.new_order.fund_pay_sumamt}}元 &nbsp;个人帐户:{{info.new_order.acct_pay?info.new_order.acct_pay.toFixed(2):0}}元 &nbsp;
285
-              共济帐户:0元 &nbsp;个人现金:{{info.new_order.psn_cash_pay}}元 &nbsp; 账户余额:{{info.new_order.blac}}
246
+              本次就医:总费用:{{info.medfee_sumamt}}元&nbsp; 基金支付:{{info.fund_pay_sumamt}}元 &nbsp;个人帐户:{{info.acct_pay?info.acct_pay.toFixed(2):0}}元 &nbsp;
247
+              共济帐户:0元 &nbsp;个人现金:{{info.new_order.psn_cash_pay}}元 &nbsp; 账户余额:0
286 248
             </td>
287 249
           </tr>
288 250
           <tr>