feat(ui): 工作台界面全部替换为element plus
This commit is contained in:
1 parent
26d213c05b
commit
d5f988a16c
38 files changed
+4501
-3087
No files matched your search
@@ -4,7 +4,7 @@ backend/app/services/voucher_check/runner.py
|
||||
用途:销售一期周批次编排(上月清单、目录扫描、按票归档、缺件聚合、Excel、企微汇总)。
|
||||
依赖:profile_loader、adapters、dms_client、aggregator、engine_persistence、excel_rows、notification。
|
||||
逻辑:不调用 erp_po_print.fetch / oa_sales_release.fetch;PO PDF 由 accounting-voucher-po-print(周二 05:00)、销货放行单由 accounting-voucher-oa-sales-release(周二 05:30)提前写入类型目录。
|
||||
命中文件复制到所有归档,同名跳过仍记 archived。
|
||||
命中文件复制到所有归档,同名跳过仍记 archived。缺件通知附带与排程落库相同的检核结果 Excel。
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
@@ -28,7 +28,11 @@ from app.services.voucher_check.engine_persistence import (
|
||||
persist_engine_results,
|
||||
)
|
||||
from app.services.voucher_check.erp_repository import previous_period_bounds
|
||||
from app.services.voucher_check.excel_rows import to_excel_invoice_row
|
||||
from app.services.voucher_check.excel_rows import (
|
||||
VOUCHER_CHECK_HEADER_LABELS,
|
||||
VOUCHER_CHECK_HEADER_ORDER,
|
||||
to_excel_invoice_row,
|
||||
)
|
||||
from app.services.voucher_check.notification import send_batch_missing_summary, send_failure_alert
|
||||
from app.services.voucher_check.profile_loader import ensure_published_profile, load_profile_definition
|
||||
from app.services.voucher_check.profiles.sales import required_file_rules
|
||||
@@ -369,8 +373,18 @@ def run_voucher_check_batch(task: ScheduleTask, run: ScheduleRun) -> ScheduleExe
|
||||
to_excel_invoice_row(item, period=period, executed_at=executed_at)
|
||||
for item in stats["excel_rows"]
|
||||
]
|
||||
from app.services.schedule.excel_service import export_schedule_result_excel
|
||||
|
||||
# [STEP 4] 按文件类型接收人拆成每人一封缺件通知
|
||||
# 与排程落库用同一导出,保证企微附件和事后下载是同一张表。
|
||||
excel_bytes, _, _ = export_schedule_result_excel(
|
||||
run_no=run.run_no,
|
||||
summary={"period": period},
|
||||
details=details,
|
||||
header_order=list(VOUCHER_CHECK_HEADER_ORDER),
|
||||
header_labels=VOUCHER_CHECK_HEADER_LABELS,
|
||||
)
|
||||
|
||||
# [STEP 4] 按文件类型接收人拆成每人一封缺件通知,并附上本批 Excel
|
||||
notify_status = send_batch_missing_summary(
|
||||
task=task,
|
||||
schedule_run=run,
|
||||
@@ -379,6 +393,7 @@ def run_voucher_check_batch(task: ScheduleTask, run: ScheduleRun) -> ScheduleExe
|
||||
period_month=period,
|
||||
stats=stats,
|
||||
excel_filename=excel_filename,
|
||||
excel_bytes=excel_bytes,
|
||||
enabled=config.notify_missing_enabled,
|
||||
)
|
||||
step_logs.append(
|
||||
|
||||
Reference in new issue
Block a user