feat: 企业微信提醒增加“AI智能体”提示
This commit is contained in:
1 parent
f269df7941
commit
26d213c05b
8 files changed
+289
-15
No files matched your search
@@ -3,7 +3,7 @@
|
||||
* 用途:工作台立账凭证检核任务列表、最近一次检核、批次明细、企微发送记录、通知配置与强制重检 API 客户端。
|
||||
* 依赖:@/shared/api/client、getAuthHeaders。
|
||||
* 逻辑:AccountingVoucherCheckView / DetailView / VoucherCheckNotifyConfigPanel 调用;
|
||||
* 对应 /api/workspace/accounting-voucher-check/* 与排程 Excel 下载。
|
||||
* 对应 /api/workspace/accounting-voucher-check/*,企微记录 Excel 也走该前缀。
|
||||
*/
|
||||
import { requestJson } from '@/shared/api/client';
|
||||
import { getAuthHeaders } from '@/shared/utils/auth';
|
||||
@@ -198,11 +198,15 @@ export function listVoucherCheckNotifications(params?: {
|
||||
|
||||
/**
|
||||
* 下载该排程批次的检核结果 Excel。
|
||||
* 核心逻辑:走立账凭证自己的下载接口,能看企微发送记录就能下,不要求是排程通知人。
|
||||
* @param scheduleRunId - ScheduleRun.id
|
||||
* @param filename - 回退文件名(无 Content-Disposition 时使用)
|
||||
*/
|
||||
export async function downloadVoucherCheckExcel(scheduleRunId: number, filename?: string | null) {
|
||||
const res = await fetch(`/api/workspace/schedule-runs/${scheduleRunId}/excel`, { headers: getAuthHeaders() });
|
||||
const res = await fetch(
|
||||
`/api/workspace/accounting-voucher-check/schedule-runs/${scheduleRunId}/excel`,
|
||||
{ headers: getAuthHeaders() },
|
||||
);
|
||||
if (!res.ok) {
|
||||
throw new Error('excel');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user