|
|
|
@ -87,7 +87,7 @@ |
|
|
|
<GuipFormItem column="column" class="mb24" label="工作时间( 上午 )" :required="true"> |
|
|
|
<el-time-picker slot="formDom" style="width:100%" is-range v-model="form.morning_worktime" |
|
|
|
range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间" placeholder="选择时间范围" |
|
|
|
@change="ChangeTime('time1')" format="HH:mm" value-format="HH:mm"> |
|
|
|
format="HH:mm" value-format="HH:mm"> |
|
|
|
</el-time-picker> |
|
|
|
</GuipFormItem> |
|
|
|
|
|
|
|
@ -97,7 +97,7 @@ |
|
|
|
<GuipFormItem column="column" class="mb24" label="工作时间( 下午 )" :required="true"> |
|
|
|
<el-time-picker slot="formDom" style="width:100%" is-range v-model="form.afternoon_worktime" |
|
|
|
range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间" placeholder="选择时间范围" |
|
|
|
@change="ChangeTime('time1')" format="HH:mm" value-format="HH:mm"> |
|
|
|
format="HH:mm" value-format="HH:mm"> |
|
|
|
</el-time-picker> |
|
|
|
</GuipFormItem> |
|
|
|
</div> |
|
|
|
@ -605,11 +605,11 @@ |
|
|
|
<p class="" v-if="isShowDialogDate"> |
|
|
|
{{ currentEditingDate }}{{ isToday(currentEditingDate) ? '(今日)' : '' }} |
|
|
|
</p> |
|
|
|
<div class="flex mt24" v-if="currentEditingHospital"> |
|
|
|
<el-radio v-model="currentEditingHospital.currentPlan" :label="'1'">上午出诊</el-radio> |
|
|
|
<el-radio v-model="currentEditingHospital.currentPlan" :label="'2'">下午出诊</el-radio> |
|
|
|
<el-radio v-model="currentEditingHospital.currentPlan" :label="'3'">全天出诊</el-radio> |
|
|
|
<el-radio v-model="currentEditingHospital.currentPlan" :label="'0'">不出诊</el-radio> |
|
|
|
<div class="flex mt24" :key="currentDate"> |
|
|
|
<el-radio v-model="singleCurrentPlan" :label="'1'">上午出诊</el-radio> |
|
|
|
<el-radio v-model="singleCurrentPlan" :label="'2'">下午出诊</el-radio> |
|
|
|
<el-radio v-model="singleCurrentPlan" :label="'3'">全天出诊</el-radio> |
|
|
|
<el-radio v-model="singleCurrentPlan" :label="'0'">不出诊</el-radio> |
|
|
|
</div> |
|
|
|
</GuipDialog> |
|
|
|
|
|
|
|
@ -970,6 +970,7 @@ export default { |
|
|
|
conflictCount: 0, // 冲突天数统计 |
|
|
|
tempAdjustments: {}, // 存储临时调诊数据 {日期: {医院ID: {原班次, 新班次, 状态}}} |
|
|
|
currentEditingHospital: null, // 当前正在编辑的医院 |
|
|
|
currentDate:Date.now(), |
|
|
|
currentEditingDate: null, // 当前正在编辑的日期 |
|
|
|
currentClickDate: null, // 当前正在编辑的日期 |
|
|
|
isShowDialogDate: false,//单个医院日期是否显示 |
|
|
|
@ -1005,6 +1006,7 @@ export default { |
|
|
|
originalMorningSelected: [], // 保存原始上午选中状态 |
|
|
|
originalAfternoonSelected: [], // 保存原始下午选中状态 |
|
|
|
forceTime: Date.now(), |
|
|
|
singleCurrentPlan:null, |
|
|
|
} |
|
|
|
}, |
|
|
|
created() { |
|
|
|
@ -1169,7 +1171,6 @@ export default { |
|
|
|
return true; |
|
|
|
}, |
|
|
|
morningSelectedNames() { |
|
|
|
// console.log('执行了1次', this.morningSelectedHospitals); |
|
|
|
return this.getSelectedNames(this.morningSelectedHospitals); |
|
|
|
}, |
|
|
|
afternoonSelectedNames() { |
|
|
|
@ -1182,7 +1183,6 @@ export default { |
|
|
|
return date >= today; |
|
|
|
}, |
|
|
|
getSelectedNames(selectedList) { |
|
|
|
// console.log(selectedList, 'getSelectedNames----selectedList===='); |
|
|
|
if (selectedList.length === 0) { |
|
|
|
return '不出诊'; |
|
|
|
} |
|
|
|
@ -1191,7 +1191,6 @@ export default { |
|
|
|
const hospital = this.hosList.find(item => item.hid === hid); |
|
|
|
return hospital ? hospital.name : ''; |
|
|
|
}).filter(name => name); |
|
|
|
// console.log(selectedNames, 'getSelectedNames--selectedNames'); |
|
|
|
return selectedNames.join('、') || '休息'; |
|
|
|
}, |
|
|
|
handleEvent(data) { |
|
|
|
@ -1210,7 +1209,6 @@ export default { |
|
|
|
this.isShowAddAliPay = true; |
|
|
|
}, |
|
|
|
toggleAfternoonDropdown() { |
|
|
|
// console.log('----09999', this.afternoonSelectedHospitals); |
|
|
|
if (this.isAfternoonDropdownOpen) { |
|
|
|
this.$refs.afternoonSelect.blur(); |
|
|
|
} else { |
|
|
|
@ -1254,7 +1252,6 @@ export default { |
|
|
|
|
|
|
|
getDateCellClass(dateString) { |
|
|
|
const schedule = this.getDateSchedule(dateString); |
|
|
|
// console.log(schedule, 'getDateCellClass-schedule'); |
|
|
|
if (!schedule) return ''; |
|
|
|
for (const key in schedule) { |
|
|
|
if (key !== '0' && schedule[key] && schedule[key].length > 0) { |
|
|
|
@ -1396,7 +1393,6 @@ export default { |
|
|
|
handleDateClick(dateString, event) { |
|
|
|
this.currentClickDate = dateString |
|
|
|
event.stopPropagation(); |
|
|
|
// isConflictDate() |
|
|
|
const clickedDate = new Date(dateString); |
|
|
|
const today = new Date(); |
|
|
|
today.setHours(0, 0, 0, 0); |
|
|
|
@ -1411,13 +1407,13 @@ export default { |
|
|
|
|
|
|
|
if (this.isShowDialogDate) { |
|
|
|
this.singleHosTitle = this.weekDaysDesc[clickedDate.getDay()] + '出诊规则'; |
|
|
|
}else{ |
|
|
|
this.singleHosTitle = '出诊日历' |
|
|
|
} |
|
|
|
|
|
|
|
// 获取该日期涉及的所有医院 |
|
|
|
const hospitals = this.getHospitalsByDate(dateString); |
|
|
|
|
|
|
|
// console.log('点击日期获取到的医院数据:', hospitals); |
|
|
|
|
|
|
|
// 重构医院数据,确保正确设置上下午出诊状态 |
|
|
|
this.hosList = this.hosListCopy.map(item => { |
|
|
|
let hospitalInfo = { |
|
|
|
@ -1456,30 +1452,26 @@ export default { |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
console.log(`医院 ${item.h_depart_name} 排班状态:`, { |
|
|
|
currentPlan: hospitalInfo.currentPlan, |
|
|
|
morning_plan: hospitalInfo.morning_plan, |
|
|
|
afternoon_plan: hospitalInfo.afternoon_plan |
|
|
|
}); |
|
|
|
|
|
|
|
return hospitalInfo; |
|
|
|
}); |
|
|
|
|
|
|
|
// console.log('处理后的医院列表:', this.hosList); |
|
|
|
|
|
|
|
// 根据医院数量决定弹出哪种对话框 |
|
|
|
if (this.hosList.length === 1) { |
|
|
|
this.currentEditingHospital = hospitals[0]; |
|
|
|
if(this.currentEditingHospital){ |
|
|
|
this.singleCurrentPlan = this.currentEditingHospital.currentPlan; |
|
|
|
}else{ |
|
|
|
this.singleCurrentPlan = '0' |
|
|
|
} |
|
|
|
this.singleHosVisiable = true; |
|
|
|
} else { |
|
|
|
this.initSelectedHospitals(this.hosList); |
|
|
|
this.singleCurrentPlan = null; |
|
|
|
this.moreHosVisiable = true; |
|
|
|
} |
|
|
|
this.currentDate = Date.now() |
|
|
|
}, |
|
|
|
initSelectedHospitals(hospitals) { |
|
|
|
// console.log('开始初始化选中医院:', hospitals); |
|
|
|
|
|
|
|
// 保存原始选中状态 |
|
|
|
this.originalMorningSelected = [...this.morningSelectedHospitals]; |
|
|
|
this.originalAfternoonSelected = [...this.afternoonSelectedHospitals]; |
|
|
|
@ -1490,12 +1482,6 @@ export default { |
|
|
|
hospitals.forEach(hospital => { |
|
|
|
const { hid, morning_plan, afternoon_plan } = hospital; |
|
|
|
|
|
|
|
console.log(`医院 ${hospital.name} 状态:`, { |
|
|
|
hid, |
|
|
|
morning_plan, |
|
|
|
afternoon_plan |
|
|
|
}); |
|
|
|
|
|
|
|
if (morning_plan === '1') { |
|
|
|
this.morningSelectedHospitals = [...this.morningSelectedHospitals, hid]; |
|
|
|
} |
|
|
|
@ -1519,12 +1505,6 @@ export default { |
|
|
|
const afternoonConflict = this.afternoonSelectedHospitals.length > 1; |
|
|
|
|
|
|
|
this.hasConflict = morningConflict || afternoonConflict; |
|
|
|
|
|
|
|
console.log('冲突检查结果:', { |
|
|
|
morningConflict, |
|
|
|
afternoonConflict, |
|
|
|
hasConflict: this.hasConflict |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
// 修改确认多医院临时调诊的方法 |
|
|
|
@ -1537,7 +1517,6 @@ export default { |
|
|
|
} |
|
|
|
|
|
|
|
const plans = []; |
|
|
|
// console.log('moreTempConfirm:', this.hosList); |
|
|
|
// 处理所有医院,为每个医院生成对应的排班计划 |
|
|
|
this.hosList.forEach(hospital => { |
|
|
|
const { hid } = hospital; |
|
|
|
@ -1585,7 +1564,6 @@ export default { |
|
|
|
|
|
|
|
// 设置临时调诊数据---- |
|
|
|
async saveTempAdjustment(dateString, newPlan) { |
|
|
|
// console.log(newPlan, 'newPlan===='); |
|
|
|
try { |
|
|
|
const response = await this.$http('POST', '/api/admin/set_visit_change', { |
|
|
|
doctor_id: this.doctor_id, |
|
|
|
@ -1612,19 +1590,16 @@ export default { |
|
|
|
getHospitalsByDate(dateString) { |
|
|
|
const schedule = this.getDateSchedule(dateString); |
|
|
|
if (!schedule) { |
|
|
|
console.log(`日期 ${dateString} 无排班数据`); |
|
|
|
return []; |
|
|
|
} |
|
|
|
|
|
|
|
const hospitals = []; |
|
|
|
// console.log(`日期 ${dateString} 的排班数据:`, schedule); |
|
|
|
|
|
|
|
// 遍历所有班次类型收集医院 |
|
|
|
Object.keys(schedule).forEach(shiftType => { |
|
|
|
if (['_isTempAdjust', '_conflicts', '0'].includes(shiftType)) return; |
|
|
|
|
|
|
|
const list = schedule[shiftType]; |
|
|
|
// console.log(`班次 ${shiftType} 的医院列表:`, list); |
|
|
|
|
|
|
|
if (Array.isArray(list) && list.length > 0) { |
|
|
|
list.forEach(hospital => { |
|
|
|
@ -1639,13 +1614,11 @@ export default { |
|
|
|
isCancelled: hospital.isCancelled, |
|
|
|
workTime: hospital.workTime |
|
|
|
}); |
|
|
|
// console.log(`添加医院到列表: ${hospital.hospital_name}`, hospital); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
// console.log(`最终获取到的医院列表:`, hospitals); |
|
|
|
return hospitals; |
|
|
|
}, |
|
|
|
// tooltip的出诊文案 |
|
|
|
@ -1830,16 +1803,12 @@ export default { |
|
|
|
const newPlan = adjustment.newPlan.toString(); |
|
|
|
const originalPlanStr = originalPlan.toString(); |
|
|
|
if (newPlan === "0" && originalPlanStr !== "0") { |
|
|
|
// console.log(` - 状态: cancelled (班次取消)`); |
|
|
|
return 'cancelled'; |
|
|
|
} else if (originalPlanStr === "0" && newPlan !== "0") { |
|
|
|
// console.log(` - 状态: added (新增班次)`); |
|
|
|
return 'added'; |
|
|
|
} else if (originalPlanStr !== newPlan) { |
|
|
|
// console.log(` - 状态: changed (班次变更)`); |
|
|
|
return 'changed'; |
|
|
|
} else { |
|
|
|
// console.log(` - 状态: same (与固定排班一致)`); |
|
|
|
return 'same'; |
|
|
|
} |
|
|
|
}, |
|
|
|
@ -1866,23 +1835,18 @@ export default { |
|
|
|
const date = new Date(dateStr); |
|
|
|
const dayOfWeek = date.getDay() === 0 ? 7 : date.getDay(); |
|
|
|
|
|
|
|
// console.log(`getOriginalPlan: ${dateStr}, 星期${dayOfWeek}, 医院${hospitalId}`); |
|
|
|
|
|
|
|
// 固定排班 |
|
|
|
if (hospital.worktime_no_fixed === 0 && hospital.worktime_list && hospital.worktime_list[dayOfWeek]) { |
|
|
|
const plan = hospital.worktime_list[dayOfWeek].plan.toString(); |
|
|
|
// console.log(` - 固定排班: ${plan}`); |
|
|
|
return plan; |
|
|
|
} |
|
|
|
|
|
|
|
// 非固定排班中的具体日期 |
|
|
|
if (hospital.worktime_no_fixed === 1 && hospital.worktime_list && hospital.worktime_list[dateStr]) { |
|
|
|
const plan = hospital.worktime_list[dateStr].plan.toString(); |
|
|
|
// console.log(` - 非固定排班: ${plan}`); |
|
|
|
return plan; |
|
|
|
} |
|
|
|
|
|
|
|
// console.log(` - 默认: 0`); |
|
|
|
return "0"; |
|
|
|
}, |
|
|
|
// 检查是否存在冲突(不允许时段重合时) |
|
|
|
@ -1897,8 +1861,6 @@ export default { |
|
|
|
}, |
|
|
|
// 统计本月多医院出诊冲突 |
|
|
|
countMonthlyConflicts() { |
|
|
|
// console.log('=== 开始月度冲突统计 ==='); |
|
|
|
|
|
|
|
const monthStart = new Date(this.currentDay.getFullYear(), this.currentDay.getMonth(), 1); |
|
|
|
const monthEnd = new Date(this.currentDay.getFullYear(), this.currentDay.getMonth() + 1, 0); |
|
|
|
const today = new Date(); |
|
|
|
@ -1918,7 +1880,6 @@ export default { |
|
|
|
if (hasConflict) { |
|
|
|
conflicts.push(dateStr); |
|
|
|
conflictCount++; |
|
|
|
console.log(`统计到冲突: ${dateStr}`); |
|
|
|
} |
|
|
|
} else { |
|
|
|
console.log(`无排班数据: ${dateStr}`); |
|
|
|
@ -1952,8 +1913,6 @@ export default { |
|
|
|
const hospitals = schedule[shiftType]; |
|
|
|
if (!hospitals || hospitals.length === 0) continue; |
|
|
|
|
|
|
|
console.log(`班次 ${shiftType}:`, hospitals); |
|
|
|
|
|
|
|
hospitals.forEach(hospital => { |
|
|
|
if (hospital.isCancelled) return; // 跳过已取消的 |
|
|
|
|
|
|
|
@ -1991,7 +1950,6 @@ export default { |
|
|
|
}, |
|
|
|
// 判断是否为冲突日期 |
|
|
|
isConflictDate(dateString) { |
|
|
|
// console.log(this.conflictDates, dateString, '冲突日期'); |
|
|
|
return this.conflictDates.includes(dateString); |
|
|
|
}, |
|
|
|
// 添加月份变化监听方法 |
|
|
|
@ -2011,7 +1969,6 @@ export default { |
|
|
|
}).then(response => { |
|
|
|
const list = response.msg; |
|
|
|
if (response.code == 0) { |
|
|
|
// 处理医院列表 |
|
|
|
this.hosList = Object.keys(list).map(item => { |
|
|
|
return { |
|
|
|
hid: item, |
|
|
|
@ -2020,6 +1977,7 @@ export default { |
|
|
|
}); |
|
|
|
// 存储一份副本,用于后续操作 |
|
|
|
this.hosListCopy = JSON.parse(JSON.stringify(this.hosList)) |
|
|
|
|
|
|
|
// 保存原始数据 |
|
|
|
this.rawScheduleData = JSON.parse(JSON.stringify(list)); |
|
|
|
|
|
|
|
@ -2088,20 +2046,7 @@ export default { |
|
|
|
} |
|
|
|
|
|
|
|
this.calendarList = tempCalendarData; |
|
|
|
console.log('最终排班数据:', this.calendarList); |
|
|
|
}, |
|
|
|
|
|
|
|
isTempAdjustDate(dateString) { |
|
|
|
if (!this.rawScheduleData) return false; |
|
|
|
|
|
|
|
// 遍历所有医院,检查是否有该日期的临时调整 |
|
|
|
for (const hospitalId in this.rawScheduleData) { |
|
|
|
const hospital = this.rawScheduleData[hospitalId]; |
|
|
|
if (hospital.temp_change_worktime && hospital.temp_change_worktime[dateString]) { |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
return false; |
|
|
|
console.log(this.calendarList,'===this.calendarList:'); |
|
|
|
}, |
|
|
|
addHospitalToSchedule(daySchedule, hospitalId, hospital, plan, workDesc) { |
|
|
|
const shiftType = plan.toString(); |
|
|
|
@ -2204,8 +2149,6 @@ export default { |
|
|
|
newPlan: finalPlan, |
|
|
|
status: this.getTempAdjustmentStatus(dateStr, hospitalId, originalPlan) |
|
|
|
}; |
|
|
|
|
|
|
|
console.log(`医院 ${hospitalId} 在 ${dateStr}: 原计划=${originalPlan}, 新计划=${finalPlan}, 状态=${this.tempAdjustments[dateStr][hospitalId].status}`); |
|
|
|
} else { |
|
|
|
// 固定排班 |
|
|
|
if (worktime_no_fixed === 0 && worktime_list && worktime_list[dayOfWeek]) { |
|
|
|
@ -2235,13 +2178,12 @@ export default { |
|
|
|
|
|
|
|
// 检查冲突 |
|
|
|
this.checkScheduleConflicts(daySchedule, dateStr); |
|
|
|
console.log(daySchedule,'daySchedule==='); |
|
|
|
|
|
|
|
return Object.keys(daySchedule).length > 1 ? daySchedule : null; |
|
|
|
}, |
|
|
|
// 检查排班冲突 |
|
|
|
checkScheduleConflicts(daySchedule) { |
|
|
|
console.log(daySchedule, 'daySchedule===检查排班冲突'); |
|
|
|
|
|
|
|
if (!this.is_allow_coincide) return; |
|
|
|
|
|
|
|
daySchedule._conflicts = []; |
|
|
|
@ -2294,7 +2236,6 @@ export default { |
|
|
|
message: `下午班冲突: ${Array.from(timeSlotConflicts.afternoon).map(h => h.split('_')[1]).join('、')}` |
|
|
|
}); |
|
|
|
} |
|
|
|
console.log(daySchedule, 'daySchedule===='); |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
@ -2337,7 +2278,6 @@ export default { |
|
|
|
plans["morning_plan"] = '1'; |
|
|
|
plans["afternoon_plan"] = '1'; |
|
|
|
} |
|
|
|
console.log(plans, 'plans'); |
|
|
|
let plansList = [] |
|
|
|
plansList.push(plans) |
|
|
|
this.saveTempAdjustment(this.currentEditingDate, plansList) |
|
|
|
@ -2399,7 +2339,6 @@ export default { |
|
|
|
overrideWeekTitles() { |
|
|
|
this.$nextTick(() => { |
|
|
|
const weekHeaders = document.querySelectorAll('.el-calendar-table thead th'); |
|
|
|
console.log(weekHeaders, 'weekHeaders===='); |
|
|
|
if (weekHeaders.length === 7) { |
|
|
|
weekHeaders.forEach((th, index) => { |
|
|
|
th.textContent = this.weekDaysDesc[index]; |
|
|
|
@ -2429,6 +2368,9 @@ export default { |
|
|
|
|
|
|
|
// 获取指定日期的排班信息(修改后的版本) |
|
|
|
getDateSchedule(dateString) { |
|
|
|
if(dateString == '2025-11-18'){ |
|
|
|
console.log('dateString==:',this.formattedCalendarData[dateString]); |
|
|
|
} |
|
|
|
return this.formattedCalendarData[dateString] || null; |
|
|
|
}, |
|
|
|
// 修改判断方法 |
|
|
|
@ -2483,7 +2425,6 @@ export default { |
|
|
|
) { |
|
|
|
this.wxpayList = response.data[this.payTypeWeixin] |
|
|
|
this.selectWxpay = this.wxpayList.filter(item => item.is_bind)[0]; |
|
|
|
console.log(this.selectWxpay, 'this.selectWxpay'); |
|
|
|
} else { |
|
|
|
this.selectWxpay = null; |
|
|
|
} |
|
|
|
@ -2508,7 +2449,6 @@ export default { |
|
|
|
depart_id: this.depart_id, |
|
|
|
pay_switch: this.onLinePay |
|
|
|
}).then(response => { |
|
|
|
console.log(response, '==='); |
|
|
|
const { code } = response |
|
|
|
const msg = this.onLinePay === 1 ? '已开启' : '已关闭' |
|
|
|
const type = code === 0 ? 'success' : 'error'; |
|
|
|
@ -2544,7 +2484,6 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
changeSelectWeixin(item) { |
|
|
|
console.log(item, 'item') |
|
|
|
// if(this.bindWxpayId === item.payid){ |
|
|
|
// this.bindWxpayId = 0 |
|
|
|
// this.selectWxpay = null |
|
|
|
@ -2587,7 +2526,6 @@ export default { |
|
|
|
this.isShowAddPay = true; |
|
|
|
}, |
|
|
|
handleregisterCancel() { |
|
|
|
console.log('取消'); |
|
|
|
this.freeRegVisible = false; |
|
|
|
this.registrationVisible = false; |
|
|
|
}, |
|
|
|
@ -2666,7 +2604,6 @@ export default { |
|
|
|
this.form.search_city = item.city |
|
|
|
this.form.address = item.address |
|
|
|
this.form.h_pos = item.location.lat + ',' + item.location.lng |
|
|
|
console.log(item) |
|
|
|
}, |
|
|
|
getInternetHospital(queryString) { |
|
|
|
if (!this.hospitalSearchFlag) return; |
|
|
|
@ -2701,7 +2638,6 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
queryHospital(queryString, cb) { |
|
|
|
console.log(queryString) |
|
|
|
cb(this.hospitalRestaurants); |
|
|
|
}, |
|
|
|
random() { |
|
|
|
@ -2744,6 +2680,17 @@ export default { |
|
|
|
'afternoon_worktime': response.data.afternoon_worktime ? response.data.afternoon_worktime.split('-') : '' |
|
|
|
} |
|
|
|
this.houseCallSettingForm.worktimes = JSON.parse(JSON.stringify(this.form.worktimes)); |
|
|
|
// ---------还没有数据 |
|
|
|
const {display_work_days,worktime_no_fixed} = response.data; |
|
|
|
if(display_work_days > 0){ |
|
|
|
this.houseCallSettingForm.planDays = display_work_days; |
|
|
|
}else{ |
|
|
|
this.houseCallSettingForm.display_work_days = display_work_days |
|
|
|
} |
|
|
|
this.houseCallSettingForm.worktime_no_fixed = worktime_no_fixed |
|
|
|
|
|
|
|
// ---------还没有数据 |
|
|
|
|
|
|
|
|
|
|
|
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 |
|
|
|
@ -2961,7 +2908,6 @@ export default { |
|
|
|
this.editorProjectInfo({ need_countdown: row.need_countdown, project_id: row.id }) |
|
|
|
}, |
|
|
|
handleClick1(row) { |
|
|
|
console.log(row); |
|
|
|
this.$router.push(`/addNewTreatment?package_id=${row.id}&doctor_id=${this.doctor_id}&depart_id=${this.depart_id}`) |
|
|
|
// 跳转编辑页面 |
|
|
|
}, |
|
|
|
@ -2971,7 +2917,6 @@ export default { |
|
|
|
}, |
|
|
|
// 处理全选按钮变化 |
|
|
|
handleSelectAllChange(val) { |
|
|
|
console.log(this.$refs.multipleTable, 'multipleTable-'); |
|
|
|
if (val) { |
|
|
|
// 只选中未选中的行 |
|
|
|
const unselectedRows = this.projectList.filter( |
|
|
|
@ -2999,7 +2944,6 @@ export default { |
|
|
|
this.isIndeterminate = !noneSelected && !allSelected; |
|
|
|
}, |
|
|
|
handleSelectAllChange1(val) { |
|
|
|
console.log(this.$refs.multipleTable, 'multipleTable-'); |
|
|
|
if (val) { |
|
|
|
// 只选中未选中的行 |
|
|
|
const unselectedRows = this.courseList.filter( |
|
|
|
@ -3018,7 +2962,6 @@ export default { |
|
|
|
|
|
|
|
// 处理选择变化 |
|
|
|
handleSelectionChange1(rows) { |
|
|
|
console.log(rows, '1====='); |
|
|
|
this.selectedRows1 = rows; |
|
|
|
// 更新全选按钮状态 |
|
|
|
const allSelected = rows.length === this.courseList.length; |
|
|
|
@ -3041,8 +2984,6 @@ export default { |
|
|
|
if (name == 'project') { |
|
|
|
// 修改项目列表 |
|
|
|
url = '/api/admin/project_mutil_option'; |
|
|
|
// selectedRows |
|
|
|
console.log(this.selectedRows, '----09999888'); |
|
|
|
this.selectedRows.forEach(item => { |
|
|
|
if (item.status != type) { |
|
|
|
str.push(item.id) |
|
|
|
@ -3055,7 +2996,6 @@ export default { |
|
|
|
props.project_ids = str.join(',') |
|
|
|
} else { |
|
|
|
// 修改疗程套餐 |
|
|
|
// selectedRows1 |
|
|
|
this.selectedRows1.forEach(item => { |
|
|
|
if (item.status != type) { |
|
|
|
str.push(item.id) |
|
|
|
@ -3067,7 +3007,6 @@ export default { |
|
|
|
} |
|
|
|
props.package_ids = str.join(',') |
|
|
|
} |
|
|
|
// console.log(url,props); |
|
|
|
this.changePackData(url, props, name) |
|
|
|
}, |
|
|
|
// |
|
|
|
@ -3091,13 +3030,9 @@ export default { |
|
|
|
console.error(error, 'error') |
|
|
|
}) |
|
|
|
}, |
|
|
|
ChangeTime(type) { |
|
|
|
console.log(this.form.morning_worktime, type, '==='); |
|
|
|
}, |
|
|
|
onSwitchChange(data) { |
|
|
|
this.form.is_fixed = data ? 1 : 0 |
|
|
|
this.departIsFixed = data |
|
|
|
console.log(data, '---'); |
|
|
|
}, |
|
|
|
updateHosInfo(props, url) { |
|
|
|
if (this.doctor_id) props.doctor_id = this.doctor_id; |
|
|
|
@ -3449,7 +3384,7 @@ export default { |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
justify-content: space-between; |
|
|
|
gap: 12px; |
|
|
|
// gap: 3px; |
|
|
|
margin-bottom: 10px; |
|
|
|
|
|
|
|
// color: #303133; |
|
|
|
|