修改医生管理 新增医生 验证医生ID
This commit is contained in:
parent
f079845eb0
commit
18191334e5
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user