feat(shipping-notice): 完成货代发货通知全流程开发与代码重构
- 新增PO号提取、预约ID解析(支持`PR@xxx`格式)工具,完善库存匹配逻辑 - 新增库存映射缓存、匹配/解析结果格式化摘要,优化用户提示 - 修复数据库迁移脚本未检查表存在的问题,避免全新部署失败 - 新增路径工具类统一管理相对路径,优化配置文件处理逻辑 - 归档旧文档,将部署、Dify配置合并到`shipping_notice.md` - 新增完整单元测试与集成测试覆盖核心流程 - 更新前端国际化与会话管理逻辑,优化界面交互
This commit is contained in:
1 parent
b62082758b
commit
8deae3146b
65 files changed
+6477
-1937
No files matched your search
@@ -204,16 +204,17 @@ export function useAgentsAdmin() {
|
||||
isTesting.value = true;
|
||||
try {
|
||||
const data = await testAdminAgent(target.id);
|
||||
const passed = !!(data as any)?.passed;
|
||||
testResult.value = {
|
||||
success: !!data.success,
|
||||
success: passed,
|
||||
request_url: data.request_url || '',
|
||||
output_info: data.output_info || '',
|
||||
analysis: data.analysis || (data.success ? t('admin.agent.testDone') : t('admin.agent.testFailed')),
|
||||
analysis: data.analysis || (passed ? t('admin.agent.testDone') : t('admin.agent.testFailed')),
|
||||
http_status: data.http_status,
|
||||
tested_at: data.tested_at,
|
||||
};
|
||||
|
||||
if (data.success) {
|
||||
if (passed) {
|
||||
const idx = agents.value.findIndex((a) => a.id === target.id);
|
||||
const row = idx >= 0 ? agents.value[idx] : undefined;
|
||||
if (row) {
|
||||
|
||||
Reference in new issue
Block a user