|
@@ -1,6 +1,6 @@
|
1
|
1
|
<template>
|
2
|
2
|
<div>
|
3
|
|
- <van-search v-model="schedulingVal"
|
|
3
|
+ <van-search v-model="schedulingVal"
|
4
|
4
|
@clear="onclear" @input="onUpdate" placeholder="请输入搜索关键词" />
|
5
|
5
|
<div class="xuanze">
|
6
|
6
|
<div class="xuanze_sele">
|
|
@@ -35,7 +35,7 @@
|
35
|
35
|
border
|
36
|
36
|
:fit="true"
|
37
|
37
|
:data="scheduleZone"
|
38
|
|
-
|
|
38
|
+
|
39
|
39
|
:height="tableContainHeight"
|
40
|
40
|
ref="table"
|
41
|
41
|
style="table-layout: fixed;"
|
|
@@ -169,20 +169,20 @@
|
169
|
169
|
<div class="patient_name" style="display: flex;">
|
170
|
170
|
<div style="flex: 1;margin-right: 10px;">
|
171
|
171
|
患者:
|
172
|
|
- <input type="text" v-model="edit_xiu.patient_xiu" onfocus="this.blur();" @click="clickhuanzhe" class="borders" >
|
|
172
|
+ <input type="text" v-model="edit_xiu.patient_xiu" onfocus="this.blur();" @click="clickhuanzhes = !clickhuanzhes" class="borders" >
|
173
|
173
|
</div>
|
174
|
174
|
<!-- 点击修改 :close-on-click-modal = 'false'-->
|
175
|
175
|
<el-dialog class="huanzhe_xiu"
|
176
|
176
|
:visible.sync="clickhuanzhes"
|
177
|
177
|
:append-to-body = 'true'
|
178
|
|
-
|
|
178
|
+
|
179
|
179
|
:show-close="false"
|
180
|
180
|
width="50%">
|
181
|
181
|
<div>
|
182
|
182
|
<div class="listBox">
|
183
|
|
- <van-search v-model="schedulingVal2" @clear="onclear2"
|
|
183
|
+ <van-search v-model="schedulingVal2" @clear="onclear2"
|
184
|
184
|
@input="onUpdate2" placeholder="请输入搜索关键词" />
|
185
|
|
- <div v-for="(item,index) in huangxiu_arr" :key='index' @click="Select_click(item,1)">
|
|
185
|
+ <div v-for="(item,index) in huangxiu_arr" :key='index' @click="Select_click(item)">
|
186
|
186
|
{{ item.name }}
|
187
|
187
|
</div>
|
188
|
188
|
</div>
|
|
@@ -191,15 +191,17 @@
|
191
|
191
|
</div>
|
192
|
192
|
</div>
|
193
|
193
|
</el-dialog>
|
194
|
|
-
|
|
194
|
+
|
195
|
195
|
<div style="flex: 1;">
|
196
|
|
- 日期:<el-date-picker
|
|
196
|
+ 日期:
|
|
197
|
+ <!-- <el-date-picker
|
197
|
198
|
v-model="edit_xiu.date_xiu"
|
198
|
199
|
type="date"
|
199
|
200
|
placeholder="选择日期"
|
200
|
|
- style="width: 150px;">
|
201
|
|
- </el-date-picker>
|
202
|
|
- <!-- <input type="text" v-model="edit_xiu.date_xiu" onfocus="this.blur();" class="borders"> -->
|
|
201
|
+ style="width: 150px;"
|
|
202
|
+ @change="timechange">
|
|
203
|
+ </el-date-picker> -->
|
|
204
|
+ <input type="text" v-model="edit_xiu.date_xiu" onfocus="this.blur();" class="borders">
|
203
|
205
|
</div>
|
204
|
206
|
</div>
|
205
|
207
|
<div class="patient_name">
|
|
@@ -207,13 +209,13 @@
|
207
|
209
|
<el-dialog class="huanzhe_xiu"
|
208
|
210
|
:visible.sync="clickmode"
|
209
|
211
|
:append-to-body = 'true'
|
210
|
|
-
|
|
212
|
+
|
211
|
213
|
:show-close="false"
|
212
|
214
|
width="50%">
|
213
|
215
|
<div>
|
214
|
216
|
<div class="listBox">
|
215
|
|
- <div v-for="(item,index) in mode" :key='index' @click="Select_mode(item,1)"
|
216
|
|
- :style="{'color':item.name==edit_xiu.mode_xiu ? '#409eff':''}">
|
|
217
|
+ <div v-for="(item,index) in mode" :key='index' @click="Select_mode(item)"
|
|
218
|
+ :style="{'color':item.id==edit_xiu.modeid_xiu ? '#409eff':''}">
|
217
|
219
|
{{ item.name }}
|
218
|
220
|
</div>
|
219
|
221
|
</div>
|
|
@@ -222,16 +224,16 @@
|
222
|
224
|
</div>
|
223
|
225
|
</div>
|
224
|
226
|
</el-dialog>
|
225
|
|
-
|
|
227
|
+
|
226
|
228
|
</div>
|
227
|
|
-
|
|
229
|
+
|
228
|
230
|
<div class="patient_name" style="line-height: 40px;display: flex;">
|
229
|
231
|
<div style="flex: 1;">班次:</div>
|
230
|
232
|
<div style="flex: 8;">
|
231
|
233
|
<ul class>
|
232
|
234
|
<li
|
233
|
235
|
:class="item.value == edit_xiu.type_xiu ? 'active' : ''"
|
234
|
|
- @click="selectSchedulType(item.value,1)"
|
|
236
|
+ @click="selectSchedulType(item.value)"
|
235
|
237
|
v-for="item in schedulArr"
|
236
|
238
|
:key="item.value"
|
237
|
239
|
>
|
|
@@ -245,13 +247,13 @@
|
245
|
247
|
<el-dialog class="huanzhe_xiu"
|
246
|
248
|
:visible.sync="clickfenqu"
|
247
|
249
|
:append-to-body = 'true'
|
248
|
|
-
|
|
250
|
+
|
249
|
251
|
:show-close="false"
|
250
|
252
|
width="50%">
|
251
|
253
|
<div>
|
252
|
254
|
<div class="listBox">
|
253
|
|
- <div v-for="(item,index) in fenqu_arr" :key='index' @click="Select_fenqu(item,1)"
|
254
|
|
- :style="{'color':item.name==edit_xiu.fenqu_xiu ? '#409eff':''}">
|
|
255
|
+ <div v-for="(item,index) in fenqu_arr" :key='index' @click="Select_fenqu(item)"
|
|
256
|
+ :style="{'color':item.id==edit_xiu.zong_id ? '#409eff':''}">
|
255
|
257
|
{{ item.name }}
|
256
|
258
|
</div>
|
257
|
259
|
</div>
|
|
@@ -266,12 +268,12 @@
|
266
|
268
|
<el-dialog class="huanzhe_xiu"
|
267
|
269
|
:visible.sync="clickjihao"
|
268
|
270
|
:append-to-body = 'true'
|
269
|
|
-
|
|
271
|
+
|
270
|
272
|
:show-close="false"
|
271
|
273
|
width="50%">
|
272
|
274
|
<div>
|
273
|
275
|
<div class="listBox">
|
274
|
|
- <div v-for="(item,index) in jihao_arr" :key='index' @click="Select_jihao(item,1)"
|
|
276
|
+ <div v-for="(item,index) in jihao_arr" :key='index' @click="Select_jihao(item)"
|
275
|
277
|
:style="{'color':item.cut==edit_xiu.jihao_xiu ? '#409eff':''}">
|
276
|
278
|
{{ item.cut }}
|
277
|
279
|
</div>
|
|
@@ -314,76 +316,74 @@
|
314
|
316
|
center
|
315
|
317
|
>
|
316
|
318
|
<div style="font-size: 15px;">
|
317
|
|
-
|
|
319
|
+
|
318
|
320
|
<div class="patient_name" style="display: flex;">
|
319
|
321
|
<div style="flex: 1;margin-right: 10px;">
|
320
|
322
|
患者:
|
321
|
|
- <input type="text" v-model="add_arr.patient_add" onfocus="this.blur();" @click="clickhuanzhe" class="borders" >
|
|
323
|
+ <input type="text" v-model="add_arr.patient_add" onfocus="this.blur();" @click="clickhuanzhes2= !clickhuanzhes2" class="borders" >
|
322
|
324
|
</div>
|
323
|
325
|
<!-- 点击修改 :close-on-click-modal = 'false'-->
|
324
|
326
|
<el-dialog class="huanzhe_xiu"
|
325
|
|
- :visible.sync="clickhuanzhes"
|
|
327
|
+ :visible.sync="clickhuanzhes2"
|
326
|
328
|
:append-to-body = 'true'
|
327
|
|
-
|
|
329
|
+
|
328
|
330
|
:show-close="false"
|
329
|
331
|
width="50%">
|
330
|
332
|
<div>
|
331
|
|
- <!-- <div style="height: 30px;">
|
332
|
|
- <el-input v-model="schedulingVal2" @input="onUpdate2" placeholder="请输入内容"></el-input>
|
333
|
|
- </div> -->
|
334
|
333
|
<div class="listBox">
|
335
|
|
- <van-search v-model="schedulingVal2" @clear="onclear2"
|
|
334
|
+ <van-search v-model="schedulingVal2" @clear="onclear2"
|
336
|
335
|
@input="onUpdate2" placeholder="请输入搜索关键词" />
|
337
|
|
- <div v-for="(item,index) in huangxiu_arr" :key='index' @click="Select_click(item,2)">
|
|
336
|
+ <div v-for="(item,index) in huangxiu_arr" :key='index' @click="Select_click2(item)">
|
338
|
337
|
{{ item.name }}
|
339
|
338
|
</div>
|
340
|
339
|
</div>
|
341
|
|
- <div class="Cancelclass" @click="Cancel_click">
|
|
340
|
+ <div class="Cancelclass" @click="clickhuanzhes2 = !clickhuanzhes2">
|
342
|
341
|
取消
|
343
|
342
|
</div>
|
344
|
343
|
</div>
|
345
|
344
|
</el-dialog>
|
346
|
|
-
|
|
345
|
+
|
347
|
346
|
<div style="flex: 1;">
|
348
|
|
- 日期:<el-date-picker
|
|
347
|
+ 日期:
|
|
348
|
+ <!-- <el-date-picker
|
349
|
349
|
v-model="add_arr.date_add"
|
350
|
350
|
type="date"
|
351
|
351
|
placeholder="选择日期"
|
352
|
352
|
style="width: 150px;">
|
353
|
|
- </el-date-picker>
|
354
|
|
- <!-- <input type="text" v-model="edit_xiu.date_xiu" onfocus="this.blur();" class="borders"> -->
|
|
353
|
+ </el-date-picker> -->
|
|
354
|
+ <input type="text" v-model="add_arr.date_add" onfocus="this.blur();" class="borders">
|
355
|
355
|
</div>
|
356
|
356
|
</div>
|
357
|
357
|
<div class="patient_name">
|
358
|
|
- 透析模式:<input type="text" v-model="add_arr.mode_add" onfocus="this.blur();" @click="clickmode = true" class="borders">
|
|
358
|
+ 透析模式:<input type="text" v-model="add_arr.mode_add" onfocus="this.blur();" @click="clickmode2 = true" class="borders">
|
359
|
359
|
<el-dialog class="huanzhe_xiu"
|
360
|
|
- :visible.sync="clickmode"
|
|
360
|
+ :visible.sync="clickmode2"
|
361
|
361
|
:append-to-body = 'true'
|
362
|
|
-
|
|
362
|
+
|
363
|
363
|
:show-close="false"
|
364
|
364
|
width="50%">
|
365
|
365
|
<div>
|
366
|
366
|
<div class="listBox">
|
367
|
|
- <div v-for="(item,index) in mode" :key='index' @click="Select_mode(item,2)"
|
368
|
|
- :style="{'color':item.name==add_arr.mode_add ? '#409eff':''}">
|
|
367
|
+ <div v-for="(item,index) in mode" :key='index' @click="Select_mode2(item)"
|
|
368
|
+ :style="{'color':item.id==add_arr.modeid_add ? '#409eff':''}">
|
369
|
369
|
{{ item.name }}
|
370
|
370
|
</div>
|
371
|
371
|
</div>
|
372
|
|
- <div class="Cancelclass" @click="mode_click">
|
|
372
|
+ <div class="Cancelclass" @click="clickmode2 = !clickmode2">
|
373
|
373
|
取消
|
374
|
374
|
</div>
|
375
|
375
|
</div>
|
376
|
376
|
</el-dialog>
|
377
|
|
-
|
|
377
|
+
|
378
|
378
|
</div>
|
379
|
|
-
|
|
379
|
+
|
380
|
380
|
<div class="patient_name" style="line-height: 40px;display: flex;">
|
381
|
381
|
<div style="flex: 1;">班次:</div>
|
382
|
382
|
<div style="flex: 8;">
|
383
|
383
|
<ul class>
|
384
|
384
|
<li
|
385
|
385
|
:class="item.value == add_arr.type_add ? 'active' : ''"
|
386
|
|
- @click="selectSchedulType(item.value,2)"
|
|
386
|
+ @click="selectSchedulType2(item.value)"
|
387
|
387
|
v-for="item in schedulArr"
|
388
|
388
|
:key="item.value"
|
389
|
389
|
>
|
|
@@ -393,42 +393,42 @@
|
393
|
393
|
</div>
|
394
|
394
|
</div>
|
395
|
395
|
<div class="patient_name">
|
396
|
|
- 分区:<input type="text" v-model="add_arr.fenqu_add" onfocus="this.blur();" @click="clickfenqu=true" class="borders">
|
|
396
|
+ 分区:<input type="text" v-model="add_arr.fenqu_add" onfocus="this.blur();" @click="clickfenqu2=true" class="borders">
|
397
|
397
|
<el-dialog class="huanzhe_xiu"
|
398
|
|
- :visible.sync="clickfenqu"
|
|
398
|
+ :visible.sync="clickfenqu2"
|
399
|
399
|
:append-to-body = 'true'
|
400
|
|
-
|
|
400
|
+
|
401
|
401
|
:show-close="false"
|
402
|
402
|
width="50%">
|
403
|
403
|
<div>
|
404
|
404
|
<div class="listBox">
|
405
|
|
- <div v-for="(item,index) in fenqu_arr" :key='index' @click="Select_fenqu(item,2)"
|
406
|
|
- :style="{'color':item.name==add_arr.fenqu_add ? '#409eff':''}">
|
|
405
|
+ <div v-for="(item,index) in fenqu_arr" :key='index' @click="Select_fenqu2(item)"
|
|
406
|
+ :style="{'color':item.id==add_arr.zong_id ? '#409eff':''}">
|
407
|
407
|
{{ item.name }}
|
408
|
408
|
</div>
|
409
|
409
|
</div>
|
410
|
|
- <div class="Cancelclass" @click="fenqu_click">
|
|
410
|
+ <div class="Cancelclass" @click="clickfenqu2 = !clickfenqu2">
|
411
|
411
|
取消
|
412
|
412
|
</div>
|
413
|
413
|
</div>
|
414
|
414
|
</el-dialog>
|
415
|
415
|
</div>
|
416
|
416
|
<div class="patient_name">
|
417
|
|
- 机号:<input type="text" v-model="add_arr.jihao_add" onfocus="this.blur();" @click="clickjihao = true" class="borders">
|
|
417
|
+ 机号:<input type="text" v-model="add_arr.jihao_add" onfocus="this.blur();" @click="clickjihao2 = true" class="borders">
|
418
|
418
|
<el-dialog class="huanzhe_xiu"
|
419
|
|
- :visible.sync="clickjihao"
|
|
419
|
+ :visible.sync="clickjihao2"
|
420
|
420
|
:append-to-body = 'true'
|
421
|
|
-
|
|
421
|
+
|
422
|
422
|
:show-close="false"
|
423
|
423
|
width="50%">
|
424
|
424
|
<div>
|
425
|
425
|
<div class="listBox">
|
426
|
|
- <div v-for="(item,index) in jihao_arr" :key='index' @click="Select_jihao(item,2)"
|
427
|
|
- :style="{'color':item.cut==add_arr.jihao_add ? '#409eff':''}">
|
|
426
|
+ <div v-for="(item,index) in jihao_arr" :key='index' @click="Select_jihao2(item)"
|
|
427
|
+ :style="{'color':item.jihao_id==add_arr.bed_id ? '#409eff':''}">
|
428
|
428
|
{{ item.cut }}
|
429
|
429
|
</div>
|
430
|
430
|
</div>
|
431
|
|
- <div class="Cancelclass" @click="jihao_click">
|
|
431
|
+ <div class="Cancelclass" @click="clickjihao2 =! clickjihao2">
|
432
|
432
|
取消
|
433
|
433
|
</div>
|
434
|
434
|
</div>
|
|
@@ -442,7 +442,7 @@
|
442
|
442
|
</el-dialog>
|
443
|
443
|
<!-- 删除确认弹窗 -->
|
444
|
444
|
<el-dialog class="xiugai"
|
445
|
|
-
|
|
445
|
+
|
446
|
446
|
:visible.sync="deleteshow"
|
447
|
447
|
title="温馨提示"
|
448
|
448
|
:show-close="false"
|
|
@@ -455,89 +455,15 @@
|
455
|
455
|
<el-button @click="deleteshow=!deleteshow">取 消</el-button>
|
456
|
456
|
</span>
|
457
|
457
|
</el-dialog>
|
458
|
|
- <!-- 点击修改日期 -->
|
459
|
|
- <el-dialog
|
460
|
|
- :visible.sync="clickhuanzhes"
|
461
|
|
- width="50%">
|
462
|
458
|
|
463
|
|
- </el-dialog>
|
464
|
|
- <el-dialog
|
465
|
|
- title="提示"
|
466
|
|
- :visible.sync="dialogVisible"
|
467
|
|
- width="80%"
|
468
|
|
- >
|
469
|
|
- <div style="display: flex;">
|
470
|
|
- <div style="flex: 1.5;">
|
471
|
|
- <div class="dialog">
|
472
|
|
- 分区:
|
473
|
|
- <el-select v-model="value" placeholder="请选择" style="">
|
474
|
|
- <el-option
|
475
|
|
- v-for="item in options"
|
476
|
|
- :key="item.value"
|
477
|
|
- :label="item.label"
|
478
|
|
- :value="item.value">
|
479
|
|
- </el-option>
|
480
|
|
- </el-select>
|
481
|
|
- </div>
|
482
|
|
- <div class="dialog">
|
483
|
|
- 床位:
|
484
|
|
- <el-select v-model="value" placeholder="请选择" style="">
|
485
|
|
- <el-option
|
486
|
|
- v-for="item in options"
|
487
|
|
- :key="item.value"
|
488
|
|
- :label="item.label"
|
489
|
|
- :value="item.value">
|
490
|
|
- </el-option>
|
491
|
|
- </el-select>
|
492
|
|
- </div>
|
493
|
|
- <div>
|
494
|
|
- 模式:
|
495
|
|
- <el-select v-model="value" placeholder="请选择" style="">
|
496
|
|
- <el-option
|
497
|
|
- v-for="item in options"
|
498
|
|
- :key="item.value"
|
499
|
|
- :label="item.label"
|
500
|
|
- :value="item.value">
|
501
|
|
- </el-option>
|
502
|
|
- </el-select>
|
503
|
|
- </div>
|
504
|
|
- </div>
|
505
|
|
- <div style="margin-left: 20px;flex: 0.5;">
|
506
|
|
- <div class="huanze_xinxi">
|
507
|
|
- <span>
|
508
|
|
- 小明(HD)
|
509
|
|
- </span>
|
510
|
|
- <span>A区 2号床</span>
|
511
|
|
- </div>
|
512
|
|
-
|
513
|
|
- </div>
|
514
|
|
- </div>
|
515
|
|
- <span slot="footer" class="dialog-footer">
|
516
|
|
- <el-button @click="dialogVisible = false">取 消</el-button>
|
517
|
|
- <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
|
518
|
|
- </span>
|
519
|
|
- </el-dialog>
|
520
|
|
- <!-- 长按删除 -->
|
521
|
|
- <el-dialog
|
522
|
|
- title="提示"
|
523
|
|
- :visible.sync="dele_dialogVisible"
|
524
|
|
- width="80%"
|
525
|
|
- center
|
526
|
|
- >
|
527
|
|
- <span>确认删除该数据</span>
|
528
|
|
- <span slot="footer" class="dialog-footer">
|
529
|
|
- <el-button @click="dele_dialogVisible = false">取 消</el-button>
|
530
|
|
- <el-button type="primary" @click="dele_dialogVisible = false">确 定</el-button>
|
531
|
|
- </span>
|
532
|
|
- </el-dialog>
|
533
|
|
-
|
|
459
|
+
|
534
|
460
|
</div>
|
535
|
461
|
</template>
|
536
|
462
|
|
537
|
463
|
<script>
|
538
|
464
|
import { getPatientScheduleList, GetAllZone, GetAllZonePb, DeleteSchedule,
|
539
|
465
|
searchPatient, updatePatientSchedule, getAllPatient, createSchedule, updateScheduleInfo,
|
540
|
|
- updateScheduleMode, updateScheduleDialysisPrescription, getSolutionSchedule, getAllBedList,
|
|
466
|
+ updateScheduleMode, updateScheduleDialysisPrescription, getSolutionSchedule, getAllBedList,
|
541
|
467
|
changeScheduleModeById, changeScheduleType, changeScheduleBed } from '@/api/staff_schedule'
|
542
|
468
|
import {GetRangeValue, GetAllPatients, GetInspectionIndexInit} from '@/api/statistics'
|
543
|
469
|
const moment = require('moment')
|
|
@@ -567,9 +493,13 @@ export default{
|
567
|
493
|
xiugaishow:false,
|
568
|
494
|
visible:false,
|
569
|
495
|
clickhuanzhes:false,
|
|
496
|
+ clickhuanzhes2:false,
|
570
|
497
|
clickmode:false,
|
|
498
|
+ clickmode2:false,
|
571
|
499
|
clickfenqu:false,
|
|
500
|
+ clickfenqu2:false,
|
572
|
501
|
clickjihao:false,
|
|
502
|
+ clickjihao2:false,
|
573
|
503
|
jiaotishow:false,
|
574
|
504
|
addshow:false,//新增弹窗
|
575
|
505
|
deleteshow:false,//删除弹窗
|
|
@@ -608,6 +538,7 @@ export default{
|
608
|
538
|
bed_id:'',
|
609
|
539
|
zong_id:'',
|
610
|
540
|
patient_id:0,
|
|
541
|
+ mode_id:0
|
611
|
542
|
},
|
612
|
543
|
edit_xiu:{
|
613
|
544
|
patient_xiu:'',
|
|
@@ -686,7 +617,7 @@ export default{
|
686
|
617
|
var arr = []
|
687
|
618
|
const fenqu_arr=[]
|
688
|
619
|
const jihao=[]
|
689
|
|
-
|
|
620
|
+
|
690
|
621
|
var bingqu='全部病区'
|
691
|
622
|
this.areaColumns.push(bingqu)
|
692
|
623
|
if(resp_data.length>0){
|
|
@@ -694,7 +625,6 @@ export default{
|
694
|
625
|
bingqu=resp_data[i].name
|
695
|
626
|
this.areaColumns.push(bingqu)
|
696
|
627
|
}
|
697
|
|
- // console.log('gggwwww',this.areaColumns);
|
698
|
628
|
list.forEach(function(params) {
|
699
|
629
|
var fenquobj={
|
700
|
630
|
id:params.id,
|
|
@@ -710,7 +640,7 @@ export default{
|
710
|
640
|
cut: device.number,
|
711
|
641
|
jihao_id: device.id,
|
712
|
642
|
sort:device.sort,
|
713
|
|
-
|
|
643
|
+
|
714
|
644
|
Mon_M: {
|
715
|
645
|
schedule_id: 0,
|
716
|
646
|
mode_id: 0,
|
|
@@ -759,7 +689,7 @@ export default{
|
759
|
689
|
zone_id:device.zone_id,
|
760
|
690
|
area: params.name,
|
761
|
691
|
schedule_week:'',
|
762
|
|
-
|
|
692
|
+
|
763
|
693
|
},
|
764
|
694
|
}
|
765
|
695
|
var jihaoobj = {
|
|
@@ -768,7 +698,7 @@ export default{
|
768
|
698
|
zone_id:device.zone_id
|
769
|
699
|
}
|
770
|
700
|
device.schedule.forEach(function(item){
|
771
|
|
-
|
|
701
|
+
|
772
|
702
|
if(item.schedule_type==1&&item.bed_id==device.id){
|
773
|
703
|
thisPa['Mon_M']={
|
774
|
704
|
schedule_id: item.id,
|
|
@@ -823,12 +753,10 @@ export default{
|
823
|
753
|
schedule_week:item.schedule_week,
|
824
|
754
|
}
|
825
|
755
|
}
|
826
|
|
-
|
|
756
|
+
|
827
|
757
|
})
|
828
|
758
|
arr.push(thisPa)
|
829
|
759
|
jihao.push(jihaoobj)
|
830
|
|
-
|
831
|
|
- // console.log("34455555566666",this.list.p);
|
832
|
760
|
})
|
833
|
761
|
}
|
834
|
762
|
})
|
|
@@ -889,12 +817,11 @@ export default{
|
889
|
817
|
endem_confirm(value){
|
890
|
818
|
this.area_type = value
|
891
|
819
|
this.endemicshow=false
|
892
|
|
-
|
|
820
|
+
|
893
|
821
|
this.getlist()
|
894
|
822
|
},
|
895
|
823
|
// 清除搜索
|
896
|
824
|
onclear(){
|
897
|
|
- // console.log('mmmmmmm');
|
898
|
825
|
this.getlist()
|
899
|
826
|
},
|
900
|
827
|
onclear2(){
|
|
@@ -918,10 +845,8 @@ export default{
|
918
|
845
|
}
|
919
|
846
|
}
|
920
|
847
|
this.scheduleZone=suos
|
921
|
|
- console.log('222222',suos);
|
922
|
848
|
},
|
923
|
849
|
onUpdate2(val){
|
924
|
|
- console.log('qwertyuii',val);
|
925
|
850
|
this.schedulingVal2=val
|
926
|
851
|
const namearr = []
|
927
|
852
|
for(let i in this.huangxiu_arr){
|
|
@@ -948,6 +873,7 @@ export default{
|
948
|
873
|
schedule_id:value.schedule_id,
|
949
|
874
|
zong_id:value.zone_id,
|
950
|
875
|
patient_id:value.patient_id,
|
|
876
|
+ mode_id:value.mode_id,
|
951
|
877
|
}
|
952
|
878
|
this.edit_xiu={
|
953
|
879
|
patient_xiu:value.patient,
|
|
@@ -976,10 +902,9 @@ export default{
|
976
|
902
|
// 新增
|
977
|
903
|
newappend(item){
|
978
|
904
|
this.addshow = true
|
979
|
|
- console.log(item);
|
980
|
905
|
this.add_arr={
|
981
|
906
|
patient_add:'',
|
982
|
|
- date_add:new Date(),
|
|
907
|
+ date_add: this.gettouxitime(new Date()) ,
|
983
|
908
|
mode_add:'',
|
984
|
909
|
type_add: item.schedule_type,
|
985
|
910
|
fenqu_add:item.area,
|
|
@@ -992,6 +917,7 @@ export default{
|
992
|
917
|
patientid_add:0,
|
993
|
918
|
schedule_week:0,
|
994
|
919
|
}
|
|
920
|
+ console.log('gggggg',this.add_arr);
|
995
|
921
|
},
|
996
|
922
|
// 删除
|
997
|
923
|
delete_click(item){
|
|
@@ -1003,12 +929,6 @@ export default{
|
1003
|
929
|
mode_id:item.mode_id,
|
1004
|
930
|
schedule_id:item.schedule_id.toString()
|
1005
|
931
|
}
|
1006
|
|
- console.log(this.deletehuan);
|
1007
|
|
- },
|
1008
|
|
- // 点击修改患者
|
1009
|
|
- clickhuanzhe(){
|
1010
|
|
- // if(num==1)
|
1011
|
|
- this.clickhuanzhes = true
|
1012
|
932
|
},
|
1013
|
933
|
//真正长按后应该执行的内容
|
1014
|
934
|
longPress(val) {
|
|
@@ -1042,88 +962,106 @@ export default{
|
1042
|
962
|
this.clickhuanzhes=false
|
1043
|
963
|
},
|
1044
|
964
|
// 选中修改患者
|
1045
|
|
- Select_click(val,num){
|
|
965
|
+ Select_click(val){
|
1046
|
966
|
console.log('val',val);
|
1047
|
|
- if(num==1){
|
1048
|
967
|
this.edit_xiu.patient_xiu=val.name
|
1049
|
968
|
this.edit_xiu.patientid_xiu =val.id
|
1050
|
969
|
this.clickhuanzhes = false
|
1051
|
|
- }else{
|
|
970
|
+ // return this.edit_xiu.patient_xiu
|
|
971
|
+ },
|
|
972
|
+ Select_click2(val){
|
|
973
|
+ console.log('val',val);
|
1052
|
974
|
this.add_arr.patient_add = val.name
|
1053
|
975
|
this.add_arr.patientid_add = val.id
|
1054
|
|
- this.clickhuanzhes = false
|
1055
|
|
- }
|
1056
|
|
-
|
|
976
|
+ this.clickhuanzhes2 = false
|
|
977
|
+ console.log('aaaaaa', this.add_arr.patient_add,this.add_arr.patientid_add);
|
|
978
|
+ return this.add_arr.patient_add
|
1057
|
979
|
},
|
1058
|
980
|
// 取消修改模式
|
1059
|
981
|
mode_click(){
|
1060
|
982
|
this.clickmode = false
|
1061
|
983
|
},
|
|
984
|
+ // 选中时间
|
|
985
|
+ // timechange(val){
|
|
986
|
+ // this.edit_xiu.date_xiu = val
|
|
987
|
+ // this.edit_xiu.date = val.getTime()/1000
|
|
988
|
+ // // moment(val).format('yyyy-MM-DD')
|
|
989
|
+ // console.log('rrrrrrr',val.getTime()/1000);
|
|
990
|
+ // },
|
|
991
|
+
|
1062
|
992
|
// 选中修改模式
|
1063
|
|
- Select_mode(val,num){
|
|
993
|
+ Select_mode(val){
|
1064
|
994
|
console.log('val',val);
|
1065
|
|
- if(num==1){
|
|
995
|
+
|
1066
|
996
|
this.edit_xiu.mode_xiu = val.name
|
1067
|
997
|
this.edit_xiu.modeid_xiu = val.id
|
1068
|
998
|
this.clickmode = false
|
1069
|
|
- }else{
|
|
999
|
+ },
|
|
1000
|
+ Select_mode2(val){
|
|
1001
|
+ console.log('val',val);
|
1070
|
1002
|
this.add_arr.mode_add = val.name
|
1071
|
1003
|
this.add_arr.modeid_add = val.id
|
1072
|
|
- this.clickmode = false
|
1073
|
|
- }
|
1074
|
|
-
|
|
1004
|
+ this.clickmode2 = false
|
|
1005
|
+
|
1075
|
1006
|
},
|
1076
|
1007
|
// 取消分区
|
1077
|
1008
|
fenqu_click(){
|
1078
|
1009
|
this.clickfenqu=false
|
1079
|
1010
|
},
|
1080
|
1011
|
// 选中修改分区
|
1081
|
|
- Select_fenqu(val,num){
|
|
1012
|
+ Select_fenqu(val){
|
1082
|
1013
|
const hao_arr = []
|
1083
|
|
-
|
1084
|
|
-
|
1085
|
|
- console.log('val',val,this.jihao_arr2);
|
1086
|
|
- if(num==1){
|
1087
|
1014
|
this.edit_xiu.fenqu_xiu = val.name
|
1088
|
|
- }else{
|
|
1015
|
+ this.edit_xiu.zong_id = val.id
|
|
1016
|
+ for(let i in this.jihao_arr2){
|
|
1017
|
+ if(this.jihao_arr2[i].zone_id==val.id){
|
|
1018
|
+ console.log('val',val,this.jihao_arr2[i]);
|
|
1019
|
+ hao_arr.push(this.jihao_arr2[i])
|
|
1020
|
+ }
|
|
1021
|
+ }
|
|
1022
|
+ this.jihao_arr = hao_arr
|
|
1023
|
+ this.clickfenqu = false
|
|
1024
|
+
|
|
1025
|
+ },
|
|
1026
|
+ // 新增修改分区
|
|
1027
|
+ Select_fenqu2(val){
|
|
1028
|
+ const hao_arr = []
|
1089
|
1029
|
// this.add_arr.fenqu_add =this.hao
|
1090
|
1030
|
this.add_arr.fenqu_add = val.name
|
1091
|
|
- }
|
|
1031
|
+ this.add_arr.zong_id = val.id
|
1092
|
1032
|
for(let i in this.jihao_arr2){
|
1093
|
1033
|
if(this.jihao_arr2[i].zone_id==val.id){
|
1094
|
|
- // console.log('vvvvvv',this.jihao_arr2[i]);
|
|
1034
|
+ console.log('val',val,this.jihao_arr2[i]);
|
1095
|
1035
|
hao_arr.push(this.jihao_arr2[i])
|
1096
|
1036
|
}
|
1097
|
1037
|
}
|
1098
|
1038
|
this.jihao_arr = hao_arr
|
1099
|
|
- this.clickfenqu = false
|
1100
|
|
-
|
|
1039
|
+ this.clickfenqu2 = false
|
|
1040
|
+
|
1101
|
1041
|
},
|
1102
|
1042
|
// 修改班次
|
1103
|
|
- selectSchedulType(value,num){
|
1104
|
|
- if(num==1){
|
1105
|
|
- this.edit_xiu.type_xiu = value
|
1106
|
|
- }else{
|
1107
|
|
- this.add_arr.type_add = value
|
1108
|
|
- }
|
1109
|
|
-
|
|
1043
|
+ selectSchedulType(value){
|
|
1044
|
+ this.edit_xiu.type_xiu = value
|
|
1045
|
+ },
|
|
1046
|
+ selectSchedulType2(value){
|
|
1047
|
+ this.add_arr.type_add = value
|
1110
|
1048
|
},
|
1111
|
1049
|
// 修改选中机号
|
1112
|
|
- Select_jihao(val,num){
|
1113
|
|
- if(num==1){
|
|
1050
|
+ Select_jihao(val){
|
1114
|
1051
|
console.log('vvvvv',val);
|
1115
|
1052
|
this.clickjihao = false
|
1116
|
1053
|
this.edit_xiu.jihao_xiu =val.cut
|
1117
|
1054
|
this.edit_xiu.bed_id = val.jihao_id
|
1118
|
1055
|
this.edit_xiu.zong_id = val.zone_id
|
1119
|
|
- }else{
|
|
1056
|
+ },
|
|
1057
|
+ Select_jihao2(val){
|
|
1058
|
+
|
1120
|
1059
|
console.log('vvvvv',val);
|
1121
|
|
- this.clickjihao = false
|
|
1060
|
+ this.clickjihao2 = false
|
1122
|
1061
|
this.add_arr.jihao_add =val.cut
|
1123
|
1062
|
this.add_arr.bed_id = val.jihao_id
|
1124
|
1063
|
this.add_arr.zong_id = val.zone_id
|
1125
|
|
- }
|
1126
|
|
-
|
|
1064
|
+
|
1127
|
1065
|
},
|
1128
|
1066
|
// 取消修改机号
|
1129
|
1067
|
jihao_click(){
|
|
@@ -1133,16 +1071,13 @@ export default{
|
1133
|
1071
|
xiugai_edit(){
|
1134
|
1072
|
// && this.edit_xiu.patientid_xiu==this.editvalue.patient_id
|
1135
|
1073
|
const scheduleZone = this.scheduleZone
|
1136
|
|
- // for(let i in this.list){
|
1137
|
|
- // for()
|
1138
|
|
- // }
|
1139
|
|
- // if(this.edit_xiu.bed_id == this.editvalue.bed_id && this.edit_xiu.type_xiu == this.editvalue.schedulType){
|
1140
|
|
-
|
1141
|
|
- // }
|
1142
|
|
- if(this.edit_xiu.patientid_xiu==this.editvalue.patient_id){
|
|
1074
|
+
|
|
1075
|
+ if(this.edit_xiu.patientid_xiu==this.editvalue.patient_id &&
|
|
1076
|
+ this.edit_xiu.modeid_xiu==this.editvalue.mode_id &&
|
|
1077
|
+ this.edit_xiu.date == this.editvalue.schedule_date){
|
1143
|
1078
|
for(let i in scheduleZone){
|
1144
|
1079
|
if(this.edit_xiu.bed_id==scheduleZone[i].jihao_id){
|
1145
|
|
- console.log('88888883');
|
|
1080
|
+ // console.log('88888883');
|
1146
|
1081
|
if(this.edit_xiu.type_xiu==1){
|
1147
|
1082
|
if(scheduleZone[i].Mon_M.patient_id != ' '){
|
1148
|
1083
|
this.jiaotishow=true
|
|
@@ -1151,7 +1086,7 @@ export default{
|
1151
|
1086
|
name: scheduleZone[i].Mon_M.patient,
|
1152
|
1087
|
mode_id: scheduleZone[i].Mon_M.mode_id
|
1153
|
1088
|
}
|
1154
|
|
- console.log('1111111',scheduleZone[i].Mon_M.schedule_id);
|
|
1089
|
+
|
1155
|
1090
|
}else{
|
1156
|
1091
|
let params={
|
1157
|
1092
|
schedule_type: this.edit_xiu.type_xiu,
|
|
@@ -1209,44 +1144,12 @@ export default{
|
1209
|
1144
|
}
|
1210
|
1145
|
}
|
1211
|
1146
|
}
|
1212
|
|
- // if(this.edit_xiu.bed_id == this.editvalue.bed_id && this.edit_xiu.type_xiu == this.editvalue.schedulType){
|
1213
|
|
- // // for(let i in this.list){
|
1214
|
|
- // // for(let j in this.list[i].device){
|
1215
|
|
- // // for(let x in this.list[i].device[j].schedule){
|
1216
|
|
- // // if(this.edit_xiu.bed_id == this.list[i].device[j].schedule[x].bed_id &&
|
1217
|
|
- // // this.edit_xiu.type_xiu==this.list[i].device[j].schedule[x].schedule_type
|
1218
|
|
- // // ){
|
1219
|
|
- // // console.log('this.list[i].device[j].schedule[x]',this.list[i].device[j].schedule[x]);
|
1220
|
|
- // // }
|
1221
|
|
- // // }
|
1222
|
|
- // // }
|
1223
|
|
- // // }
|
1224
|
|
- // if(this.edit_xiu.bed_id == scheduleZone[i].jihao_id){
|
1225
|
|
- // // console.log('qqqqq',this.list[0]);
|
1226
|
|
- // this.list[0].device[2].schedule[0].patient_id = this.edit_xiu.patientid_xiu
|
1227
|
|
- // this.list[0].device[2].schedule[0].patient.name= this.edit_xiu.patient_xiu
|
1228
|
|
- // this.list[0].device[2].schedule[0].mode_id = this.edit_xiu.modeid_xiu
|
1229
|
|
- // // // if(this.edit_xiu.type_xiu==1){
|
1230
|
|
- // // scheduleZone[i].Mon_N.patient= this.edit_xiu.patient_xiu
|
1231
|
|
- // // scheduleZone[i].Mon_N.patient_id = this.edit_xiu.patientid_xiu
|
1232
|
|
- // // scheduleZone[i].Mon_N.mode_id = this.edit_xiu.modeid_xiu
|
1233
|
|
- // // // }
|
1234
|
|
-
|
1235
|
|
- // // this.getlist()
|
1236
|
|
- // this.xiugaishow=false
|
1237
|
|
- // // // this.scheduleZone = scheduleZone
|
1238
|
|
-
|
1239
|
|
- // // this.getlist()
|
1240
|
|
- // console.log('wwwwww',this.list);
|
1241
|
|
- // // return this.list
|
1242
|
|
- // // // console.log('scheduleZone[i]',scheduleZone[i]);
|
1243
|
|
- // }
|
1244
|
|
-
|
1245
|
|
- // }
|
|
1147
|
+
|
1246
|
1148
|
}
|
1247
|
1149
|
}else{
|
1248
|
|
- if(this.edit_xiu.bed_id == this.editvalue.bed_id && this.edit_xiu.type_xiu == this.editvalue.schedulType){
|
1249
|
|
- console.log('llllll',this.edit_xiu);
|
|
1150
|
+ if(this.edit_xiu.bed_id == this.editvalue.bed_id &&
|
|
1151
|
+ this.edit_xiu.type_xiu == this.editvalue.schedulType ){
|
|
1152
|
+
|
1250
|
1153
|
let params={
|
1251
|
1154
|
id_one:this.editvalue.patient_id,
|
1252
|
1155
|
id_two:this.edit_xiu.patientid_xiu,
|
|
@@ -1260,7 +1163,7 @@ export default{
|
1260
|
1163
|
}else{
|
1261
|
1164
|
for(let i in scheduleZone){
|
1262
|
1165
|
if(this.edit_xiu.bed_id==scheduleZone[i].jihao_id){
|
1263
|
|
- console.log('88888883');
|
|
1166
|
+
|
1264
|
1167
|
if(this.edit_xiu.type_xiu==1){
|
1265
|
1168
|
if(scheduleZone[i].Mon_M.patient_id != ' '){
|
1266
|
1169
|
this.jiaotishow=true
|
|
@@ -1330,12 +1233,11 @@ export default{
|
1330
|
1233
|
}
|
1331
|
1234
|
}
|
1332
|
1235
|
}
|
1333
|
|
-
|
|
1236
|
+
|
1334
|
1237
|
return this.jiaohuan.id
|
1335
|
1238
|
},
|
1336
|
1239
|
// 替换
|
1337
|
1240
|
Replace(){
|
1338
|
|
-
|
1339
|
1241
|
let params={
|
1340
|
1242
|
id_one:this.edit_xiu.schedule_id,
|
1341
|
1243
|
id_two:this.jiaohuan.id
|
|
@@ -1383,23 +1285,40 @@ export default{
|
1383
|
1285
|
},
|
1384
|
1286
|
// 新增患者
|
1385
|
1287
|
appendclick(){
|
|
1288
|
+ const scheduleZone = this.scheduleZone
|
1386
|
1289
|
let params={
|
1387
|
1290
|
patient_id: this.add_arr.patientid_add,
|
1388
|
1291
|
mode: this.add_arr.modeid_add,
|
1389
|
1292
|
schedule_type: this.add_arr.type_add,
|
1390
|
1293
|
bed: this.add_arr.bed_id
|
1391
|
1294
|
}
|
1392
|
|
- postUrgentSchedule(params).then((response) =>{
|
1393
|
|
- console.log('999999',response.data);
|
1394
|
|
- this.getlist()
|
1395
|
|
- })
|
|
1295
|
+ for(let i in scheduleZone){
|
|
1296
|
+ if(scheduleZone[i].Mon_M.patient_id !=''||
|
|
1297
|
+ scheduleZone[i].Mon_A.patient_id !=''||
|
|
1298
|
+ scheduleZone[i].Mon_N.patient_id !='')
|
|
1299
|
+ {
|
|
1300
|
+
|
|
1301
|
+ if(this.add_arr.patientid_add== scheduleZone[i].Mon_M.patient_id||
|
|
1302
|
+ this.add_arr.patientid_add== scheduleZone[i].Mon_A.patient_id||
|
|
1303
|
+ this.add_arr.patientid_add== scheduleZone[i].Mon_N.patient_id)
|
|
1304
|
+ {
|
|
1305
|
+ Toast('同一天不可以排两次班')
|
|
1306
|
+ }
|
|
1307
|
+ }else{
|
|
1308
|
+ postUrgentSchedule(params).then((response) =>{
|
|
1309
|
+ // console.log('999999',response.data);
|
|
1310
|
+
|
|
1311
|
+ })
|
|
1312
|
+ }
|
|
1313
|
+ // return
|
|
1314
|
+ }
|
1396
|
1315
|
this.addshow=false
|
1397
|
|
-
|
|
1316
|
+ this.getlist()
|
1398
|
1317
|
},
|
1399
|
1318
|
// 删除排班接口
|
1400
|
1319
|
getDeleteSchedule(id){
|
1401
|
1320
|
DeleteSchedule(id).then((response) =>{
|
1402
|
|
-
|
|
1321
|
+
|
1403
|
1322
|
if(response.data.state==1){
|
1404
|
1323
|
Toast('删除成功')
|
1405
|
1324
|
}else{
|
|
@@ -1410,7 +1329,7 @@ export default{
|
1410
|
1329
|
this.deleteshow=false
|
1411
|
1330
|
},
|
1412
|
1331
|
updateschedule(params){
|
1413
|
|
-
|
|
1332
|
+
|
1414
|
1333
|
updateschedule(params).then((response) => {
|
1415
|
1334
|
console.log('response.data',response.data);
|
1416
|
1335
|
this.xiugaishow=false
|
|
@@ -1476,7 +1395,7 @@ export default{
|
1476
|
1395
|
}
|
1477
|
1396
|
.patient_name{
|
1478
|
1397
|
padding: 10px 0;
|
1479
|
|
-
|
|
1398
|
+
|
1480
|
1399
|
}
|
1481
|
1400
|
.el-dialog__wrapper{
|
1482
|
1401
|
/deep/.el-dialog__header {
|
|
@@ -1530,7 +1449,7 @@ export default{
|
1530
|
1449
|
.modestyle{
|
1531
|
1450
|
color: #409EFE;
|
1532
|
1451
|
}
|
1533
|
|
-
|
|
1452
|
+
|
1534
|
1453
|
}
|
1535
|
1454
|
.Cancelclass{
|
1536
|
1455
|
text-align: center;
|
|
@@ -1551,9 +1470,9 @@ export default{
|
1551
|
1470
|
color: white;
|
1552
|
1471
|
}
|
1553
|
1472
|
}
|
1554
|
|
-
|
|
1473
|
+
|
1555
|
1474
|
}
|
1556
|
|
-
|
|
1475
|
+
|
1557
|
1476
|
}
|
1558
|
1477
|
.huanzhe_xiu{
|
1559
|
1478
|
.el-dialog{
|
|
@@ -1581,4 +1500,4 @@ export default{
|
1581
|
1500
|
}
|
1582
|
1501
|
}
|
1583
|
1502
|
}
|
1584
|
|
-</style>
|
|
1503
|
+</style>
|