feat: 员工信息必填项优化 - 柜员号、所属部门、电话设为必填
## 后端修改 - AddDTO: deptId和phone添加@NotNull/@NotBlank注解 - EditDTO: deptId和phone添加@NotNull/@NotBlank注解 - Service: 导入验证添加deptId和phone必填校验 ## 前端修改 - 表单校验规则: deptId和phone添加required校验 - 自动显示必填标记(红色星号) ## API文档更新 - 新增接口字段说明: deptId和phone标记为必填 - 导入模板: 标注必填项(*标记) - 业务错误信息: 添加部门和电话相关错误提示 ## 必填字段清单 1. employeeId(柜员号) - 7位数字 2. name(姓名) 3. deptId(所属部门) 4. idCard(身份证号) 5. phone(电话) - 11位手机号 6. status(状态) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -315,11 +315,15 @@ export default {
|
||||
{ required: true, message: "柜员号不能为空", trigger: "blur" },
|
||||
{ pattern: /^\d{7}$/, message: "柜员号必须为7位数字", trigger: "blur" }
|
||||
],
|
||||
deptId: [
|
||||
{ required: true, message: "所属部门不能为空", trigger: "change" }
|
||||
],
|
||||
idCard: [
|
||||
{ required: true, message: "身份证号不能为空", trigger: "blur" },
|
||||
{ pattern: idCardPattern, message: "请输入正确的18位身份证号", trigger: "blur" }
|
||||
],
|
||||
phone: [
|
||||
{ required: true, message: "电话不能为空", trigger: "blur" },
|
||||
{ pattern: phonePattern, message: "请输入正确的11位手机号", trigger: "blur" }
|
||||
],
|
||||
status: [
|
||||
|
||||
Reference in New Issue
Block a user