merge: 合并最新 main 到 dev_11.15
This commit is contained in:
@@ -155,6 +155,7 @@ export interface FinanceDisbursementItem {
|
||||
paid_at?: string
|
||||
operator_id?: number
|
||||
operator_name: string
|
||||
actual_operator_name: string
|
||||
remark: string
|
||||
category: string
|
||||
custom_category_name: string
|
||||
@@ -204,6 +205,7 @@ export interface FinanceDisbursementQuery extends FinanceDateQuery {
|
||||
operator?: string
|
||||
operator_name?: string
|
||||
operator_id?: string
|
||||
actual_operator?: string
|
||||
user_id?: string
|
||||
page?: number
|
||||
page_size?: number
|
||||
|
||||
@@ -2,8 +2,8 @@ import { apiClient } from '@/shared/api/client'
|
||||
|
||||
import type { ApiResponse, PaginatedResult } from '@/shared/types/types'
|
||||
|
||||
/** 录单可选项类型:平台 / 操作人 */
|
||||
export type ManualEntryOptionType = 'platform' | 'operator'
|
||||
/** 可选项类型:平台 / 录单操作人 / 出款实际操作人 */
|
||||
export type ManualEntryOptionType = 'platform' | 'operator' | 'disbursement_operator'
|
||||
|
||||
/** 录单组别:收号 / 出号 */
|
||||
export type ManualEntryGroup = 'collect' | 'sell'
|
||||
@@ -34,6 +34,7 @@ export interface ManualEntryOption {
|
||||
export interface ManualEntryOptions {
|
||||
platforms: ManualEntryOption[]
|
||||
operators: ManualEntryOption[]
|
||||
disbursement_operators: ManualEntryOption[]
|
||||
}
|
||||
|
||||
export interface ManualEntryAgentStats {
|
||||
@@ -121,6 +122,14 @@ export async function fetchManualEntryOptions() {
|
||||
return data.data
|
||||
}
|
||||
|
||||
/** 获取线下结算实际操作人选项。 */
|
||||
export async function fetchDisbursementOperators() {
|
||||
const { data } = await apiClient.get<ApiResponse<ManualEntryOption[]>>(
|
||||
'/admin/manual-entries/options/disbursement-operators'
|
||||
)
|
||||
return data.data
|
||||
}
|
||||
|
||||
export async function createManualEntryOption(payload: {
|
||||
type: ManualEntryOptionType
|
||||
name: string
|
||||
|
||||
@@ -45,6 +45,7 @@ export interface AdminPickup {
|
||||
status: string
|
||||
offline_settlement_status: PickupOfflineSettlementStatus
|
||||
offline_settlement_remark: string
|
||||
offline_settlement_actual_operator: string
|
||||
offline_settled_by?: number
|
||||
offline_settled_at?: string
|
||||
remark: string
|
||||
@@ -140,6 +141,7 @@ export interface AdminPickupThirdPartyOrderNoUpdateRequest {
|
||||
}
|
||||
|
||||
export interface AdminPickupOfflineSettlementRequest {
|
||||
actual_operator: string
|
||||
remark?: string
|
||||
}
|
||||
|
||||
@@ -347,7 +349,7 @@ export async function completeAdminPickup(id: number, req: AdminPickupCompleteRe
|
||||
|
||||
export async function confirmAdminPickupOfflineSettlement(
|
||||
id: number,
|
||||
req: AdminPickupOfflineSettlementRequest = {}
|
||||
req: AdminPickupOfflineSettlementRequest
|
||||
) {
|
||||
const { data } = await apiClient.post<ApiResponse<AdminPickup>>(
|
||||
`/admin/pickups/${id}/offline-settlement`,
|
||||
|
||||
Reference in New Issue
Block a user