优化财务相关功能

This commit is contained in:
lifenlong
2026-06-07 16:57:23 +08:00
parent 0da6ef99af
commit 734825ba9b
28 changed files with 999 additions and 27 deletions

25
seller/src/api/finance.js Normal file
View File

@@ -0,0 +1,25 @@
/**
* 商家端财务 API。
* 所有接口由后端强制限定为当前登录店铺,无需前端传 storeId。
*/
import { getRequest } from "@/libs/axios";
/** 导出本店流水明细 */
export const exportStoreFlow = (params) => {
return getRequest("/finance/store-flow/export", params, "blob");
};
/** 导出本店结算单列表 */
export const exportBillList = (params) => {
return getRequest("/finance/bill-list/export", params, "blob");
};
/** 本店周期财务汇总查询 */
export const getStoreSummary = (params) => {
return getRequest("/finance/report/store-summary", params);
};
/** 导出本店周期财务汇总 */
export const exportStoreSummary = (params) => {
return getRequest("/finance/report/store-summary/export", params, "blob");
};