feat: 重构入库流程,支持序列号与类型解耦,新增通用入库组件

- 重构物料档案字段:将"序列号件"改为"序列号",描述是否有序列号,与类型独立
- 调整入库页逻辑:按物料"序列号"决定记账方式,类型仅用于页签归属
- 新增通用入库组件 InboundEntry,复用三个类型页签的表单逻辑
- 优化成品入库页面,提交后自动切换到入库列表页签
- 修正物料校验提示文案,统一表述为"是否有序列号"
This commit is contained in:
SunYF
2026-10-07 20:00:06 +08:00
parent 756d978900
commit 7c7c16ee6d
20 changed files with 621 additions and 759 deletions
+1 -1
View File
@@ -536,7 +536,7 @@ func archiveAttachmentsHandler(ctx *svc.ServiceContext) http.HandlerFunc {
marked++
}
if !req.DryRun {
ctx.EventLog.Write(ctx0(), "attachment.archive", r.Header.Get("X-Username"), "attachment", "archive",
ctx.EventLog.Write(ctx0(), "attachment.archive", r.Header.Get("X-Username"), "attachment", "",
fmt.Sprintf("附件归档:移动%d 标记%d 失败%d(早于 %d 年)", moved, marked, failed, cutYear),
map[string]any{"moved": moved, "marked": marked, "failed": failed})
}