Browse Source

Merge pull request '修改不固定设置' (#16) from calender-1105 into master

Reviewed-on: #16
master
超级管理员 3 weeks ago
parent
commit
1f0d72bfab
  1. 7
      src/views/HosInformation.vue
  2. 6
      src/views/conflictDialog.vue

7
src/views/HosInformation.vue

@ -965,7 +965,7 @@ export default {
calendarList1: [], calendarList1: [],
calendarList: {}, // calendarList: {}, //
rawScheduleData: null, // rawScheduleData: null, //
is_allow_coincide: 0,// is_allow_coincide: 0,// 0 1
conflictDates: [], // conflictDates: [], //
conflictCount: 0, // conflictCount: 0, //
tempAdjustments: {}, // {: {ID: {, , }}} tempAdjustments: {}, // {: {ID: {, , }}}
@ -2324,6 +2324,7 @@ export default {
this.countMonthlyConflicts(); // this.countMonthlyConflicts(); //
}, },
async setDepartWorkTime() { async setDepartWorkTime() {
console.log('=====执行了');
this.$refs.conflictDialog.setDepartWorkTime() this.$refs.conflictDialog.setDepartWorkTime()
}, },
formatMonth(date, dayFlag) { formatMonth(date, dayFlag) {
@ -2681,7 +2682,7 @@ export default {
} }
this.houseCallSettingForm.worktimes = JSON.parse(JSON.stringify(this.form.worktimes)); this.houseCallSettingForm.worktimes = JSON.parse(JSON.stringify(this.form.worktimes));
// --------- // ---------
const {display_work_days,worktime_no_fixed} = response.data; const {display_work_days,worktime_no_fixed,is_allow_coincide} = response.data;
if(display_work_days > 0){ if(display_work_days > 0){
this.houseCallSettingForm.planDays = display_work_days; this.houseCallSettingForm.planDays = display_work_days;
}else{ }else{
@ -2690,7 +2691,7 @@ export default {
this.houseCallSettingForm.worktime_no_fixed = worktime_no_fixed this.houseCallSettingForm.worktime_no_fixed = worktime_no_fixed
// --------- // ---------
this.is_allow_coincide=is_allow_coincide
this.departType = (response.data.type || response.data.type === 0 || response.data.type === "0") ? [Number(response.data.type)] : [] this.departType = (response.data.type || response.data.type === 0 || response.data.type === "0") ? [Number(response.data.type)] : []
this.departIsFixed = response.data.is_fixed == "1" ? true : false this.departIsFixed = response.data.is_fixed == "1" ? true : false

6
src/views/conflictDialog.vue

@ -269,6 +269,10 @@ export default {
// ..end // ..end
async setDepartWorkTime() { async setDepartWorkTime() {
const { display_work_days, planDays, worktime_no_fixed,worktimes } = this.houseCallSettingForm; const { display_work_days, planDays, worktime_no_fixed,worktimes } = this.houseCallSettingForm;
if(worktime_no_fixed == 1){
this.saveWorkTimeDirect()
return;
}
const params = { const params = {
doctor_id: this.doctor_id, doctor_id: this.doctor_id,
depart_id: this.depart_id, depart_id: this.depart_id,
@ -283,7 +287,7 @@ export default {
// vs // vs
const conflictResults = this.checkScheduleConflict(worktimes, worktime_no_fixed); const conflictResults = this.checkScheduleConflict(worktimes, worktime_no_fixed);
// //
if (conflictResults.hasConflict && worktime_no_fixed == 0) { if (conflictResults.hasConflict) {
this.visitDialogVisible = true; this.visitDialogVisible = true;
this.hasConflictresult = conflictResults.conflicts; this.hasConflictresult = conflictResults.conflicts;
if(this.is_allow_coincide){ if(this.is_allow_coincide){

Loading…
Cancel
Save