修改医生管理 新增医生 验证医生ID

This commit is contained in:
lxd 2024-12-11 14:25:21 +08:00
parent f079845eb0
commit 18191334e5

View File

@ -176,9 +176,12 @@ const submitForm = async () => {
try {
const data = formData.value as unknown as VO
if (formType.value === 'create') {
await Api.create(data)
message.success(t('common.createSuccess'))
const redata = await Api.create(data)
if (redata === '医生编号已存在') {
message.alertError('医生编号已存在')
} else {
message.success(t('common.createSuccess'))
}
} else {
await Api.update(data)