|
@@ -115,46 +115,46 @@ import {
|
115
|
115
|
getPatientDetail,
|
116
|
116
|
getScheduling,
|
117
|
117
|
DeleteScheduling
|
118
|
|
-} from "@/api/patient/patient";
|
119
|
|
-import { uParseTime } from "@/utils/tools";
|
120
|
|
-import Vue from "vue";
|
121
|
|
-import { Dialog } from "vant";
|
122
|
|
-const moment = require("moment");
|
|
118
|
+} from '@/api/patient/patient'
|
|
119
|
+import { uParseTime } from '@/utils/tools'
|
|
120
|
+import Vue from 'vue'
|
|
121
|
+import { Dialog } from 'vant'
|
|
122
|
+const moment = require('moment')
|
123
|
123
|
export default {
|
124
|
124
|
props: {
|
125
|
125
|
active: Number,
|
126
|
126
|
schedulingId: String
|
127
|
127
|
},
|
128
|
|
- data() {
|
|
128
|
+ data () {
|
129
|
129
|
return {
|
130
|
130
|
newShow: false,
|
131
|
131
|
typeShow: false,
|
132
|
132
|
startShow: false,
|
133
|
133
|
endShow: false,
|
134
|
|
- type: "全部",
|
|
134
|
+ type: '全部',
|
135
|
135
|
types: 0,
|
136
|
136
|
columns: [
|
137
|
|
- "HD",
|
138
|
|
- "HDF",
|
139
|
|
- "HD+HP",
|
140
|
|
- "HP",
|
141
|
|
- "HF",
|
142
|
|
- "SCUF",
|
143
|
|
- "IUF",
|
144
|
|
- "HFHD",
|
145
|
|
- "HFHD+HP",
|
146
|
|
- "PHF",
|
147
|
|
- "HFR",
|
148
|
|
- "HDF+HP",
|
149
|
|
- "CRRT",
|
150
|
|
- "腹水回输"
|
|
137
|
+ 'HD',
|
|
138
|
+ 'HDF',
|
|
139
|
+ 'HD+HP',
|
|
140
|
+ 'HP',
|
|
141
|
+ 'HF',
|
|
142
|
+ 'SCUF',
|
|
143
|
+ 'IUF',
|
|
144
|
+ 'HFHD',
|
|
145
|
+ 'HFHD+HP',
|
|
146
|
+ 'PHF',
|
|
147
|
+ 'HFR',
|
|
148
|
+ 'HDF+HP',
|
|
149
|
+ 'CRRT',
|
|
150
|
+ '腹水回输'
|
151
|
151
|
],
|
152
|
|
- startTime: "请选择",
|
153
|
|
- endTime: "请选择",
|
|
152
|
+ startTime: '请选择',
|
|
153
|
+ endTime: '请选择',
|
154
|
154
|
minDate: new Date(1970, 0, 1),
|
155
|
155
|
maxDate: new Date(2025, 10, 1),
|
156
|
156
|
currentDate: new Date(),
|
157
|
|
- actions: [{ name: "查看全部" }, { name: "全部删除" }],
|
|
157
|
+ actions: [{ name: '查看全部' }, { name: '全部删除' }],
|
158
|
158
|
showOne: true,
|
159
|
159
|
showTwo: false,
|
160
|
160
|
limit: 10,
|
|
@@ -163,70 +163,70 @@ export default {
|
163
|
163
|
loading: false,
|
164
|
164
|
finished: false,
|
165
|
165
|
list: [],
|
166
|
|
- patient_id: "",
|
|
166
|
+ patient_id: '',
|
167
|
167
|
scheduLing: [],
|
168
|
168
|
list: [],
|
169
|
169
|
id: 0,
|
170
|
170
|
index: 0,
|
171
|
171
|
immediateCheck: false,
|
172
|
172
|
flag: true
|
173
|
|
- };
|
|
173
|
+ }
|
174
|
174
|
},
|
175
|
175
|
methods: {
|
176
|
|
- onCancel() {
|
177
|
|
- this.typeShow = false;
|
|
176
|
+ onCancel () {
|
|
177
|
+ this.typeShow = false
|
178
|
178
|
},
|
179
|
|
- onConfirm(value) {
|
180
|
|
- this.page = 1;
|
181
|
|
- if (value === "全部") {
|
182
|
|
- this.types = 0;
|
|
179
|
+ onConfirm (value) {
|
|
180
|
+ this.page = 1
|
|
181
|
+ if (value === '全部') {
|
|
182
|
+ this.types = 0
|
183
|
183
|
}
|
184
|
|
- if (value === "HD") {
|
185
|
|
- this.types = 1;
|
|
184
|
+ if (value === 'HD') {
|
|
185
|
+ this.types = 1
|
186
|
186
|
}
|
187
|
|
- if (value === "HDF") {
|
188
|
|
- this.types = 2;
|
|
187
|
+ if (value === 'HDF') {
|
|
188
|
+ this.types = 2
|
189
|
189
|
}
|
190
|
|
- if (value === "HD+HP") {
|
191
|
|
- this.types = 3;
|
|
190
|
+ if (value === 'HD+HP') {
|
|
191
|
+ this.types = 3
|
192
|
192
|
}
|
193
|
|
- if (value === "HP") {
|
194
|
|
- this.types = 4;
|
|
193
|
+ if (value === 'HP') {
|
|
194
|
+ this.types = 4
|
195
|
195
|
}
|
196
|
|
- if (value === "HF") {
|
197
|
|
- this.types = 5;
|
|
196
|
+ if (value === 'HF') {
|
|
197
|
+ this.types = 5
|
198
|
198
|
}
|
199
|
|
- if (value === "SCUF") {
|
200
|
|
- this.types = 6;
|
|
199
|
+ if (value === 'SCUF') {
|
|
200
|
+ this.types = 6
|
201
|
201
|
}
|
202
|
|
- if (value === "IUF") {
|
203
|
|
- this.types = 7;
|
|
202
|
+ if (value === 'IUF') {
|
|
203
|
+ this.types = 7
|
204
|
204
|
}
|
205
|
|
- if (value === "HFHD") {
|
206
|
|
- this.types = 8;
|
|
205
|
+ if (value === 'HFHD') {
|
|
206
|
+ this.types = 8
|
207
|
207
|
}
|
208
|
|
- if (value === "HFHD+HP") {
|
209
|
|
- this.types = 9;
|
|
208
|
+ if (value === 'HFHD+HP') {
|
|
209
|
+ this.types = 9
|
210
|
210
|
}
|
211
|
|
- if (value === "PHF") {
|
212
|
|
- this.types = 10;
|
|
211
|
+ if (value === 'PHF') {
|
|
212
|
+ this.types = 10
|
213
|
213
|
}
|
214
|
|
- if (value === "HFR") {
|
215
|
|
- this.types = 11;
|
|
214
|
+ if (value === 'HFR') {
|
|
215
|
+ this.types = 11
|
216
|
216
|
}
|
217
|
217
|
|
218
|
|
- if (value === "HDF+HP") {
|
219
|
|
- this.types = 12;
|
|
218
|
+ if (value === 'HDF+HP') {
|
|
219
|
+ this.types = 12
|
220
|
220
|
}
|
221
|
|
- if (value === "CRRT") {
|
222
|
|
- this.types = 13;
|
|
221
|
+ if (value === 'CRRT') {
|
|
222
|
+ this.types = 13
|
223
|
223
|
}
|
224
|
|
- if (value === "腹水回输") {
|
225
|
|
- this.types = 14;
|
|
224
|
+ if (value === '腹水回输') {
|
|
225
|
+ this.types = 14
|
226
|
226
|
}
|
227
|
|
- this.type = value;
|
228
|
|
- this.typeShow = false;
|
229
|
|
- this.scheduLing = [];
|
|
227
|
+ this.type = value
|
|
228
|
+ this.typeShow = false
|
|
229
|
+ this.scheduLing = []
|
230
|
230
|
this.getScheduling(
|
231
|
231
|
this.patient_id,
|
232
|
232
|
this.limit,
|
|
@@ -234,22 +234,22 @@ export default {
|
234
|
234
|
this.startTime,
|
235
|
235
|
this.endTime,
|
236
|
236
|
this.types
|
237
|
|
- );
|
|
237
|
+ )
|
238
|
238
|
},
|
239
|
|
- getstartTime(value) {
|
240
|
|
- this.page = 1;
|
241
|
|
- let year = value.getFullYear();
|
242
|
|
- let month = value.getMonth() + 1;
|
243
|
|
- let day = value.getDate();
|
|
239
|
+ getstartTime (value) {
|
|
240
|
+ this.page = 1
|
|
241
|
+ let year = value.getFullYear()
|
|
242
|
+ let month = value.getMonth() + 1
|
|
243
|
+ let day = value.getDate()
|
244
|
244
|
if (month >= 1 && month <= 9) {
|
245
|
|
- month = `0${month}`;
|
|
245
|
+ month = `0${month}`
|
246
|
246
|
}
|
247
|
247
|
if (day >= 1 && day <= 9) {
|
248
|
|
- day = `0${day}`;
|
|
248
|
+ day = `0${day}`
|
249
|
249
|
}
|
250
|
250
|
|
251
|
|
- this.startTime = `${year}-${month}-${day}`;
|
252
|
|
- this.scheduLing = [];
|
|
251
|
+ this.startTime = `${year}-${month}-${day}`
|
|
252
|
+ this.scheduLing = []
|
253
|
253
|
this.getScheduling(
|
254
|
254
|
this.patient_id,
|
255
|
255
|
this.limit,
|
|
@@ -257,23 +257,23 @@ export default {
|
257
|
257
|
this.startTime,
|
258
|
258
|
this.endTime,
|
259
|
259
|
this.types
|
260
|
|
- );
|
261
|
|
- this.startShow = false;
|
|
260
|
+ )
|
|
261
|
+ this.startShow = false
|
262
|
262
|
},
|
263
|
|
- getstartTime2(value) {
|
264
|
|
- this.page = 1;
|
265
|
|
- let year = value.getFullYear();
|
266
|
|
- let month = value.getMonth() + 1;
|
267
|
|
- let day = value.getDate();
|
|
263
|
+ getstartTime2 (value) {
|
|
264
|
+ this.page = 1
|
|
265
|
+ let year = value.getFullYear()
|
|
266
|
+ let month = value.getMonth() + 1
|
|
267
|
+ let day = value.getDate()
|
268
|
268
|
if (month >= 1 && month <= 9) {
|
269
|
|
- month = `0${month}`;
|
|
269
|
+ month = `0${month}`
|
270
|
270
|
}
|
271
|
271
|
if (day >= 1 && day <= 9) {
|
272
|
|
- day = `0${day}`;
|
|
272
|
+ day = `0${day}`
|
273
|
273
|
}
|
274
|
274
|
|
275
|
|
- this.endTime = `${year}-${month}-${day}`;
|
276
|
|
- this.scheduLing = [];
|
|
275
|
+ this.endTime = `${year}-${month}-${day}`
|
|
276
|
+ this.scheduLing = []
|
277
|
277
|
this.getScheduling(
|
278
|
278
|
this.patient_id,
|
279
|
279
|
this.limit,
|
|
@@ -281,28 +281,28 @@ export default {
|
281
|
281
|
this.startTime,
|
282
|
282
|
this.endTime,
|
283
|
283
|
this.types
|
284
|
|
- );
|
285
|
|
- this.endShow = false;
|
|
284
|
+ )
|
|
285
|
+ this.endShow = false
|
286
|
286
|
},
|
287
|
|
- getPatientDetail(patientid) {
|
|
287
|
+ getPatientDetail (patientid) {
|
288
|
288
|
getPatientDetail(patientid).then(response => {
|
289
|
289
|
if (response.data.state === 1) {
|
290
|
|
- var patientDetail = response.data.data.patientDetail;
|
|
290
|
+ var patientDetail = response.data.data.patientDetail
|
291
|
291
|
if (patientDetail.blood_patients == 0) {
|
292
|
|
- this.scheduLing = [];
|
293
|
|
- this.showOne = false;
|
294
|
|
- this.showTwo = true;
|
|
292
|
+ this.scheduLing = []
|
|
293
|
+ this.showOne = false
|
|
294
|
+ this.showTwo = true
|
295
|
295
|
}
|
296
|
296
|
if (patientDetail.blood_patients == 1) {
|
297
|
|
- this.showOne = true;
|
298
|
|
- this.showTwo = false;
|
|
297
|
+ this.showOne = true
|
|
298
|
+ this.showTwo = false
|
299
|
299
|
}
|
300
|
300
|
// console.log('病人详情', patientDetail)
|
301
|
|
- this.patientName = patientDetail.name;
|
|
301
|
+ this.patientName = patientDetail.name
|
302
|
302
|
}
|
303
|
|
- });
|
|
303
|
+ })
|
304
|
304
|
},
|
305
|
|
- getScheduling(id) {
|
|
305
|
+ getScheduling (id) {
|
306
|
306
|
getScheduling(
|
307
|
307
|
id,
|
308
|
308
|
this.limit,
|
|
@@ -312,74 +312,74 @@ export default {
|
312
|
312
|
this.types
|
313
|
313
|
).then(response => {
|
314
|
314
|
if (response.data.state === 1) {
|
315
|
|
- var scheduling = response.data.data.scheduling;
|
|
315
|
+ var scheduling = response.data.data.scheduling
|
316
|
316
|
for (let i = 0; i < scheduling.length; i++) {
|
317
|
317
|
if (scheduling[i].schedule_type === 1) {
|
318
|
|
- scheduling[i].schedule_type = "上午";
|
|
318
|
+ scheduling[i].schedule_type = '上午'
|
319
|
319
|
}
|
320
|
320
|
if (scheduling[i].schedule_type === 2) {
|
321
|
|
- scheduling[i].schedule_type = "中午";
|
|
321
|
+ scheduling[i].schedule_type = '中午'
|
322
|
322
|
}
|
323
|
323
|
if (scheduling[i].schedule_type === 3) {
|
324
|
|
- scheduling[i].schedule_type = "下午";
|
|
324
|
+ scheduling[i].schedule_type = '下午'
|
325
|
325
|
}
|
326
|
326
|
|
327
|
327
|
if (scheduling[i].mode_id === 1) {
|
328
|
|
- scheduling[i].mode_id = "HD";
|
|
328
|
+ scheduling[i].mode_id = 'HD'
|
329
|
329
|
}
|
330
|
330
|
if (scheduling[i].mode_id === 2) {
|
331
|
|
- scheduling[i].mode_id = "HDF";
|
|
331
|
+ scheduling[i].mode_id = 'HDF'
|
332
|
332
|
}
|
333
|
333
|
if (scheduling[i].mode_id === 3) {
|
334
|
|
- scheduling[i].mode_id = "HD+HP";
|
|
334
|
+ scheduling[i].mode_id = 'HD+HP'
|
335
|
335
|
}
|
336
|
336
|
if (scheduling[i].mode_id === 4) {
|
337
|
|
- scheduling[i].mode_id = "HP";
|
|
337
|
+ scheduling[i].mode_id = 'HP'
|
338
|
338
|
}
|
339
|
339
|
if (scheduling[i].mode_id === 5) {
|
340
|
|
- scheduling[i].mode_id = "HF";
|
|
340
|
+ scheduling[i].mode_id = 'HF'
|
341
|
341
|
}
|
342
|
342
|
if (scheduling[i].mode_id === 6) {
|
343
|
|
- scheduling[i].mode_id = "SCUF";
|
|
343
|
+ scheduling[i].mode_id = 'SCUF'
|
344
|
344
|
}
|
345
|
345
|
if (scheduling[i].mode_id === 7) {
|
346
|
|
- scheduling[i].mode_id = "IUF";
|
|
346
|
+ scheduling[i].mode_id = 'IUF'
|
347
|
347
|
}
|
348
|
348
|
if (scheduling[i].mode_id === 8) {
|
349
|
|
- scheduling[i].mode_id = "HFHD";
|
|
349
|
+ scheduling[i].mode_id = 'HFHD'
|
350
|
350
|
}
|
351
|
351
|
if (scheduling[i].mode_id === 9) {
|
352
|
|
- scheduling[i].mode_id = "HFHD+HP";
|
|
352
|
+ scheduling[i].mode_id = 'HFHD+HP'
|
353
|
353
|
}
|
354
|
354
|
if (scheduling[i].mode_id === 10) {
|
355
|
|
- scheduling[i].mode_id = "PHF";
|
|
355
|
+ scheduling[i].mode_id = 'PHF'
|
356
|
356
|
}
|
357
|
357
|
if (scheduling[i].mode_id === 11) {
|
358
|
|
- scheduling[i].mode_id = "HFR";
|
|
358
|
+ scheduling[i].mode_id = 'HFR'
|
359
|
359
|
}
|
360
|
360
|
if (scheduling[i].mode_id === 12) {
|
361
|
|
- scheduling[i].mode_id = "HDF+HP";
|
|
361
|
+ scheduling[i].mode_id = 'HDF+HP'
|
362
|
362
|
}
|
363
|
363
|
if (scheduling[i].mode_id === 13) {
|
364
|
|
- scheduling[i].mode_id = "CRRT";
|
|
364
|
+ scheduling[i].mode_id = 'CRRT'
|
365
|
365
|
}
|
366
|
366
|
if (scheduling[i].mode_id === 14) {
|
367
|
|
- scheduling[i].mode_id = "腹水回输";
|
|
367
|
+ scheduling[i].mode_id = '腹水回输'
|
368
|
368
|
}
|
369
|
369
|
}
|
370
|
|
- let arr = this.scheduLing;
|
371
|
|
- arr.push(...scheduling);
|
|
370
|
+ let arr = this.scheduLing
|
|
371
|
+ arr.push(...scheduling)
|
372
|
372
|
// console.log('班次', scheduling)
|
373
|
|
- this.scheduLing = arr;
|
374
|
|
- var total = response.data.data.total;
|
|
373
|
+ this.scheduLing = arr
|
|
374
|
+ var total = response.data.data.total
|
375
|
375
|
// console.log('total', total)
|
376
|
|
- this.total = total;
|
377
|
|
- this.loading = false;
|
|
376
|
+ this.total = total
|
|
377
|
+ this.loading = false
|
378
|
378
|
// console.log('1823792742736487362847623876执行这里')
|
379
|
379
|
}
|
380
|
|
- });
|
|
380
|
+ })
|
381
|
381
|
},
|
382
|
|
- getScheduling1(id) {
|
|
382
|
+ getScheduling1 (id) {
|
383
|
383
|
getScheduling(
|
384
|
384
|
id,
|
385
|
385
|
this.limit,
|
|
@@ -389,76 +389,76 @@ export default {
|
389
|
389
|
this.types
|
390
|
390
|
).then(response => {
|
391
|
391
|
if (response.data.state === 1) {
|
392
|
|
- var scheduling = response.data.data.scheduling;
|
|
392
|
+ var scheduling = response.data.data.scheduling
|
393
|
393
|
for (let i = 0; i < scheduling.length; i++) {
|
394
|
394
|
if (scheduling[i].schedule_type === 1) {
|
395
|
|
- scheduling[i].schedule_type = "上午";
|
|
395
|
+ scheduling[i].schedule_type = '上午'
|
396
|
396
|
}
|
397
|
397
|
if (scheduling[i].schedule_type === 2) {
|
398
|
|
- scheduling[i].schedule_type = "中午";
|
|
398
|
+ scheduling[i].schedule_type = '中午'
|
399
|
399
|
}
|
400
|
400
|
if (scheduling[i].schedule_type === 3) {
|
401
|
|
- scheduling[i].schedule_type = "下午";
|
|
401
|
+ scheduling[i].schedule_type = '下午'
|
402
|
402
|
}
|
403
|
403
|
|
404
|
404
|
if (scheduling[i].mode_id === 1) {
|
405
|
|
- scheduling[i].mode_id = "HD";
|
|
405
|
+ scheduling[i].mode_id = 'HD'
|
406
|
406
|
}
|
407
|
407
|
if (scheduling[i].mode_id === 2) {
|
408
|
|
- scheduling[i].mode_id = "HDF";
|
|
408
|
+ scheduling[i].mode_id = 'HDF'
|
409
|
409
|
}
|
410
|
410
|
if (scheduling[i].mode_id === 3) {
|
411
|
|
- scheduling[i].mode_id = "HD+HP";
|
|
411
|
+ scheduling[i].mode_id = 'HD+HP'
|
412
|
412
|
}
|
413
|
413
|
if (scheduling[i].mode_id === 4) {
|
414
|
|
- scheduling[i].mode_id = "HP";
|
|
414
|
+ scheduling[i].mode_id = 'HP'
|
415
|
415
|
}
|
416
|
416
|
if (scheduling[i].mode_id === 5) {
|
417
|
|
- scheduling[i].mode_id = "HF";
|
|
417
|
+ scheduling[i].mode_id = 'HF'
|
418
|
418
|
}
|
419
|
419
|
if (scheduling[i].mode_id === 6) {
|
420
|
|
- scheduling[i].mode_id = "SCUF";
|
|
420
|
+ scheduling[i].mode_id = 'SCUF'
|
421
|
421
|
}
|
422
|
422
|
if (scheduling[i].mode_id === 7) {
|
423
|
|
- scheduling[i].mode_id = "IUF";
|
|
423
|
+ scheduling[i].mode_id = 'IUF'
|
424
|
424
|
}
|
425
|
425
|
if (scheduling[i].mode_id === 8) {
|
426
|
|
- scheduling[i].mode_id = "HFHD";
|
|
426
|
+ scheduling[i].mode_id = 'HFHD'
|
427
|
427
|
}
|
428
|
428
|
if (scheduling[i].mode_id === 9) {
|
429
|
|
- scheduling[i].mode_id = "HFHD+HP";
|
|
429
|
+ scheduling[i].mode_id = 'HFHD+HP'
|
430
|
430
|
}
|
431
|
431
|
if (scheduling[i].mode_id === 10) {
|
432
|
|
- scheduling[i].mode_id = "PHF";
|
|
432
|
+ scheduling[i].mode_id = 'PHF'
|
433
|
433
|
}
|
434
|
434
|
if (scheduling[i].mode_id === 11) {
|
435
|
|
- scheduling[i].mode_id = "HFR";
|
|
435
|
+ scheduling[i].mode_id = 'HFR'
|
436
|
436
|
}
|
437
|
437
|
if (scheduling[i].mode_id === 12) {
|
438
|
|
- scheduling[i].mode_id = "HDF+HP";
|
|
438
|
+ scheduling[i].mode_id = 'HDF+HP'
|
439
|
439
|
}
|
440
|
440
|
if (scheduling[i].mode_id === 13) {
|
441
|
|
- scheduling[i].mode_id = "CRRT";
|
|
441
|
+ scheduling[i].mode_id = 'CRRT'
|
442
|
442
|
}
|
443
|
443
|
if (scheduling[i].mode_id === 14) {
|
444
|
|
- scheduling[i].mode_id = "腹水回输";
|
|
444
|
+ scheduling[i].mode_id = '腹水回输'
|
445
|
445
|
}
|
446
|
446
|
}
|
447
|
447
|
|
448
|
|
- this.scheduLing = scheduling;
|
449
|
|
- var total = response.data.data.total;
|
450
|
|
- this.total = total;
|
451
|
|
- this.loading = false;
|
|
448
|
+ this.scheduLing = scheduling
|
|
449
|
+ var total = response.data.data.total
|
|
450
|
+ this.total = total
|
|
451
|
+ this.loading = false
|
452
|
452
|
}
|
453
|
|
- });
|
|
453
|
+ })
|
454
|
454
|
},
|
455
|
|
- getTime(time) {
|
|
455
|
+ getTime (time) {
|
456
|
456
|
// return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
|
457
|
|
- return uParseTime(time, "{y}-{m}-{d}");
|
|
457
|
+ return uParseTime(time, '{y}-{m}-{d}')
|
458
|
458
|
},
|
459
|
|
- onLoad() {
|
|
459
|
+ onLoad () {
|
460
|
460
|
setTimeout(() => {
|
461
|
|
- this.page++;
|
|
461
|
+ this.page++
|
462
|
462
|
// console.log(this.page)
|
463
|
463
|
if (this.page <= Math.ceil(this.total / 10)) {
|
464
|
464
|
this.getScheduling(
|
|
@@ -468,68 +468,69 @@ export default {
|
468
|
468
|
this.limit,
|
469
|
469
|
this.page,
|
470
|
470
|
this.types
|
471
|
|
- );
|
|
471
|
+ )
|
472
|
472
|
} else {
|
473
|
|
- this.loading = false;
|
474
|
|
- this.finished = true;
|
|
473
|
+ this.loading = false
|
|
474
|
+ this.finished = true
|
475
|
475
|
}
|
476
|
|
- }, 3000);
|
|
476
|
+ }, 3000)
|
477
|
477
|
},
|
478
|
|
- toEditSchduling(id) {
|
479
|
|
- var patientid = this.$route.query.patientid;
|
|
478
|
+ toEditSchduling (id) {
|
|
479
|
+ var patientid = this.$route.query.patientid
|
480
|
480
|
this.$router.push(
|
481
|
|
- "/editScheduling?id=" +
|
|
481
|
+ '/editScheduling?id=' +
|
482
|
482
|
id +
|
483
|
|
- "&patientid=" +
|
|
483
|
+ '&patientid=' +
|
484
|
484
|
patientid +
|
485
|
|
- "&active=" +
|
|
485
|
+ '&active=' +
|
486
|
486
|
this.active
|
487
|
|
- );
|
|
487
|
+ )
|
488
|
488
|
},
|
489
|
|
- toDelete(id, index) {
|
490
|
|
- this.id = id;
|
491
|
|
- this.index = index;
|
492
|
|
- this.newShow = true;
|
|
489
|
+ toDelete (id, index) {
|
|
490
|
+ this.id = id
|
|
491
|
+ this.index = index
|
|
492
|
+ this.newShow = true
|
493
|
493
|
},
|
494
|
|
- onCancelOne(value) {
|
495
|
|
- if (value.name == "查看全部") {
|
496
|
|
- var patientid = this.$route.query.patientid;
|
|
494
|
+ onCancelOne (value) {
|
|
495
|
+ if (value.name == '查看全部') {
|
|
496
|
+ var patientid = this.$route.query.patientid
|
497
|
497
|
this.$router.push(
|
498
|
|
- "/editScheduling?id=" +
|
|
498
|
+ '/editScheduling?id=' +
|
499
|
499
|
this.id +
|
500
|
|
- "&patientid=" +
|
|
500
|
+ '&patientid=' +
|
501
|
501
|
patientid +
|
502
|
|
- "&active=" +
|
|
502
|
+ '&active=' +
|
503
|
503
|
this.active
|
504
|
|
- );
|
|
504
|
+ )
|
505
|
505
|
}
|
506
|
|
- if (value.name == "全部删除") {
|
507
|
|
- this.DeleteScheduling(this.id, this.index);
|
|
506
|
+ if (value.name == '全部删除') {
|
|
507
|
+ this.DeleteScheduling(this.id, this.index)
|
508
|
508
|
}
|
509
|
509
|
},
|
510
|
|
- DeleteScheduling(id, index) {
|
|
510
|
+ DeleteScheduling (id, index) {
|
511
|
511
|
Dialog.confirm({
|
512
|
|
- title: "删除提示!",
|
513
|
|
- message: "确认删除该条信息吗?,删除后将无法恢复!"
|
|
512
|
+ title: '删除提示!',
|
|
513
|
+ message: '确认删除该条信息吗?,删除后将无法恢复!'
|
514
|
514
|
}).then(() => {
|
515
|
515
|
DeleteScheduling(id).then(response => {
|
516
|
516
|
if (response.data.state === 1) {
|
517
|
|
- var msg = response.data.data.msg;
|
518
|
|
- console.log("msg", msg);
|
519
|
|
- this.scheduLing.splice(index, 1);
|
520
|
|
- this.newShow = false;
|
|
517
|
+ var msg = response.data.data.msg
|
|
518
|
+ console.log('msg', msg)
|
|
519
|
+ this.scheduLing.splice(index, 1)
|
|
520
|
+ this.newShow = false
|
521
|
521
|
}
|
522
|
|
- });
|
523
|
|
- });
|
|
522
|
+ })
|
|
523
|
+ })
|
524
|
524
|
}
|
|
525
|
+
|
525
|
526
|
},
|
526
|
|
- created() {
|
527
|
|
- var patientid = this.$route.query.patientid;
|
528
|
|
- this.getPatientDetail(patientid);
|
529
|
|
- this.getScheduling(patientid);
|
530
|
|
- this.patient_id = patientid;
|
|
527
|
+ created () {
|
|
528
|
+ var patientid = this.$route.query.patientid
|
|
529
|
+ this.getPatientDetail(patientid)
|
|
530
|
+ this.getScheduling(patientid)
|
|
531
|
+ this.patient_id = patientid
|
531
|
532
|
}
|
532
|
|
-};
|
|
533
|
+}
|
533
|
534
|
</script>
|
534
|
535
|
|
535
|
536
|
<style lang="scss" scoped>
|