|
@@ -1860,7 +1860,7 @@ export default {
|
1860
|
1860
|
modes: [],
|
1861
|
1861
|
patientList: [],
|
1862
|
1862
|
all_patients: [],
|
1863
|
|
-
|
|
1863
|
+ systemDate:'',
|
1864
|
1864
|
mode_select: [
|
1865
|
1865
|
{
|
1866
|
1866
|
value: "1",
|
|
@@ -3220,8 +3220,9 @@ export default {
|
3220
|
3220
|
},
|
3221
|
3221
|
// 删除某一单元格内的患者透析排班
|
3222
|
3222
|
deletePatientMode(row) {
|
3223
|
|
- if (row.schedule_id > 0) {
|
3224
|
|
- console.log('22222222');
|
|
3223
|
+ console.log('12345566',this.cur_drag_info, this.systemDate);
|
|
3224
|
+ if (row.schedule_id > 0 && this.cur_drag_info.schedule_date >= this.systemDate) {
|
|
3225
|
+ console.log('22222222',this.cur_drag_info.schedule_date >= this.systemDate);
|
3225
|
3226
|
this.CancelSchedule(row.schedule_id);
|
3226
|
3227
|
}
|
3227
|
3228
|
console.log('deletePatientMode',row);
|
|
@@ -3289,16 +3290,27 @@ export default {
|
3289
|
3290
|
id : row[key].schedule_id,
|
3290
|
3291
|
partition_type : row.zone_type,
|
3291
|
3292
|
}
|
3292
|
|
- console.log('this.currentData的数据',this.currentData);
|
|
3293
|
+ // let nowDate = new Date();
|
|
3294
|
+ // let date = {
|
|
3295
|
+ // year: nowDate.getFullYear(),
|
|
3296
|
+ // month: nowDate.getMonth() + 1,
|
|
3297
|
+ // date: nowDate.getDate(),
|
|
3298
|
+ // }
|
|
3299
|
+ // let Month=date.month<10 ? '0'+ date.month : date.month
|
|
3300
|
+ // let Dateday= date.date<10 ? '0'+date.date : date.date
|
|
3301
|
+ // this.systemDate = date.year + '-'+ Month + '-'+ Dateday;
|
|
3302
|
+ // console.log('this.currentData的数据',this.currentData);
|
|
3303
|
+ // console.log('this.cur_drag_info的数据',this.cur_drag_info);
|
|
3304
|
+ // console.log('123453545',this.systemDate);
|
3293
|
3305
|
// 当表格有数据
|
3294
|
3306
|
if ( row[key].mode_id > 0 || row[key].patient_id > 0) {
|
3295
|
3307
|
// 且是表格数据拖拽
|
3296
|
3308
|
if (this.cur_drag_obj == 2){
|
3297
|
|
- if(row[key].patient_id != this.cur_drag_info.patient_id){
|
3298
|
|
- console.log('row[key].patient_id',row[key].patient_id,
|
3299
|
|
- 'this.cur_drag_info.partition_id',this.cur_drag_info.patient_id);
|
3300
|
|
- this.tipDialogVisible = true
|
3301
|
|
- }else{
|
|
3309
|
+ if (row[key].patient_id != this.cur_drag_info.patient_id ) {
|
|
3310
|
+ if( this.currentData.schedule_date >= this.systemDate ){
|
|
3311
|
+ this.tipDialogVisible = true
|
|
3312
|
+ }
|
|
3313
|
+ } else {
|
3302
|
3314
|
this.tipDialogVisible = false
|
3303
|
3315
|
}
|
3304
|
3316
|
}else{
|
|
@@ -3692,7 +3704,7 @@ export default {
|
3692
|
3704
|
) {
|
3693
|
3705
|
return "hover-td schedule-table-cell-disable";
|
3694
|
3706
|
} else {
|
3695
|
|
- return "schedule-table-cell-disable";
|
|
3707
|
+ return "";
|
3696
|
3708
|
}
|
3697
|
3709
|
}
|
3698
|
3710
|
}
|
|
@@ -5700,6 +5712,8 @@ export default {
|
5700
|
5712
|
day = "0" + day;
|
5701
|
5713
|
}
|
5702
|
5714
|
var nowDate = year + "-" + month + "-" + day;
|
|
5715
|
+ this.systemDate=nowDate
|
|
5716
|
+ console.log('当前时间',nowDate);
|
5703
|
5717
|
var date = new Date(nowDate + " 00:00:00");
|
5704
|
5718
|
|
5705
|
5719
|
this.now_time = date.getTime() / 1000;
|