feat: add global toast message on form validation failure for inbound operations

This commit is contained in:
DXC
2026-03-18 17:25:14 +08:00
parent b74a033fc3
commit e6dafc7775
3 changed files with 6 additions and 0 deletions

View File

@ -1457,6 +1457,8 @@ const submitForm = async () => {
} catch (e: any) { } catch (e: any) {
ElMessage.error(e.msg || '操作失败') ElMessage.error(e.msg || '操作失败')
} finally { submitting.value = false } } finally { submitting.value = false }
} else {
ElMessage.warning('入库校验未通过,请检查必填项(如:库位)是否已填写完整!')
} }
}) })
} }

View File

@ -1265,6 +1265,8 @@ const submitForm = async () => {
} catch(e:any) { } catch(e:any) {
ElMessage.error(e.msg || '操作失败') ElMessage.error(e.msg || '操作失败')
} finally { submitting.value = false } } finally { submitting.value = false }
} else {
ElMessage.warning('入库校验未通过,请检查必填项(如:库位)是否已填写完整!')
} }
}) })
} }

View File

@ -1391,6 +1391,8 @@ const submitForm = async () => {
} catch (e: any) { } catch (e: any) {
ElMessage.error(e.msg || '操作失败') ElMessage.error(e.msg || '操作失败')
} finally { submitting.value = false } } finally { submitting.value = false }
} else {
ElMessage.warning('入库校验未通过,请检查必填项(如:库位)是否已填写完整!')
} }
}) })
} }