医生排班日期的正确插入
This commit is contained in:
@@ -377,7 +377,7 @@ import {ElDialog, ElForm, ElFormItem, ElInput, ElMessage, ElMessageBox, ElOption
|
||||
import {DocumentRemove, EditPen, View, Delete} from '@element-plus/icons-vue'
|
||||
import {listDept, searchDept} from '@/api/appoinmentmanage/dept'
|
||||
import {getLocationTree, getPractitionerMetadata, getHealthcareMetadata} from '@/views/charge/outpatientregistration/components/outpatientregistration'
|
||||
import {addDoctorSchedule, updateDoctorSchedule, deleteDoctorSchedule, getRegisterOrganizations, getDoctorScheduleListByDeptId} from './api'
|
||||
import {addDoctorSchedule, addDoctorScheduleWithDate, updateDoctorSchedule, deleteDoctorSchedule, getRegisterOrganizations, getDoctorScheduleListByDeptId} from './api'
|
||||
import {getClinicRoomList} from '@/api/appoinmentmanage/clinicRoom'
|
||||
import {getInitOption, getRegistrationItems, getClinicItems} from '@/views/basicservices/registrationfee/components/registrationfee'
|
||||
import { deptTreeSelect } from '@/api/system/user'
|
||||
@@ -1534,6 +1534,7 @@ const handleSave = async () => {
|
||||
isStopped: item.stopClinic,
|
||||
stopReason: item.stopClinic ? (item.stopReason || '') : '',
|
||||
deptId: currentDept.value?.id || null,
|
||||
scheduledDate: item.date // 添加具体日期字段
|
||||
};
|
||||
if (item.backendId) {
|
||||
scheduleData.id = item.backendId;
|
||||
@@ -1557,7 +1558,7 @@ const handleSave = async () => {
|
||||
// 处理新增
|
||||
for (const { scheduleData } of recordsToAdd) {
|
||||
try {
|
||||
const res = await addDoctorSchedule(scheduleData);
|
||||
const res = await addDoctorScheduleWithDate(scheduleData);
|
||||
if (res.code === 200) {
|
||||
addSuccess++;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user