feat(invoice check): 立账凭证检核优化部分代码
This commit is contained in:
1 parent
21d41acf50
commit
d123d9cdf6
45 files changed
+498
-2508
No files matched your search
@@ -1,7 +1,7 @@
|
||||
"""
|
||||
backend/app/api/workspace/voucher_check.py
|
||||
|
||||
用途:工作台立账凭证检核查询与强制重检 API(任务列表 / 批次明细 / 兼容旧状态)。
|
||||
用途:工作台立账凭证检核查询与强制重检 API(任务列表 / 批次明细 / 企微发送记录)。
|
||||
依赖:auth.jwt、response_utils envelope、voucher_check.query_service。
|
||||
逻辑:对话与检核任务页共用;GET notifications 为企微发送记录;POST runs 仅 admin,以 force_all 入队周批排程。
|
||||
"""
|
||||
@@ -99,32 +99,3 @@ def workspace_voucher_notifications():
|
||||
page_size=request.args.get("page_size", default=50, type=int) or 50,
|
||||
)
|
||||
return ok(data)
|
||||
|
||||
|
||||
@workspace_voucher_check_bp.route("/accounting-voucher-check/states", methods=["GET"])
|
||||
def workspace_voucher_states():
|
||||
"""
|
||||
按月份、状态、发票号筛选最新状态。
|
||||
"""
|
||||
_require_user()
|
||||
data = query_service.list_states(
|
||||
scope_code=str(request.args.get("scope_code") or "HXJM"),
|
||||
period=request.args.get("period"),
|
||||
status=request.args.get("status"),
|
||||
invoice_no=request.args.get("invoice_no"),
|
||||
page=request.args.get("page", default=1, type=int) or 1,
|
||||
page_size=request.args.get("page_size", default=50, type=int) or 50,
|
||||
)
|
||||
return ok(data)
|
||||
|
||||
|
||||
@workspace_voucher_check_bp.route("/accounting-voucher-check/states/<path:invoice_no>", methods=["GET"])
|
||||
def workspace_voucher_state_detail(invoice_no: str):
|
||||
"""查看单票最近状态和历史批次快照。"""
|
||||
_require_user()
|
||||
data = query_service.get_invoice_latest(
|
||||
invoice_no=invoice_no,
|
||||
scope_code=str(request.args.get("scope_code") or "HXJM"),
|
||||
period=request.args.get("period"),
|
||||
)
|
||||
return ok(data)
|
||||
Reference in new issue
Block a user