修改医生管理 新增医生 验证医生ID
This commit is contained in:
parent
f079845eb0
commit
18191334e5
@ -176,9 +176,12 @@ const submitForm = async () => {
|
|||||||
try {
|
try {
|
||||||
const data = formData.value as unknown as VO
|
const data = formData.value as unknown as VO
|
||||||
if (formType.value === 'create') {
|
if (formType.value === 'create') {
|
||||||
await Api.create(data)
|
const redata = await Api.create(data)
|
||||||
|
if (redata === '医生编号已存在') {
|
||||||
|
message.alertError('医生编号已存在')
|
||||||
|
} else {
|
||||||
message.success(t('common.createSuccess'))
|
message.success(t('common.createSuccess'))
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
await Api.update(data)
|
await Api.update(data)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user