feat(reimbursement-small-team-form-validation): 完善小团队报销填报校验
这个提交包含在:
@@ -119,6 +119,18 @@ export function mapApiErrorMessage(
|
||||
}
|
||||
|
||||
if (code === "VALID_001") {
|
||||
if (details?.amount === "must_be_positive") {
|
||||
return "明细金额必须大于 0。";
|
||||
}
|
||||
|
||||
if (details?.items === "at_least_one_required") {
|
||||
return "请先添加至少 1 条报销明细。";
|
||||
}
|
||||
|
||||
if (details?.items === "positive_amount_required") {
|
||||
return "所有报销明细金额都必须大于 0,请修改后再提交。";
|
||||
}
|
||||
|
||||
const passwordErrors = readStringList(details?.password);
|
||||
if (passwordErrors.length) {
|
||||
return `新密码不符合要求:${passwordErrors.join(";")}。`;
|
||||
|
||||
在新工单中引用
屏蔽一个用户