|
@@ -38,7 +38,7 @@
|
38
|
38
|
>
|
39
|
39
|
<el-table-column label="姓名" min-width="100" align="center">
|
40
|
40
|
<template slot-scope="scope">
|
41
|
|
- {{ scope.row.patient}}
|
|
41
|
+ {{ scope.row.patient }}
|
42
|
42
|
</template>
|
43
|
43
|
</el-table-column>
|
44
|
44
|
<el-table-column label="分区" min-width="70" align="center">
|
|
@@ -58,7 +58,11 @@
|
58
|
58
|
</el-table-column>
|
59
|
59
|
<el-table-column label="透析模式" min-width="100" align="center">
|
60
|
60
|
<template slot-scope="scope">
|
61
|
|
- {{scope.row.mode_id && modeOptions[scope.row.mode_id] ? modeOptions[scope.row.mode_id].name:'' }}
|
|
61
|
+ {{
|
|
62
|
+ scope.row.mode_id && modeOptions[scope.row.mode_id]
|
|
63
|
+ ? modeOptions[scope.row.mode_id].name
|
|
64
|
+ : ""
|
|
65
|
+ }}
|
62
|
66
|
</template>
|
63
|
67
|
</el-table-column>
|
64
|
68
|
<el-table-column label="透析器" min-width="100" align="center">
|
|
@@ -68,26 +72,72 @@
|
68
|
72
|
</el-table-column>
|
69
|
73
|
<el-table-column label="抗凝剂" min-width="100" align="center">
|
70
|
74
|
<template slot-scope="scope">
|
71
|
|
- {{
|
72
|
|
- scope.row.prescription.anticoagulant
|
73
|
|
- ? anticoagulants_confit[scope.row.prescription.anticoagulant].name
|
74
|
|
- : ""
|
75
|
|
- }}
|
|
75
|
+ <span v-if="scope.row.prescription.anticoagulant === 1">无肝素</span>
|
|
76
|
+ <span v-if="scope.row.prescription.anticoagulant === 2"
|
|
77
|
+ >普通肝素</span
|
|
78
|
+ >
|
|
79
|
+ <span v-if="scope.row.prescription.anticoagulant === 3"
|
|
80
|
+ >低分子肝素</span
|
|
81
|
+ >
|
|
82
|
+ <span v-if="scope.row.prescription.anticoagulant === 4"
|
|
83
|
+ >阿加曲班</span
|
|
84
|
+ >
|
|
85
|
+ <span v-if="scope.row.prescription.anticoagulant === 5"
|
|
86
|
+ >枸橼酸钠</span
|
|
87
|
+ >
|
|
88
|
+ <span v-if="scope.row.prescription.anticoagulant === 6"
|
|
89
|
+ >低分子肝素钙</span
|
|
90
|
+ >
|
|
91
|
+ <span v-if="scope.row.prescription.anticoagulant === 7"
|
|
92
|
+ >低分子肝素钠</span
|
|
93
|
+ >
|
76
|
94
|
</template>
|
77
|
95
|
</el-table-column>
|
78
|
96
|
<el-table-column label="总量" min-width="100" align="center">
|
79
|
97
|
<template slot-scope="scope">
|
80
|
|
- <span v-if="scope.row.prescription.anticoagulant == 1">{{scope.row.prescription.anticoagulant_zongliang?scope.row.prescription.anticoagulant_zongliang+'mg':''}}</span>
|
81
|
|
- <span v-if="scope.row.prescription.anticoagulant == 2">{{scope.row.prescription.anticoagulant_zongliang?scope.row.prescription.anticoagulant_zongliang+'iu':''}}</span>
|
82
|
|
- <span v-if="scope.row.prescription.anticoagulant == 3">{{scope.row.prescription.anticoagulant_zongliang?scope.row.prescription.anticoagulant_zongliang+'iu':''}}</span>
|
83
|
|
- <span v-if="scope.row.prescription.anticoagulant == 4">{{scope.row.prescription.anticoagulant_zongliang?scope.row.prescription.anticoagulant_zongliang+'mg':''}}</span>
|
84
|
|
-
|
|
98
|
+ <span v-if="scope.row.prescription.anticoagulant == 1">{{
|
|
99
|
+ scope.row.prescription.anticoagulant_zongliang
|
|
100
|
+ ? scope.row.prescription.anticoagulant_zongliang + "mg"
|
|
101
|
+ : ""
|
|
102
|
+ }}</span>
|
|
103
|
+ <span v-if="scope.row.prescription.anticoagulant == 2">{{
|
|
104
|
+ scope.row.prescription.anticoagulant_zongliang
|
|
105
|
+ ? scope.row.prescription.anticoagulant_zongliang + "iu"
|
|
106
|
+ : ""
|
|
107
|
+ }}</span>
|
|
108
|
+ <span v-if="scope.row.prescription.anticoagulant == 3">{{
|
|
109
|
+ scope.row.prescription.anticoagulant_zongliang
|
|
110
|
+ ? scope.row.prescription.anticoagulant_zongliang + "iu"
|
|
111
|
+ : ""
|
|
112
|
+ }}</span>
|
|
113
|
+ <span v-if="scope.row.prescription.anticoagulant == 4">{{
|
|
114
|
+ scope.row.prescription.anticoagulant_zongliang
|
|
115
|
+ ? scope.row.prescription.anticoagulant_zongliang + "mg"
|
|
116
|
+ : ""
|
|
117
|
+ }}</span>
|
|
118
|
+ <span v-if="scope.row.prescription.anticoagulant == 5">{{
|
|
119
|
+ scope.row.prescription.anticoagulant_zongliang
|
|
120
|
+ ? scope.row.prescription.anticoagulant_zongliang + "mg"
|
|
121
|
+ : ""
|
|
122
|
+ }}</span>
|
|
123
|
+ <span v-if="scope.row.prescription.anticoagulant == 6">{{
|
|
124
|
+ scope.row.prescription.anticoagulant_zongliang
|
|
125
|
+ ? scope.row.prescription.anticoagulant_zongliang + "iu"
|
|
126
|
+ : ""
|
|
127
|
+ }}</span>
|
|
128
|
+ <span v-if="scope.row.prescription.anticoagulant == 7">{{
|
|
129
|
+ scope.row.prescription.anticoagulant_zongliang
|
|
130
|
+ ? scope.row.prescription.anticoagulant_zongliang + "iu"
|
|
131
|
+ : ""
|
|
132
|
+ }}</span>
|
85
|
133
|
</template>
|
86
|
134
|
</el-table-column>
|
87
|
135
|
|
88
|
136
|
<el-table-column label="长期医嘱" min-width="440" align="center">
|
89
|
137
|
<template slot-scope="scope">
|
90
|
|
- <span style="white-space: pre">{{getAdvice(scope.row.doctor_advice)}}</span>
|
|
138
|
+ <span style="white-space: pre">{{
|
|
139
|
+ getAdvice(scope.row.doctor_advice)
|
|
140
|
+ }}</span>
|
91
|
141
|
</template>
|
92
|
142
|
</el-table-column>
|
93
|
143
|
</el-table>
|
|
@@ -95,241 +145,268 @@
|
95
|
145
|
</template>
|
96
|
146
|
|
97
|
147
|
<script>
|
98
|
|
- import { getSchedules, getScheduleWeekDay } from '@/api/schedule'
|
99
|
|
- import WeekItem from './WeekItem'
|
|
148
|
+import { getSchedules, getScheduleWeekDay } from "@/api/schedule";
|
|
149
|
+import WeekItem from "./WeekItem";
|
100
|
150
|
|
101
|
|
- export default {
|
102
|
|
- name: 'tableWeeks',
|
103
|
|
- props: {
|
104
|
|
- weekTime: {
|
105
|
|
- type: String,
|
106
|
|
- default: 'thisWeek'
|
107
|
|
- }
|
108
|
|
- },
|
|
151
|
+export default {
|
|
152
|
+ name: "tableWeeks",
|
|
153
|
+ props: {
|
|
154
|
+ weekTime: {
|
|
155
|
+ type: String,
|
|
156
|
+ default: "thisWeek"
|
|
157
|
+ }
|
|
158
|
+ },
|
109
|
159
|
|
110
|
|
- data() {
|
111
|
|
- return {
|
112
|
|
- weekArr: [
|
113
|
|
- { id: 1, name: '周一' },
|
114
|
|
- { id: 2, name: '周二' },
|
115
|
|
- { id: 3, name: '周三' },
|
116
|
|
- { id: 4, name: '周四' },
|
117
|
|
- { id: 5, name: '周五' },
|
118
|
|
- { id: 6, name: '周六' },
|
119
|
|
- { id: 7, name: '周日' }
|
120
|
|
- ],
|
121
|
|
- anticoagulants_confit: null,
|
|
160
|
+ data() {
|
|
161
|
+ return {
|
|
162
|
+ weekArr: [
|
|
163
|
+ { id: 1, name: "周一" },
|
|
164
|
+ { id: 2, name: "周二" },
|
|
165
|
+ { id: 3, name: "周三" },
|
|
166
|
+ { id: 4, name: "周四" },
|
|
167
|
+ { id: 5, name: "周五" },
|
|
168
|
+ { id: 6, name: "周六" },
|
|
169
|
+ { id: 7, name: "周日" }
|
|
170
|
+ ],
|
|
171
|
+ anticoagulants_confit: null,
|
122
|
172
|
|
123
|
|
- week_type: '1',
|
124
|
|
- weekTitle: ['', '', '', '', '', '', ''],
|
125
|
|
- weekData: {
|
126
|
|
- Monday: [],
|
127
|
|
- Tuesday: [],
|
128
|
|
- Wednesday: [],
|
129
|
|
- Thursday: [],
|
130
|
|
- Friday: [],
|
131
|
|
- Saturday: [],
|
132
|
|
- Sunday: []
|
133
|
|
- },
|
134
|
|
- scheduleData: [],
|
135
|
|
- modeOptions: null
|
|
173
|
+ week_type: "1",
|
|
174
|
+ weekTitle: ["", "", "", "", "", "", ""],
|
|
175
|
+ weekData: {
|
|
176
|
+ Monday: [],
|
|
177
|
+ Tuesday: [],
|
|
178
|
+ Wednesday: [],
|
|
179
|
+ Thursday: [],
|
|
180
|
+ Friday: [],
|
|
181
|
+ Saturday: [],
|
|
182
|
+ Sunday: []
|
|
183
|
+ },
|
|
184
|
+ scheduleData: [],
|
|
185
|
+ modeOptions: null
|
|
186
|
+ };
|
|
187
|
+ },
|
|
188
|
+ watch: {
|
|
189
|
+ weekTime: function() {
|
|
190
|
+ var theType = this.weekType(this.weekTime);
|
|
191
|
+ this.getSchedules(theType);
|
|
192
|
+ }
|
|
193
|
+ },
|
|
194
|
+
|
|
195
|
+ methods: {
|
|
196
|
+ printAction() {
|
|
197
|
+ this.$router.push({
|
|
198
|
+ path: "/schedule/remind/print?week_type=" + this.week_type
|
|
199
|
+ });
|
|
200
|
+ },
|
|
201
|
+ getScheduleWeekDay(weekType) {
|
|
202
|
+ getScheduleWeekDay(weekType).then(response => {
|
|
203
|
+ this.scheduleData = [];
|
|
204
|
+ if (response.data.state == 1) {
|
|
205
|
+ this.scheduleData = response.data.data.schdules;
|
|
206
|
+ //console.log("排班-----", this.scheduleData);
|
|
207
|
+ } else {
|
|
208
|
+ this.$message.error("网络错误");
|
|
209
|
+ return false;
|
|
210
|
+ }
|
|
211
|
+ });
|
|
212
|
+ },
|
|
213
|
+
|
|
214
|
+ // getSchedules(weekType) {
|
|
215
|
+ // getSchedules(weekType).then(response => {
|
|
216
|
+ // this.scheduleData = []
|
|
217
|
+ // if (response.data.state == 1) {
|
|
218
|
+ // this.weekTitle = response.data.data.weekTitle
|
|
219
|
+ // var theSchedules = response.data.data.schdules
|
|
220
|
+ // var that = this
|
|
221
|
+ // theSchedules.forEach(function(schedule) {
|
|
222
|
+ // schedule['mode_name'] = typeof (that.modeOptions[schedule.mode_id]) == 'undefined' ? '' : that.modeOptions[schedule.mode_id].name
|
|
223
|
+ // var weekPath = that.weekPath(schedule.schedule_week)
|
|
224
|
+ // if (weekPath.length > 0) {
|
|
225
|
+ // that.weekData[weekPath].push(schedule)
|
|
226
|
+ // }
|
|
227
|
+ // })
|
|
228
|
+ // var rowNum = 0
|
|
229
|
+ // console.log(that.weekData)
|
|
230
|
+ // for (var index in that.weekData) {
|
|
231
|
+ // var thisLen = that.weekData[index].length
|
|
232
|
+ // rowNum = rowNum >= thisLen ? rowNum : thisLen
|
|
233
|
+ // }
|
|
234
|
+ // console.log(rowNum)
|
|
235
|
+ // for (let index = 0; index < rowNum; index++) {
|
|
236
|
+ // var dataItem = {}
|
|
237
|
+ // for (var weekIndex in that.weekData) {
|
|
238
|
+ // var weekItem = that.weekData[weekIndex].shift()
|
|
239
|
+ // console.log('weekItem', weekItem)
|
|
240
|
+ // if (typeof (weekItem) != 'undefined') {
|
|
241
|
+ // dataItem[weekIndex] = weekItem
|
|
242
|
+ // }
|
|
243
|
+ // }
|
|
244
|
+ // that.scheduleData.push(dataItem)
|
|
245
|
+ // }
|
|
246
|
+ //
|
|
247
|
+ // console.log(that.scheduleData)
|
|
248
|
+ //
|
|
249
|
+ // } else {
|
|
250
|
+ // this.$message.error('网络错误')
|
|
251
|
+ // return false
|
|
252
|
+ // }
|
|
253
|
+ // })
|
|
254
|
+ // },
|
|
255
|
+ weekType(weekTime) {
|
|
256
|
+ var theType = 2;
|
|
257
|
+ switch (weekTime) {
|
|
258
|
+ case "lastWeek":
|
|
259
|
+ theType = 1;
|
|
260
|
+ break;
|
|
261
|
+ case "thisWeek":
|
|
262
|
+ theType = 2;
|
|
263
|
+ break;
|
|
264
|
+ case "nextWeek":
|
|
265
|
+ theType = 3;
|
|
266
|
+ break;
|
|
267
|
+ case "nextTwoWeek":
|
|
268
|
+ theType = 4;
|
|
269
|
+ break;
|
|
270
|
+ default:
|
|
271
|
+ theType = 2;
|
|
272
|
+ break;
|
136
|
273
|
}
|
|
274
|
+ return theType;
|
137
|
275
|
},
|
138
|
|
- watch: {
|
139
|
|
- weekTime: function() {
|
140
|
|
- var theType = this.weekType(this.weekTime)
|
141
|
|
- this.getSchedules(theType)
|
|
276
|
+ weekPath(week) {
|
|
277
|
+ var weekArr = {
|
|
278
|
+ 1: "Monday",
|
|
279
|
+ 2: "Tuesday",
|
|
280
|
+ 3: "Wednesday",
|
|
281
|
+ 4: "Thursday",
|
|
282
|
+ 5: "Friday",
|
|
283
|
+ 6: "Saturday",
|
|
284
|
+ 7: "Sunday"
|
|
285
|
+ };
|
|
286
|
+ if (typeof weekArr[week] == "undefined") {
|
|
287
|
+ return "";
|
142
|
288
|
}
|
|
289
|
+ return weekArr[week];
|
143
|
290
|
},
|
|
291
|
+ selectWeekType(type) {
|
|
292
|
+ this.week_type = type;
|
|
293
|
+ let params = {
|
|
294
|
+ week_type: this.week_type
|
|
295
|
+ };
|
|
296
|
+ this.getScheduleWeekDay(params);
|
|
297
|
+ },
|
|
298
|
+ getSchedulesType: function(type) {
|
|
299
|
+ let type_name = "";
|
|
300
|
+ switch (type) {
|
|
301
|
+ case 1:
|
|
302
|
+ type_name = "上午";
|
|
303
|
+ break;
|
|
304
|
+ case 2:
|
|
305
|
+ type_name = "下午";
|
|
306
|
+ break;
|
|
307
|
+ case 3:
|
|
308
|
+ type_name = "晚上";
|
|
309
|
+ break;
|
|
310
|
+ }
|
|
311
|
+ return type_name;
|
|
312
|
+ },
|
|
313
|
+ getAdvice: function(doctor_advice) {
|
|
314
|
+ if (doctor_advice != null) {
|
|
315
|
+ let name = "";
|
|
316
|
+ for (let i = 0; i < doctor_advice.length; i++) {
|
|
317
|
+ let prescribing_number = "";
|
|
318
|
+ let single_dose = "";
|
|
319
|
+ let drug_spec = "";
|
144
|
320
|
|
145
|
|
- methods: {
|
146
|
|
- printAction(){
|
147
|
|
- console.log("111111",this.week_type)
|
148
|
|
- this.$router.push({ path: '/schedule/remind/print?week_type=' + this.week_type })
|
149
|
|
-
|
150
|
|
- },
|
151
|
|
- getScheduleWeekDay(weekType) {
|
152
|
|
- getScheduleWeekDay(weekType).then(response => {
|
153
|
|
- this.scheduleData = []
|
154
|
|
- if (response.data.state == 1) {
|
155
|
|
- this.scheduleData = response.data.data.schdules
|
156
|
|
- console.log(this.scheduleData)
|
157
|
|
- } else {
|
158
|
|
- this.$message.error('网络错误')
|
159
|
|
- return false
|
|
321
|
+ if (doctor_advice[i].prescribing_number > 0) {
|
|
322
|
+ prescribing_number =
|
|
323
|
+ doctor_advice[i].prescribing_number +
|
|
324
|
+ doctor_advice[i].prescribing_number_unit;
|
|
325
|
+ }
|
|
326
|
+ if (doctor_advice[i].single_dose > 0) {
|
|
327
|
+ single_dose =
|
|
328
|
+ " 单次用量 " +
|
|
329
|
+ doctor_advice[i].single_dose +
|
|
330
|
+ doctor_advice[i].single_dose_unit;
|
160
|
331
|
}
|
161
|
|
- })
|
162
|
|
- },
|
163
|
|
-
|
164
|
|
- // getSchedules(weekType) {
|
165
|
|
- // getSchedules(weekType).then(response => {
|
166
|
|
- // this.scheduleData = []
|
167
|
|
- // if (response.data.state == 1) {
|
168
|
|
- // this.weekTitle = response.data.data.weekTitle
|
169
|
|
- // var theSchedules = response.data.data.schdules
|
170
|
|
- // var that = this
|
171
|
|
- // theSchedules.forEach(function(schedule) {
|
172
|
|
- // schedule['mode_name'] = typeof (that.modeOptions[schedule.mode_id]) == 'undefined' ? '' : that.modeOptions[schedule.mode_id].name
|
173
|
|
- // var weekPath = that.weekPath(schedule.schedule_week)
|
174
|
|
- // if (weekPath.length > 0) {
|
175
|
|
- // that.weekData[weekPath].push(schedule)
|
176
|
|
- // }
|
177
|
|
- // })
|
178
|
|
- // var rowNum = 0
|
179
|
|
- // console.log(that.weekData)
|
180
|
|
- // for (var index in that.weekData) {
|
181
|
|
- // var thisLen = that.weekData[index].length
|
182
|
|
- // rowNum = rowNum >= thisLen ? rowNum : thisLen
|
183
|
|
- // }
|
184
|
|
- // console.log(rowNum)
|
185
|
|
- // for (let index = 0; index < rowNum; index++) {
|
186
|
|
- // var dataItem = {}
|
187
|
|
- // for (var weekIndex in that.weekData) {
|
188
|
|
- // var weekItem = that.weekData[weekIndex].shift()
|
189
|
|
- // console.log('weekItem', weekItem)
|
190
|
|
- // if (typeof (weekItem) != 'undefined') {
|
191
|
|
- // dataItem[weekIndex] = weekItem
|
192
|
|
- // }
|
193
|
|
- // }
|
194
|
|
- // that.scheduleData.push(dataItem)
|
195
|
|
- // }
|
196
|
|
- //
|
197
|
|
- // console.log(that.scheduleData)
|
198
|
|
- //
|
199
|
|
- // } else {
|
200
|
|
- // this.$message.error('网络错误')
|
201
|
|
- // return false
|
202
|
|
- // }
|
203
|
|
- // })
|
204
|
|
- // },
|
205
|
|
- weekType(weekTime) {
|
206
|
|
- var theType = 2
|
207
|
|
- switch (weekTime) {
|
208
|
|
- case 'lastWeek':
|
209
|
|
- theType = 1
|
210
|
|
- break
|
211
|
|
- case 'thisWeek':
|
212
|
|
- theType = 2
|
213
|
|
- break
|
214
|
|
- case 'nextWeek':
|
215
|
|
- theType = 3
|
216
|
|
- break
|
217
|
|
- case 'nextTwoWeek':
|
218
|
|
- theType = 4
|
219
|
|
- break
|
220
|
|
- default:
|
221
|
|
- theType = 2
|
222
|
|
- break
|
223
|
|
- }
|
224
|
|
- return theType
|
225
|
|
- },
|
226
|
|
- weekPath(week) {
|
227
|
|
- var weekArr = {
|
228
|
|
- 1: 'Monday',
|
229
|
|
- 2: 'Tuesday',
|
230
|
|
- 3: 'Wednesday',
|
231
|
|
- 4: 'Thursday',
|
232
|
|
- 5: 'Friday',
|
233
|
|
- 6: 'Saturday',
|
234
|
|
- 7: 'Sunday'
|
235
|
|
- }
|
236
|
|
- if (typeof (weekArr[week]) == 'undefined') {
|
237
|
|
- return ''
|
238
|
|
- }
|
239
|
|
- return weekArr[week]
|
240
|
|
- }, selectWeekType(type) {
|
241
|
|
- this.week_type = type
|
242
|
|
- let params = {
|
243
|
|
- week_type: this.week_type
|
244
|
|
- }
|
245
|
|
- this.getScheduleWeekDay(params)
|
246
|
|
- }, getSchedulesType: function(type) {
|
247
|
|
- let type_name = ''
|
248
|
|
- switch (type) {
|
249
|
|
- case 1:
|
250
|
|
- type_name = '上午'
|
251
|
|
- break
|
252
|
|
- case 2:
|
253
|
|
- type_name = '下午'
|
254
|
|
- break
|
255
|
|
- case 3:
|
256
|
|
- type_name = '晚上'
|
257
|
|
- break
|
258
|
|
- }
|
259
|
|
- return type_name
|
260
|
|
- },
|
261
|
|
- getAdvice:function(doctor_advice) {
|
262
|
|
- if (doctor_advice != null) {
|
263
|
|
- let name = ""
|
264
|
|
- for (let i = 0; i < doctor_advice.length; i++) {
|
265
|
|
-
|
266
|
|
- let prescribing_number = ''
|
267
|
|
- let single_dose = ''
|
268
|
|
- let drug_spec = ''
|
269
|
|
-
|
270
|
|
- if (doctor_advice[i].prescribing_number > 0) {
|
271
|
|
- prescribing_number = doctor_advice[i].prescribing_number + doctor_advice[i].prescribing_number_unit
|
272
|
|
- }
|
273
|
|
- if (doctor_advice[i].single_dose > 0) {
|
274
|
|
- single_dose = ' 单次用量 ' + doctor_advice[i].single_dose + doctor_advice[i].single_dose_unit
|
275
|
|
- }
|
276
|
|
-
|
277
|
|
- if (doctor_advice[i].drug_spec > 0) {
|
278
|
|
- drug_spec = doctor_advice[i].drug_spec + doctor_advice[i].drug_spec_unit
|
279
|
|
- }
|
280
|
|
-
|
281
|
|
- name = name + doctor_advice[i].advice_name + " " + drug_spec + " " + prescribing_number + " " + single_dose + " " + doctor_advice[i].delivery_way + " " + doctor_advice[i].execution_frequency + " " + doctor_advice[i].remark + "\n"
|
282
|
|
-
|
283
|
|
- if (doctor_advice[i].child.length > 0) {
|
284
|
332
|
|
285
|
|
- for (let a = 0; a < doctor_advice[i].child.length; a++) {
|
|
333
|
+ if (doctor_advice[i].drug_spec > 0) {
|
|
334
|
+ drug_spec =
|
|
335
|
+ doctor_advice[i].drug_spec + doctor_advice[i].drug_spec_unit;
|
|
336
|
+ }
|
286
|
337
|
|
287
|
|
- if (doctor_advice[i].child[a].prescribing_number > 0) {
|
288
|
|
- doctor_advice[i].child[a]['presc'] = doctor_advice[i].child[a].prescribing_number + doctor_advice[i].child[a].prescribing_number_unit
|
289
|
|
- } else {
|
290
|
|
- doctor_advice[i].child[a]['presc'] = ''
|
291
|
|
- }
|
|
338
|
+ name =
|
|
339
|
+ name +
|
|
340
|
+ doctor_advice[i].advice_name +
|
|
341
|
+ " " +
|
|
342
|
+ drug_spec +
|
|
343
|
+ " " +
|
|
344
|
+ prescribing_number +
|
|
345
|
+ " " +
|
|
346
|
+ single_dose +
|
|
347
|
+ " " +
|
|
348
|
+ doctor_advice[i].delivery_way +
|
|
349
|
+ " " +
|
|
350
|
+ doctor_advice[i].execution_frequency +
|
|
351
|
+ " " +
|
|
352
|
+ doctor_advice[i].remark +
|
|
353
|
+ "\n";
|
292
|
354
|
|
293
|
|
- if (doctor_advice[i].child[a].single_dose > 0) {
|
294
|
|
- doctor_advice[i].child[a]['single'] = " " + ' 单次用量 ' + " " + doctor_advice[i].child[a].single_dose + doctor_advice[i].child[a].single_dose_unit
|
295
|
|
- } else {
|
296
|
|
- doctor_advice[i].child[a]['single'] = ''
|
297
|
|
- }
|
|
355
|
+ if (doctor_advice[i].child.length > 0) {
|
|
356
|
+ for (let a = 0; a < doctor_advice[i].child.length; a++) {
|
|
357
|
+ if (doctor_advice[i].child[a].prescribing_number > 0) {
|
|
358
|
+ doctor_advice[i].child[a]["presc"] =
|
|
359
|
+ doctor_advice[i].child[a].prescribing_number +
|
|
360
|
+ doctor_advice[i].child[a].prescribing_number_unit;
|
|
361
|
+ } else {
|
|
362
|
+ doctor_advice[i].child[a]["presc"] = "";
|
|
363
|
+ }
|
298
|
364
|
|
299
|
|
- name = name + "▲" + doctor_advice[i].child[a].advice_name + ""
|
300
|
|
- + doctor_advice[i].child[a].advice_desc
|
301
|
|
- + doctor_advice[i].child[a].drug_spec_unit
|
302
|
|
- + doctor_advice[i].child[a].presc
|
303
|
|
- + doctor_advice[i].child[a].single + "\n"
|
|
365
|
+ if (doctor_advice[i].child[a].single_dose > 0) {
|
|
366
|
+ doctor_advice[i].child[a]["single"] =
|
|
367
|
+ " " +
|
|
368
|
+ " 单次用量 " +
|
|
369
|
+ " " +
|
|
370
|
+ doctor_advice[i].child[a].single_dose +
|
|
371
|
+ doctor_advice[i].child[a].single_dose_unit;
|
|
372
|
+ } else {
|
|
373
|
+ doctor_advice[i].child[a]["single"] = "";
|
304
|
374
|
}
|
305
|
375
|
|
|
376
|
+ name =
|
|
377
|
+ name +
|
|
378
|
+ "▲" +
|
|
379
|
+ doctor_advice[i].child[a].advice_name +
|
|
380
|
+ "" +
|
|
381
|
+ doctor_advice[i].child[a].advice_desc +
|
|
382
|
+ doctor_advice[i].child[a].drug_spec_unit +
|
|
383
|
+ doctor_advice[i].child[a].presc +
|
|
384
|
+ doctor_advice[i].child[a].single +
|
|
385
|
+ "\n";
|
306
|
386
|
}
|
307
|
|
-
|
308
|
387
|
}
|
309
|
|
- return name
|
310
|
|
-
|
311
|
388
|
}
|
|
389
|
+ return name;
|
312
|
390
|
}
|
313
|
|
- },
|
314
|
|
- components: {
|
315
|
|
- WeekItem
|
316
|
|
- },
|
317
|
|
- created() {
|
318
|
|
- this.modeOptions = this.$store.getters.treatment_mode
|
319
|
|
- this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
|
320
|
|
-
|
321
|
|
-
|
322
|
|
- this.week_type = new Date().getDay()
|
323
|
|
- if(this.week_type == 0){
|
324
|
|
- this.week_type = 7
|
325
|
|
-
|
326
|
|
- }
|
327
|
|
- let params = {
|
328
|
|
- week_type: this.week_type
|
329
|
|
- }
|
330
|
|
- this.getScheduleWeekDay(params)
|
331
|
391
|
}
|
|
392
|
+ },
|
|
393
|
+ components: {
|
|
394
|
+ WeekItem
|
|
395
|
+ },
|
|
396
|
+ created() {
|
|
397
|
+ this.modeOptions = this.$store.getters.treatment_mode;
|
|
398
|
+ this.anticoagulants_confit = this.$store.getters.anticoagulants_confit;
|
|
399
|
+ console.log("抗凝机", this.anticoagulants_confit);
|
|
400
|
+ this.week_type = new Date().getDay();
|
|
401
|
+ if (this.week_type == 0) {
|
|
402
|
+ this.week_type = 7;
|
|
403
|
+ }
|
|
404
|
+ let params = {
|
|
405
|
+ week_type: this.week_type
|
|
406
|
+ };
|
|
407
|
+ this.getScheduleWeekDay(params);
|
332
|
408
|
}
|
|
409
|
+};
|
333
|
410
|
</script>
|
334
|
411
|
|
335
|
412
|
<style rel="stylesheet/css" lang="scss">
|