|
@@ -771,8 +771,8 @@
|
771
|
771
|
<td width="80" style="line-height:20px">Bp<br />mmHg</td>
|
772
|
772
|
<td width="40" style="line-height:20px">P<br />次/分</td>
|
773
|
773
|
<td width="60" style="line-height:20px">R<br />次/分</td>
|
774
|
|
- <td width="80" style="line-height:20px">静脉压<br />mmHg</td>
|
775
|
|
- <td width="80" style="line-height:20px">TMP<br />mmHg</td>
|
|
774
|
+ <td width="80" style="line-height:20px">静脉压<br />{{monitors[0] && monitors[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}}</td>
|
|
775
|
+ <td width="80" style="line-height:20px">TMP<br />{{monitors[0] && monitors[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}}</td>
|
776
|
776
|
<td width="60" style="line-height:20px">血流量<br />ml/min</td>
|
777
|
777
|
<td width="60" style="line-height:20px">电导度<br />mS/cm</td>
|
778
|
778
|
<!-- <td width="60">钠浓度<br/>mmol/L</td>
|
|
@@ -1603,17 +1603,17 @@
|
1603
|
1603
|
</template>
|
1604
|
1604
|
|
1605
|
1605
|
<script>
|
1606
|
|
- import { getDialysisRecord } from "@/api/dialysis";
|
1607
|
|
- import { getDataConfig } from "@/utils/data";
|
1608
|
|
- import { jsGetAge, uParseTime } from "@/utils/tools";
|
1609
|
|
- import LabelBox from "../printItem/LabelBox";
|
1610
|
|
- import BreadCrumb from "@/xt_pages/components/bread-crumb";
|
1611
|
|
- // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
|
1612
|
|
- // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
|
1613
|
|
- import print from "print-js";
|
1614
|
|
-
|
1615
|
|
- export default {
|
1616
|
|
- name: "dialysisPrintOrderOne",
|
|
1606
|
+ import { getDialysisRecord } from '@/api/dialysis'
|
|
1607
|
+import { getDataConfig } from '@/utils/data'
|
|
1608
|
+import { jsGetAge, uParseTime } from '@/utils/tools'
|
|
1609
|
+import LabelBox from '../printItem/LabelBox'
|
|
1610
|
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
|
1611
|
+// import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
|
|
1612
|
+// import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
|
|
1613
|
+import print from 'print-js'
|
|
1614
|
+
|
|
1615
|
+export default {
|
|
1616
|
+ name: 'dialysisPrintOrderOne',
|
1617
|
1617
|
components: {
|
1618
|
1618
|
// DialysisPrintOrderOne,
|
1619
|
1619
|
// DialysisPrintOrderTwo,
|
|
@@ -1632,8 +1632,8 @@
|
1632
|
1632
|
nutrition_arr: [],
|
1633
|
1633
|
|
1634
|
1634
|
crumbs: [
|
1635
|
|
- { path: false, name: "透析管理" },
|
1636
|
|
- { path: false, name: "打印单" }
|
|
1635
|
+ { path: false, name: '透析管理' },
|
|
1636
|
+ { path: false, name: '打印单' }
|
1637
|
1637
|
],
|
1638
|
1638
|
operators: [],
|
1639
|
1639
|
adminUser: [],
|
|
@@ -1643,22 +1643,22 @@
|
1643
|
1643
|
},
|
1644
|
1644
|
operatorMaps: {},
|
1645
|
1645
|
complications: [
|
1646
|
|
- "低血压",
|
1647
|
|
- "高血压",
|
1648
|
|
- "心律失常",
|
1649
|
|
- "头晕",
|
1650
|
|
- "头痛",
|
1651
|
|
- "呕吐",
|
1652
|
|
- "抽搐",
|
1653
|
|
- "出血",
|
1654
|
|
- "心衰",
|
1655
|
|
- "腹痛",
|
1656
|
|
- "无"
|
|
1646
|
+ '低血压',
|
|
1647
|
+ '高血压',
|
|
1648
|
+ '心律失常',
|
|
1649
|
+ '头晕',
|
|
1650
|
+ '头痛',
|
|
1651
|
+ '呕吐',
|
|
1652
|
+ '抽搐',
|
|
1653
|
+ '出血',
|
|
1654
|
+ '心衰',
|
|
1655
|
+ '腹痛',
|
|
1656
|
+ '无'
|
1657
|
1657
|
],
|
1658
|
1658
|
jilurow: 0,
|
1659
|
1659
|
advice_jilurow: 0,
|
1660
|
1660
|
loading: false,
|
1661
|
|
- orgname: "",
|
|
1661
|
+ orgname: '',
|
1662
|
1662
|
patientInfo_gender_1: false,
|
1663
|
1663
|
patientInfo_gender_2: false,
|
1664
|
1664
|
patientInfo_source_2: false,
|
|
@@ -1671,30 +1671,30 @@
|
1671
|
1671
|
dialysateFormulationOptions: {},
|
1672
|
1672
|
|
1673
|
1673
|
queryParams: {
|
1674
|
|
- xtdate: "",
|
1675
|
|
- xtno: ""
|
|
1674
|
+ xtdate: '',
|
|
1675
|
+ xtno: ''
|
1676
|
1676
|
},
|
1677
|
1677
|
patientInfo: {
|
1678
|
|
- birth: "",
|
1679
|
|
- age: "",
|
|
1678
|
+ birth: '',
|
|
1679
|
+ age: '',
|
1680
|
1680
|
DialysisSchedule: {
|
1681
|
|
- device_number: { number: "" },
|
1682
|
|
- device_zone: { name: "" }
|
|
1681
|
+ device_number: { number: '' },
|
|
1682
|
+ device_zone: { name: '' }
|
1683
|
1683
|
},
|
1684
|
1684
|
gender: 0
|
1685
|
1685
|
},
|
1686
|
1686
|
predialysis: {
|
1687
|
|
- score: "",
|
1688
|
|
- internal_fistula: "",
|
1689
|
|
- internal_fistula_skin: "",
|
1690
|
|
- catheter: "",
|
1691
|
|
- blood_access_part_opera_name: ""
|
|
1687
|
+ score: '',
|
|
1688
|
+ internal_fistula: '',
|
|
1689
|
+ internal_fistula_skin: '',
|
|
1690
|
+ catheter: '',
|
|
1691
|
+ blood_access_part_opera_name: ''
|
1692
|
1692
|
},
|
1693
|
1693
|
afterdialysis: {
|
1694
|
|
- complications_index: ""
|
|
1694
|
+ complications_index: ''
|
1695
|
1695
|
},
|
1696
|
1696
|
prescription: {
|
1697
|
|
- dialysate_formulation_name: "",
|
|
1697
|
+ dialysate_formulation_name: '',
|
1698
|
1698
|
device: {}
|
1699
|
1699
|
},
|
1700
|
1700
|
advices: [],
|
|
@@ -1710,72 +1710,72 @@
|
1710
|
1710
|
|
1711
|
1711
|
AlPanel: {
|
1712
|
1712
|
id: 0,
|
1713
|
|
- name: "",
|
|
1713
|
+ name: '',
|
1714
|
1714
|
type: 1,
|
1715
|
1715
|
shouji: 2,
|
1716
|
1716
|
weichi: 2,
|
1717
|
1717
|
zongliang: 2,
|
1718
|
1718
|
gaimingcheng: -1,
|
1719
|
1719
|
gaijiliang: -1,
|
1720
|
|
- shouji_unit: "mg",
|
1721
|
|
- weichi_unit: "mg/h",
|
1722
|
|
- zongliang_unit: "mg",
|
1723
|
|
- gaimingcheng_unit: "",
|
1724
|
|
- gaijiliang_unit: ""
|
|
1720
|
+ shouji_unit: 'mg',
|
|
1721
|
+ weichi_unit: 'mg/h',
|
|
1722
|
+ zongliang_unit: 'mg',
|
|
1723
|
+ gaimingcheng_unit: '',
|
|
1724
|
+ gaijiliang_unit: ''
|
1725
|
1725
|
},
|
1726
|
1726
|
doctorForm: {
|
1727
|
|
- doctor: "",
|
1728
|
|
- url: ""
|
|
1727
|
+ doctor: '',
|
|
1728
|
+ url: ''
|
1729
|
1729
|
}
|
1730
|
|
- };
|
1731
|
|
- },
|
|
1730
|
+ }
|
|
1731
|
+ },
|
1732
|
1732
|
methods: {
|
1733
|
1733
|
getAdminUser(id) {
|
1734
|
1734
|
if (id == 0) {
|
1735
|
|
- return "";
|
|
1735
|
+ return ''
|
1736
|
1736
|
}
|
1737
|
1737
|
if (id == undefined) {
|
1738
|
|
- return "";
|
|
1738
|
+ return ''
|
1739
|
1739
|
}
|
1740
|
1740
|
for (let i = 0; i < this.adminUser.length; i++) {
|
1741
|
1741
|
if (this.adminUser[i].id == id) {
|
1742
|
|
- return this.adminUser[i].name;
|
|
1742
|
+ return this.adminUser[i].name
|
1743
|
1743
|
}
|
1744
|
1744
|
}
|
1745
|
1745
|
},
|
1746
|
1746
|
getTime(value, temp) {
|
1747
|
1747
|
if (value == 0) {
|
1748
|
|
- return "";
|
|
1748
|
+ return ''
|
1749
|
1749
|
}
|
1750
|
1750
|
if (value != undefined) {
|
1751
|
|
- return uParseTime(value, temp);
|
|
1751
|
+ return uParseTime(value, temp)
|
1752
|
1752
|
}
|
1753
|
|
- return "";
|
|
1753
|
+ return ''
|
1754
|
1754
|
},
|
1755
|
1755
|
printThisPage() {
|
1756
|
|
- var ptime = Math.round(new Date().getTime() / 1000);
|
1757
|
|
- this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
|
|
1756
|
+ var ptime = Math.round(new Date().getTime() / 1000)
|
|
1757
|
+ this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
|
1758
|
1758
|
|
1759
|
1759
|
const style =
|
1760
|
|
- '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
|
|
1760
|
+ '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}'
|
1761
|
1761
|
|
1762
|
1762
|
if (this.org_template_info.template_id == 1) {
|
1763
|
1763
|
printJS({
|
1764
|
|
- printable: "dialysis-print-box",
|
1765
|
|
- type: "html",
|
|
1764
|
+ printable: 'dialysis-print-box',
|
|
1765
|
+ type: 'html',
|
1766
|
1766
|
style: style,
|
1767
|
1767
|
scanStyles: false
|
1768
|
|
- });
|
|
1768
|
+ })
|
1769
|
1769
|
} else if (
|
1770
|
1770
|
this.org_template_info.template_id == 2 ||
|
1771
|
1771
|
this.org_template_info.template_id == 0
|
1772
|
1772
|
) {
|
1773
|
1773
|
printJS({
|
1774
|
|
- printable: "dialysis-print-box-1",
|
1775
|
|
- type: "html",
|
|
1774
|
+ printable: 'dialysis-print-box-1',
|
|
1775
|
+ type: 'html',
|
1776
|
1776
|
style: style,
|
1777
|
1777
|
scanStyles: false
|
1778
|
|
- });
|
|
1778
|
+ })
|
1779
|
1779
|
}
|
1780
|
1780
|
},
|
1781
|
1781
|
getNumber() {
|
|
@@ -1783,123 +1783,123 @@
|
1783
|
1783
|
return (
|
1784
|
1784
|
// this.patientInfo.DialysisSchedule.device_zone.name +
|
1785
|
1785
|
this.dialysisOrder.DeviceNumber.number
|
1786
|
|
- );
|
|
1786
|
+ )
|
1787
|
1787
|
} else {
|
1788
|
1788
|
return (
|
1789
|
1789
|
// this.patientInfo.DialysisSchedule.device_zone.name +
|
1790
|
1790
|
this.patientInfo.DialysisSchedule.device_number.number
|
1791
|
|
- );
|
|
1791
|
+ )
|
1792
|
1792
|
}
|
1793
|
1793
|
},
|
1794
|
1794
|
|
1795
|
1795
|
getXuserName(id) {
|
1796
|
1796
|
if (id <= 0) {
|
1797
|
|
- return "";
|
|
1797
|
+ return ''
|
1798
|
1798
|
}
|
1799
|
|
- var name = "";
|
1800
|
|
- if (this.users == null || typeof this.users.length === "undefined") {
|
1801
|
|
- return name;
|
|
1799
|
+ var name = ''
|
|
1800
|
+ if (this.users == null || typeof this.users.length === 'undefined') {
|
|
1801
|
+ return name
|
1802
|
1802
|
}
|
1803
|
|
- var leng = this.users.length;
|
|
1803
|
+ var leng = this.users.length
|
1804
|
1804
|
if (leng == 0) {
|
1805
|
|
- return name;
|
|
1805
|
+ return name
|
1806
|
1806
|
}
|
1807
|
1807
|
for (let index = 0; index < leng; index++) {
|
1808
|
1808
|
if (this.users[index].id == id) {
|
1809
|
|
- name = this.users[index].name;
|
1810
|
|
- break;
|
|
1809
|
+ name = this.users[index].name
|
|
1810
|
+ break
|
1811
|
1811
|
}
|
1812
|
1812
|
}
|
1813
|
|
- return name;
|
|
1813
|
+ return name
|
1814
|
1814
|
},
|
1815
|
1815
|
setAdminUserES(id) {
|
1816
|
1816
|
if (id == 0) {
|
1817
|
|
- return "";
|
|
1817
|
+ return ''
|
1818
|
1818
|
}
|
1819
|
1819
|
if (id in this.operatorMaps) {
|
1820
|
|
- return this.operatorMaps[id].url;
|
|
1820
|
+ return this.operatorMaps[id].url
|
1821
|
1821
|
} else {
|
1822
|
|
- return "";
|
|
1822
|
+ return ''
|
1823
|
1823
|
}
|
1824
|
1824
|
},
|
1825
|
1825
|
modeName(mode_id) {
|
1826
|
|
- return typeof this.modeOptions[mode_id] !== "undefined" &&
|
1827
|
|
- typeof this.modeOptions[mode_id].name !== "undefined"
|
|
1826
|
+ return typeof this.modeOptions[mode_id] !== 'undefined' &&
|
|
1827
|
+ typeof this.modeOptions[mode_id].name !== 'undefined'
|
1828
|
1828
|
? this.modeOptions[mode_id].name
|
1829
|
|
- : "";
|
|
1829
|
+ : ''
|
1830
|
1830
|
},
|
1831
|
1831
|
getDialysisRecord() {
|
1832
|
|
- this.loading = true;
|
|
1832
|
+ this.loading = true
|
1833
|
1833
|
|
1834
|
1834
|
getDialysisRecord(this.queryParams).then(response => {
|
1835
|
1835
|
if (response.data.state == 1) {
|
1836
|
|
- this.adminUser = response.data.data.users;
|
1837
|
|
- this.users = response.data.data.users;
|
1838
|
|
- this.patientInfo = response.data.data.patientInfo;
|
|
1836
|
+ this.adminUser = response.data.data.users
|
|
1837
|
+ this.users = response.data.data.users
|
|
1838
|
+ this.patientInfo = response.data.data.patientInfo
|
1839
|
1839
|
this.patientInfo.birth = uParseTime(
|
1840
|
1840
|
this.patientInfo.birthday,
|
1841
|
|
- "{y}-{m}-{d}"
|
1842
|
|
- );
|
|
1841
|
+ '{y}-{m}-{d}'
|
|
1842
|
+ )
|
1843
|
1843
|
// this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
|
1844
|
1844
|
if (response.data.data.patientInfo.first_dialysis_date != 0) {
|
1845
|
1845
|
this.patientInfo.first_dialysis_date = uParseTime(
|
1846
|
1846
|
response.data.data.patientInfo.first_dialysis_date,
|
1847
|
|
- "{y}-{m}-{d}"
|
1848
|
|
- );
|
|
1847
|
+ '{y}-{m}-{d}'
|
|
1848
|
+ )
|
1849
|
1849
|
} else {
|
1850
|
|
- this.patientInfo.first_dialysis_date = "";
|
|
1850
|
+ this.patientInfo.first_dialysis_date = ''
|
1851
|
1851
|
}
|
1852
|
|
- this.check = response.data.data.check;
|
1853
|
|
- this.predialysis = response.data.data.PredialysisEvaluation;
|
1854
|
|
- console.log(11111111111111111111111, this.predialysis);
|
|
1852
|
+ this.check = response.data.data.check
|
|
1853
|
+ this.predialysis = response.data.data.PredialysisEvaluation
|
|
1854
|
+ console.log(11111111111111111111111, this.predialysis)
|
1855
|
1855
|
this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
|
1856
|
1856
|
this.predialysis.blood_access_part_opera_id
|
1857
|
|
- );
|
1858
|
|
- this.afterdialysis = response.data.data.AssessmentAfterDislysis;
|
1859
|
|
- console.log(22222222222222222222222222, response.data.data);
|
1860
|
|
- this.operators = response.data.data.operators;
|
|
1857
|
+ )
|
|
1858
|
+ this.afterdialysis = response.data.data.AssessmentAfterDislysis
|
|
1859
|
+ console.log(22222222222222222222222222, response.data.data)
|
|
1860
|
+ this.operators = response.data.data.operators
|
1861
|
1861
|
this.dialysisOrder =
|
1862
|
1862
|
response.data.data.dialysisOrder === null
|
1863
|
1863
|
? null
|
1864
|
|
- : response.data.data.dialysisOrder;
|
|
1864
|
+ : response.data.data.dialysisOrder
|
1865
|
1865
|
|
1866
|
|
- //医生
|
1867
|
|
- var doctorname = response.data.data.DoctorName;
|
|
1866
|
+ // 医生
|
|
1867
|
+ var doctorname = response.data.data.DoctorName
|
1868
|
1868
|
// console.log('医师签名', doctorname)
|
1869
|
|
- this.doctorForm.doctor = doctorname.user_name;
|
1870
|
|
- this.doctorForm.url = doctorname.url;
|
|
1869
|
+ this.doctorForm.doctor = doctorname.user_name
|
|
1870
|
+ this.doctorForm.url = doctorname.url
|
1871
|
1871
|
|
1872
|
1872
|
if (this.operators.length > 0) {
|
1873
|
|
- var operatorsLen = this.operators.length;
|
|
1873
|
+ var operatorsLen = this.operators.length
|
1874
|
1874
|
for (var index = 0; index < operatorsLen; index++) {
|
1875
|
1875
|
this.$set(
|
1876
|
1876
|
this.operatorMaps,
|
1877
|
1877
|
this.operators[index].creator,
|
1878
|
1878
|
this.operators[index]
|
1879
|
|
- );
|
|
1879
|
+ )
|
1880
|
1880
|
}
|
1881
|
1881
|
}
|
1882
|
1882
|
|
1883
|
|
- this.afterdialysis.txqnx = -1;
|
1884
|
|
- if (this.afterdialysis.cruor.indexOf("0度") > -1) {
|
1885
|
|
- this.afterdialysis.txqnx = 0;
|
|
1883
|
+ this.afterdialysis.txqnx = -1
|
|
1884
|
+ if (this.afterdialysis.cruor.indexOf('0度') > -1) {
|
|
1885
|
+ this.afterdialysis.txqnx = 0
|
1886
|
1886
|
}
|
1887
|
|
- if (this.afterdialysis.cruor.indexOf("Ⅰ度") > -1) {
|
1888
|
|
- this.afterdialysis.txqnx = 1;
|
|
1887
|
+ if (this.afterdialysis.cruor.indexOf('Ⅰ度') > -1) {
|
|
1888
|
+ this.afterdialysis.txqnx = 1
|
1889
|
1889
|
}
|
1890
|
|
- if (this.afterdialysis.cruor.indexOf("Ⅱ度") > -1) {
|
1891
|
|
- this.afterdialysis.txqnx = 2;
|
|
1890
|
+ if (this.afterdialysis.cruor.indexOf('Ⅱ度') > -1) {
|
|
1891
|
+ this.afterdialysis.txqnx = 2
|
1892
|
1892
|
}
|
1893
|
|
- if (this.afterdialysis.cruor.indexOf("Ⅲ度") > -1) {
|
1894
|
|
- this.afterdialysis.txqnx = 3;
|
|
1893
|
+ if (this.afterdialysis.cruor.indexOf('Ⅲ度') > -1) {
|
|
1894
|
+ this.afterdialysis.txqnx = 3
|
1895
|
1895
|
}
|
1896
|
1896
|
|
1897
|
1897
|
this.afterdialysis.complications = this.afterdialysis.complication.split(
|
1898
|
|
- ","
|
1899
|
|
- );
|
1900
|
|
- this.afterdialysis.complications_other = [];
|
1901
|
|
- this.afterdialysis.complications_index = [];
|
1902
|
|
- var acllen = this.afterdialysis.complications.length;
|
|
1898
|
+ ','
|
|
1899
|
+ )
|
|
1900
|
+ this.afterdialysis.complications_other = []
|
|
1901
|
+ this.afterdialysis.complications_index = []
|
|
1902
|
+ var acllen = this.afterdialysis.complications.length
|
1903
|
1903
|
for (let index = 0; index < acllen; index++) {
|
1904
|
1904
|
if (
|
1905
|
1905
|
this.complications.indexOf(
|
|
@@ -1908,7 +1908,7 @@
|
1908
|
1908
|
) {
|
1909
|
1909
|
this.afterdialysis.complications_index.push(
|
1910
|
1910
|
this.afterdialysis.complications[index]
|
1911
|
|
- );
|
|
1911
|
+ )
|
1912
|
1912
|
} else if (
|
1913
|
1913
|
this.complications.indexOf(
|
1914
|
1914
|
this.afterdialysis.complications[index]
|
|
@@ -1919,36 +1919,36 @@
|
1919
|
1919
|
) {
|
1920
|
1920
|
this.afterdialysis.complications_other.push(
|
1921
|
1921
|
this.afterdialysis.complications[index]
|
1922
|
|
- );
|
|
1922
|
+ )
|
1923
|
1923
|
}
|
1924
|
1924
|
}
|
1925
|
1925
|
this.afterdialysis.complications_other = this.afterdialysis.complications_other.join(
|
1926
|
|
- ","
|
1927
|
|
- );
|
|
1926
|
+ ','
|
|
1927
|
+ )
|
1928
|
1928
|
|
1929
|
|
- this.prescription = response.data.data.dialysisPrescription;
|
|
1929
|
+ this.prescription = response.data.data.dialysisPrescription
|
1930
|
1930
|
this.receiverTreatmentAccess =
|
1931
|
|
- response.data.data.receiverTreatmentAccess;
|
|
1931
|
+ response.data.data.receiverTreatmentAccess
|
1932
|
1932
|
|
1933
|
|
- this.prescription.mode = this.modeName(this.prescription.mode_id);
|
1934
|
|
- var rwLen = this.replacementWays.length;
|
1935
|
|
- this.prescription.replacement = "";
|
|
1933
|
+ this.prescription.mode = this.modeName(this.prescription.mode_id)
|
|
1934
|
+ var rwLen = this.replacementWays.length
|
|
1935
|
+ this.prescription.replacement = ''
|
1936
|
1936
|
for (let index = 0; index < rwLen; index++) {
|
1937
|
1937
|
if (
|
1938
|
1938
|
this.replacementWays[index].id ==
|
1939
|
1939
|
this.prescription.replacement_way
|
1940
|
1940
|
) {
|
1941
|
|
- this.prescription.replacement = this.replacementWays[index].name;
|
1942
|
|
- break;
|
|
1941
|
+ this.prescription.replacement = this.replacementWays[index].name
|
|
1942
|
+ break
|
1943
|
1943
|
}
|
1944
|
1944
|
}
|
1945
|
1945
|
|
1946
|
1946
|
this.prescription.dialysate_formulation_name = this.dialysateFormulationName(
|
1947
|
1947
|
this.prescription.dialysate_formulation
|
1948
|
|
- );
|
|
1948
|
+ )
|
1949
|
1949
|
|
1950
|
|
- var paLen = this.perfusionApparatus.length;
|
1951
|
|
- this.prescription.perfusion_apparatus_name = "";
|
|
1950
|
+ var paLen = this.perfusionApparatus.length
|
|
1951
|
+ this.prescription.perfusion_apparatus_name = ''
|
1952
|
1952
|
for (let index = 0; index < paLen; index++) {
|
1953
|
1953
|
if (
|
1954
|
1954
|
this.perfusionApparatus[index].id ==
|
|
@@ -1956,155 +1956,155 @@
|
1956
|
1956
|
) {
|
1957
|
1957
|
this.prescription.perfusion_apparatus_name = this.perfusionApparatus[
|
1958
|
1958
|
index
|
1959
|
|
- ].name;
|
1960
|
|
- break;
|
|
1959
|
+ ].name
|
|
1960
|
+ break
|
1961
|
1961
|
}
|
1962
|
1962
|
}
|
1963
|
1963
|
|
1964
|
|
- var acLen = this.anticoagulantsConfit.length;
|
1965
|
|
- var thisALID = this.prescription.anticoagulant;
|
1966
|
|
- this.prescription.anticoagulant_name = "";
|
|
1964
|
+ var acLen = this.anticoagulantsConfit.length
|
|
1965
|
+ var thisALID = this.prescription.anticoagulant
|
|
1966
|
+ this.prescription.anticoagulant_name = ''
|
1967
|
1967
|
|
1968
|
1968
|
if (
|
1969
|
|
- typeof this.anticoagulantsConfit[thisALID] !== "undefined" &&
|
|
1969
|
+ typeof this.anticoagulantsConfit[thisALID] !== 'undefined' &&
|
1970
|
1970
|
this.anticoagulantsConfit[thisALID] != null
|
1971
|
1971
|
) {
|
1972
|
1972
|
this.prescription.anticoagulant_name = this.anticoagulantsConfit[
|
1973
|
1973
|
thisALID
|
1974
|
|
- ].name;
|
1975
|
|
- this.AlPanel = this.anticoagulantsConfit[thisALID];
|
|
1974
|
+ ].name
|
|
1975
|
+ this.AlPanel = this.anticoagulantsConfit[thisALID]
|
1976
|
1976
|
}
|
1977
|
1977
|
|
1978
|
|
- this.advices = response.data.data.advices;
|
1979
|
|
- console.log("hhhhhhhhhhhh", this.advices);
|
1980
|
|
- this.monitors = response.data.data.monitors;
|
1981
|
|
- console.log("哈哈哈哈哈哈哈", this.monitors);
|
1982
|
|
- console.log(response.data.data);
|
1983
|
|
- this.summary = response.data.data.summary;
|
1984
|
|
- this.org_template_info = response.data.data.org_template_info;
|
|
1978
|
+ this.advices = response.data.data.advices
|
|
1979
|
+ console.log('hhhhhhhhhhhh', this.advices)
|
|
1980
|
+ this.monitors = response.data.data.monitors
|
|
1981
|
+ console.log('哈哈哈哈哈哈哈', this.monitors)
|
|
1982
|
+ console.log(response.data.data)
|
|
1983
|
+ this.summary = response.data.data.summary
|
|
1984
|
+ this.org_template_info = response.data.data.org_template_info
|
1985
|
1985
|
// 配置超滤量和置换量是否要显示0还是空
|
1986
|
1986
|
if (this.org_template_info.org_id == 9535) {
|
1987
|
|
- this.isShowZero = true;
|
|
1987
|
+ this.isShowZero = true
|
1988
|
1988
|
}
|
1989
|
1989
|
if (this.monitors.length < 8) {
|
1990
|
|
- var nl = 8 - this.monitors.length;
|
|
1990
|
+ var nl = 8 - this.monitors.length
|
1991
|
1991
|
for (let index = 0; index < nl; index++) {
|
1992
|
|
- this.monitors.push([]);
|
|
1992
|
+ this.monitors.push([])
|
1993
|
1993
|
}
|
1994
|
1994
|
}
|
1995
|
|
- this.jilurow = this.monitors.length + 1;
|
|
1995
|
+ this.jilurow = this.monitors.length + 1
|
1996
|
1996
|
|
1997
|
|
- this.advice_jilurow = this.advices.length + 1;
|
|
1997
|
+ this.advice_jilurow = this.advices.length + 1
|
1998
|
1998
|
|
1999
|
|
- var childMap = {};
|
|
1999
|
+ var childMap = {}
|
2000
|
2000
|
for (const index in this.advices) {
|
2001
|
2001
|
if (this.advices[index].parent_id == 0) {
|
2002
|
|
- continue;
|
|
2002
|
+ continue
|
2003
|
2003
|
}
|
2004
|
2004
|
if (!(this.advices[index].parent_id in childMap)) {
|
2005
|
|
- childMap[this.advices[index].parent_id] = [];
|
|
2005
|
+ childMap[this.advices[index].parent_id] = []
|
2006
|
2006
|
}
|
2007
|
|
- childMap[this.advices[index].parent_id].push(this.advices[index]);
|
|
2007
|
+ childMap[this.advices[index].parent_id].push(this.advices[index])
|
2008
|
2008
|
}
|
2009
|
2009
|
|
2010
|
|
- var advices = [];
|
|
2010
|
+ var advices = []
|
2011
|
2011
|
for (const index in this.advices) {
|
2012
|
2012
|
if (this.advices[index].parent_id > 0) {
|
2013
|
|
- continue;
|
|
2013
|
+ continue
|
2014
|
2014
|
}
|
2015
|
|
- var item = this.advices[index];
|
|
2015
|
+ var item = this.advices[index]
|
2016
|
2016
|
if (item.id in childMap) {
|
2017
|
|
- item.children = childMap[item.id];
|
|
2017
|
+ item.children = childMap[item.id]
|
2018
|
2018
|
} else {
|
2019
|
|
- item.children = [];
|
|
2019
|
+ item.children = []
|
2020
|
2020
|
}
|
2021
|
|
- advices.push(item);
|
|
2021
|
+ advices.push(item)
|
2022
|
2022
|
}
|
2023
|
2023
|
|
2024
|
|
- var leftAdvice = [];
|
2025
|
|
- var rightAdvice = [];
|
2026
|
|
- var adlen = advices.length;
|
|
2024
|
+ var leftAdvice = []
|
|
2025
|
+ var rightAdvice = []
|
|
2026
|
+ var adlen = advices.length
|
2027
|
2027
|
|
2028
|
|
- var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
|
|
2028
|
+ var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
|
2029
|
2029
|
for (var i = 0; i < halfLen; i++) {
|
2030
|
|
- leftAdvice.push(advices[i]);
|
2031
|
|
- rightAdvice.push(advices[i + halfLen]);
|
|
2030
|
+ leftAdvice.push(advices[i])
|
|
2031
|
+ rightAdvice.push(advices[i + halfLen])
|
2032
|
2032
|
}
|
2033
|
2033
|
if (halfLen < 5) {
|
2034
|
|
- var nl = 5 - leftAdvice.length;
|
|
2034
|
+ var nl = 5 - leftAdvice.length
|
2035
|
2035
|
for (let index = 0; index < nl; index++) {
|
2036
|
|
- leftAdvice.push([]);
|
|
2036
|
+ leftAdvice.push([])
|
2037
|
2037
|
}
|
2038
|
|
- var nl = 5 - rightAdvice.length;
|
|
2038
|
+ var nl = 5 - rightAdvice.length
|
2039
|
2039
|
for (let index = 0; index < nl; index++) {
|
2040
|
|
- rightAdvice.push([]);
|
|
2040
|
+ rightAdvice.push([])
|
2041
|
2041
|
}
|
2042
|
2042
|
}
|
2043
|
2043
|
|
2044
|
|
- this.advices = [];
|
|
2044
|
+ this.advices = []
|
2045
|
2045
|
for (var i = 0; i < halfLen; i++) {
|
2046
|
|
- var item = [];
|
2047
|
|
- item.push(leftAdvice[i]);
|
2048
|
|
- item.push(rightAdvice[i]);
|
2049
|
|
- this.advices.push(item);
|
|
2046
|
+ var item = []
|
|
2047
|
+ item.push(leftAdvice[i])
|
|
2048
|
+ item.push(rightAdvice[i])
|
|
2049
|
+ this.advices.push(item)
|
2050
|
2050
|
}
|
2051
|
|
- this.loading = false;
|
|
2051
|
+ this.loading = false
|
2052
|
2052
|
|
2053
|
2053
|
this.doctor_advices =
|
2054
|
2054
|
response.data.data.advices == null
|
2055
|
2055
|
? []
|
2056
|
|
- : response.data.data.advices;
|
|
2056
|
+ : response.data.data.advices
|
2057
|
2057
|
for (let index = 0; index < this.doctor_advices.length; index++) {
|
2058
|
|
- this.doctor_advices[index]["isShow"] = 2;
|
|
2058
|
+ this.doctor_advices[index]['isShow'] = 2
|
2059
|
2059
|
}
|
2060
|
2060
|
if (this.doctor_advices.length === 0) {
|
2061
|
|
- var obj = { advice_name: "", start_time: "" };
|
2062
|
|
- var obj1 = { advice_name: "", start_time: "" };
|
2063
|
|
- var obj2 = { advice_name: "", start_time: "" };
|
2064
|
|
- var obj3 = { advice_name: "", start_time: "" };
|
2065
|
|
- this.doctor_advices.push(obj);
|
2066
|
|
- this.doctor_advices.push(obj1);
|
2067
|
|
- this.doctor_advices.push(obj2);
|
2068
|
|
- this.doctor_advices.push(obj3);
|
|
2061
|
+ var obj = { advice_name: '', start_time: '' }
|
|
2062
|
+ var obj1 = { advice_name: '', start_time: '' }
|
|
2063
|
+ var obj2 = { advice_name: '', start_time: '' }
|
|
2064
|
+ var obj3 = { advice_name: '', start_time: '' }
|
|
2065
|
+ this.doctor_advices.push(obj)
|
|
2066
|
+ this.doctor_advices.push(obj1)
|
|
2067
|
+ this.doctor_advices.push(obj2)
|
|
2068
|
+ this.doctor_advices.push(obj3)
|
2069
|
2069
|
}
|
2070
|
2070
|
if (this.doctor_advices.length === 1) {
|
2071
|
|
- var obj = { advice_name: "", start_time: "" };
|
2072
|
|
- var obj1 = { advice_name: "", start_time: "" };
|
2073
|
|
- var obj2 = { advice_name: "", start_time: "" };
|
2074
|
|
- this.doctor_advices.push(obj);
|
2075
|
|
- this.doctor_advices.push(obj1);
|
2076
|
|
- this.doctor_advices.push(obj2);
|
|
2071
|
+ var obj = { advice_name: '', start_time: '' }
|
|
2072
|
+ var obj1 = { advice_name: '', start_time: '' }
|
|
2073
|
+ var obj2 = { advice_name: '', start_time: '' }
|
|
2074
|
+ this.doctor_advices.push(obj)
|
|
2075
|
+ this.doctor_advices.push(obj1)
|
|
2076
|
+ this.doctor_advices.push(obj2)
|
2077
|
2077
|
}
|
2078
|
2078
|
if (this.doctor_advices.length === 2) {
|
2079
|
|
- var obj = { advice_name: "", start_time: "" };
|
2080
|
|
- var obj1 = { advice_name: "", start_time: "" };
|
2081
|
|
- this.doctor_advices.push(obj);
|
2082
|
|
- this.doctor_advices.push(obj1);
|
|
2079
|
+ var obj = { advice_name: '', start_time: '' }
|
|
2080
|
+ var obj1 = { advice_name: '', start_time: '' }
|
|
2081
|
+ this.doctor_advices.push(obj)
|
|
2082
|
+ this.doctor_advices.push(obj1)
|
2083
|
2083
|
}
|
2084
|
2084
|
if (this.doctor_advices.length === 3) {
|
2085
|
2085
|
// eslint-disable-next-line no-redeclare
|
2086
|
|
- var obj = { advice_name: "", start_time: "" };
|
2087
|
|
- this.doctor_advices.push(obj);
|
|
2086
|
+ var obj = { advice_name: '', start_time: '' }
|
|
2087
|
+ this.doctor_advices.push(obj)
|
2088
|
2088
|
}
|
2089
|
2089
|
|
2090
|
2090
|
if (this.doctor_advices.length > 0) {
|
2091
|
|
- var group = this.newAdviceGroupObject();
|
|
2091
|
+ var group = this.newAdviceGroupObject()
|
2092
|
2092
|
var initGroupBlock = function(group, advice) {
|
2093
|
|
- group.group_no = advice.groupno;
|
2094
|
|
- };
|
|
2093
|
+ group.group_no = advice.groupno
|
|
2094
|
+ }
|
2095
|
2095
|
for (
|
2096
|
2096
|
let index = this.doctor_advices.length - 1;
|
2097
|
2097
|
index >= 0;
|
2098
|
2098
|
index--
|
2099
|
2099
|
) {
|
2100
|
|
- var new_advice_index = 0;
|
|
2100
|
+ var new_advice_index = 0
|
2101
|
2101
|
|
2102
|
2102
|
if (
|
2103
|
|
- "children" in this.doctor_advices[index] &&
|
|
2103
|
+ 'children' in this.doctor_advices[index] &&
|
2104
|
2104
|
this.doctor_advices[index].children.length > 0
|
2105
|
2105
|
) {
|
2106
|
2106
|
new_advice_index =
|
2107
|
|
- index + this.doctor_advices[index].children.length + 1;
|
|
2107
|
+ index + this.doctor_advices[index].children.length + 1
|
2108
|
2108
|
|
2109
|
2109
|
var doctor_advice = {
|
2110
|
2110
|
delivery_way: this.doctor_advices[index].delivery_way,
|
|
@@ -2115,84 +2115,84 @@
|
2115
|
2115
|
parent_id: this.doctor_advices[index].parent_id,
|
2116
|
2116
|
children: this.doctor_advices[index].children,
|
2117
|
2117
|
remark: this.doctor_advices[index].remark
|
2118
|
|
- };
|
2119
|
|
- doctor_advice["isShow"] = 1;
|
2120
|
|
- this.doctor_advices.splice(new_advice_index, 0, doctor_advice);
|
2121
|
|
- // this.doctor_advices.push(doctor_advice)
|
|
2118
|
+ }
|
|
2119
|
+ doctor_advice['isShow'] = 1
|
|
2120
|
+ this.doctor_advices.splice(new_advice_index, 0, doctor_advice)
|
|
2121
|
+ // this.doctor_advices.push(doctor_advice)
|
2122
|
2122
|
}
|
2123
|
2123
|
}
|
2124
|
2124
|
|
2125
|
2125
|
for (let index = 0; index < this.doctor_advices.length; index++) {
|
2126
|
|
- const advice = this.doctor_advices[index];
|
|
2126
|
+ const advice = this.doctor_advices[index]
|
2127
|
2127
|
if (advice.groupno == 0) {
|
2128
|
2128
|
// 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
|
2129
|
2129
|
if (advice.parent_id > 0) {
|
2130
|
2130
|
if (this.advice_groups.length > 0) {
|
2131
|
2131
|
var parent_group = this.advice_groups[
|
2132
|
|
- this.advice_groups.length - 1
|
2133
|
|
- ];
|
|
2132
|
+ this.advice_groups.length - 1
|
|
2133
|
+ ]
|
2134
|
2134
|
if (parent_group.advices.length > 0) {
|
2135
|
2135
|
if (parent_group.advices[0].id == advice.parent_id) {
|
2136
|
|
- parent_group.advices.push(advice);
|
|
2136
|
+ parent_group.advices.push(advice)
|
2137
|
2137
|
}
|
2138
|
2138
|
}
|
2139
|
2139
|
}
|
2140
|
|
- continue;
|
|
2140
|
+ continue
|
2141
|
2141
|
} else {
|
2142
|
2142
|
if (group.group_no > 0) {
|
2143
|
|
- this.advice_groups.push(group);
|
2144
|
|
- group = this.newAdviceGroupObject();
|
|
2143
|
+ this.advice_groups.push(group)
|
|
2144
|
+ group = this.newAdviceGroupObject()
|
2145
|
2145
|
}
|
2146
|
2146
|
|
2147
|
|
- initGroupBlock(group, advice);
|
2148
|
|
- group.advices.push(advice);
|
2149
|
|
- this.advice_groups.push(group);
|
2150
|
|
- group = this.newAdviceGroupObject();
|
2151
|
|
- continue;
|
|
2147
|
+ initGroupBlock(group, advice)
|
|
2148
|
+ group.advices.push(advice)
|
|
2149
|
+ this.advice_groups.push(group)
|
|
2150
|
+ group = this.newAdviceGroupObject()
|
|
2151
|
+ continue
|
2152
|
2152
|
}
|
2153
|
2153
|
}
|
2154
|
2154
|
|
2155
|
2155
|
if (group.group_no > 0 && group.group_no != advice.groupno) {
|
2156
|
|
- this.advice_groups.push(group);
|
2157
|
|
- group = this.newAdviceGroupObject();
|
|
2156
|
+ this.advice_groups.push(group)
|
|
2157
|
+ group = this.newAdviceGroupObject()
|
2158
|
2158
|
}
|
2159
|
2159
|
if (group.group_no == 0) {
|
2160
|
|
- initGroupBlock(group, advice);
|
|
2160
|
+ initGroupBlock(group, advice)
|
2161
|
2161
|
}
|
2162
|
2162
|
if (group.group_no == advice.groupno) {
|
2163
|
|
- group.advices.push(advice);
|
|
2163
|
+ group.advices.push(advice)
|
2164
|
2164
|
}
|
2165
|
2165
|
}
|
2166
|
2166
|
if (group.group_no > 0) {
|
2167
|
2167
|
// 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
|
2168
|
|
- this.advice_groups.push(group);
|
|
2168
|
+ this.advice_groups.push(group)
|
2169
|
2169
|
}
|
2170
|
2170
|
}
|
2171
|
|
- console.log(this.advice_groups);
|
|
2171
|
+ console.log(this.advice_groups)
|
2172
|
2172
|
} else {
|
2173
|
|
- this.loading = false;
|
2174
|
|
- this.$message.error("请求数据失败");
|
2175
|
|
- return false;
|
|
2173
|
+ this.loading = false
|
|
2174
|
+ this.$message.error('请求数据失败')
|
|
2175
|
+ return false
|
2176
|
2176
|
}
|
2177
|
|
- });
|
|
2177
|
+ })
|
2178
|
2178
|
},
|
2179
|
2179
|
bloodAccessParOperaName(id) {
|
2180
|
2180
|
if (id in this.bloodAccessParOpera) {
|
2181
|
|
- return this.bloodAccessParOpera[id].name;
|
|
2181
|
+ return this.bloodAccessParOpera[id].name
|
2182
|
2182
|
}
|
2183
|
|
- return "";
|
|
2183
|
+ return ''
|
2184
|
2184
|
},
|
2185
|
2185
|
dialysateFormulationName(id) {
|
2186
|
2186
|
if (id in this.dialysateFormulationOptions) {
|
2187
|
|
- return this.dialysateFormulationOptions[id].name;
|
|
2187
|
+ return this.dialysateFormulationOptions[id].name
|
2188
|
2188
|
}
|
2189
|
|
- return "";
|
|
2189
|
+ return ''
|
2190
|
2190
|
},
|
2191
|
2191
|
getAge: function(val) {
|
2192
|
2192
|
if (val.birthday != 0) {
|
2193
|
|
- return jsGetAge(val.birth, "-");
|
|
2193
|
+ return jsGetAge(val.birth, '-')
|
2194
|
2194
|
}
|
2195
|
|
- return "";
|
|
2195
|
+ return ''
|
2196
|
2196
|
},
|
2197
|
2197
|
newAdviceGroupObject: function() {
|
2198
|
2198
|
return Object.assign(
|
|
@@ -2206,90 +2206,90 @@
|
2206
|
2206
|
// exec_time: 0,
|
2207
|
2207
|
// checker: 0,
|
2208
|
2208
|
}
|
2209
|
|
- );
|
|
2209
|
+ )
|
2210
|
2210
|
}
|
2211
|
2211
|
},
|
2212
|
2212
|
watch: {
|
2213
|
|
- "patientInfo.gender": function() {
|
|
2213
|
+ 'patientInfo.gender': function() {
|
2214
|
2214
|
if (this.patientInfo.gender == 1) {
|
2215
|
|
- this.patientInfo_gender_1 = true;
|
2216
|
|
- this.patientInfo_gender_2 = false;
|
|
2215
|
+ this.patientInfo_gender_1 = true
|
|
2216
|
+ this.patientInfo_gender_2 = false
|
2217
|
2217
|
} else if (this.patientInfo.gender == 2) {
|
2218
|
|
- this.patientInfo_gender_2 = true;
|
2219
|
|
- this.patientInfo_gender_1 = false;
|
|
2218
|
+ this.patientInfo_gender_2 = true
|
|
2219
|
+ this.patientInfo_gender_1 = false
|
2220
|
2220
|
} else {
|
2221
|
|
- this.patientInfo_gender_2 = false;
|
2222
|
|
- this.patientInfo_gender_1 = false;
|
|
2221
|
+ this.patientInfo_gender_2 = false
|
|
2222
|
+ this.patientInfo_gender_1 = false
|
2223
|
2223
|
}
|
2224
|
2224
|
},
|
2225
|
|
- "patientInfo.source": function() {
|
|
2225
|
+ 'patientInfo.source': function() {
|
2226
|
2226
|
if (this.patientInfo.source == 1) {
|
2227
|
|
- this.patientInfo_source_1 = true;
|
2228
|
|
- this.patientInfo_source_2 = false;
|
|
2227
|
+ this.patientInfo_source_1 = true
|
|
2228
|
+ this.patientInfo_source_2 = false
|
2229
|
2229
|
} else if (this.patientInfo.source == 2) {
|
2230
|
|
- this.patientInfo_source_2 = true;
|
2231
|
|
- this.patientInfo_source_1 = false;
|
|
2230
|
+ this.patientInfo_source_2 = true
|
|
2231
|
+ this.patientInfo_source_1 = false
|
2232
|
2232
|
} else {
|
2233
|
|
- this.patientInfo_source_2 = false;
|
2234
|
|
- this.patientInfo_source_1 = false;
|
|
2233
|
+ this.patientInfo_source_2 = false
|
|
2234
|
+ this.patientInfo_source_1 = false
|
2235
|
2235
|
}
|
2236
|
2236
|
}
|
2237
|
2237
|
},
|
2238
|
2238
|
created() {
|
2239
|
|
- var xtuser = this.$store.getters.xt_user;
|
2240
|
|
- this.orgname = xtuser.org.org_name;
|
|
2239
|
+ var xtuser = this.$store.getters.xt_user
|
|
2240
|
+ this.orgname = xtuser.org.org_name
|
2241
|
2241
|
// this.orgname = "遂溪方济医院";
|
2242
|
|
- this.modeOptions = this.$store.getters.treatment_mode;
|
2243
|
|
- this.replacementWays = this.$store.getters.replacement_ways;
|
2244
|
|
- this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
|
2245
|
|
- this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
|
2246
|
|
-
|
2247
|
|
- this.way_arr = getDataConfig("hemodialysis", "way");
|
2248
|
|
- this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
|
2249
|
|
- this.appetite_arr = getDataConfig("hemodialysis", "appetite");
|
2250
|
|
- this.posture_arr = getDataConfig("hemodialysis", "posture");
|
2251
|
|
- this.sick_condition_arr = getDataConfig("hemodialysis", "sick_condition");
|
2252
|
|
- this.precaution_arr = getDataConfig("hemodialysis", "precaution");
|
2253
|
|
- this.intake_arr = getDataConfig("hemodialysis", "intake");
|
2254
|
|
- this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
|
|
2242
|
+ this.modeOptions = this.$store.getters.treatment_mode
|
|
2243
|
+ this.replacementWays = this.$store.getters.replacement_ways
|
|
2244
|
+ this.perfusionApparatus = this.$store.getters.perfusion_apparatus
|
|
2245
|
+ this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
|
|
2246
|
+
|
|
2247
|
+ this.way_arr = getDataConfig('hemodialysis', 'way')
|
|
2248
|
+ this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
|
|
2249
|
+ this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
|
|
2250
|
+ this.posture_arr = getDataConfig('hemodialysis', 'posture')
|
|
2251
|
+ this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
|
|
2252
|
+ this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
|
|
2253
|
+ this.intake_arr = getDataConfig('hemodialysis', 'intake')
|
|
2254
|
+ this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
|
2255
|
2255
|
|
2256
|
2256
|
// this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
|
2257
|
2257
|
|
2258
|
2258
|
var bloodAccessParOpera = getDataConfig(
|
2259
|
|
- "hemodialysis",
|
2260
|
|
- "vascular_access_desc"
|
2261
|
|
- );
|
|
2259
|
+ 'hemodialysis',
|
|
2260
|
+ 'vascular_access_desc'
|
|
2261
|
+ )
|
2262
|
2262
|
for (var key in bloodAccessParOpera) {
|
2263
|
2263
|
this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
|
2264
|
|
- bloodAccessParOpera[key];
|
|
2264
|
+ bloodAccessParOpera[key]
|
2265
|
2265
|
}
|
2266
|
2266
|
|
2267
|
2267
|
var dialysateFormulationOptions = getDataConfig(
|
2268
|
|
- "hemodialysis",
|
2269
|
|
- "dialysate_formulation"
|
2270
|
|
- );
|
|
2268
|
+ 'hemodialysis',
|
|
2269
|
+ 'dialysate_formulation'
|
|
2270
|
+ )
|
2271
|
2271
|
for (var key in dialysateFormulationOptions) {
|
2272
|
2272
|
this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
|
2273
|
|
- dialysateFormulationOptions[key];
|
|
2273
|
+ dialysateFormulationOptions[key]
|
2274
|
2274
|
}
|
2275
|
2275
|
|
2276
|
|
- const xtdate = this.$route.query && this.$route.query.xtdate;
|
2277
|
|
- const xtno = this.$route.query && this.$route.query.xtno;
|
|
2276
|
+ const xtdate = this.$route.query && this.$route.query.xtdate
|
|
2277
|
+ const xtno = this.$route.query && this.$route.query.xtno
|
2278
|
2278
|
if (
|
2279
|
|
- typeof xtdate === "string" &&
|
|
2279
|
+ typeof xtdate === 'string' &&
|
2280
|
2280
|
xtdate.length > 0 &&
|
2281
|
|
- typeof xtno === "string" &&
|
|
2281
|
+ typeof xtno === 'string' &&
|
2282
|
2282
|
xtno.length > 0
|
2283
|
2283
|
) {
|
2284
|
|
- this.queryParams.xtdate = xtdate;
|
2285
|
|
- this.queryParams.xtno = xtno;
|
2286
|
|
- this.getDialysisRecord();
|
|
2284
|
+ this.queryParams.xtdate = xtdate
|
|
2285
|
+ this.queryParams.xtno = xtno
|
|
2286
|
+ this.getDialysisRecord()
|
2287
|
2287
|
} else {
|
2288
|
|
- this.$message.error("参数不齐");
|
2289
|
|
- return false;
|
|
2288
|
+ this.$message.error('参数不齐')
|
|
2289
|
+ return false
|
2290
|
2290
|
}
|
2291
|
2291
|
}
|
2292
|
|
- };
|
|
2292
|
+ }
|
2293
|
2293
|
</script>
|
2294
|
2294
|
|
2295
|
2295
|
<style>
|