feat(shipping-freight-auto-upload): 新增货代发货Excel连接级自动上传全链路功能
为提升货代上传的自动化程度,减少人工操作,本提交实现完整的连接级自动上传功能,包含以下变更: - 新增数据库迁移与ShippingRpaProfile模型字段,存储连接级上传配置 - 完善RPA自动上传触发、回调与状态管理逻辑,支持三态结果与人工兜底 - 优化聊天界面任务卡片加载与按钮渲染,修复无文案幽灵按钮问题
This commit is contained in:
1 parent
06c18b3c7c
commit
434c04ed2d
30 files changed
+1574
-185
No files matched your search
@@ -0,0 +1,33 @@
|
||||
"""为连接级发货 Excel 自动上传增加 upload_config_json。
|
||||
|
||||
用途:货代发货 Excel 自动上传配置保存在 ShippingRpaProfile.upload_config_json,
|
||||
一条连接只保存一份受限配置(enabled / entry_url / file_input_selector / submit_mode /
|
||||
submit_selector / result_mode / result_selector / success_texts / timeout_seconds)。
|
||||
依赖:shipping_rpa_profiles。
|
||||
逻辑:新增可空 JSON 列;既有连接默认 NULL(未配置上传)。不新增 Upload Profile / 关联表 / 版本表,
|
||||
upload_config 变更不递增 config_version。流程为“login_url 登录 → 访问 upload_config.entry_url 上传页”。
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
revision = 'hs1t2u3v4w5x'
|
||||
down_revision = 'hq0r1s2t3u4v'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
"""在 shipping_rpa_profiles 增加可空的 upload_config_json 列。"""
|
||||
op.add_column(
|
||||
'shipping_rpa_profiles',
|
||||
sa.Column('upload_config_json', sa.JSON(), nullable=True),
|
||||
)
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
"""回滚:删除 upload_config_json 列。"""
|
||||
op.drop_column('shipping_rpa_profiles', 'upload_config_json')
|
||||
Reference in new issue
Block a user