|
@@ -115,7 +115,10 @@
|
115
|
115
|
</div>
|
116
|
116
|
<div class="inline_block" style="margin-left: 10px;">
|
117
|
117
|
诊断:
|
118
|
|
- <div class="under_line" style="width: 640px;text-align: left;word-wrap: break-word;white-space: inherit;" >
|
|
118
|
+ <div
|
|
119
|
+ class="under_line"
|
|
120
|
+ style="width: 640px;text-align: left;word-wrap: break-word;white-space: inherit;"
|
|
121
|
+ >
|
119
|
122
|
{{ patientInfo.diagnose }}
|
120
|
123
|
</div>
|
121
|
124
|
</div>
|
|
@@ -1055,6 +1058,7 @@
|
1055
|
1058
|
<td style="font-size: 16px" width="10%">时间</td>
|
1056
|
1059
|
</tr>
|
1057
|
1060
|
<!-- <template v-for="group in doctor_advices" > -->
|
|
1061
|
+
|
1058
|
1062
|
<tr
|
1059
|
1063
|
v-for="(advice, advice_index) in doctor_advices"
|
1060
|
1064
|
:key="advice_index"
|
|
@@ -1868,19 +1872,19 @@
|
1868
|
1872
|
</template>
|
1869
|
1873
|
|
1870
|
1874
|
<script>
|
1871
|
|
-import CheckBox from '../batch_print/option_check_box'
|
1872
|
|
-import { getDialysisRecord } from '@/api/dialysis'
|
1873
|
|
-import { getDataConfig } from '@/utils/data'
|
1874
|
|
-import { jsGetAge, uParseTime } from '@/utils/tools'
|
1875
|
|
-import LabelBox from '../printItem/LabelBox'
|
1876
|
|
-import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
|
1875
|
+import CheckBox from "../batch_print/option_check_box";
|
|
1876
|
+import { getDialysisRecord } from "@/api/dialysis";
|
|
1877
|
+import { getDataConfig } from "@/utils/data";
|
|
1878
|
+import { jsGetAge, uParseTime } from "@/utils/tools";
|
|
1879
|
+import LabelBox from "../printItem/LabelBox";
|
|
1880
|
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
|
1877
|
1881
|
// import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
|
1878
|
1882
|
// import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
|
1879
|
|
-import print from 'print-js'
|
|
1883
|
+import print from "print-js";
|
1880
|
1884
|
|
1881
|
1885
|
export default {
|
1882
|
|
- name: 'dialysisPrintOrderSix',
|
1883
|
|
- props: ['childResponse'],
|
|
1886
|
+ name: "dialysisPrintOrderSix",
|
|
1887
|
+ props: ["childResponse"],
|
1884
|
1888
|
components: {
|
1885
|
1889
|
// DialysisPrintOrderOne,
|
1886
|
1890
|
// DialysisPrintOrderTwo,
|
|
@@ -1891,34 +1895,34 @@ export default {
|
1891
|
1895
|
data() {
|
1892
|
1896
|
return {
|
1893
|
1897
|
crumbs: [
|
1894
|
|
- { path: false, name: '透析管理' },
|
1895
|
|
- { path: false, name: '打印单' }
|
|
1898
|
+ { path: false, name: "透析管理" },
|
|
1899
|
+ { path: false, name: "打印单" }
|
1896
|
1900
|
],
|
1897
|
1901
|
operators: [],
|
1898
|
1902
|
adminUser: [],
|
1899
|
1903
|
check: {},
|
1900
|
|
- xtdate: '',
|
|
1904
|
+ xtdate: "",
|
1901
|
1905
|
dialysisOrder: {
|
1902
|
1906
|
DeviceNumber: []
|
1903
|
1907
|
},
|
1904
|
1908
|
displaceLiquiPartOptions: [],
|
1905
|
1909
|
operatorMaps: {},
|
1906
|
1910
|
complications: [
|
1907
|
|
- '低血压',
|
1908
|
|
- '高血压',
|
1909
|
|
- '心律失常',
|
1910
|
|
- '头晕',
|
1911
|
|
- '头痛',
|
1912
|
|
- '呕吐',
|
1913
|
|
- '抽搐',
|
1914
|
|
- '出血',
|
1915
|
|
- '心衰',
|
1916
|
|
- '腹痛'
|
|
1911
|
+ "低血压",
|
|
1912
|
+ "高血压",
|
|
1913
|
+ "心律失常",
|
|
1914
|
+ "头晕",
|
|
1915
|
+ "头痛",
|
|
1916
|
+ "呕吐",
|
|
1917
|
+ "抽搐",
|
|
1918
|
+ "出血",
|
|
1919
|
+ "心衰",
|
|
1920
|
+ "腹痛"
|
1917
|
1921
|
],
|
1918
|
1922
|
jilurow: 0,
|
1919
|
1923
|
advice_jilurow: 0,
|
1920
|
1924
|
loading: false,
|
1921
|
|
- orgname: '',
|
|
1925
|
+ orgname: "",
|
1922
|
1926
|
patientInfo_gender_1: false,
|
1923
|
1927
|
patientInfo_gender_2: false,
|
1924
|
1928
|
patientInfo_source_2: false,
|
|
@@ -1931,30 +1935,30 @@ export default {
|
1931
|
1935
|
dialysateFormulationOptions: {},
|
1932
|
1936
|
totollength: 0,
|
1933
|
1937
|
queryParams: {
|
1934
|
|
- xtdate: '',
|
1935
|
|
- xtno: ''
|
|
1938
|
+ xtdate: "",
|
|
1939
|
+ xtno: ""
|
1936
|
1940
|
},
|
1937
|
1941
|
patientInfo: {
|
1938
|
|
- birth: '',
|
1939
|
|
- age: '',
|
|
1942
|
+ birth: "",
|
|
1943
|
+ age: "",
|
1940
|
1944
|
DialysisSchedule: {
|
1941
|
|
- device_number: { number: '' },
|
1942
|
|
- device_zone: { name: '' }
|
|
1945
|
+ device_number: { number: "" },
|
|
1946
|
+ device_zone: { name: "" }
|
1943
|
1947
|
},
|
1944
|
1948
|
gender: 0
|
1945
|
1949
|
},
|
1946
|
1950
|
predialysis: {
|
1947
|
|
- score: '',
|
1948
|
|
- internal_fistula: '',
|
1949
|
|
- internal_fistula_skin: '',
|
1950
|
|
- catheter: '',
|
1951
|
|
- blood_access_part_opera_name: ''
|
|
1951
|
+ score: "",
|
|
1952
|
+ internal_fistula: "",
|
|
1953
|
+ internal_fistula_skin: "",
|
|
1954
|
+ catheter: "",
|
|
1955
|
+ blood_access_part_opera_name: ""
|
1952
|
1956
|
},
|
1953
|
1957
|
afterdialysis: {
|
1954
|
|
- complications_index: ''
|
|
1958
|
+ complications_index: ""
|
1955
|
1959
|
},
|
1956
|
1960
|
prescription: {
|
1957
|
|
- dialysate_formulation_name: '',
|
|
1961
|
+ dialysate_formulation_name: "",
|
1958
|
1962
|
device: {}
|
1959
|
1963
|
},
|
1960
|
1964
|
advices: [],
|
|
@@ -1975,110 +1979,110 @@ export default {
|
1975
|
1979
|
|
1976
|
1980
|
AlPanel: {
|
1977
|
1981
|
id: 0,
|
1978
|
|
- name: '',
|
|
1982
|
+ name: "",
|
1979
|
1983
|
type: 1,
|
1980
|
1984
|
shouji: 2,
|
1981
|
1985
|
weichi: 2,
|
1982
|
1986
|
zongliang: 2,
|
1983
|
1987
|
gaimingcheng: -1,
|
1984
|
1988
|
gaijiliang: -1,
|
1985
|
|
- shouji_unit: 'mg',
|
1986
|
|
- weichi_unit: 'mg/h',
|
1987
|
|
- zongliang_unit: 'mg',
|
1988
|
|
- gaimingcheng_unit: '',
|
1989
|
|
- gaijiliang_unit: ''
|
|
1989
|
+ shouji_unit: "mg",
|
|
1990
|
+ weichi_unit: "mg/h",
|
|
1991
|
+ zongliang_unit: "mg",
|
|
1992
|
+ gaimingcheng_unit: "",
|
|
1993
|
+ gaijiliang_unit: ""
|
1990
|
1994
|
}
|
1991
|
|
- }
|
|
1995
|
+ };
|
1992
|
1996
|
},
|
1993
|
1997
|
methods: {
|
1994
|
1998
|
getDisplaceLiquiPart: function(val) {
|
1995
|
|
- let displace_liqui_part_name = '/'
|
1996
|
|
- const displace_liqui_part = this.displaceLiquiPartOptions
|
|
1999
|
+ let displace_liqui_part_name = "/";
|
|
2000
|
+ const displace_liqui_part = this.displaceLiquiPartOptions;
|
1997
|
2001
|
for (let i = 0; i < displace_liqui_part.length; i++) {
|
1998
|
2002
|
if (displace_liqui_part[i].id == val) {
|
1999
|
|
- displace_liqui_part_name = displace_liqui_part[i].name
|
|
2003
|
+ displace_liqui_part_name = displace_liqui_part[i].name;
|
2000
|
2004
|
}
|
2001
|
2005
|
}
|
2002
|
|
- return displace_liqui_part_name
|
|
2006
|
+ return displace_liqui_part_name;
|
2003
|
2007
|
},
|
2004
|
2008
|
replacementWaysById: function(val) {
|
2005
|
|
- let replacementWaysname = '/'
|
|
2009
|
+ let replacementWaysname = "/";
|
2006
|
2010
|
// let vascular_access = getDataConfig('hemodialysis', 'vascular_access')
|
2007
|
2011
|
|
2008
|
2012
|
for (let i = 0; i < this.replacementWays.length; i++) {
|
2009
|
2013
|
if (this.replacementWays[i].id == val) {
|
2010
|
|
- replacementWaysname = this.replacementWays[i].name
|
|
2014
|
+ replacementWaysname = this.replacementWays[i].name;
|
2011
|
2015
|
}
|
2012
|
2016
|
}
|
2013
|
|
- return replacementWaysname
|
|
2017
|
+ return replacementWaysname;
|
2014
|
2018
|
},
|
2015
|
2019
|
QueryPartById: function(val) {
|
2016
|
|
- let vascular_access_part_name = '/'
|
2017
|
|
- const vascular_access = getDataConfig('hemodialysis', 'vascular_access')
|
|
2020
|
+ let vascular_access_part_name = "/";
|
|
2021
|
+ const vascular_access = getDataConfig("hemodialysis", "vascular_access");
|
2018
|
2022
|
|
2019
|
2023
|
for (let i = 0; i < vascular_access.length; i++) {
|
2020
|
2024
|
if (vascular_access[i].id == val) {
|
2021
|
|
- vascular_access_part_name = vascular_access[i].name
|
|
2025
|
+ vascular_access_part_name = vascular_access[i].name;
|
2022
|
2026
|
}
|
2023
|
2027
|
}
|
2024
|
|
- return vascular_access_part_name
|
|
2028
|
+ return vascular_access_part_name;
|
2025
|
2029
|
},
|
2026
|
2030
|
getAdminUser(id) {
|
2027
|
2031
|
if (id == 0) {
|
2028
|
|
- return ''
|
|
2032
|
+ return "";
|
2029
|
2033
|
}
|
2030
|
2034
|
if (id == undefined) {
|
2031
|
|
- return ''
|
|
2035
|
+ return "";
|
2032
|
2036
|
}
|
2033
|
2037
|
for (let i = 0; i < this.adminUser.length; i++) {
|
2034
|
2038
|
if (this.adminUser[i].id == id) {
|
2035
|
|
- return this.adminUser[i].name
|
|
2039
|
+ return this.adminUser[i].name;
|
2036
|
2040
|
}
|
2037
|
2041
|
}
|
2038
|
2042
|
},
|
2039
|
2043
|
getTime(value, temp) {
|
2040
|
2044
|
if (value == 0) {
|
2041
|
|
- return ''
|
|
2045
|
+ return "";
|
2042
|
2046
|
}
|
2043
|
2047
|
if (value != undefined) {
|
2044
|
|
- return uParseTime(value, temp)
|
|
2048
|
+ return uParseTime(value, temp);
|
2045
|
2049
|
}
|
2046
|
|
- return ''
|
|
2050
|
+ return "";
|
2047
|
2051
|
},
|
2048
|
2052
|
getUnit: function(val) {
|
2049
|
2053
|
switch (val) {
|
2050
|
2054
|
case 1:
|
2051
|
|
- return 'g'
|
2052
|
|
- break
|
|
2055
|
+ return "g";
|
|
2056
|
+ break;
|
2053
|
2057
|
case 2:
|
2054
|
|
- return 'ml'
|
2055
|
|
- break
|
|
2058
|
+ return "ml";
|
|
2059
|
+ break;
|
2056
|
2060
|
}
|
2057
|
2061
|
},
|
2058
|
2062
|
printThisPage() {
|
2059
|
|
- var ptime = Math.round(new Date().getTime() / 1000)
|
2060
|
|
- this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
|
|
2063
|
+ var ptime = Math.round(new Date().getTime() / 1000);
|
|
2064
|
+ this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
|
2061
|
2065
|
|
2062
|
2066
|
const style =
|
2063
|
|
- '@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}.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:left;border-collapse:collapse;font-size:14px} .dialysis-print-order .under_line {display: inline-block;border-bottom: 1px solid #999;text-align:left;white-space: nowrap;width: 50%;} .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;}'
|
|
2067
|
+ '@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}.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:left;border-collapse:collapse;font-size:14px} .dialysis-print-order .under_line {display: inline-block;border-bottom: 1px solid #999;text-align:left;white-space: nowrap;width: 50%;} .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;}';
|
2064
|
2068
|
|
2065
|
2069
|
if (this.org_template_info.template_id == 1) {
|
2066
|
2070
|
printJS({
|
2067
|
|
- printable: 'dialysis-print-box',
|
2068
|
|
- type: 'html',
|
|
2071
|
+ printable: "dialysis-print-box",
|
|
2072
|
+ type: "html",
|
2069
|
2073
|
style: style,
|
2070
|
2074
|
scanStyles: false
|
2071
|
|
- })
|
|
2075
|
+ });
|
2072
|
2076
|
} else if (
|
2073
|
2077
|
this.org_template_info.template_id == 2 ||
|
2074
|
2078
|
this.org_template_info.template_id == 0
|
2075
|
2079
|
) {
|
2076
|
2080
|
printJS({
|
2077
|
|
- printable: 'dialysis-print-box-1',
|
2078
|
|
- type: 'html',
|
|
2081
|
+ printable: "dialysis-print-box-1",
|
|
2082
|
+ type: "html",
|
2079
|
2083
|
style: style,
|
2080
|
2084
|
scanStyles: false
|
2081
|
|
- })
|
|
2085
|
+ });
|
2082
|
2086
|
}
|
2083
|
2087
|
},
|
2084
|
2088
|
getNumber() {
|
|
@@ -2086,119 +2090,119 @@ export default {
|
2086
|
2090
|
return (
|
2087
|
2091
|
this.patientInfo.DialysisSchedule.device_zone.name +
|
2088
|
2092
|
this.dialysisOrder.DeviceNumber.number
|
2089
|
|
- )
|
|
2093
|
+ );
|
2090
|
2094
|
} else {
|
2091
|
2095
|
return (
|
2092
|
2096
|
this.patientInfo.DialysisSchedule.device_zone.name +
|
2093
|
2097
|
this.patientInfo.DialysisSchedule.device_number.number
|
2094
|
|
- )
|
|
2098
|
+ );
|
2095
|
2099
|
}
|
2096
|
2100
|
},
|
2097
|
2101
|
|
2098
|
2102
|
getXuserName(id) {
|
2099
|
2103
|
if (id <= 0) {
|
2100
|
|
- return ''
|
|
2104
|
+ return "";
|
2101
|
2105
|
}
|
2102
|
|
- var name = ''
|
2103
|
|
- if (this.users == null || typeof this.users.length === 'undefined') {
|
2104
|
|
- return name
|
|
2106
|
+ var name = "";
|
|
2107
|
+ if (this.users == null || typeof this.users.length === "undefined") {
|
|
2108
|
+ return name;
|
2105
|
2109
|
}
|
2106
|
|
- var leng = this.users.length
|
|
2110
|
+ var leng = this.users.length;
|
2107
|
2111
|
if (leng == 0) {
|
2108
|
|
- return name
|
|
2112
|
+ return name;
|
2109
|
2113
|
}
|
2110
|
2114
|
for (let index = 0; index < leng; index++) {
|
2111
|
2115
|
if (this.users[index].id == id) {
|
2112
|
|
- name = this.users[index].name
|
2113
|
|
- break
|
|
2116
|
+ name = this.users[index].name;
|
|
2117
|
+ break;
|
2114
|
2118
|
}
|
2115
|
2119
|
}
|
2116
|
|
- return name
|
|
2120
|
+ return name;
|
2117
|
2121
|
},
|
2118
|
2122
|
setAdminUserES(id) {
|
2119
|
2123
|
if (id == 0) {
|
2120
|
|
- return ''
|
|
2124
|
+ return "";
|
2121
|
2125
|
}
|
2122
|
2126
|
if (id in this.operatorMaps) {
|
2123
|
|
- return this.operatorMaps[id].url
|
|
2127
|
+ return this.operatorMaps[id].url;
|
2124
|
2128
|
} else {
|
2125
|
|
- return ''
|
|
2129
|
+ return "";
|
2126
|
2130
|
}
|
2127
|
2131
|
},
|
2128
|
2132
|
modeName(mode_id) {
|
2129
|
|
- return typeof this.modeOptions[mode_id] !== 'undefined' &&
|
2130
|
|
- typeof this.modeOptions[mode_id].name !== 'undefined'
|
|
2133
|
+ return typeof this.modeOptions[mode_id] !== "undefined" &&
|
|
2134
|
+ typeof this.modeOptions[mode_id].name !== "undefined"
|
2131
|
2135
|
? this.modeOptions[mode_id].name
|
2132
|
|
- : ''
|
|
2136
|
+ : "";
|
2133
|
2137
|
},
|
2134
|
2138
|
getDialysisRecord() {
|
2135
|
|
- this.loading = true
|
|
2139
|
+ this.loading = true;
|
2136
|
2140
|
|
2137
|
2141
|
// getDialysisRecord(this.queryParams).then(response => {
|
2138
|
|
- var response = this.childResponse
|
|
2142
|
+ var response = this.childResponse;
|
2139
|
2143
|
if (response.data.state == 1) {
|
2140
|
|
- this.adminUser = response.data.data.users
|
|
2144
|
+ this.adminUser = response.data.data.users;
|
2141
|
2145
|
|
2142
|
|
- this.users = response.data.data.users
|
2143
|
|
- this.patientInfo = response.data.data.patientInfo
|
|
2146
|
+ this.users = response.data.data.users;
|
|
2147
|
+ this.patientInfo = response.data.data.patientInfo;
|
2144
|
2148
|
|
2145
|
2149
|
this.patientInfo.birth = uParseTime(
|
2146
|
2150
|
this.patientInfo.birthday,
|
2147
|
|
- '{y}-{m}-{d}'
|
2148
|
|
- )
|
|
2151
|
+ "{y}-{m}-{d}"
|
|
2152
|
+ );
|
2149
|
2153
|
// this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
|
2150
|
2154
|
if (response.data.data.patientInfo.first_dialysis_date != 0) {
|
2151
|
2155
|
this.patientInfo.first_dialysis_date = uParseTime(
|
2152
|
2156
|
response.data.data.patientInfo.first_dialysis_date,
|
2153
|
|
- '{y}-{m}-{d}'
|
2154
|
|
- )
|
|
2157
|
+ "{y}-{m}-{d}"
|
|
2158
|
+ );
|
2155
|
2159
|
} else {
|
2156
|
|
- this.patientInfo.first_dialysis_date = ''
|
|
2160
|
+ this.patientInfo.first_dialysis_date = "";
|
2157
|
2161
|
}
|
2158
|
|
- this.check = response.data.data.check
|
2159
|
|
- this.xtdate = response.data.data.xtdate
|
2160
|
|
- this.predialysis = response.data.data.PredialysisEvaluation
|
|
2162
|
+ this.check = response.data.data.check;
|
|
2163
|
+ this.xtdate = response.data.data.xtdate;
|
|
2164
|
+ this.predialysis = response.data.data.PredialysisEvaluation;
|
2161
|
2165
|
this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
|
2162
|
2166
|
this.predialysis.blood_access_part_opera_id
|
2163
|
|
- )
|
2164
|
|
- this.afterdialysis = response.data.data.AssessmentAfterDislysis
|
2165
|
|
- this.operators = response.data.data.operators
|
|
2167
|
+ );
|
|
2168
|
+ this.afterdialysis = response.data.data.AssessmentAfterDislysis;
|
|
2169
|
+ this.operators = response.data.data.operators;
|
2166
|
2170
|
this.dialysisOrder =
|
2167
|
2171
|
response.data.data.dialysisOrder === null
|
2168
|
2172
|
? null
|
2169
|
|
- : response.data.data.dialysisOrder
|
|
2173
|
+ : response.data.data.dialysisOrder;
|
2170
|
2174
|
|
2171
|
2175
|
if (this.operators.length > 0) {
|
2172
|
|
- var operatorsLen = this.operators.length
|
|
2176
|
+ var operatorsLen = this.operators.length;
|
2173
|
2177
|
for (var index = 0; index < operatorsLen; index++) {
|
2174
|
2178
|
this.$set(
|
2175
|
2179
|
this.operatorMaps,
|
2176
|
2180
|
this.operators[index].creator,
|
2177
|
2181
|
this.operators[index]
|
2178
|
|
- )
|
|
2182
|
+ );
|
2179
|
2183
|
}
|
2180
|
2184
|
}
|
2181
|
2185
|
|
2182
|
|
- this.afterdialysis.txqnx = -1
|
2183
|
|
- if (this.afterdialysis.cruor.indexOf('0度') > -1) {
|
2184
|
|
- this.afterdialysis.txqnx = 0
|
|
2186
|
+ this.afterdialysis.txqnx = -1;
|
|
2187
|
+ if (this.afterdialysis.cruor.indexOf("0度") > -1) {
|
|
2188
|
+ this.afterdialysis.txqnx = 0;
|
2185
|
2189
|
}
|
2186
|
|
- if (this.afterdialysis.cruor.indexOf('Ⅰ度') > -1) {
|
2187
|
|
- this.afterdialysis.txqnx = 1
|
|
2190
|
+ if (this.afterdialysis.cruor.indexOf("Ⅰ度") > -1) {
|
|
2191
|
+ this.afterdialysis.txqnx = 1;
|
2188
|
2192
|
}
|
2189
|
|
- if (this.afterdialysis.cruor.indexOf('Ⅱ度') > -1) {
|
2190
|
|
- this.afterdialysis.txqnx = 2
|
|
2193
|
+ if (this.afterdialysis.cruor.indexOf("Ⅱ度") > -1) {
|
|
2194
|
+ this.afterdialysis.txqnx = 2;
|
2191
|
2195
|
}
|
2192
|
|
- if (this.afterdialysis.cruor.indexOf('Ⅲ度') > -1) {
|
2193
|
|
- this.afterdialysis.txqnx = 3
|
|
2196
|
+ if (this.afterdialysis.cruor.indexOf("Ⅲ度") > -1) {
|
|
2197
|
+ this.afterdialysis.txqnx = 3;
|
2194
|
2198
|
}
|
2195
|
2199
|
|
2196
|
2200
|
this.afterdialysis.complications = this.afterdialysis.complication.split(
|
2197
|
|
- ','
|
2198
|
|
- )
|
2199
|
|
- this.afterdialysis.complications_other = []
|
2200
|
|
- this.afterdialysis.complications_index = []
|
2201
|
|
- var acllen = this.afterdialysis.complications.length
|
|
2201
|
+ ","
|
|
2202
|
+ );
|
|
2203
|
+ this.afterdialysis.complications_other = [];
|
|
2204
|
+ this.afterdialysis.complications_index = [];
|
|
2205
|
+ var acllen = this.afterdialysis.complications.length;
|
2202
|
2206
|
for (let index = 0; index < acllen; index++) {
|
2203
|
2207
|
if (
|
2204
|
2208
|
this.complications.indexOf(
|
|
@@ -2207,7 +2211,7 @@ export default {
|
2207
|
2211
|
) {
|
2208
|
2212
|
this.afterdialysis.complications_index.push(
|
2209
|
2213
|
this.afterdialysis.complications[index]
|
2210
|
|
- )
|
|
2214
|
+ );
|
2211
|
2215
|
} else if (
|
2212
|
2216
|
this.complications.indexOf(
|
2213
|
2217
|
this.afterdialysis.complications[index]
|
|
@@ -2218,35 +2222,35 @@ export default {
|
2218
|
2222
|
) {
|
2219
|
2223
|
this.afterdialysis.complications_other.push(
|
2220
|
2224
|
this.afterdialysis.complications[index]
|
2221
|
|
- )
|
|
2225
|
+ );
|
2222
|
2226
|
}
|
2223
|
2227
|
}
|
2224
|
2228
|
this.afterdialysis.complications_other = this.afterdialysis.complications_other.join(
|
2225
|
|
- ','
|
2226
|
|
- )
|
|
2229
|
+ ","
|
|
2230
|
+ );
|
2227
|
2231
|
|
2228
|
|
- this.prescription = response.data.data.dialysisPrescription
|
|
2232
|
+ this.prescription = response.data.data.dialysisPrescription;
|
2229
|
2233
|
|
2230
|
2234
|
this.receiverTreatmentAccess =
|
2231
|
|
- response.data.data.receiverTreatmentAccess
|
2232
|
|
- this.prescription.mode = this.modeName(this.prescription.mode_id)
|
2233
|
|
- var rwLen = this.replacementWays.length
|
2234
|
|
- this.prescription.replacement = ''
|
|
2235
|
+ response.data.data.receiverTreatmentAccess;
|
|
2236
|
+ this.prescription.mode = this.modeName(this.prescription.mode_id);
|
|
2237
|
+ var rwLen = this.replacementWays.length;
|
|
2238
|
+ this.prescription.replacement = "";
|
2235
|
2239
|
for (let index = 0; index < rwLen; index++) {
|
2236
|
2240
|
if (
|
2237
|
2241
|
this.replacementWays[index].id == this.prescription.replacement_way
|
2238
|
2242
|
) {
|
2239
|
|
- this.prescription.replacement = this.replacementWays[index].name
|
2240
|
|
- break
|
|
2243
|
+ this.prescription.replacement = this.replacementWays[index].name;
|
|
2244
|
+ break;
|
2241
|
2245
|
}
|
2242
|
2246
|
}
|
2243
|
2247
|
|
2244
|
2248
|
this.prescription.dialysate_formulation_name = this.dialysateFormulationName(
|
2245
|
2249
|
this.prescription.dialysate_formulation
|
2246
|
|
- )
|
|
2250
|
+ );
|
2247
|
2251
|
|
2248
|
|
- var paLen = this.perfusionApparatus.length
|
2249
|
|
- this.prescription.perfusion_apparatus_name = ''
|
|
2252
|
+ var paLen = this.perfusionApparatus.length;
|
|
2253
|
+ this.prescription.perfusion_apparatus_name = "";
|
2250
|
2254
|
for (let index = 0; index < paLen; index++) {
|
2251
|
2255
|
if (
|
2252
|
2256
|
this.perfusionApparatus[index].id ==
|
|
@@ -2254,123 +2258,122 @@ export default {
|
2254
|
2258
|
) {
|
2255
|
2259
|
this.prescription.perfusion_apparatus_name = this.perfusionApparatus[
|
2256
|
2260
|
index
|
2257
|
|
- ].name
|
2258
|
|
- break
|
|
2261
|
+ ].name;
|
|
2262
|
+ break;
|
2259
|
2263
|
}
|
2260
|
2264
|
}
|
2261
|
2265
|
|
2262
|
|
- var acLen = this.anticoagulantsConfit.length
|
2263
|
|
- var thisALID = this.prescription.anticoagulant
|
2264
|
|
- this.prescription.anticoagulant_name = ''
|
|
2266
|
+ var acLen = this.anticoagulantsConfit.length;
|
|
2267
|
+ var thisALID = this.prescription.anticoagulant;
|
|
2268
|
+ this.prescription.anticoagulant_name = "";
|
2265
|
2269
|
|
2266
|
2270
|
if (
|
2267
|
|
- typeof this.anticoagulantsConfit[thisALID] !== 'undefined' &&
|
|
2271
|
+ typeof this.anticoagulantsConfit[thisALID] !== "undefined" &&
|
2268
|
2272
|
this.anticoagulantsConfit[thisALID] != null
|
2269
|
2273
|
) {
|
2270
|
2274
|
this.prescription.anticoagulant_name = this.anticoagulantsConfit[
|
2271
|
2275
|
thisALID
|
2272
|
|
- ].name
|
2273
|
|
- this.AlPanel = this.anticoagulantsConfit[thisALID]
|
|
2276
|
+ ].name;
|
|
2277
|
+ this.AlPanel = this.anticoagulantsConfit[thisALID];
|
2274
|
2278
|
}
|
2275
|
2279
|
|
2276
|
|
- this.advices = response.data.data.advices
|
2277
|
|
- this.monitors = response.data.data.monitors
|
2278
|
|
- this.summary = response.data.data.summary
|
2279
|
|
- this.org_template_info = response.data.data.org_template_info
|
|
2280
|
+ this.advices = response.data.data.advices;
|
|
2281
|
+ this.monitors = response.data.data.monitors;
|
|
2282
|
+ this.summary = response.data.data.summary;
|
|
2283
|
+ this.org_template_info = response.data.data.org_template_info;
|
2280
|
2284
|
|
2281
|
2285
|
if (this.monitors.length <= 6) {
|
2282
|
|
- var nl = 6
|
2283
|
|
- this.print_length = 6
|
|
2286
|
+ var nl = 6;
|
|
2287
|
+ this.print_length = 6;
|
2284
|
2288
|
|
2285
|
2289
|
for (let index = 0; index < nl; index++) {
|
2286
|
2290
|
if (
|
2287
|
2291
|
this.monitors[index] == undefined ||
|
2288
|
2292
|
this.monitors[index].length <= 0
|
2289
|
2293
|
) {
|
2290
|
|
- this.monitors2.push([])
|
|
2294
|
+ this.monitors2.push([]);
|
2291
|
2295
|
} else {
|
2292
|
|
- continue
|
|
2296
|
+ continue;
|
2293
|
2297
|
}
|
2294
|
2298
|
}
|
2295
|
2299
|
}
|
2296
|
2300
|
|
2297
|
|
- var tempmonitorflag = true
|
|
2301
|
+ var tempmonitorflag = true;
|
2298
|
2302
|
for (let index = 0; index < this.monitors.length; index++) {
|
2299
|
|
- const monitor = this.monitors[index]
|
2300
|
|
- this.monitors[index].end = ''
|
|
2303
|
+ const monitor = this.monitors[index];
|
|
2304
|
+ this.monitors[index].end = "";
|
2301
|
2305
|
if (Object.keys(monitor).length > 0 && index > 1) {
|
2302
|
2306
|
if (monitor.operate_time == this.dialysisOrder.end_time) {
|
2303
|
|
- this.monitors[index].end = '【结束透析】'
|
2304
|
|
- tempmonitorflag = false
|
|
2307
|
+ this.monitors[index].end = "【结束透析】";
|
|
2308
|
+ tempmonitorflag = false;
|
2305
|
2309
|
}
|
2306
|
2310
|
if (tempmonitorflag && index == this.monitors.length - 1) {
|
2307
|
|
- this.monitors[index].end = '【结束透析】'
|
|
2311
|
+ this.monitors[index].end = "【结束透析】";
|
2308
|
2312
|
}
|
2309
|
2313
|
}
|
2310
|
2314
|
}
|
2311
|
2315
|
|
2312
|
|
- this.jilurow = this.monitors.length + 1
|
|
2316
|
+ this.jilurow = this.monitors.length + 1;
|
2313
|
2317
|
|
2314
|
|
- this.advice_jilurow = this.advices.length + 1
|
|
2318
|
+ this.advice_jilurow = this.advices.length + 1;
|
2315
|
2319
|
|
2316
|
|
- var childMap = {}
|
|
2320
|
+ var childMap = {};
|
2317
|
2321
|
for (const index in this.advices) {
|
2318
|
2322
|
if (this.advices[index].parent_id == 0) {
|
2319
|
|
- continue
|
|
2323
|
+ continue;
|
2320
|
2324
|
}
|
2321
|
2325
|
if (!(this.advices[index].parent_id in childMap)) {
|
2322
|
|
- childMap[this.advices[index].parent_id] = []
|
|
2326
|
+ childMap[this.advices[index].parent_id] = [];
|
2323
|
2327
|
}
|
2324
|
|
- childMap[this.advices[index].parent_id].push(this.advices[index])
|
|
2328
|
+ childMap[this.advices[index].parent_id].push(this.advices[index]);
|
2325
|
2329
|
}
|
2326
|
2330
|
|
2327
|
|
- var advices = []
|
|
2331
|
+ var advices = [];
|
2328
|
2332
|
for (const index in this.advices) {
|
2329
|
2333
|
if (this.advices[index].parent_id > 0) {
|
2330
|
|
- continue
|
|
2334
|
+ continue;
|
2331
|
2335
|
}
|
2332
|
|
- var item = this.advices[index]
|
|
2336
|
+ var item = this.advices[index];
|
2333
|
2337
|
if (item.id in childMap) {
|
2334
|
|
- item.children = childMap[item.id]
|
|
2338
|
+ item.children = childMap[item.id];
|
2335
|
2339
|
} else {
|
2336
|
|
- item.children = []
|
|
2340
|
+ item.children = [];
|
2337
|
2341
|
}
|
2338
|
|
- advices.push(item)
|
|
2342
|
+ advices.push(item);
|
2339
|
2343
|
}
|
2340
|
2344
|
|
2341
|
|
- var leftAdvice = []
|
2342
|
|
- var rightAdvice = []
|
2343
|
|
- var adlen = advices.length
|
|
2345
|
+ var leftAdvice = [];
|
|
2346
|
+ var rightAdvice = [];
|
|
2347
|
+ var adlen = advices.length;
|
2344
|
2348
|
|
2345
|
|
- var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
|
|
2349
|
+ var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
|
2346
|
2350
|
for (var i = 0; i < halfLen; i++) {
|
2347
|
|
- leftAdvice.push(advices[i])
|
2348
|
|
- rightAdvice.push(advices[i + halfLen])
|
|
2351
|
+ leftAdvice.push(advices[i]);
|
|
2352
|
+ rightAdvice.push(advices[i + halfLen]);
|
2349
|
2353
|
}
|
2350
|
2354
|
if (halfLen < 5) {
|
2351
|
|
- var nl = 5 - leftAdvice.length
|
|
2355
|
+ var nl = 5 - leftAdvice.length;
|
2352
|
2356
|
for (let index = 0; index < nl; index++) {
|
2353
|
|
- leftAdvice.push([])
|
|
2357
|
+ leftAdvice.push([]);
|
2354
|
2358
|
}
|
2355
|
|
- var nl = 5 - rightAdvice.length
|
|
2359
|
+ var nl = 5 - rightAdvice.length;
|
2356
|
2360
|
for (let index = 0; index < nl; index++) {
|
2357
|
|
- rightAdvice.push([])
|
|
2361
|
+ rightAdvice.push([]);
|
2358
|
2362
|
}
|
2359
|
2363
|
}
|
2360
|
2364
|
|
2361
|
|
- this.advices = []
|
|
2365
|
+ this.advices = [];
|
2362
|
2366
|
for (var i = 0; i < halfLen; i++) {
|
2363
|
|
- var item = []
|
2364
|
|
- item.push(leftAdvice[i])
|
2365
|
|
- item.push(rightAdvice[i])
|
2366
|
|
- this.advices.push(item)
|
|
2367
|
+ var item = [];
|
|
2368
|
+ item.push(leftAdvice[i]);
|
|
2369
|
+ item.push(rightAdvice[i]);
|
|
2370
|
+ this.advices.push(item);
|
2367
|
2371
|
}
|
2368
|
|
- this.loading = false
|
|
2372
|
+ this.loading = false;
|
2369
|
2373
|
this.doctor_advices =
|
2370
|
|
- response.data.data.advices == null ? [] : response.data.data.advices
|
2371
|
|
-
|
|
2374
|
+ response.data.data.advices == null ? [] : response.data.data.advices;
|
2372
|
2375
|
for (let index = 0; index < this.doctor_advices.length; index++) {
|
2373
|
|
- this.doctor_advices[index]['isShow'] = 2
|
|
2376
|
+ this.doctor_advices[index]["isShow"] = 2;
|
2374
|
2377
|
}
|
2375
|
2378
|
|
2376
|
2379
|
// if (this.doctor_advices.length > 0) {
|
|
@@ -2452,57 +2455,57 @@ export default {
|
2452
|
2455
|
// }
|
2453
|
2456
|
// }
|
2454
|
2457
|
if (this.doctor_advices.length <= 6) {
|
2455
|
|
- var nl = 6
|
2456
|
|
- this.print_length = 6
|
|
2458
|
+ var nl = 6;
|
|
2459
|
+ this.print_length = 6;
|
2457
|
2460
|
|
2458
|
2461
|
for (let index = 0; index < nl; index++) {
|
2459
|
2462
|
if (
|
2460
|
2463
|
this.doctor_advices[index] == undefined ||
|
2461
|
2464
|
this.doctor_advices[index].length <= 0
|
2462
|
2465
|
) {
|
2463
|
|
- this.doctor_advices.push([])
|
|
2466
|
+ this.doctor_advices.push([]);
|
2464
|
2467
|
} else {
|
2465
|
|
- continue
|
|
2468
|
+ continue;
|
2466
|
2469
|
}
|
2467
|
2470
|
}
|
2468
|
2471
|
}
|
2469
|
2472
|
|
2470
|
|
- this.totollength = this.doctor_advices.length + this.monitors.length
|
|
2473
|
+ this.totollength = this.doctor_advices.length + this.monitors.length;
|
2471
|
2474
|
if (this.totollength > 18) {
|
2472
|
|
- var temp_advice_length = 17 - this.monitors.length
|
2473
|
|
- var doctor_advices_1 = []
|
2474
|
|
- var doctor_advices_2 = []
|
|
2475
|
+ var temp_advice_length = 17 - this.monitors.length;
|
|
2476
|
+ var doctor_advices_1 = [];
|
|
2477
|
+ var doctor_advices_2 = [];
|
2475
|
2478
|
for (let index = 0; index < this.doctor_advices.length; index++) {
|
2476
|
|
- const element = this.doctor_advices[index]
|
|
2479
|
+ const element = this.doctor_advices[index];
|
2477
|
2480
|
if (temp_advice_length > index) {
|
2478
|
|
- doctor_advices_1.push(element)
|
|
2481
|
+ doctor_advices_1.push(element);
|
2479
|
2482
|
} else {
|
2480
|
|
- doctor_advices_2.push(element)
|
|
2483
|
+ doctor_advices_2.push(element);
|
2481
|
2484
|
}
|
2482
|
2485
|
}
|
2483
|
|
- this.doctor_advices = doctor_advices_1
|
2484
|
|
- this.doctor_advices_2 = doctor_advices_2
|
|
2486
|
+ this.doctor_advices = doctor_advices_1;
|
|
2487
|
+ this.doctor_advices_2 = doctor_advices_2;
|
2485
|
2488
|
}
|
2486
|
|
- console.log(this.advice_groups)
|
|
2489
|
+ console.log(this.advice_groups);
|
2487
|
2490
|
} else {
|
2488
|
|
- this.loading = false
|
2489
|
|
- this.$message.error('请求数据失败')
|
2490
|
|
- return false
|
|
2491
|
+ this.loading = false;
|
|
2492
|
+ this.$message.error("请求数据失败");
|
|
2493
|
+ return false;
|
2491
|
2494
|
}
|
2492
|
2495
|
// })
|
2493
|
2496
|
},
|
2494
|
2497
|
|
2495
|
2498
|
bloodAccessParOperaName(id) {
|
2496
|
2499
|
if (id in this.bloodAccessParOpera) {
|
2497
|
|
- return this.bloodAccessParOpera[id].name
|
|
2500
|
+ return this.bloodAccessParOpera[id].name;
|
2498
|
2501
|
}
|
2499
|
|
- return ''
|
|
2502
|
+ return "";
|
2500
|
2503
|
},
|
2501
|
2504
|
dialysateFormulationName(id) {
|
2502
|
2505
|
if (id in this.dialysateFormulationOptions) {
|
2503
|
|
- return this.dialysateFormulationOptions[id].name
|
|
2506
|
+ return this.dialysateFormulationOptions[id].name;
|
2504
|
2507
|
}
|
2505
|
|
- return ''
|
|
2508
|
+ return "";
|
2506
|
2509
|
},
|
2507
|
2510
|
getAge: function(val) {
|
2508
|
2511
|
if (
|
|
@@ -2510,12 +2513,12 @@ export default {
|
2510
|
2513
|
this.org_template_info.template_id == 0
|
2511
|
2514
|
) {
|
2512
|
2515
|
if (val.age == 0) {
|
2513
|
|
- return jsGetAge(val.birth, '-')
|
|
2516
|
+ return jsGetAge(val.birth, "-");
|
2514
|
2517
|
} else {
|
2515
|
|
- return val.age
|
|
2518
|
+ return val.age;
|
2516
|
2519
|
}
|
2517
|
2520
|
} else {
|
2518
|
|
- return jsGetAge(val.birth, '-')
|
|
2521
|
+ return jsGetAge(val.birth, "-");
|
2519
|
2522
|
}
|
2520
|
2523
|
},
|
2521
|
2524
|
newAdviceGroupObject: function() {
|
|
@@ -2530,110 +2533,110 @@ export default {
|
2530
|
2533
|
// exec_time: 0,
|
2531
|
2534
|
// checker: 0,
|
2532
|
2535
|
}
|
2533
|
|
- )
|
|
2536
|
+ );
|
2534
|
2537
|
},
|
2535
|
2538
|
getFloat: function(x) {
|
2536
|
2539
|
if (x == 0) {
|
2537
|
|
- return '/'
|
|
2540
|
+ return "/";
|
2538
|
2541
|
}
|
2539
|
|
- if (x != '.') {
|
2540
|
|
- var f = Math.round(x * 100) / 100
|
2541
|
|
- var s = f.toString()
|
2542
|
|
- var rs = s.indexOf('.')
|
|
2542
|
+ if (x != ".") {
|
|
2543
|
+ var f = Math.round(x * 100) / 100;
|
|
2544
|
+ var s = f.toString();
|
|
2545
|
+ var rs = s.indexOf(".");
|
2543
|
2546
|
if (rs <= 0) {
|
2544
|
|
- rs = s.length
|
2545
|
|
- s += '.'
|
|
2547
|
+ rs = s.length;
|
|
2548
|
+ s += ".";
|
2546
|
2549
|
}
|
2547
|
2550
|
while (s.length <= rs + 1) {
|
2548
|
|
- s += '0'
|
|
2551
|
+ s += "0";
|
2549
|
2552
|
}
|
2550
|
|
- return s
|
|
2553
|
+ return s;
|
2551
|
2554
|
} else {
|
2552
|
|
- return '0.0'
|
|
2555
|
+ return "0.0";
|
2553
|
2556
|
}
|
2554
|
2557
|
}
|
2555
|
2558
|
},
|
2556
|
2559
|
watch: {
|
2557
|
|
- 'patientInfo.gender': function() {
|
|
2560
|
+ "patientInfo.gender": function() {
|
2558
|
2561
|
if (this.patientInfo.gender == 1) {
|
2559
|
|
- this.patientInfo_gender_1 = true
|
2560
|
|
- this.patientInfo_gender_2 = false
|
|
2562
|
+ this.patientInfo_gender_1 = true;
|
|
2563
|
+ this.patientInfo_gender_2 = false;
|
2561
|
2564
|
} else if (this.patientInfo.gender == 2) {
|
2562
|
|
- this.patientInfo_gender_2 = true
|
2563
|
|
- this.patientInfo_gender_1 = false
|
|
2565
|
+ this.patientInfo_gender_2 = true;
|
|
2566
|
+ this.patientInfo_gender_1 = false;
|
2564
|
2567
|
} else {
|
2565
|
|
- this.patientInfo_gender_2 = false
|
2566
|
|
- this.patientInfo_gender_1 = false
|
|
2568
|
+ this.patientInfo_gender_2 = false;
|
|
2569
|
+ this.patientInfo_gender_1 = false;
|
2567
|
2570
|
}
|
2568
|
2571
|
},
|
2569
|
|
- 'patientInfo.source': function() {
|
|
2572
|
+ "patientInfo.source": function() {
|
2570
|
2573
|
if (this.patientInfo.source == 1) {
|
2571
|
|
- this.patientInfo_source_1 = true
|
2572
|
|
- this.patientInfo_source_2 = false
|
|
2574
|
+ this.patientInfo_source_1 = true;
|
|
2575
|
+ this.patientInfo_source_2 = false;
|
2573
|
2576
|
} else if (this.patientInfo.source == 2) {
|
2574
|
|
- this.patientInfo_source_2 = true
|
2575
|
|
- this.patientInfo_source_1 = false
|
|
2577
|
+ this.patientInfo_source_2 = true;
|
|
2578
|
+ this.patientInfo_source_1 = false;
|
2576
|
2579
|
} else {
|
2577
|
|
- this.patientInfo_source_2 = false
|
2578
|
|
- this.patientInfo_source_1 = false
|
|
2580
|
+ this.patientInfo_source_2 = false;
|
|
2581
|
+ this.patientInfo_source_1 = false;
|
2579
|
2582
|
}
|
2580
|
2583
|
}
|
2581
|
2584
|
},
|
2582
|
2585
|
created() {
|
2583
|
|
- var xtuser = this.$store.getters.xt_user
|
2584
|
|
- this.orgname = xtuser.org.org_name
|
|
2586
|
+ var xtuser = this.$store.getters.xt_user;
|
|
2587
|
+ this.orgname = xtuser.org.org_name;
|
2585
|
2588
|
// this.orgname = "遂溪方济医院";
|
2586
|
|
- this.modeOptions = this.$store.getters.treatment_mode
|
2587
|
|
- this.replacementWays = this.$store.getters.replacement_ways
|
2588
|
|
- this.perfusionApparatus = this.$store.getters.perfusion_apparatus
|
2589
|
|
- this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
|
2590
|
|
- this.displaceLiquiPartOptions = this.$store.getters.displace_liqui
|
|
2589
|
+ this.modeOptions = this.$store.getters.treatment_mode;
|
|
2590
|
+ this.replacementWays = this.$store.getters.replacement_ways;
|
|
2591
|
+ this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
|
|
2592
|
+ this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
|
|
2593
|
+ this.displaceLiquiPartOptions = this.$store.getters.displace_liqui;
|
2591
|
2594
|
|
2592
|
|
- this.blood_access_part = getDataConfig('hemodialysis', 'vascular_access')
|
|
2595
|
+ this.blood_access_part = getDataConfig("hemodialysis", "vascular_access");
|
2593
|
2596
|
this.blood_access_part_opera = getDataConfig(
|
2594
|
|
- 'hemodialysis',
|
2595
|
|
- 'vascular_access_desc'
|
2596
|
|
- )
|
|
2597
|
+ "hemodialysis",
|
|
2598
|
+ "vascular_access_desc"
|
|
2599
|
+ );
|
2597
|
2600
|
|
2598
|
2601
|
// this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
|
2599
|
2602
|
|
2600
|
2603
|
var bloodAccessParOpera = getDataConfig(
|
2601
|
|
- 'hemodialysis',
|
2602
|
|
- 'vascular_access_desc'
|
2603
|
|
- )
|
|
2604
|
+ "hemodialysis",
|
|
2605
|
+ "vascular_access_desc"
|
|
2606
|
+ );
|
2604
|
2607
|
for (var key in bloodAccessParOpera) {
|
2605
|
2608
|
this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
|
2606
|
|
- bloodAccessParOpera[key]
|
|
2609
|
+ bloodAccessParOpera[key];
|
2607
|
2610
|
}
|
2608
|
2611
|
|
2609
|
2612
|
var dialysateFormulationOptions = getDataConfig(
|
2610
|
|
- 'hemodialysis',
|
2611
|
|
- 'dialysate_formulation'
|
2612
|
|
- )
|
|
2613
|
+ "hemodialysis",
|
|
2614
|
+ "dialysate_formulation"
|
|
2615
|
+ );
|
2613
|
2616
|
for (var key in dialysateFormulationOptions) {
|
2614
|
2617
|
this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
|
2615
|
|
- dialysateFormulationOptions[key]
|
|
2618
|
+ dialysateFormulationOptions[key];
|
2616
|
2619
|
}
|
2617
|
2620
|
|
2618
|
|
- const xtdate = this.$route.query && this.$route.query.xtdate
|
2619
|
|
- console.log('xtdate', xtdate)
|
2620
|
|
- const xtno = this.$route.query && this.$route.query.xtno
|
2621
|
|
- console.log('xtno', xtno)
|
|
2621
|
+ const xtdate = this.$route.query && this.$route.query.xtdate;
|
|
2622
|
+ console.log("xtdate", xtdate);
|
|
2623
|
+ const xtno = this.$route.query && this.$route.query.xtno;
|
|
2624
|
+ console.log("xtno", xtno);
|
2622
|
2625
|
if (
|
2623
|
|
- typeof xtdate === 'string' &&
|
|
2626
|
+ typeof xtdate === "string" &&
|
2624
|
2627
|
xtdate.length > 0 &&
|
2625
|
|
- typeof xtno === 'string' &&
|
|
2628
|
+ typeof xtno === "string" &&
|
2626
|
2629
|
xtno.length > 0
|
2627
|
2630
|
) {
|
2628
|
|
- this.queryParams.xtdate = xtdate
|
2629
|
|
- this.queryParams.xtno = xtno
|
2630
|
|
- this.getDialysisRecord()
|
|
2631
|
+ this.queryParams.xtdate = xtdate;
|
|
2632
|
+ this.queryParams.xtno = xtno;
|
|
2633
|
+ this.getDialysisRecord();
|
2631
|
2634
|
} else {
|
2632
|
|
- this.$message.error('参数不齐')
|
2633
|
|
- return false
|
|
2635
|
+ this.$message.error("参数不齐");
|
|
2636
|
+ return false;
|
2634
|
2637
|
}
|
2635
|
2638
|
}
|
2636
|
|
-}
|
|
2639
|
+};
|
2637
|
2640
|
</script>
|
2638
|
2641
|
|
2639
|
2642
|
<style>
|