feat(customers): 联系人/结算人各自独立手机号

- customers 表新增 contacts_phone / balance_user_phone 两列(sql/add-contact-phones.sql)
- 新增表单拆出"联系人信息/结算人信息"分区,手机号必填并校验 11 位;编辑选填
- 列表联系人/结算人列改为姓名+手机号两行展示,沿用业务员脱敏规则
- 查看弹窗同步分区并在服务端预脱敏,旧公共 phone 不再下发客户端
- 生日提醒页按生日归属展示对应人姓名+手机号,空值回退旧 phone
- 导入模板/导出增加两个新列,保留"联系电话"表头兼容旧导入文件
- 旧 phone 列保留历史数据,界面不再录入/展示

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-19 23:45:20 +08:00
co-authored by Claude Fable 5
parent c54ec4355d
commit d00de04c27
10 changed files with 138 additions and 44 deletions
+5 -3
View File
@@ -17,9 +17,11 @@ datasource db {
model Customer {
id Int @id @default(autoincrement())
customerName String? @default("") @map("customer_name")
contacts String? // 联系人
balanceUser String? @map("balance_user") // 结算人
phone String?
contacts String? // 联系人
contactsPhone String? @default("") @map("contacts_phone") // 联系人手机号
balanceUser String? @map("balance_user") // 结算人
balanceUserPhone String? @default("") @map("balance_user_phone") // 结算人手机号
phone String? // 旧公共联系电话(已停用录入/展示,保留历史数据)
detail String?
deposit String? // 押金
buy String? // 买断