|
@@ -57,25 +57,10 @@
|
57
|
57
|
<td style="text-align: center;">{{ getZoneName(ite.partition_id) }}</td>
|
58
|
58
|
<td>
|
59
|
59
|
<div v-for="(it,index) in numberlist" style="display: inline-block;position: relative;" @dblclick="db_click($event,it)">
|
60
|
|
- <!-- <template v-if="ite.partition_id==it.zone_id">
|
61
|
|
- <div v-for="(item2) in item.list" style="background:#14bacd ;" >
|
62
|
|
- <template >
|
63
|
|
- <div v-if="it.id==item2.bed_id" style="display: inline-block;">
|
64
|
|
- <div>
|
65
|
|
- <span>{{ item2.name }}({{ getmode(item2.mode_id) }})</span><br>
|
66
|
|
- <div v-if="hidder" >
|
67
|
|
- <span style="font-size: 14px;color: rgb(19, 241, 175);margin-bottom: 5px;">{{item2.order.DeviceNumber.zone.name}}-{{item2.order.DeviceNumber.number}}</span><br>
|
68
|
|
- <span style="font-size: 14px;color:orange;margin-bottom: 5px;">{{getBloodAccess(item2.order.blood_access_id)}}</span><br>
|
69
|
|
- <span style="font-size: 13px;color:rgb(102, 13, 161);margin-bottom: 5px;">{{item2.order.schedule_remark}}</span>
|
70
|
|
- </div>
|
71
|
|
- </div>
|
72
|
|
- </div>
|
73
|
|
- </template>
|
74
|
|
- </div>
|
75
|
|
- </template> @drop="drop($event)" @dragstart.self="curInfoDragStart($event)" @dragover="allowDrop"-->
|
76
|
|
- <div v-if="ite.partition_id==it.zone_id" class="huanzhekuais" style="" draggable="true" >
|
77
|
|
- <div class="huanzhekuai" >
|
78
|
|
- <div v-for="(item2) in item.list" @drop="drop($event,item2)" @dragstart.self="curInfoDragStart($event,item2)" @dragover="allowDrop">
|
|
60
|
+ <!-- <template> -->
|
|
61
|
+ <div v-if="ite.partition_id==it.zone_id" class="huanzhekuais" style="" @drop="drop($event,item)" draggable="true" @dragover="allowDrop">
|
|
62
|
+ <div class="huanzhekuai">
|
|
63
|
+ <div v-for="(item2) in item.list" draggable="true" @dragstart.self="curInfoDragStart($event,item2)">
|
79
|
64
|
<template >
|
80
|
65
|
<div v-if="it.id==item2.bed_id" style="display: inline-block;">
|
81
|
66
|
<div>
|
|
@@ -90,6 +75,19 @@
|
90
|
75
|
</template>
|
91
|
76
|
</div>
|
92
|
77
|
</div>
|
|
78
|
+
|
|
79
|
+ <!-- <div v-if="ite.partition_id==it.partition_id" style="max-height: 110px; margin-top: 10px;margin-bottom: 5px;background: rgb(74 197 235);" >
|
|
80
|
+ <span>{{ it.name }}({{ getmode(it.mode_id) }})</span><br>
|
|
81
|
+ <div v-if="value" >
|
|
82
|
+ <span style="font-size: 14px;color: rgb(12, 185, 50);margin-bottom: 5px;">{{it.order.DeviceNumber.zone.name}}-{{it.order.DeviceNumber.number}}</span><br>
|
|
83
|
+ <span style="font-size: 14px;color:orange;margin-bottom: 5px;">{{getBloodAccess(it.order.blood_access_id)}}</span><br>
|
|
84
|
+ <span style="font-size: 13px;color:rgb(102, 13, 161);margin-bottom: 5px;">{{it.order.schedule_remark}}</span>
|
|
85
|
+ </div>
|
|
86
|
+ </div> -->
|
|
87
|
+ <!-- <div
|
|
88
|
+ style="display: inline-block;width: 125px;text-align: center;position: absolute;">
|
|
89
|
+ {{ it.number }}
|
|
90
|
+ </div> -->
|
93
|
91
|
</div>
|
94
|
92
|
<div v-if="ite.partition_id==it.zone_id" style="display: inline-block;width: 125px;text-align: center;">
|
95
|
93
|
{{ it.number }}
|
|
@@ -241,6 +239,7 @@ import { GetAllZone, getSchedualPrintList } from '@/api/dialysis'
|
241
|
239
|
import { parseTime } from '@/utils'
|
242
|
240
|
import { uParseTime } from '@/utils/tools'
|
243
|
241
|
import { getDataConfig } from '@/utils/data'
|
|
242
|
+import {CreateScheduleTwo} from '@/api/schedule'
|
244
|
243
|
import {CoverSch,ExchangeSch,} from "@/api/schedule_template/sch_template";
|
245
|
244
|
import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
246
|
245
|
import print from 'print-js'
|
|
@@ -257,7 +256,6 @@ export default {
|
257
|
256
|
tipDialogVisible:false,
|
258
|
257
|
tipDialogVisibleTwo:false,
|
259
|
258
|
tipDialogVisibleThree:false,
|
260
|
|
- centerDialogVisible:false,
|
261
|
259
|
hidder: false,
|
262
|
260
|
td_1_width: '8%',
|
263
|
261
|
td_3_width: '90%',
|
|
@@ -265,19 +263,22 @@ export default {
|
265
|
263
|
classes:1,
|
266
|
264
|
bingqu:0,
|
267
|
265
|
fenqu_dialog:0,
|
268
|
|
- chuangwei:null,
|
|
266
|
+ chuangwei:519,
|
269
|
267
|
options:[],
|
|
268
|
+ centerDialogVisible:false,
|
270
|
269
|
cur_drag_info:{
|
271
|
270
|
id:'',
|
272
|
271
|
name:'',
|
273
|
272
|
quhao:'',
|
274
|
|
- chaung:'',
|
|
273
|
+ chaung:'',
|
|
274
|
+ patient_id:'',
|
275
|
275
|
},
|
276
|
276
|
currentData:{
|
277
|
277
|
currentData_id:'',
|
278
|
278
|
currentData_name:'',
|
279
|
279
|
currentData_quhao:'',
|
280
|
280
|
currentData_chaung:'',
|
|
281
|
+ patient_id:'',
|
281
|
282
|
},
|
282
|
283
|
schedulArr: [
|
283
|
284
|
{ value: 1, label: "上午" },
|
|
@@ -639,15 +640,63 @@ export default {
|
639
|
640
|
|
640
|
641
|
drop(e,val){
|
641
|
642
|
this.allowDrop(e)
|
642
|
|
- console.log('3333',this.currentData);
|
|
643
|
+
|
643
|
644
|
console.log('6666',val);
|
644
|
|
- this.currentData={
|
645
|
|
- currentData_id:val.id,
|
646
|
|
- currentData_name:val.name,
|
647
|
|
- currentData_quhao:val.order.DeviceNumber.zone.name,
|
648
|
|
- currentData_chaung:val.order.DeviceNumber.number,
|
649
|
|
- },
|
650
|
|
- this.tipDialogVisible=true
|
|
645
|
+ console.log('7777',this.numberlist);
|
|
646
|
+ const inntext= e.target.innerText.split('(')[0]
|
|
647
|
+ console.log('3333',inntext);
|
|
648
|
+ for(let i=0;i<val.list.length;i++){
|
|
649
|
+ if(inntext == val.list[i].name){
|
|
650
|
+ this.tipDialogVisible=true
|
|
651
|
+ this.currentData={
|
|
652
|
+ currentData_id:val.list[i].id,
|
|
653
|
+ currentData_name:val.list[i].name,
|
|
654
|
+ currentData_quhao:val.list[i].order.DeviceNumber.zone.name,
|
|
655
|
+ currentData_chaung:val.list[i].order.DeviceNumber.number,
|
|
656
|
+ patient_id:val.list[i].patient_id
|
|
657
|
+ }
|
|
658
|
+ }
|
|
659
|
+ }
|
|
660
|
+ if(e.target.innerText == ''){
|
|
661
|
+ this.currentData={
|
|
662
|
+ currentData_id:0,
|
|
663
|
+ currentData_name:this.cur_drag_info.name,
|
|
664
|
+ currentData_quhao:this.cur_drag_info.quhao,
|
|
665
|
+ currentData_chaung:this.cur_drag_info.chaung,
|
|
666
|
+ patient_id:this.cur_drag_info.patient_id
|
|
667
|
+ }
|
|
668
|
+ console.log('8888',this.currentData.currentData_id);
|
|
669
|
+ this.setScheduleTwo(this.cur_drag_info.id)
|
|
670
|
+ // var params={
|
|
671
|
+ // patient_id:this.currentData.patient_id,
|
|
672
|
+ // id_two:this.currentData.currentData_id
|
|
673
|
+ // }
|
|
674
|
+ // CreateScheduleTwo(this.currentData.patient_id,this.currentData.currentData_id).then((response)=>{
|
|
675
|
+ // if (response.data.state == 0) {
|
|
676
|
+ // this.$message.error(response.data.msg);
|
|
677
|
+ // } else {
|
|
678
|
+ // var schedule = response.data.data.schedule;
|
|
679
|
+
|
|
680
|
+ // this.getlist()
|
|
681
|
+ // }
|
|
682
|
+ // })
|
|
683
|
+ // this.CreateScheduleTwo(this.currentData.patient_id,this.currentData,this.currentData.currentData_id)
|
|
684
|
+ }
|
|
685
|
+
|
|
686
|
+ // for(let i=0;i<this.numberlist.length;i++){
|
|
687
|
+ // for(let j=0;j<val.list.length;j++){
|
|
688
|
+ // if(this.numberlist[i].id==val.list[y].bed_id){
|
|
689
|
+
|
|
690
|
+ // }
|
|
691
|
+ // }
|
|
692
|
+ // }
|
|
693
|
+ // this.currentData={
|
|
694
|
+ // currentData_id:val.id,
|
|
695
|
+ // currentData_name:val.name,
|
|
696
|
+ // currentData_quhao:val.order.DeviceNumber.zone.name,
|
|
697
|
+ // currentData_chaung:val.order.DeviceNumber.number,
|
|
698
|
+ // },
|
|
699
|
+
|
651
|
700
|
// this.currentData={
|
652
|
701
|
// currentData_id:this.cur_drag_info.id,
|
653
|
702
|
// currentData_name:this.cur_drag_info.name,
|
|
@@ -701,15 +750,31 @@ export default {
|
701
|
750
|
}
|
702
|
751
|
});
|
703
|
752
|
},
|
|
753
|
+ // 交换空白
|
|
754
|
+ setScheduleTwo(id_two){
|
|
755
|
+ this.CreateScheduleTwo(this.currentData.patient_id, this.currentData,id_two);
|
|
756
|
+ },
|
|
757
|
+ async CreateScheduleTwo(id, data,id_two) {
|
|
758
|
+ let response =await CreateScheduleTwo(id, data,id_two)
|
|
759
|
+
|
|
760
|
+ if (response.data.state == 0) {
|
|
761
|
+ this.$message.error(response.data.msg);
|
|
762
|
+ } else {
|
|
763
|
+ var schedule = response.data.data.schedule;
|
|
764
|
+ this.getlist()
|
|
765
|
+ }
|
|
766
|
+ },
|
|
767
|
+ // 需要拖动的
|
704
|
768
|
curInfoDragStart(e,val){
|
705
|
769
|
this.cur_drag_info={
|
706
|
770
|
id:val.id,
|
707
|
771
|
name:val.name,
|
708
|
772
|
quhao:val.order.DeviceNumber.zone.name,
|
709
|
|
- chaung:val.order.DeviceNumber.number,
|
|
773
|
+ chaung:val.order.DeviceNumber.number,
|
|
774
|
+ patient_id:val.patient_id,
|
710
|
775
|
|
711
|
776
|
}
|
712
|
|
- console.log('4444',e);
|
|
777
|
+ console.log('4444',val);
|
713
|
778
|
console.log('5555',this.cur_drag_info);
|
714
|
779
|
},
|
715
|
780
|
// 选中日期
|
|
@@ -776,7 +841,6 @@ export default {
|
776
|
841
|
var numberlist=response.data.data.numberList
|
777
|
842
|
this.numberlist= numberlist
|
778
|
843
|
this.subzone = numberlist
|
779
|
|
- this.chuangwei=numberlist[0].id
|
780
|
844
|
if (list != null && list.length > 0) {
|
781
|
845
|
const dataInfo = {}
|
782
|
846
|
list.forEach((item, index) => {
|
|
@@ -959,6 +1023,19 @@ export default {
|
959
|
1023
|
this.fenqu_dialog=e
|
960
|
1024
|
}
|
961
|
1025
|
}
|
|
1026
|
+ // if(this.fenqu_dialog==0){
|
|
1027
|
+ // this.chuangwei=519
|
|
1028
|
+ // }else if(this.fenqu_dialog==375){
|
|
1029
|
+ // this.chuangwei=519
|
|
1030
|
+ // }else if(this.fenqu_dialog==376){
|
|
1031
|
+ // this.chuangwei=520
|
|
1032
|
+ // }else if(this.fenqu_dialog==384){
|
|
1033
|
+ // this.chuangwei=556
|
|
1034
|
+ // }else if(this.fenqu_dialog==424){
|
|
1035
|
+ // this.chuangwei=672
|
|
1036
|
+ // }else if(this.fenqu_dialog==425){
|
|
1037
|
+ // this.chuangwei=521
|
|
1038
|
+ // }
|
962
|
1039
|
var params = {
|
963
|
1040
|
schedule_date: this.date,
|
964
|
1041
|
schedule_type: this.classes,
|
|
@@ -976,7 +1053,6 @@ export default {
|
976
|
1053
|
var numberlist=response.data.data.numberList
|
977
|
1054
|
console.log('00000',this.list);
|
978
|
1055
|
this.subzone=[]
|
979
|
|
- // 选择的分区的床位
|
980
|
1056
|
for(let i=0;i<numberlist.length;i++){
|
981
|
1057
|
if(this.fenqu_dialog==0){
|
982
|
1058
|
this.subzone = numberlist
|
|
@@ -1019,8 +1095,34 @@ export default {
|
1019
|
1095
|
}
|
1020
|
1096
|
|
1021
|
1097
|
}
|
|
1098
|
+ // this.numberlist= numberlist
|
1022
|
1099
|
}
|
1023
|
1100
|
})
|
|
1101
|
+ // console.log('77777',this.chuangwei);
|
|
1102
|
+ // for(let i=0;i<list.length;i++){
|
|
1103
|
+ // if(this.chuangwei==list[i].bed_id){
|
|
1104
|
+ // this.genghuan.name=list[i].name
|
|
1105
|
+ // this.genghuan.mode_id=list[i].mode_id
|
|
1106
|
+ // this.genghuan.genghuan_fenqu=list[i].order.DeviceNumber.zone.name
|
|
1107
|
+ // this.genghuan.genghuan_chuang = list[i].order.DeviceNumber.number
|
|
1108
|
+ // this.genghuan.g_boolen_id =list[i].order.blood_access_id
|
|
1109
|
+ // this.genghuan.genghuan_remark = list[i].order.schedule_remark
|
|
1110
|
+ // console.log('99999',this.genghuan);
|
|
1111
|
+ // console.log('000000',list[i].bed_id);
|
|
1112
|
+ // return this.genghuan
|
|
1113
|
+ // }else{
|
|
1114
|
+ // console.log('eeeeee');
|
|
1115
|
+ // this.genghuan.name=''
|
|
1116
|
+ // this.genghuan.mode_id=''
|
|
1117
|
+ // this.genghuan.genghuan_fenqu=''
|
|
1118
|
+ // this.genghuan.genghuan_chuang = ''
|
|
1119
|
+ // this.genghuan.g_boolen_id = ''
|
|
1120
|
+ // this.genghuan.genghuan_remark =''
|
|
1121
|
+ // // return this.genghuan
|
|
1122
|
+ // // console.log('qqqqqq',this.list[i].bed_id);
|
|
1123
|
+ // }
|
|
1124
|
+
|
|
1125
|
+ // }
|
1024
|
1126
|
},
|
1025
|
1127
|
// 双击弹窗床位
|
1026
|
1128
|
dialogchuangwei(e){
|