docs: 统一修正全项目“SN管理”相关术语为“序列号”

本次 commit 统一修正了全项目范围内关于 SN 管理的术语表述,将原“SN管理”、“序列号件”、“批次件”等表述调整为“序列号”、“序列号=是”、“序列号=否”,同时同步更新了相关文档、代码注释、前端提示文本、数据库 schema 注释、API 文档等,确保全链路术语统一,消除理解歧义。
This commit is contained in:
SunYF
2026-10-10 15:58:59 +08:00
parent b032f47fc7
commit 8be6e03a15
335 changed files with 5742 additions and 1616 deletions
+7 -7
View File
@@ -161,13 +161,13 @@ func manageModeLabel(m int) string {
return "-"
}
// snModeLabel 记账方式中文名:1=序列号件 2=批次件(2026-09-30 解耦定稿)
// snModeLabel 序列号中文名:1=序列号=是 2=序列号=否(2026-09-30 解耦定稿)
func snModeLabel(v int) string {
switch v {
case snModeSN:
return "序列号件"
return "序列号=是"
case snModeBatch:
return "批次件"
return "序列号=否"
}
return "-"
}
@@ -231,11 +231,11 @@ type importErr struct {
}
// excelInboundHandler Excel 批量导入入库
// mode=batch(批次件) 列头(首行忽略):
// mode=batch(序列号=否) 列头(首行忽略):
//
// 图号 | 批次号(可空自动生成) | 数量 | 生产日期 | 供应商 | 区域 | 架 | 层 | 位 | 备注 | 检测单号 | 产品工号 | 归属类型 | 归属编号
//
// mode=sn(序列号件) 列头(首行忽略):
// mode=sn(序列号=是) 列头(首行忽略):
//
// 图号 | SN | 区域 | 生产日期 | 供应商 | 架 | 层 | 位 | 备注 | 检测单号 | 产品工号 | 归属类型 | 归属编号
//
@@ -356,7 +356,7 @@ func excelInboundHandler(ctx *svc.ServiceContext) http.HandlerFunc {
}
if mode == "sn" {
if m.SnMode != snModeSN {
errs = append(errs, importErr{pr.row, pr.code, "该物料为批次件,SN 导入仅支持序列号件(逐件SN)"})
errs = append(errs, importErr{pr.row, pr.code, "该物料序列号=否(按数量管理),SN 导入仅支持序列号=是(逐件SN)"})
continue
}
if pr.sn == "" {
@@ -376,7 +376,7 @@ func excelInboundHandler(ctx *svc.ServiceContext) http.HandlerFunc {
}
} else {
if m.SnMode != snModeBatch {
errs = append(errs, importErr{pr.row, pr.code, "该物料为序列号件,请使用 SN 导入"})
errs = append(errs, importErr{pr.row, pr.code, "该物料序列号=是(逐件SN管理),请使用 SN 导入"})
continue
}
if pr.qty <= 0 {