feat(chat): 更新发货任务处理逻辑和界面文本
- 移除不必要的状态引用 - 更新上传处理提示文本,使用国际化支持 - 扩展发货任务摘要接口,增加错误信息和短缺信息 - 更新多语言支持的文本,改善用户体验 - 增加批次工作区的汇总信息和操作提示
This commit is contained in:
1 parent
0b083cfdbd
commit
1fc9976ca3
60 files changed
+3876
-639
No files matched your search
@@ -146,12 +146,13 @@ def test_batch_process_summary_shared_formula(app):
|
||||
db.session.commit()
|
||||
|
||||
tasks = [done, running]
|
||||
assert compute_batch_process_summary(tasks) == {
|
||||
"total": 2,
|
||||
"completed": 1,
|
||||
"failed": 0,
|
||||
"running": 1,
|
||||
}
|
||||
summary = compute_batch_process_summary(tasks)
|
||||
assert summary["total"] == 2
|
||||
assert summary["completed"] == 1
|
||||
assert summary["failed"] == 0
|
||||
assert summary["running"] == 1
|
||||
assert summary["pending"] == 2
|
||||
assert summary["current_task_no"] == "SN-RUN"
|
||||
tool_batch = serialize_batch(batch, BatchProjection.TOOL)
|
||||
assert tool_batch["process_summary"]["completed"] == 1
|
||||
assert tool_batch["batch_no"] == "SB-SUMMARY"
|
||||
|
||||
Reference in new issue
Block a user