feat: add commerce adjustment operations

This commit is contained in:
Codex
2026-06-29 22:28:19 +08:00
parent f3577e257c
commit 9b17f25dd9
12 changed files with 1444 additions and 12 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -17,6 +17,14 @@ import {
refundNotifyRoute,
updateRefundStatusRoute,
} from './routes.js';
import {
adjustmentVoucherEventsRoute,
adjustmentVoucherReportRoute,
adjustmentVouchersRoute,
commerceOperationsAnomaliesRoute,
createAdjustmentVoucherRoute,
updateAdjustmentVoucherStatusRoute,
} from './adjustments.js';
import {
createReconciliationIssueRoute,
importReconciliationRoute,
@@ -54,6 +62,12 @@ export const commerceRoutes: RouteDefinition[] = [
['GET', '/api/commerce/reconciliation/batches', reconciliationBatchesRoute],
['GET', '/api/commerce/reconciliation/items', reconciliationItemsRoute],
['GET', '/api/commerce/reconciliation/anomalies', reconciliationAnomaliesRoute],
['GET', '/api/commerce/operations/anomalies', commerceOperationsAnomaliesRoute],
['GET', '/api/commerce/adjustment-vouchers', adjustmentVouchersRoute],
['POST', '/api/commerce/adjustment-vouchers', createAdjustmentVoucherRoute],
['POST', '/api/commerce/adjustment-vouchers/status', updateAdjustmentVoucherStatusRoute],
['GET', '/api/commerce/adjustment-vouchers/events', adjustmentVoucherEventsRoute],
['GET', '/api/commerce/adjustment-vouchers/report', adjustmentVoucherReportRoute],
['POST', '/api/commerce/reconciliation/provider-bills/request', requestProviderBillDownloadRoute],
['GET', '/api/commerce/reconciliation/provider-bills/jobs', providerBillDownloadJobsRoute],
['POST', '/api/commerce/reconciliation/issues/create', createReconciliationIssueRoute],

View File

@@ -92,6 +92,7 @@ export function tenantPermissionCatalog() {
{ key: 'tenant:payment:write', label: '商户配置管理' },
{ key: 'tenant:reconciliation:read', label: '资金对账查看' },
{ key: 'tenant:reconciliation:write', label: '资金对账导入' },
{ key: 'tenant:reconciliation:review', label: '资金差错复核' },
{ key: 'tenant:reconciliation:download', label: '官方账单下载' },
{ key: 'tenant:refund:read', label: '退款查看' },
{ key: 'tenant:refund:write', label: '退款申请/处理' },