|
@@ -1861,14 +1861,14 @@
|
1861
|
1861
|
</template>
|
1862
|
1862
|
|
1863
|
1863
|
<script>
|
1864
|
|
-import CheckBox from "./option_check_box";
|
1865
|
|
-import { GetBatchPrintDialysisData } from "@/api/print_data";
|
1866
|
|
-import { jsGetAge, uParseTime } from "@/utils/tools";
|
1867
|
|
-import { getDataConfig } from "@/utils/data";
|
1868
|
|
-import BreadCrumb from "@/xt_pages/components/bread-crumb";
|
1869
|
|
-import print from "print-js";
|
|
1864
|
+import CheckBox from './option_check_box'
|
|
1865
|
+import { GetBatchPrintDialysisData } from '@/api/print_data'
|
|
1866
|
+import { jsGetAge, uParseTime } from '@/utils/tools'
|
|
1867
|
+import { getDataConfig } from '@/utils/data'
|
|
1868
|
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
|
1869
|
+import print from 'print-js'
|
1870
|
1870
|
export default {
|
1871
|
|
- name: "BatchPrintOrder",
|
|
1871
|
+ name: 'BatchPrintOrder',
|
1872
|
1872
|
components: {
|
1873
|
1873
|
CheckBox,
|
1874
|
1874
|
BreadCrumb
|
|
@@ -1876,8 +1876,8 @@ export default {
|
1876
|
1876
|
data() {
|
1877
|
1877
|
return {
|
1878
|
1878
|
crumbs: [
|
1879
|
|
- { path: false, name: "透析管理" },
|
1880
|
|
- { path: false, name: "批量打印" }
|
|
1879
|
+ { path: false, name: '透析管理' },
|
|
1880
|
+ { path: false, name: '批量打印' }
|
1881
|
1881
|
],
|
1882
|
1882
|
records: [
|
1883
|
1883
|
// 模拟有多条数据
|
|
@@ -1891,7 +1891,7 @@ export default {
|
1891
|
1891
|
// },
|
1892
|
1892
|
],
|
1893
|
1893
|
loading: false,
|
1894
|
|
- orgname: "",
|
|
1894
|
+ orgname: '',
|
1895
|
1895
|
org_template_info: {},
|
1896
|
1896
|
|
1897
|
1897
|
bloodAccessParOpera: {},
|
|
@@ -1901,45 +1901,44 @@ export default {
|
1901
|
1901
|
operators: [],
|
1902
|
1902
|
adminUser: [],
|
1903
|
1903
|
complications: [
|
1904
|
|
- "低血压",
|
1905
|
|
- "高血压",
|
1906
|
|
- "心律失常",
|
1907
|
|
- "头晕",
|
1908
|
|
- "头痛",
|
1909
|
|
- "呕吐",
|
1910
|
|
- "抽搐",
|
1911
|
|
- "出血",
|
1912
|
|
- "心衰",
|
1913
|
|
- "腹痛"
|
|
1904
|
+ '低血压',
|
|
1905
|
+ '高血压',
|
|
1906
|
+ '心律失常',
|
|
1907
|
+ '头晕',
|
|
1908
|
+ '头痛',
|
|
1909
|
+ '呕吐',
|
|
1910
|
+ '抽搐',
|
|
1911
|
+ '出血',
|
|
1912
|
+ '心衰',
|
|
1913
|
+ '腹痛'
|
1914
|
1914
|
]
|
1915
|
|
- };
|
|
1915
|
+ }
|
1916
|
1916
|
},
|
1917
|
1917
|
created() {
|
1918
|
|
- console.log("触发了没有啊情人");
|
1919
|
|
- var xtuser = this.$store.getters.xt_user;
|
1920
|
|
- this.orgname = xtuser.org.org_name;
|
|
1918
|
+ var xtuser = this.$store.getters.xt_user
|
|
1919
|
+ this.orgname = xtuser.org.org_name
|
1921
|
1920
|
// this.orgname = "遂溪方济医院";
|
1922
|
|
- this.modeOptions = this.$store.getters.treatment_mode;
|
|
1921
|
+ this.modeOptions = this.$store.getters.treatment_mode
|
1923
|
1922
|
// this.replacementWays = this.$store.getters.replacement_ways;
|
1924
|
1923
|
// this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
|
1925
|
|
- this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
|
|
1924
|
+ this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
|
1926
|
1925
|
|
1927
|
1926
|
var bloodAccessParOpera = getDataConfig(
|
1928
|
|
- "hemodialysis",
|
1929
|
|
- "vascular_access_desc"
|
1930
|
|
- );
|
|
1927
|
+ 'hemodialysis',
|
|
1928
|
+ 'vascular_access_desc'
|
|
1929
|
+ )
|
1931
|
1930
|
for (var key in bloodAccessParOpera) {
|
1932
|
1931
|
this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
|
1933
|
|
- bloodAccessParOpera[key];
|
|
1932
|
+ bloodAccessParOpera[key]
|
1934
|
1933
|
}
|
1935
|
1934
|
|
1936
|
1935
|
var dialysateFormulationOptions = getDataConfig(
|
1937
|
|
- "hemodialysis",
|
1938
|
|
- "dialysate_formulation"
|
1939
|
|
- );
|
|
1936
|
+ 'hemodialysis',
|
|
1937
|
+ 'dialysate_formulation'
|
|
1938
|
+ )
|
1940
|
1939
|
for (var key in dialysateFormulationOptions) {
|
1941
|
1940
|
this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
|
1942
|
|
- dialysateFormulationOptions[key];
|
|
1941
|
+ dialysateFormulationOptions[key]
|
1943
|
1942
|
}
|
1944
|
1943
|
|
1945
|
1944
|
// const xtdate = this.$route.query && this.$route.query.xtdate;
|
|
@@ -1954,51 +1953,51 @@ export default {
|
1954
|
1953
|
// }
|
1955
|
1954
|
},
|
1956
|
1955
|
mounted() {
|
1957
|
|
- this.loading = true;
|
1958
|
|
- var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids;
|
|
1956
|
+ this.loading = true
|
|
1957
|
+ var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids
|
1959
|
1958
|
if (ids.length == 0) {
|
1960
|
|
- this.$router.back(-1);
|
1961
|
|
- return;
|
|
1959
|
+ this.$router.back(-1)
|
|
1960
|
+ return
|
1962
|
1961
|
}
|
1963
|
|
- GetBatchPrintDialysisData(ids.join(","))
|
|
1962
|
+ GetBatchPrintDialysisData(ids.join(','))
|
1964
|
1963
|
.then(rs => {
|
1965
|
|
- var resp = rs.data;
|
|
1964
|
+ var resp = rs.data
|
1966
|
1965
|
if (resp.state == 1) {
|
1967
|
|
- this.org_template_info = resp.data.templateInfo;
|
|
1966
|
+ this.org_template_info = resp.data.templateInfo
|
1968
|
1967
|
|
1969
|
|
- this.records = this.records.concat(resp.data.schedules);
|
|
1968
|
+ this.records = this.records.concat(resp.data.schedules)
|
1970
|
1969
|
for (const recordIndex in this.records) {
|
1971
|
|
- var dlegh = 0;
|
|
1970
|
+ var dlegh = 0
|
1972
|
1971
|
if (
|
1973
|
1972
|
this.records[recordIndex].monitor_records &&
|
1974
|
1973
|
this.records[recordIndex].monitor_records.length < 8
|
1975
|
1974
|
) {
|
1976
|
|
- dlegh = 8 - this.records[recordIndex].monitor_records.length;
|
|
1975
|
+ dlegh = 8 - this.records[recordIndex].monitor_records.length
|
1977
|
1976
|
} else {
|
1978
|
|
- dlegh = 0;
|
|
1977
|
+ dlegh = 0
|
1979
|
1978
|
}
|
1980
|
1979
|
if (dlegh > 0) {
|
1981
|
1980
|
if (
|
1982
|
1981
|
typeof this.records[recordIndex].monitor_records ===
|
1983
|
|
- "undefined" ||
|
|
1982
|
+ 'undefined' ||
|
1984
|
1983
|
this.records[recordIndex].monitor_records == null
|
1985
|
1984
|
) {
|
1986
|
|
- this.records[recordIndex].monitor_records = [];
|
|
1985
|
+ this.records[recordIndex].monitor_records = []
|
1987
|
1986
|
}
|
1988
|
1987
|
for (let index = 0; index < dlegh; index++) {
|
1989
|
|
- this.records[recordIndex].monitor_records.push([]);
|
|
1988
|
+ this.records[recordIndex].monitor_records.push([])
|
1990
|
1989
|
}
|
1991
|
1990
|
}
|
1992
|
1991
|
|
1993
|
|
- this.records[recordIndex].isShowZero = false;
|
|
1992
|
+ this.records[recordIndex].isShowZero = false
|
1994
|
1993
|
if (this.records[recordIndex].patient.user_org_id == 9535) {
|
1995
|
|
- this.records[recordIndex].isShowZero = true;
|
|
1994
|
+ this.records[recordIndex].isShowZero = true
|
1996
|
1995
|
}
|
1997
|
1996
|
|
1998
|
|
- var childMap = {};
|
|
1997
|
+ var childMap = {}
|
1999
|
1998
|
for (const index in this.records[recordIndex].advices) {
|
2000
|
1999
|
if (this.records[recordIndex].advices[index].parent_id == 0) {
|
2001
|
|
- continue;
|
|
2000
|
+ continue
|
2002
|
2001
|
}
|
2003
|
2002
|
if (
|
2004
|
2003
|
!(
|
|
@@ -2007,228 +2006,228 @@ export default {
|
2007
|
2006
|
) {
|
2008
|
2007
|
childMap[
|
2009
|
2008
|
this.records[recordIndex].advices[index].parent_id
|
2010
|
|
- ] = [];
|
|
2009
|
+ ] = []
|
2011
|
2010
|
}
|
2012
|
2011
|
childMap[this.records[recordIndex].advices[index].parent_id].push(
|
2013
|
2012
|
this.records[recordIndex].advices[index]
|
2014
|
|
- );
|
|
2013
|
+ )
|
2015
|
2014
|
}
|
2016
|
2015
|
|
2017
|
|
- var advices = [];
|
|
2016
|
+ var advices = []
|
2018
|
2017
|
for (const index in this.records[recordIndex].advices) {
|
2019
|
2018
|
if (this.records[recordIndex].advices[index].parent_id > 0) {
|
2020
|
|
- continue;
|
|
2019
|
+ continue
|
2021
|
2020
|
}
|
2022
|
|
- var item = this.records[recordIndex].advices[index];
|
|
2021
|
+ var item = this.records[recordIndex].advices[index]
|
2023
|
2022
|
if (item.id in childMap) {
|
2024
|
|
- item.children = childMap[item.id];
|
|
2023
|
+ item.children = childMap[item.id]
|
2025
|
2024
|
} else {
|
2026
|
|
- item.children = [];
|
|
2025
|
+ item.children = []
|
2027
|
2026
|
}
|
2028
|
|
- advices.push(item);
|
|
2027
|
+ advices.push(item)
|
2029
|
2028
|
}
|
2030
|
2029
|
|
2031
|
|
- var leftAdvice = [];
|
2032
|
|
- var rightAdvice = [];
|
2033
|
|
- var adlen = advices.length;
|
|
2030
|
+ var leftAdvice = []
|
|
2031
|
+ var rightAdvice = []
|
|
2032
|
+ var adlen = advices.length
|
2034
|
2033
|
|
2035
|
|
- var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
|
|
2034
|
+ var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
|
2036
|
2035
|
for (var i = 0; i < halfLen; i++) {
|
2037
|
|
- leftAdvice.push(advices[i]);
|
2038
|
|
- var rightIndex = i + halfLen;
|
|
2036
|
+ leftAdvice.push(advices[i])
|
|
2037
|
+ var rightIndex = i + halfLen
|
2039
|
2038
|
rightAdvice.push(
|
2040
|
2039
|
rightIndex in advices ? advices[i + halfLen] : []
|
2041
|
|
- );
|
|
2040
|
+ )
|
2042
|
2041
|
}
|
2043
|
2042
|
if (halfLen < 5) {
|
2044
|
|
- var nl = 5 - leftAdvice.length;
|
|
2043
|
+ var nl = 5 - leftAdvice.length
|
2045
|
2044
|
for (let index = 0; index < nl; index++) {
|
2046
|
|
- leftAdvice.push([]);
|
|
2045
|
+ leftAdvice.push([])
|
2047
|
2046
|
}
|
2048
|
|
- var nl = 5 - rightAdvice.length;
|
|
2047
|
+ var nl = 5 - rightAdvice.length
|
2049
|
2048
|
for (let index = 0; index < nl; index++) {
|
2050
|
|
- rightAdvice.push([]);
|
|
2049
|
+ rightAdvice.push([])
|
2051
|
2050
|
}
|
2052
|
2051
|
}
|
2053
|
2052
|
|
2054
|
|
- this.records[recordIndex].advices = [];
|
|
2053
|
+ this.records[recordIndex].advices = []
|
2055
|
2054
|
for (var i = 0; i < halfLen; i++) {
|
2056
|
|
- var item = [];
|
2057
|
|
- item.push(leftAdvice[i]);
|
2058
|
|
- item.push(rightAdvice[i]);
|
2059
|
|
- this.records[recordIndex].advices.push(item);
|
|
2055
|
+ var item = []
|
|
2056
|
+ item.push(leftAdvice[i])
|
|
2057
|
+ item.push(rightAdvice[i])
|
|
2058
|
+ this.records[recordIndex].advices.push(item)
|
2060
|
2059
|
}
|
2061
|
2060
|
}
|
2062
|
2061
|
|
2063
|
|
- console.log(" this.records[recordIndex].advices", this.records);
|
2064
|
|
- this.operators = resp.data.medical_staffs;
|
|
2062
|
+ console.log(' this.records[recordIndex].advices', this.records)
|
|
2063
|
+ this.operators = resp.data.medical_staffs
|
2065
|
2064
|
if (this.operators.length > 0) {
|
2066
|
|
- var operatorsLen = this.operators.length;
|
|
2065
|
+ var operatorsLen = this.operators.length
|
2067
|
2066
|
for (var index = 0; index < operatorsLen; index++) {
|
2068
|
2067
|
this.$set(
|
2069
|
2068
|
this.operatorMaps,
|
2070
|
2069
|
this.operators[index].id,
|
2071
|
2070
|
this.operators[index]
|
2072
|
|
- );
|
|
2071
|
+ )
|
2073
|
2072
|
}
|
2074
|
2073
|
}
|
2075
|
2074
|
|
2076
|
|
- this.adminUser = resp.data.users;
|
2077
|
|
- this.loading = false;
|
|
2075
|
+ this.adminUser = resp.data.users
|
|
2076
|
+ this.loading = false
|
2078
|
2077
|
} else {
|
2079
|
|
- this.loading = false;
|
2080
|
|
- this.$message.error(resp.msg);
|
|
2078
|
+ this.loading = false
|
|
2079
|
+ this.$message.error(resp.msg)
|
2081
|
2080
|
}
|
2082
|
2081
|
})
|
2083
|
2082
|
.catch(err => {
|
2084
|
|
- this.$message.error(err);
|
2085
|
|
- });
|
|
2083
|
+ this.$message.error(err)
|
|
2084
|
+ })
|
2086
|
2085
|
},
|
2087
|
2086
|
methods: {
|
2088
|
2087
|
getAge: function(val) {
|
2089
|
|
- val.birth = uParseTime(val.birthday, "{y}-{m}-{d}");
|
|
2088
|
+ val.birth = uParseTime(val.birthday, '{y}-{m}-{d}')
|
2090
|
2089
|
if (
|
2091
|
2090
|
this.org_template_info.template_id == 2 ||
|
2092
|
2091
|
this.org_template_info.template_id == 0
|
2093
|
2092
|
) {
|
2094
|
2093
|
if (val.age == 0) {
|
2095
|
|
- return jsGetAge(val.birth, "-");
|
|
2094
|
+ return jsGetAge(val.birth, '-')
|
2096
|
2095
|
} else {
|
2097
|
|
- return val.age;
|
|
2096
|
+ return val.age
|
2098
|
2097
|
}
|
2099
|
2098
|
} else {
|
2100
|
|
- return jsGetAge(val.birth, "-");
|
|
2099
|
+ return jsGetAge(val.birth, '-')
|
2101
|
2100
|
}
|
2102
|
2101
|
},
|
2103
|
2102
|
printAction: function() {
|
2104
|
2103
|
const style =
|
2105
|
|
- '@media print { .option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 14px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 0 0; page-break-after: always; } .print_page_main_content .order-yy-name { margin: auto; text-align: center; font-size: 20px; letter-spacing: 5px;} .print_page_main_content .order_title { text-align: center; font-size: 23px; line-height: 50px; font-weight: 500; } .row { font-size: 14px; line-height: 20px; padding: 5px 0; } .inline_block { display: inline-block; } .under_line { display: inline-block; border-bottom: 1px solid #999; text-align: center; white-space: nowrap; } .under_line::before { content: "\\00A0"; } .under_line::after { content: "\\00A0"; } .flex { display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex; align-items: center; -webkit-align-items: center; box-align: center; -moz-box-align: center; -webkit-box-align: center; text-align: center; -webkit-justify-content: space-between; justify-content: space-between; -moz-box-pack: space-between; -webkit--moz-box-pack: space-between; box-pack: space-between; } .print_page_main_content .proj_table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } .print_page_main_content .proj_table tbody tr td { border: 1px solid; font-size: 16px; padding: 10px 8px; line-height: 30px; } .print_page_main_content .proj_table .inside_table { width: 100%; border: hidden; border-collapse: collapse; } .print_page_main_content .proj_table .inside_table tr td { border: 1px solid; text-align: center; font-size: 14px; padding: 8px 5px; line-height: 25px; } }.es-img{height: 20px; }.advice-name{text-align: left !important;line-height: 16px !important;}.advice-children{display:flex;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 2px;position: absolute;}';
|
|
2104
|
+ '@media print { .option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 14px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 0 0; page-break-after: always; } .print_page_main_content .order-yy-name { margin: auto; text-align: center; font-size: 20px; letter-spacing: 5px;} .print_page_main_content .order_title { text-align: center; font-size: 23px; line-height: 50px; font-weight: 500; } .row { font-size: 14px; line-height: 20px; padding: 5px 0; } .inline_block { display: inline-block; } .under_line { display: inline-block; border-bottom: 1px solid #999; text-align: center; white-space: nowrap; } .under_line::before { content: "\\00A0"; } .under_line::after { content: "\\00A0"; } .flex { display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex; align-items: center; -webkit-align-items: center; box-align: center; -moz-box-align: center; -webkit-box-align: center; text-align: center; -webkit-justify-content: space-between; justify-content: space-between; -moz-box-pack: space-between; -webkit--moz-box-pack: space-between; box-pack: space-between; } .print_page_main_content .proj_table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } .print_page_main_content .proj_table tbody tr td { border: 1px solid; font-size: 16px; padding: 10px 8px; line-height: 30px; } .print_page_main_content .proj_table .inside_table { width: 100%; border: hidden; border-collapse: collapse; } .print_page_main_content .proj_table .inside_table tr td { border: 1px solid; text-align: center; font-size: 14px; padding: 8px 5px; line-height: 25px; } }.es-img{height: 20px; }.advice-name{text-align: left !important;line-height: 16px !important;}.advice-children{display:flex;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 2px;position: absolute;}'
|
2106
|
2105
|
|
2107
|
2106
|
printJS({
|
2108
|
|
- printable: "print_content",
|
2109
|
|
- type: "html",
|
2110
|
|
- documentTitle: " ",
|
|
2107
|
+ printable: 'print_content',
|
|
2108
|
+ type: 'html',
|
|
2109
|
+ documentTitle: ' ',
|
2111
|
2110
|
style: style,
|
2112
|
2111
|
scanStyles: false
|
2113
|
|
- });
|
|
2112
|
+ })
|
2114
|
2113
|
},
|
2115
|
2114
|
|
2116
|
2115
|
complicationsOther: function(record) {
|
2117
|
|
- if (record == null || typeof record === "undefined") {
|
2118
|
|
- return "";
|
|
2116
|
+ if (record == null || typeof record === 'undefined') {
|
|
2117
|
+ return ''
|
2119
|
2118
|
}
|
2120
|
2119
|
if (record.complication.length == 0) {
|
2121
|
|
- return "";
|
|
2120
|
+ return ''
|
2122
|
2121
|
}
|
2123
|
|
- var complications = record.complication.split(",");
|
2124
|
|
- var complicationOthers = [];
|
|
2122
|
+ var complications = record.complication.split(',')
|
|
2123
|
+ var complicationOthers = []
|
2125
|
2124
|
for (const index in complications) {
|
2126
|
2125
|
if (
|
2127
|
2126
|
this.complications.indexOf(complications[index]) < 0 &&
|
2128
|
2127
|
complicationOthers.indexOf(complications[index]) < 0
|
2129
|
2128
|
) {
|
2130
|
|
- complicationOthers.push(complications[index]);
|
|
2129
|
+ complicationOthers.push(complications[index])
|
2131
|
2130
|
}
|
2132
|
2131
|
}
|
2133
|
|
- return complicationOthers.join(",");
|
|
2132
|
+ return complicationOthers.join(',')
|
2134
|
2133
|
},
|
2135
|
2134
|
modeName(mode_id) {
|
2136
|
2135
|
if (mode_id in this.modeOptions) {
|
2137
|
|
- return this.modeOptions[mode_id].name;
|
|
2136
|
+ return this.modeOptions[mode_id].name
|
2138
|
2137
|
}
|
2139
|
|
- return "";
|
|
2138
|
+ return ''
|
2140
|
2139
|
},
|
2141
|
2140
|
anticoagulantName: function(key) {
|
2142
|
|
- if (key == null || typeof key === "undefined") {
|
2143
|
|
- return "";
|
|
2141
|
+ if (key == null || typeof key === 'undefined') {
|
|
2142
|
+ return ''
|
2144
|
2143
|
}
|
2145
|
|
- var id = key.anticoagulant;
|
|
2144
|
+ var id = key.anticoagulant
|
2146
|
2145
|
if (id in this.anticoagulantsConfit) {
|
2147
|
|
- return this.anticoagulantsConfit[id].name;
|
|
2146
|
+ return this.anticoagulantsConfit[id].name
|
2148
|
2147
|
}
|
2149
|
|
- return "";
|
|
2148
|
+ return ''
|
2150
|
2149
|
},
|
2151
|
2150
|
isBbloodAccessParOperaCheck(key, value) {
|
2152
|
|
- if (key == null || typeof key === "undefined") {
|
2153
|
|
- return false;
|
|
2151
|
+ if (key == null || typeof key === 'undefined') {
|
|
2152
|
+ return false
|
2154
|
2153
|
}
|
2155
|
|
- var id = key.blood_access_part_opera_id;
|
|
2154
|
+ var id = key.blood_access_part_opera_id
|
2156
|
2155
|
if (id in this.bloodAccessParOpera) {
|
2157
|
|
- return this.bloodAccessParOpera[id].name.indexOf(value) > -1;
|
|
2156
|
+ return this.bloodAccessParOpera[id].name.indexOf(value) > -1
|
2158
|
2157
|
}
|
2159
|
|
- return false;
|
|
2158
|
+ return false
|
2160
|
2159
|
},
|
2161
|
2160
|
isdialysateFormulatioCheck(key, value) {
|
2162
|
|
- if (key == null || typeof key === "undefined") {
|
2163
|
|
- return false;
|
|
2161
|
+ if (key == null || typeof key === 'undefined') {
|
|
2162
|
+ return false
|
2164
|
2163
|
}
|
2165
|
|
- var id = key.dialysate_formulation;
|
|
2164
|
+ var id = key.dialysate_formulation
|
2166
|
2165
|
if (id in this.dialysateFormulationOptions) {
|
2167
|
|
- return this.dialysateFormulationOptions[id].name.indexOf(value) > -1;
|
|
2166
|
+ return this.dialysateFormulationOptions[id].name.indexOf(value) > -1
|
2168
|
2167
|
}
|
2169
|
|
- return false;
|
|
2168
|
+ return false
|
2170
|
2169
|
},
|
2171
|
2170
|
isValueIndexOfCheck: function(record, key, value) {
|
2172
|
2171
|
if (record == null || record == undefined) {
|
2173
|
|
- return false;
|
|
2172
|
+ return false
|
2174
|
2173
|
} else {
|
2175
|
|
- return record[key].indexOf(value) > -1;
|
|
2174
|
+ return record[key].indexOf(value) > -1
|
2176
|
2175
|
}
|
2177
|
2176
|
},
|
2178
|
2177
|
setAdminUserES(key, id) {
|
2179
|
2178
|
if (
|
2180
|
|
- typeof key === "undefined" ||
|
|
2179
|
+ typeof key === 'undefined' ||
|
2181
|
2180
|
key == null ||
|
2182
|
|
- typeof key[id] === "undefined"
|
|
2181
|
+ typeof key[id] === 'undefined'
|
2183
|
2182
|
) {
|
2184
|
|
- return "";
|
|
2183
|
+ return ''
|
2185
|
2184
|
}
|
2186
|
2185
|
if (key[id] == 0) {
|
2187
|
|
- return "";
|
|
2186
|
+ return ''
|
2188
|
2187
|
}
|
2189
|
2188
|
if (key[id] in this.operatorMaps) {
|
2190
|
|
- return this.operatorMaps[key[id]].es_url;
|
|
2189
|
+ return this.operatorMaps[key[id]].es_url
|
2191
|
2190
|
} else {
|
2192
|
|
- return "";
|
|
2191
|
+ return ''
|
2193
|
2192
|
}
|
2194
|
2193
|
},
|
2195
|
2194
|
getAdminUser(key, id) {
|
2196
|
2195
|
if (
|
2197
|
|
- typeof key === "undefined" ||
|
|
2196
|
+ typeof key === 'undefined' ||
|
2198
|
2197
|
key == null ||
|
2199
|
|
- typeof key[id] === "undefined"
|
|
2198
|
+ typeof key[id] === 'undefined'
|
2200
|
2199
|
) {
|
2201
|
|
- return "";
|
|
2200
|
+ return ''
|
2202
|
2201
|
}
|
2203
|
2202
|
if (key[id] == 0) {
|
2204
|
|
- return "";
|
|
2203
|
+ return ''
|
2205
|
2204
|
}
|
2206
|
2205
|
if (key[id] == undefined) {
|
2207
|
|
- return "";
|
|
2206
|
+ return ''
|
2208
|
2207
|
}
|
2209
|
2208
|
for (let i = 0; i < this.adminUser.length; i++) {
|
2210
|
2209
|
if (this.adminUser[i].id == key[id]) {
|
2211
|
|
- return this.adminUser[i].name;
|
|
2210
|
+ return this.adminUser[i].name
|
2212
|
2211
|
}
|
2213
|
2212
|
}
|
2214
|
2213
|
},
|
2215
|
2214
|
getTime(value, temp) {
|
2216
|
2215
|
if (value != undefined) {
|
2217
|
|
- return uParseTime(value, temp);
|
|
2216
|
+ return uParseTime(value, temp)
|
2218
|
2217
|
}
|
2219
|
|
- return "";
|
|
2218
|
+ return ''
|
2220
|
2219
|
},
|
2221
|
2220
|
// 函数说明:因为一次透析记录有些记录不一定是必须填的,比如 record.receive_assessment 可能为 null,所以要取 record.receive_assessment.way 前需要判断 record.receive_assessment 是否为 null,所以这个方法用来简化模板渲染的代码
|
2222
|
2221
|
// 参数说明:比如判断 record.receive_assessment.way 是不是为1,参数为 (record.receive_assessment, way, 1)
|
2223
|
2222
|
isCheckBoxChecked: function(record, key, target_value) {
|
2224
|
2223
|
if (record == null || record == undefined) {
|
2225
|
|
- return false;
|
|
2224
|
+ return false
|
2226
|
2225
|
} else {
|
2227
|
|
- return record[key] == target_value;
|
|
2226
|
+ return record[key] == target_value
|
2228
|
2227
|
}
|
2229
|
2228
|
}
|
2230
|
2229
|
}
|
2231
|
|
-};
|
|
2230
|
+}
|
2232
|
2231
|
</script>
|
2233
|
2232
|
|
2234
|
2233
|
<style scoped>
|