261 预约管理-》科室预约工作时间维护:所属机构下拉选项未过滤掉状态为未启动的机构名称(包括【新增】/【编辑】界面)
This commit is contained in:
@@ -280,7 +280,6 @@ public class DoctorScheduleAppServiceImpl implements IDoctorScheduleAppService {
|
|||||||
.set(doctorSchedule.getRegisterFee() != null, SchedulePool::getFee, Double.valueOf(doctorSchedule.getRegisterFee().toString()))
|
.set(doctorSchedule.getRegisterFee() != null, SchedulePool::getFee, Double.valueOf(doctorSchedule.getRegisterFee().toString()))
|
||||||
.set(doctorSchedule.getRegisterFee() != null, SchedulePool::getInsurancePrice,
|
.set(doctorSchedule.getRegisterFee() != null, SchedulePool::getInsurancePrice,
|
||||||
Double.valueOf(doctorSchedule.getRegisterFee().toString()))
|
Double.valueOf(doctorSchedule.getRegisterFee().toString()))
|
||||||
.set(doctorSchedule.getRegisterItem() != null, SchedulePool::getRegType, doctorSchedule.getRegisterItem())
|
|
||||||
.update();
|
.update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import request from '@/utils/request'
|
import request from '@/utils/request'
|
||||||
|
import { STATUS } from '@/utils/medicalConstants'
|
||||||
|
|
||||||
export function getDeptAppthoursList(query) {
|
export function getDeptAppthoursList(query) {
|
||||||
return request({
|
return request({
|
||||||
@@ -71,7 +72,7 @@ export function getTenantList() {
|
|||||||
params: {
|
params: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 1000,
|
pageSize: 1000,
|
||||||
status: '1' // 只获取已启动的机构 (1=已启动,0=未启动)
|
status: STATUS.NORMAL // 只获取正常/启用的机构
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -154,3 +154,11 @@ export default {
|
|||||||
getDiagTypeList,
|
getDiagTypeList,
|
||||||
getDiagTypeDescription,
|
getDiagTypeDescription,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 状态通用常量(与后端 status 字段保持一致:0=正常/启用,1=停用)
|
||||||
|
*/
|
||||||
|
export const STATUS = {
|
||||||
|
NORMAL: '0', // 正常/启用
|
||||||
|
DISABLE: '1' // 停用
|
||||||
|
};
|
||||||
|
|||||||
@@ -577,25 +577,12 @@ function getTenantOptions() {
|
|||||||
} else {
|
} else {
|
||||||
tenantOptions.value = []
|
tenantOptions.value = []
|
||||||
}
|
}
|
||||||
tenantOptions.value = [
|
|
||||||
{ id: 1, tenantName: '演示医院' },
|
|
||||||
{ id: 2, tenantName: '社区卫生院' },
|
|
||||||
...tenantOptions.value
|
|
||||||
]
|
|
||||||
} else {
|
} else {
|
||||||
console.warn('获取租户列表失败:', response.msg)
|
console.warn('获取租户列表失败:', response.msg)
|
||||||
tenantOptions.value = [
|
|
||||||
{ id: 1, tenantName: '演示医院' },
|
|
||||||
{ id: 2, tenantName: '社区卫生院' }
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
console.error('获取租户列表失败:', error)
|
console.error('获取租户列表失败:', error)
|
||||||
tenantOptions.value = [
|
|
||||||
{ id: 1, tenantName: '演示医院' },
|
|
||||||
{ id: 2, tenantName: '社区卫生院' }
|
|
||||||
]
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user