|
@@ -20,7 +20,7 @@
|
20
|
20
|
>
|
21
|
21
|
<div class="order-yy-name">{{ orgname }}</div>
|
22
|
22
|
<div class="order_title">
|
23
|
|
- 血液净化治疗记录单
|
|
23
|
+ 血液净化治疗记录单2
|
24
|
24
|
</div>
|
25
|
25
|
<div class="row" style="margin-top: 15px;">
|
26
|
26
|
<div class="inline_block">
|
|
@@ -106,42 +106,42 @@
|
106
|
106
|
"
|
107
|
107
|
></check-box>
|
108
|
108
|
<!--<check-box-->
|
109
|
|
- <!--text="扶行"-->
|
110
|
|
- <!--:checked="-->
|
111
|
|
- <!--isCheckBoxChecked(-->
|
112
|
|
- <!--record.receive_assessment,-->
|
113
|
|
- <!--'way',-->
|
114
|
|
- <!--2-->
|
115
|
|
- <!--)-->
|
116
|
|
- <!--"-->
|
|
109
|
+ <!--text="扶行"-->
|
|
110
|
+ <!--:checked="-->
|
|
111
|
+ <!--isCheckBoxChecked(-->
|
|
112
|
+ <!--record.receive_assessment,-->
|
|
113
|
+ <!--'way',-->
|
|
114
|
+ <!--2-->
|
|
115
|
+ <!--)-->
|
|
116
|
+ <!--"-->
|
117
|
117
|
<!--></check-box>-->
|
118
|
118
|
<!--<check-box-->
|
119
|
|
- <!--text="轮椅"-->
|
120
|
|
- <!--:checked="-->
|
121
|
|
- <!--isCheckBoxChecked(-->
|
122
|
|
- <!--record.receive_assessment,-->
|
123
|
|
- <!--'way',-->
|
124
|
|
- <!--3-->
|
125
|
|
- <!--)-->
|
126
|
|
- <!--"-->
|
|
119
|
+ <!--text="轮椅"-->
|
|
120
|
+ <!--:checked="-->
|
|
121
|
+ <!--isCheckBoxChecked(-->
|
|
122
|
+ <!--record.receive_assessment,-->
|
|
123
|
+ <!--'way',-->
|
|
124
|
+ <!--3-->
|
|
125
|
+ <!--)-->
|
|
126
|
+ <!--"-->
|
127
|
127
|
<!--></check-box>-->
|
128
|
128
|
<!--<check-box-->
|
129
|
|
- <!--text="平车"-->
|
130
|
|
- <!--:checked="-->
|
131
|
|
- <!--isCheckBoxChecked(-->
|
132
|
|
- <!--record.receive_assessment,-->
|
133
|
|
- <!--'way',-->
|
134
|
|
- <!--4-->
|
135
|
|
- <!--)-->
|
136
|
|
- <!--"-->
|
|
129
|
+ <!--text="平车"-->
|
|
130
|
+ <!--:checked="-->
|
|
131
|
+ <!--isCheckBoxChecked(-->
|
|
132
|
+ <!--record.receive_assessment,-->
|
|
133
|
+ <!--'way',-->
|
|
134
|
+ <!--4-->
|
|
135
|
+ <!--)-->
|
|
136
|
+ <!--"-->
|
137
|
137
|
<!--></check-box>-->
|
138
|
138
|
</div>
|
139
|
139
|
<div class="inline_block" style="margin-left: 15px;">
|
140
|
140
|
意识:
|
141
|
141
|
<check-box
|
142
|
|
- v-for="(item, index) in consciousness_arr" :key="index"
|
|
142
|
+ v-for="(item, index) in consciousness_arr"
|
|
143
|
+ :key="index"
|
143
|
144
|
:text="item.name"
|
144
|
|
-
|
145
|
145
|
:checked="
|
146
|
146
|
isCheckBoxChecked(
|
147
|
147
|
record.receive_assessment,
|
|
@@ -151,34 +151,34 @@
|
151
|
151
|
"
|
152
|
152
|
></check-box>
|
153
|
153
|
<!--<check-box-->
|
154
|
|
- <!--text="嗜睡"-->
|
155
|
|
- <!--:checked="-->
|
156
|
|
- <!--isCheckBoxChecked(-->
|
157
|
|
- <!--record.receive_assessment,-->
|
158
|
|
- <!--'consciousness',-->
|
159
|
|
- <!--2-->
|
160
|
|
- <!--)-->
|
161
|
|
- <!--"-->
|
|
154
|
+ <!--text="嗜睡"-->
|
|
155
|
+ <!--:checked="-->
|
|
156
|
+ <!--isCheckBoxChecked(-->
|
|
157
|
+ <!--record.receive_assessment,-->
|
|
158
|
+ <!--'consciousness',-->
|
|
159
|
+ <!--2-->
|
|
160
|
+ <!--)-->
|
|
161
|
+ <!--"-->
|
162
|
162
|
<!--></check-box>-->
|
163
|
163
|
<!--<check-box-->
|
164
|
|
- <!--text="昏迷"-->
|
165
|
|
- <!--:checked="-->
|
166
|
|
- <!--isCheckBoxChecked(-->
|
167
|
|
- <!--record.receive_assessment,-->
|
168
|
|
- <!--'consciousness',-->
|
169
|
|
- <!--3-->
|
170
|
|
- <!--)-->
|
171
|
|
- <!--"-->
|
|
164
|
+ <!--text="昏迷"-->
|
|
165
|
+ <!--:checked="-->
|
|
166
|
+ <!--isCheckBoxChecked(-->
|
|
167
|
+ <!--record.receive_assessment,-->
|
|
168
|
+ <!--'consciousness',-->
|
|
169
|
+ <!--3-->
|
|
170
|
+ <!--)-->
|
|
171
|
+ <!--"-->
|
172
|
172
|
<!--></check-box>-->
|
173
|
173
|
<!--<check-box-->
|
174
|
|
- <!--text="模糊"-->
|
175
|
|
- <!--:checked="-->
|
176
|
|
- <!--isCheckBoxChecked(-->
|
177
|
|
- <!--record.receive_assessment,-->
|
178
|
|
- <!--'consciousness',-->
|
179
|
|
- <!--4-->
|
180
|
|
- <!--)-->
|
181
|
|
- <!--"-->
|
|
174
|
+ <!--text="模糊"-->
|
|
175
|
+ <!--:checked="-->
|
|
176
|
+ <!--isCheckBoxChecked(-->
|
|
177
|
+ <!--record.receive_assessment,-->
|
|
178
|
+ <!--'consciousness',-->
|
|
179
|
+ <!--4-->
|
|
180
|
+ <!--)-->
|
|
181
|
+ <!--"-->
|
182
|
182
|
<!--></check-box>-->
|
183
|
183
|
</div>
|
184
|
184
|
<div class="inline_block" style="margin-left: 30px;">
|
|
@@ -197,7 +197,8 @@
|
197
|
197
|
<div class="inline_block">
|
198
|
198
|
体位:
|
199
|
199
|
<check-box
|
200
|
|
- v-for="(item, index) in posture_arr" :key="index"
|
|
200
|
+ v-for="(item, index) in posture_arr"
|
|
201
|
+ :key="index"
|
201
|
202
|
:text="item.name"
|
202
|
203
|
:checked="
|
203
|
204
|
isCheckBoxChecked(
|
|
@@ -208,44 +209,44 @@
|
208
|
209
|
"
|
209
|
210
|
></check-box>
|
210
|
211
|
<!--<check-box-->
|
211
|
|
- <!--text="平卧位"-->
|
212
|
|
- <!--:checked="-->
|
213
|
|
- <!--isCheckBoxChecked(-->
|
214
|
|
- <!--record.receive_assessment,-->
|
215
|
|
- <!--'posture',-->
|
216
|
|
- <!--2-->
|
217
|
|
- <!--)-->
|
218
|
|
- <!--"-->
|
|
212
|
+ <!--text="平卧位"-->
|
|
213
|
+ <!--:checked="-->
|
|
214
|
+ <!--isCheckBoxChecked(-->
|
|
215
|
+ <!--record.receive_assessment,-->
|
|
216
|
+ <!--'posture',-->
|
|
217
|
+ <!--2-->
|
|
218
|
+ <!--)-->
|
|
219
|
+ <!--"-->
|
219
|
220
|
<!--></check-box>-->
|
220
|
221
|
<!--<check-box-->
|
221
|
|
- <!--text="半卧位"-->
|
222
|
|
- <!--:checked="-->
|
223
|
|
- <!--isCheckBoxChecked(-->
|
224
|
|
- <!--record.receive_assessment,-->
|
225
|
|
- <!--'posture',-->
|
226
|
|
- <!--3-->
|
227
|
|
- <!--)-->
|
228
|
|
- <!--"-->
|
|
222
|
+ <!--text="半卧位"-->
|
|
223
|
+ <!--:checked="-->
|
|
224
|
+ <!--isCheckBoxChecked(-->
|
|
225
|
+ <!--record.receive_assessment,-->
|
|
226
|
+ <!--'posture',-->
|
|
227
|
+ <!--3-->
|
|
228
|
+ <!--)-->
|
|
229
|
+ <!--"-->
|
229
|
230
|
<!--></check-box>-->
|
230
|
231
|
<!--<check-box-->
|
231
|
|
- <!--text="端坐位"-->
|
232
|
|
- <!--:checked="-->
|
233
|
|
- <!--isCheckBoxChecked(-->
|
234
|
|
- <!--record.receive_assessment,-->
|
235
|
|
- <!--'posture',-->
|
236
|
|
- <!--4-->
|
237
|
|
- <!--)-->
|
238
|
|
- <!--"-->
|
|
232
|
+ <!--text="端坐位"-->
|
|
233
|
+ <!--:checked="-->
|
|
234
|
+ <!--isCheckBoxChecked(-->
|
|
235
|
+ <!--record.receive_assessment,-->
|
|
236
|
+ <!--'posture',-->
|
|
237
|
+ <!--4-->
|
|
238
|
+ <!--)-->
|
|
239
|
+ <!--"-->
|
239
|
240
|
<!--></check-box>-->
|
240
|
241
|
<!--<check-box-->
|
241
|
|
- <!--text="躁动不安"-->
|
242
|
|
- <!--:checked="-->
|
243
|
|
- <!--isCheckBoxChecked(-->
|
244
|
|
- <!--record.receive_assessment,-->
|
245
|
|
- <!--'posture',-->
|
246
|
|
- <!--5-->
|
247
|
|
- <!--)-->
|
248
|
|
- <!--"-->
|
|
242
|
+ <!--text="躁动不安"-->
|
|
243
|
+ <!--:checked="-->
|
|
244
|
+ <!--isCheckBoxChecked(-->
|
|
245
|
+ <!--record.receive_assessment,-->
|
|
246
|
+ <!--'posture',-->
|
|
247
|
+ <!--5-->
|
|
248
|
+ <!--)-->
|
|
249
|
+ <!--"-->
|
249
|
250
|
<!--></check-box>-->
|
250
|
251
|
</div>
|
251
|
252
|
</div>
|
|
@@ -1866,14 +1867,14 @@
|
1866
|
1867
|
</template>
|
1867
|
1868
|
|
1868
|
1869
|
<script>
|
1869
|
|
-import CheckBox from './option_check_box'
|
1870
|
|
-import { GetBatchPrintDialysisData } from '@/api/print_data'
|
1871
|
|
-import { jsGetAge, uParseTime } from '@/utils/tools'
|
1872
|
|
-import { getDataConfig } from '@/utils/data'
|
1873
|
|
-import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
1874
|
|
-import print from 'print-js'
|
|
1870
|
+import CheckBox from "./option_check_box";
|
|
1871
|
+import { GetBatchPrintDialysisData } from "@/api/print_data";
|
|
1872
|
+import { jsGetAge, uParseTime } from "@/utils/tools";
|
|
1873
|
+import { getDataConfig } from "@/utils/data";
|
|
1874
|
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
|
|
1875
|
+import print from "print-js";
|
1875
|
1876
|
export default {
|
1876
|
|
- name: 'BatchPrintOrder',
|
|
1877
|
+ name: "BatchPrintOrder",
|
1877
|
1878
|
components: {
|
1878
|
1879
|
CheckBox,
|
1879
|
1880
|
BreadCrumb
|
|
@@ -1881,8 +1882,8 @@ export default {
|
1881
|
1882
|
data() {
|
1882
|
1883
|
return {
|
1883
|
1884
|
crumbs: [
|
1884
|
|
- { path: false, name: '透析管理' },
|
1885
|
|
- { path: false, name: '批量打印' }
|
|
1885
|
+ { path: false, name: "透析管理" },
|
|
1886
|
+ { path: false, name: "批量打印" }
|
1886
|
1887
|
],
|
1887
|
1888
|
records: [
|
1888
|
1889
|
// 模拟有多条数据
|
|
@@ -1906,7 +1907,7 @@ export default {
|
1906
|
1907
|
nutrition_arr: [],
|
1907
|
1908
|
|
1908
|
1909
|
loading: false,
|
1909
|
|
- orgname: '',
|
|
1910
|
+ orgname: "",
|
1910
|
1911
|
org_template_info: {},
|
1911
|
1912
|
|
1912
|
1913
|
bloodAccessParOpera: {},
|
|
@@ -1916,54 +1917,53 @@ export default {
|
1916
|
1917
|
operators: [],
|
1917
|
1918
|
adminUser: [],
|
1918
|
1919
|
complications: [
|
1919
|
|
- '低血压',
|
1920
|
|
- '高血压',
|
1921
|
|
- '心律失常',
|
1922
|
|
- '头晕',
|
1923
|
|
- '头痛',
|
1924
|
|
- '呕吐',
|
1925
|
|
- '抽搐',
|
1926
|
|
- '出血',
|
1927
|
|
- '心衰',
|
1928
|
|
- '腹痛'
|
|
1920
|
+ "低血压",
|
|
1921
|
+ "高血压",
|
|
1922
|
+ "心律失常",
|
|
1923
|
+ "头晕",
|
|
1924
|
+ "头痛",
|
|
1925
|
+ "呕吐",
|
|
1926
|
+ "抽搐",
|
|
1927
|
+ "出血",
|
|
1928
|
+ "心衰",
|
|
1929
|
+ "腹痛"
|
1929
|
1930
|
]
|
1930
|
|
- }
|
|
1931
|
+ };
|
1931
|
1932
|
},
|
1932
|
1933
|
created() {
|
1933
|
|
- var xtuser = this.$store.getters.xt_user
|
1934
|
|
- this.orgname = xtuser.org.org_name
|
|
1934
|
+ var xtuser = this.$store.getters.xt_user;
|
|
1935
|
+ this.orgname = xtuser.org.org_name;
|
1935
|
1936
|
// this.orgname = "遂溪方济医院";
|
1936
|
|
- this.modeOptions = this.$store.getters.treatment_mode
|
|
1937
|
+ this.modeOptions = this.$store.getters.treatment_mode;
|
1937
|
1938
|
// this.replacementWays = this.$store.getters.replacement_ways;
|
1938
|
1939
|
// this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
|
1939
|
|
- this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
|
1940
|
|
-
|
1941
|
|
- this.way_arr = getDataConfig('hemodialysis', 'way')
|
1942
|
|
- this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
|
1943
|
|
- this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
|
1944
|
|
- this.posture_arr = getDataConfig('hemodialysis', 'posture')
|
1945
|
|
- this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
|
1946
|
|
- this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
|
1947
|
|
- this.intake_arr = getDataConfig('hemodialysis', 'intake')
|
1948
|
|
- this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
|
|
1940
|
+ this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
|
1949
|
1941
|
|
|
1942
|
+ this.way_arr = getDataConfig("hemodialysis", "way");
|
|
1943
|
+ this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
|
|
1944
|
+ this.appetite_arr = getDataConfig("hemodialysis", "appetite");
|
|
1945
|
+ this.posture_arr = getDataConfig("hemodialysis", "posture");
|
|
1946
|
+ this.sick_condition_arr = getDataConfig("hemodialysis", "sick_condition");
|
|
1947
|
+ this.precaution_arr = getDataConfig("hemodialysis", "precaution");
|
|
1948
|
+ this.intake_arr = getDataConfig("hemodialysis", "intake");
|
|
1949
|
+ this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
|
1950
|
1950
|
|
1951
|
1951
|
var bloodAccessParOpera = getDataConfig(
|
1952
|
|
- 'hemodialysis',
|
1953
|
|
- 'vascular_access_desc'
|
1954
|
|
- )
|
|
1952
|
+ "hemodialysis",
|
|
1953
|
+ "vascular_access_desc"
|
|
1954
|
+ );
|
1955
|
1955
|
for (var key in bloodAccessParOpera) {
|
1956
|
1956
|
this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
|
1957
|
|
- bloodAccessParOpera[key]
|
|
1957
|
+ bloodAccessParOpera[key];
|
1958
|
1958
|
}
|
1959
|
1959
|
|
1960
|
1960
|
var dialysateFormulationOptions = getDataConfig(
|
1961
|
|
- 'hemodialysis',
|
1962
|
|
- 'dialysate_formulation'
|
1963
|
|
- )
|
|
1961
|
+ "hemodialysis",
|
|
1962
|
+ "dialysate_formulation"
|
|
1963
|
+ );
|
1964
|
1964
|
for (var key in dialysateFormulationOptions) {
|
1965
|
1965
|
this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
|
1966
|
|
- dialysateFormulationOptions[key]
|
|
1966
|
+ dialysateFormulationOptions[key];
|
1967
|
1967
|
}
|
1968
|
1968
|
|
1969
|
1969
|
// const xtdate = this.$route.query && this.$route.query.xtdate;
|
|
@@ -1978,51 +1978,54 @@ export default {
|
1978
|
1978
|
// }
|
1979
|
1979
|
},
|
1980
|
1980
|
mounted() {
|
1981
|
|
- this.loading = true
|
1982
|
|
- var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids
|
|
1981
|
+ this.loading = true;
|
|
1982
|
+ var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids;
|
1983
|
1983
|
if (ids.length == 0) {
|
1984
|
|
- this.$router.back(-1)
|
1985
|
|
- return
|
|
1984
|
+ this.$router.back(-1);
|
|
1985
|
+ return;
|
1986
|
1986
|
}
|
1987
|
|
- GetBatchPrintDialysisData(ids.join(','))
|
|
1987
|
+ GetBatchPrintDialysisData(ids.join(","))
|
1988
|
1988
|
.then(rs => {
|
1989
|
|
- var resp = rs.data
|
|
1989
|
+ var resp = rs.data;
|
1990
|
1990
|
if (resp.state == 1) {
|
1991
|
|
- this.org_template_info = resp.data.templateInfo
|
|
1991
|
+ this.org_template_info = resp.data.templateInfo;
|
|
1992
|
+
|
|
1993
|
+ this.records = this.records.concat(resp.data.schedules);
|
|
1994
|
+
|
|
1995
|
+ console.log("记录", this.records);
|
1992
|
1996
|
|
1993
|
|
- this.records = this.records.concat(resp.data.schedules)
|
1994
|
1997
|
for (const recordIndex in this.records) {
|
1995
|
|
- var dlegh = 0
|
|
1998
|
+ var dlegh = 0;
|
1996
|
1999
|
if (
|
1997
|
2000
|
this.records[recordIndex].monitor_records &&
|
1998
|
2001
|
this.records[recordIndex].monitor_records.length < 8
|
1999
|
2002
|
) {
|
2000
|
|
- dlegh = 8 - this.records[recordIndex].monitor_records.length
|
|
2003
|
+ dlegh = 8 - this.records[recordIndex].monitor_records.length;
|
2001
|
2004
|
} else {
|
2002
|
|
- dlegh = 0
|
|
2005
|
+ dlegh = 0;
|
2003
|
2006
|
}
|
2004
|
2007
|
if (dlegh > 0) {
|
2005
|
2008
|
if (
|
2006
|
2009
|
typeof this.records[recordIndex].monitor_records ===
|
2007
|
|
- 'undefined' ||
|
|
2010
|
+ "undefined" ||
|
2008
|
2011
|
this.records[recordIndex].monitor_records == null
|
2009
|
2012
|
) {
|
2010
|
|
- this.records[recordIndex].monitor_records = []
|
|
2013
|
+ this.records[recordIndex].monitor_records = [];
|
2011
|
2014
|
}
|
2012
|
2015
|
for (let index = 0; index < dlegh; index++) {
|
2013
|
|
- this.records[recordIndex].monitor_records.push([])
|
|
2016
|
+ this.records[recordIndex].monitor_records.push([]);
|
2014
|
2017
|
}
|
2015
|
2018
|
}
|
2016
|
2019
|
|
2017
|
|
- this.records[recordIndex].isShowZero = false
|
|
2020
|
+ this.records[recordIndex].isShowZero = false;
|
2018
|
2021
|
if (this.records[recordIndex].patient.user_org_id == 9535) {
|
2019
|
|
- this.records[recordIndex].isShowZero = true
|
|
2022
|
+ this.records[recordIndex].isShowZero = true;
|
2020
|
2023
|
}
|
2021
|
2024
|
|
2022
|
|
- var childMap = {}
|
|
2025
|
+ var childMap = {};
|
2023
|
2026
|
for (const index in this.records[recordIndex].advices) {
|
2024
|
2027
|
if (this.records[recordIndex].advices[index].parent_id == 0) {
|
2025
|
|
- continue
|
|
2028
|
+ continue;
|
2026
|
2029
|
}
|
2027
|
2030
|
if (
|
2028
|
2031
|
!(
|
|
@@ -2031,228 +2034,228 @@ export default {
|
2031
|
2034
|
) {
|
2032
|
2035
|
childMap[
|
2033
|
2036
|
this.records[recordIndex].advices[index].parent_id
|
2034
|
|
- ] = []
|
|
2037
|
+ ] = [];
|
2035
|
2038
|
}
|
2036
|
2039
|
childMap[this.records[recordIndex].advices[index].parent_id].push(
|
2037
|
2040
|
this.records[recordIndex].advices[index]
|
2038
|
|
- )
|
|
2041
|
+ );
|
2039
|
2042
|
}
|
2040
|
2043
|
|
2041
|
|
- var advices = []
|
|
2044
|
+ var advices = [];
|
2042
|
2045
|
for (const index in this.records[recordIndex].advices) {
|
2043
|
2046
|
if (this.records[recordIndex].advices[index].parent_id > 0) {
|
2044
|
|
- continue
|
|
2047
|
+ continue;
|
2045
|
2048
|
}
|
2046
|
|
- var item = this.records[recordIndex].advices[index]
|
|
2049
|
+ var item = this.records[recordIndex].advices[index];
|
2047
|
2050
|
if (item.id in childMap) {
|
2048
|
|
- item.children = childMap[item.id]
|
|
2051
|
+ item.children = childMap[item.id];
|
2049
|
2052
|
} else {
|
2050
|
|
- item.children = []
|
|
2053
|
+ item.children = [];
|
2051
|
2054
|
}
|
2052
|
|
- advices.push(item)
|
|
2055
|
+ advices.push(item);
|
2053
|
2056
|
}
|
2054
|
2057
|
|
2055
|
|
- var leftAdvice = []
|
2056
|
|
- var rightAdvice = []
|
2057
|
|
- var adlen = advices.length
|
|
2058
|
+ var leftAdvice = [];
|
|
2059
|
+ var rightAdvice = [];
|
|
2060
|
+ var adlen = advices.length;
|
2058
|
2061
|
|
2059
|
|
- var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
|
|
2062
|
+ var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
|
2060
|
2063
|
for (var i = 0; i < halfLen; i++) {
|
2061
|
|
- leftAdvice.push(advices[i])
|
2062
|
|
- var rightIndex = i + halfLen
|
|
2064
|
+ leftAdvice.push(advices[i]);
|
|
2065
|
+ var rightIndex = i + halfLen;
|
2063
|
2066
|
rightAdvice.push(
|
2064
|
2067
|
rightIndex in advices ? advices[i + halfLen] : []
|
2065
|
|
- )
|
|
2068
|
+ );
|
2066
|
2069
|
}
|
2067
|
2070
|
if (halfLen < 5) {
|
2068
|
|
- var nl = 5 - leftAdvice.length
|
|
2071
|
+ var nl = 5 - leftAdvice.length;
|
2069
|
2072
|
for (let index = 0; index < nl; index++) {
|
2070
|
|
- leftAdvice.push([])
|
|
2073
|
+ leftAdvice.push([]);
|
2071
|
2074
|
}
|
2072
|
|
- var nl = 5 - rightAdvice.length
|
|
2075
|
+ var nl = 5 - rightAdvice.length;
|
2073
|
2076
|
for (let index = 0; index < nl; index++) {
|
2074
|
|
- rightAdvice.push([])
|
|
2077
|
+ rightAdvice.push([]);
|
2075
|
2078
|
}
|
2076
|
2079
|
}
|
2077
|
2080
|
|
2078
|
|
- this.records[recordIndex].advices = []
|
|
2081
|
+ this.records[recordIndex].advices = [];
|
2079
|
2082
|
for (var i = 0; i < halfLen; i++) {
|
2080
|
|
- var item = []
|
2081
|
|
- item.push(leftAdvice[i])
|
2082
|
|
- item.push(rightAdvice[i])
|
2083
|
|
- this.records[recordIndex].advices.push(item)
|
|
2083
|
+ var item = [];
|
|
2084
|
+ item.push(leftAdvice[i]);
|
|
2085
|
+ item.push(rightAdvice[i]);
|
|
2086
|
+ this.records[recordIndex].advices.push(item);
|
2084
|
2087
|
}
|
2085
|
2088
|
}
|
2086
|
2089
|
|
2087
|
|
- console.log(' this.records[recordIndex].advices', this.records)
|
2088
|
|
- this.operators = resp.data.medical_staffs
|
|
2090
|
+ console.log(" this.records[recordIndex].advices", this.records);
|
|
2091
|
+ this.operators = resp.data.medical_staffs;
|
2089
|
2092
|
if (this.operators.length > 0) {
|
2090
|
|
- var operatorsLen = this.operators.length
|
|
2093
|
+ var operatorsLen = this.operators.length;
|
2091
|
2094
|
for (var index = 0; index < operatorsLen; index++) {
|
2092
|
2095
|
this.$set(
|
2093
|
2096
|
this.operatorMaps,
|
2094
|
2097
|
this.operators[index].id,
|
2095
|
2098
|
this.operators[index]
|
2096
|
|
- )
|
|
2099
|
+ );
|
2097
|
2100
|
}
|
2098
|
2101
|
}
|
2099
|
2102
|
|
2100
|
|
- this.adminUser = resp.data.users
|
2101
|
|
- this.loading = false
|
|
2103
|
+ this.adminUser = resp.data.users;
|
|
2104
|
+ this.loading = false;
|
2102
|
2105
|
} else {
|
2103
|
|
- this.loading = false
|
2104
|
|
- this.$message.error(resp.msg)
|
|
2106
|
+ this.loading = false;
|
|
2107
|
+ this.$message.error(resp.msg);
|
2105
|
2108
|
}
|
2106
|
2109
|
})
|
2107
|
2110
|
.catch(err => {
|
2108
|
|
- this.$message.error(err)
|
2109
|
|
- })
|
|
2111
|
+ this.$message.error(err);
|
|
2112
|
+ });
|
2110
|
2113
|
},
|
2111
|
2114
|
methods: {
|
2112
|
2115
|
getAge: function(val) {
|
2113
|
|
- val.birth = uParseTime(val.birthday, '{y}-{m}-{d}')
|
|
2116
|
+ val.birth = uParseTime(val.birthday, "{y}-{m}-{d}");
|
2114
|
2117
|
if (
|
2115
|
2118
|
this.org_template_info.template_id == 2 ||
|
2116
|
2119
|
this.org_template_info.template_id == 0
|
2117
|
2120
|
) {
|
2118
|
2121
|
if (val.age == 0) {
|
2119
|
|
- return jsGetAge(val.birth, '-')
|
|
2122
|
+ return jsGetAge(val.birth, "-");
|
2120
|
2123
|
} else {
|
2121
|
|
- return val.age
|
|
2124
|
+ return val.age;
|
2122
|
2125
|
}
|
2123
|
2126
|
} else {
|
2124
|
|
- return jsGetAge(val.birth, '-')
|
|
2127
|
+ return jsGetAge(val.birth, "-");
|
2125
|
2128
|
}
|
2126
|
2129
|
},
|
2127
|
2130
|
printAction: function() {
|
2128
|
2131
|
const style =
|
2129
|
|
- '@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;}'
|
|
2132
|
+ '@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;}';
|
2130
|
2133
|
|
2131
|
2134
|
printJS({
|
2132
|
|
- printable: 'print_content',
|
2133
|
|
- type: 'html',
|
2134
|
|
- documentTitle: ' ',
|
|
2135
|
+ printable: "print_content",
|
|
2136
|
+ type: "html",
|
|
2137
|
+ documentTitle: " ",
|
2135
|
2138
|
style: style,
|
2136
|
2139
|
scanStyles: false
|
2137
|
|
- })
|
|
2140
|
+ });
|
2138
|
2141
|
},
|
2139
|
2142
|
|
2140
|
2143
|
complicationsOther: function(record) {
|
2141
|
|
- if (record == null || typeof record === 'undefined') {
|
2142
|
|
- return ''
|
|
2144
|
+ if (record == null || typeof record === "undefined") {
|
|
2145
|
+ return "";
|
2143
|
2146
|
}
|
2144
|
2147
|
if (record.complication.length == 0) {
|
2145
|
|
- return ''
|
|
2148
|
+ return "";
|
2146
|
2149
|
}
|
2147
|
|
- var complications = record.complication.split(',')
|
2148
|
|
- var complicationOthers = []
|
|
2150
|
+ var complications = record.complication.split(",");
|
|
2151
|
+ var complicationOthers = [];
|
2149
|
2152
|
for (const index in complications) {
|
2150
|
2153
|
if (
|
2151
|
2154
|
this.complications.indexOf(complications[index]) < 0 &&
|
2152
|
2155
|
complicationOthers.indexOf(complications[index]) < 0
|
2153
|
2156
|
) {
|
2154
|
|
- complicationOthers.push(complications[index])
|
|
2157
|
+ complicationOthers.push(complications[index]);
|
2155
|
2158
|
}
|
2156
|
2159
|
}
|
2157
|
|
- return complicationOthers.join(',')
|
|
2160
|
+ return complicationOthers.join(",");
|
2158
|
2161
|
},
|
2159
|
2162
|
modeName(mode_id) {
|
2160
|
2163
|
if (mode_id in this.modeOptions) {
|
2161
|
|
- return this.modeOptions[mode_id].name
|
|
2164
|
+ return this.modeOptions[mode_id].name;
|
2162
|
2165
|
}
|
2163
|
|
- return ''
|
|
2166
|
+ return "";
|
2164
|
2167
|
},
|
2165
|
2168
|
anticoagulantName: function(key) {
|
2166
|
|
- if (key == null || typeof key === 'undefined') {
|
2167
|
|
- return ''
|
|
2169
|
+ if (key == null || typeof key === "undefined") {
|
|
2170
|
+ return "";
|
2168
|
2171
|
}
|
2169
|
|
- var id = key.anticoagulant
|
|
2172
|
+ var id = key.anticoagulant;
|
2170
|
2173
|
if (id in this.anticoagulantsConfit) {
|
2171
|
|
- return this.anticoagulantsConfit[id].name
|
|
2174
|
+ return this.anticoagulantsConfit[id].name;
|
2172
|
2175
|
}
|
2173
|
|
- return ''
|
|
2176
|
+ return "";
|
2174
|
2177
|
},
|
2175
|
2178
|
isBbloodAccessParOperaCheck(key, value) {
|
2176
|
|
- if (key == null || typeof key === 'undefined') {
|
2177
|
|
- return false
|
|
2179
|
+ if (key == null || typeof key === "undefined") {
|
|
2180
|
+ return false;
|
2178
|
2181
|
}
|
2179
|
|
- var id = key.blood_access_part_opera_id
|
|
2182
|
+ var id = key.blood_access_part_opera_id;
|
2180
|
2183
|
if (id in this.bloodAccessParOpera) {
|
2181
|
|
- return this.bloodAccessParOpera[id].name.indexOf(value) > -1
|
|
2184
|
+ return this.bloodAccessParOpera[id].name.indexOf(value) > -1;
|
2182
|
2185
|
}
|
2183
|
|
- return false
|
|
2186
|
+ return false;
|
2184
|
2187
|
},
|
2185
|
2188
|
isdialysateFormulatioCheck(key, value) {
|
2186
|
|
- if (key == null || typeof key === 'undefined') {
|
2187
|
|
- return false
|
|
2189
|
+ if (key == null || typeof key === "undefined") {
|
|
2190
|
+ return false;
|
2188
|
2191
|
}
|
2189
|
|
- var id = key.dialysate_formulation
|
|
2192
|
+ var id = key.dialysate_formulation;
|
2190
|
2193
|
if (id in this.dialysateFormulationOptions) {
|
2191
|
|
- return this.dialysateFormulationOptions[id].name.indexOf(value) > -1
|
|
2194
|
+ return this.dialysateFormulationOptions[id].name.indexOf(value) > -1;
|
2192
|
2195
|
}
|
2193
|
|
- return false
|
|
2196
|
+ return false;
|
2194
|
2197
|
},
|
2195
|
2198
|
isValueIndexOfCheck: function(record, key, value) {
|
2196
|
2199
|
if (record == null || record == undefined) {
|
2197
|
|
- return false
|
|
2200
|
+ return false;
|
2198
|
2201
|
} else {
|
2199
|
|
- return record[key].indexOf(value) > -1
|
|
2202
|
+ return record[key].indexOf(value) > -1;
|
2200
|
2203
|
}
|
2201
|
2204
|
},
|
2202
|
2205
|
setAdminUserES(key, id) {
|
2203
|
2206
|
if (
|
2204
|
|
- typeof key === 'undefined' ||
|
|
2207
|
+ typeof key === "undefined" ||
|
2205
|
2208
|
key == null ||
|
2206
|
|
- typeof key[id] === 'undefined'
|
|
2209
|
+ typeof key[id] === "undefined"
|
2207
|
2210
|
) {
|
2208
|
|
- return ''
|
|
2211
|
+ return "";
|
2209
|
2212
|
}
|
2210
|
2213
|
if (key[id] == 0) {
|
2211
|
|
- return ''
|
|
2214
|
+ return "";
|
2212
|
2215
|
}
|
2213
|
2216
|
if (key[id] in this.operatorMaps) {
|
2214
|
|
- return this.operatorMaps[key[id]].es_url
|
|
2217
|
+ return this.operatorMaps[key[id]].es_url;
|
2215
|
2218
|
} else {
|
2216
|
|
- return ''
|
|
2219
|
+ return "";
|
2217
|
2220
|
}
|
2218
|
2221
|
},
|
2219
|
2222
|
getAdminUser(key, id) {
|
2220
|
2223
|
if (
|
2221
|
|
- typeof key === 'undefined' ||
|
|
2224
|
+ typeof key === "undefined" ||
|
2222
|
2225
|
key == null ||
|
2223
|
|
- typeof key[id] === 'undefined'
|
|
2226
|
+ typeof key[id] === "undefined"
|
2224
|
2227
|
) {
|
2225
|
|
- return ''
|
|
2228
|
+ return "";
|
2226
|
2229
|
}
|
2227
|
2230
|
if (key[id] == 0) {
|
2228
|
|
- return ''
|
|
2231
|
+ return "";
|
2229
|
2232
|
}
|
2230
|
2233
|
if (key[id] == undefined) {
|
2231
|
|
- return ''
|
|
2234
|
+ return "";
|
2232
|
2235
|
}
|
2233
|
2236
|
for (let i = 0; i < this.adminUser.length; i++) {
|
2234
|
2237
|
if (this.adminUser[i].id == key[id]) {
|
2235
|
|
- return this.adminUser[i].name
|
|
2238
|
+ return this.adminUser[i].name;
|
2236
|
2239
|
}
|
2237
|
2240
|
}
|
2238
|
2241
|
},
|
2239
|
2242
|
getTime(value, temp) {
|
2240
|
2243
|
if (value != undefined) {
|
2241
|
|
- return uParseTime(value, temp)
|
|
2244
|
+ return uParseTime(value, temp);
|
2242
|
2245
|
}
|
2243
|
|
- return ''
|
|
2246
|
+ return "";
|
2244
|
2247
|
},
|
2245
|
2248
|
// 函数说明:因为一次透析记录有些记录不一定是必须填的,比如 record.receive_assessment 可能为 null,所以要取 record.receive_assessment.way 前需要判断 record.receive_assessment 是否为 null,所以这个方法用来简化模板渲染的代码
|
2246
|
2249
|
// 参数说明:比如判断 record.receive_assessment.way 是不是为1,参数为 (record.receive_assessment, way, 1)
|
2247
|
2250
|
isCheckBoxChecked: function(record, key, target_value) {
|
2248
|
2251
|
if (record == null || record == undefined) {
|
2249
|
|
- return false
|
|
2252
|
+ return false;
|
2250
|
2253
|
} else {
|
2251
|
|
- return record[key] == target_value
|
|
2254
|
+ return record[key] == target_value;
|
2252
|
2255
|
}
|
2253
|
2256
|
}
|
2254
|
2257
|
}
|
2255
|
|
-}
|
|
2258
|
+};
|
2256
|
2259
|
</script>
|
2257
|
2260
|
|
2258
|
2261
|
<style scoped>
|