fix: 回调配置, 调整信用位置, 套餐
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 6m55s
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 6m55s
This commit is contained in:
@@ -26,6 +26,10 @@ export interface PlatformAccount {
|
||||
enterprise_name?: string // ⭐ 新增:企业名称
|
||||
shop_id?: number | null // 关联店铺ID
|
||||
shop_name?: string // ⭐ 新增:店铺名称
|
||||
wecom_bound?: boolean // 是否已绑定企业微信账号
|
||||
wecom_corp_id?: string // 企业微信 CorpID
|
||||
wecom_name?: string // 企业微信成员名称
|
||||
wecom_userid?: string // 企业微信成员 UserID
|
||||
status: AccountStatus // 状态 (0:禁用, 1:启用)
|
||||
}
|
||||
|
||||
|
||||
@@ -13,10 +13,17 @@ export enum AgentRechargeStatus {
|
||||
}
|
||||
|
||||
// 支付方式
|
||||
export type AgentRechargePaymentMethod = 'wechat' | 'offline'
|
||||
export type AgentRechargeOnlinePaymentMethod = 'wechat' | 'alipay'
|
||||
export type AgentRechargePaymentMethod = AgentRechargeOnlinePaymentMethod | 'offline'
|
||||
|
||||
// 充值来源
|
||||
export type AgentRechargeSource = 'agent_online' | 'platform_offline'
|
||||
|
||||
// 第三方支付状态
|
||||
export type AgentRechargePaymentStatus = 0 | 1 | 2 | 3
|
||||
|
||||
// 支付通道
|
||||
export type AgentRechargePaymentChannel = 'wechat_direct' | 'fuyou' | 'offline'
|
||||
export type AgentRechargePaymentChannel = string
|
||||
|
||||
// 代理充值订单
|
||||
export interface AgentRecharge {
|
||||
@@ -31,7 +38,14 @@ export interface AgentRecharge {
|
||||
payment_method: AgentRechargePaymentMethod
|
||||
payment_channel: AgentRechargePaymentChannel
|
||||
payment_config_id: number | null
|
||||
payment_transaction_id: string
|
||||
payment_transaction_id: string | null
|
||||
payment_no?: string | null
|
||||
request_id?: string | null
|
||||
qr_content?: string | null
|
||||
payment_status?: AgentRechargePaymentStatus | null
|
||||
payment_status_name?: string | null
|
||||
recharge_source?: AgentRechargeSource | null
|
||||
recharge_source_name?: string | null
|
||||
payment_voucher_key?: string[] | string // 凭证附件列表;历史数据可能为单字符串或逗号字符串
|
||||
rejection_reason?: string | null // 拒绝原因
|
||||
remark?: string // 运营备注
|
||||
@@ -57,6 +71,7 @@ export interface AgentRechargeQueryParams {
|
||||
page_size?: number
|
||||
shop_id?: number
|
||||
status?: AgentRechargeStatus
|
||||
recharge_source?: AgentRechargeSource
|
||||
start_date?: string
|
||||
end_date?: string
|
||||
dateRange?: string[] // For date range picker in UI
|
||||
@@ -72,14 +87,45 @@ export interface AgentRechargeListResponse {
|
||||
}
|
||||
|
||||
// 创建代理充值订单请求
|
||||
export interface CreateAgentRechargeRequest {
|
||||
export interface CreateAgentRechargeOnlineRequest {
|
||||
amount: number // 充值金额(单位:分),最小 1(即 ¥0.01)
|
||||
payment_method: AgentRechargePaymentMethod
|
||||
payment_method: AgentRechargeOnlinePaymentMethod
|
||||
request_id: string
|
||||
}
|
||||
|
||||
export interface CreateAgentRechargeOfflineRequest {
|
||||
amount: number // 充值金额(单位:分),最小 1(即 ¥0.01)
|
||||
payment_method: 'offline'
|
||||
shop_id: number
|
||||
payment_voucher_key?: string[] // 线下支付凭证附件列表(payment_method=offline 时必填)
|
||||
payment_voucher_key: string[] // 线下支付凭证附件列表(payment_method=offline 时必填)
|
||||
remark?: string // 运营备注,最多 1000 字
|
||||
}
|
||||
|
||||
export type CreateAgentRechargeRequest =
|
||||
| CreateAgentRechargeOnlineRequest
|
||||
| CreateAgentRechargeOfflineRequest
|
||||
|
||||
// 在线充值可用支付方式和金额范围
|
||||
export interface AgentRechargePaymentMethods {
|
||||
methods: AgentRechargeOnlinePaymentMethod[]
|
||||
min_amount: number
|
||||
max_amount: number
|
||||
}
|
||||
|
||||
// 在线充值支付及钱包到账状态
|
||||
export interface AgentRechargePaymentStatusResponse {
|
||||
recharge_id: number
|
||||
recharge_no: string
|
||||
recharge_source: AgentRechargeSource
|
||||
recharge_source_name?: string | null
|
||||
status: AgentRechargeStatus
|
||||
status_name?: string | null
|
||||
payment_status: AgentRechargePaymentStatus
|
||||
payment_status_name?: string | null
|
||||
paid_at: string | null
|
||||
completed_at: string | null
|
||||
}
|
||||
|
||||
// 确认线下充值请求
|
||||
export interface ConfirmOfflinePaymentRequest {
|
||||
operation_password: string
|
||||
|
||||
@@ -17,7 +17,7 @@ export interface SystemConfigItem {
|
||||
value_type: SystemConfigValueType
|
||||
description: string
|
||||
control: string
|
||||
enum_values: string[]
|
||||
enum_values?: string[]
|
||||
min: number | null
|
||||
max: number | null
|
||||
readonly: boolean
|
||||
|
||||
3
src/types/components.d.ts
vendored
3
src/types/components.d.ts
vendored
@@ -148,9 +148,12 @@ declare module 'vue' {
|
||||
RouterLink: typeof import('vue-router')['RouterLink']
|
||||
RouterView: typeof import('vue-router')['RouterView']
|
||||
SectionTitle: typeof import('./../components/core/layouts/art-settings-panel/widget/SectionTitle.vue')['default']
|
||||
SeriesGrantPackageDialog: typeof import('./../components/business/SeriesGrantPackageDialog.vue')['default']
|
||||
SeriesGrantPackageTable: typeof import('./../components/business/SeriesGrantPackageTable.vue')['default']
|
||||
SettingDrawer: typeof import('./../components/core/layouts/art-settings-panel/widget/SettingDrawer.vue')['default']
|
||||
SettingHeader: typeof import('./../components/core/layouts/art-settings-panel/widget/SettingHeader.vue')['default']
|
||||
SettingItem: typeof import('./../components/core/layouts/art-settings-panel/widget/SettingItem.vue')['default']
|
||||
ShopCreditLimitDialog: typeof import('./../components/business/ShopCreditLimitDialog.vue')['default']
|
||||
SidebarSubmenu: typeof import('./../components/core/layouts/art-menus/art-sidebar-menu/widget/SidebarSubmenu.vue')['default']
|
||||
SpeedLimitDialog: typeof import('./../components/device/SpeedLimitDialog.vue')['default']
|
||||
SwitchCardDialog: typeof import('./../components/device/SwitchCardDialog.vue')['default']
|
||||
|
||||
Reference in New Issue
Block a user