feat: 角色默认信用与店铺实际额度管理
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 6m12s

This commit is contained in:
luo
2026-07-23 14:10:48 +08:00
parent d5fd8ac564
commit d7c2c146fe
14 changed files with 669 additions and 21 deletions

View File

@@ -215,6 +215,12 @@ export interface ShopFundSummaryItem {
frozen_balance: number // 现金冻结金额(分)
cash_available: number // 现金可用余额(分)
low_balance_warning: boolean // 现金可用余额不足100元预警
credit_enabled: boolean // 实际信用额度是否启用
credit_limit: number // 实际信用额度(分)
available_balance: number // 可用金额(分),以后端返回为准
is_in_debt: boolean // 是否欠款,以后端返回为准
debt_amount: number // 欠款金额(分),以后端返回为准
version: number // 资金概况版本,用于并发控制
total_commission: number // 总佣金(分)
available_commission: number // 可提现佣金(分)
frozen_commission: number // 冻结中佣金(分)

View File

@@ -28,6 +28,8 @@ export interface PlatformRole {
role_desc: string // 角色描述
role_type: RoleType // 角色类型
status: RoleStatus // 状态
credit_enabled?: boolean // 新建代理默认信用是否启用(仅客户角色)
credit_limit?: number // 新建代理默认信用额度(分,仅客户角色)
}
// 角色查询参数
@@ -44,3 +46,9 @@ export interface PlatformRoleFormData {
role_type: RoleType
status: RoleStatus
}
// 更新客户角色默认信用参数
export interface UpdateRoleDefaultCreditRequest {
credit_enabled: boolean
credit_limit: number
}

View File

@@ -101,3 +101,10 @@ export interface ShopRolesResponse {
export interface AssignShopRolesRequest {
role_ids: number[] | null // 角色ID列表
}
// 更新店铺实际信用额度请求
export interface UpdateShopCreditLimitRequest {
credit_enabled: boolean // 是否启用实际信用额度
credit_limit: number // 实际信用额度(分)
version: number // 资金概况版本,用于并发控制
}

View File

@@ -87,10 +87,8 @@ declare module 'vue' {
ElAlert: typeof import('element-plus/es')['ElAlert']
ElAvatar: typeof import('element-plus/es')['ElAvatar']
ElButton: typeof import('element-plus/es')['ElButton']
ElCalendar: typeof import('element-plus/es')['ElCalendar']
ElCard: typeof import('element-plus/es')['ElCard']
ElCascader: typeof import('element-plus/es')['ElCascader']
ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
ElCol: typeof import('element-plus/es')['ElCol']
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
@@ -113,9 +111,7 @@ declare module 'vue' {
ElOption: typeof import('element-plus/es')['ElOption']
ElPagination: typeof import('element-plus/es')['ElPagination']
ElPopover: typeof import('element-plus/es')['ElPopover']
ElProgress: typeof import('element-plus/es')['ElProgress']
ElRadio: typeof import('element-plus/es')['ElRadio']
ElRadioButton: typeof import('element-plus/es')['ElRadioButton']
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
ElRow: typeof import('element-plus/es')['ElRow']
ElScrollbar: typeof import('element-plus/es')['ElScrollbar']
@@ -127,8 +123,6 @@ declare module 'vue' {
ElTabPane: typeof import('element-plus/es')['ElTabPane']
ElTabs: typeof import('element-plus/es')['ElTabs']
ElTag: typeof import('element-plus/es')['ElTag']
ElTimeline: typeof import('element-plus/es')['ElTimeline']
ElTimelineItem: typeof import('element-plus/es')['ElTimelineItem']
ElTooltip: typeof import('element-plus/es')['ElTooltip']
ElTreeSelect: typeof import('element-plus/es')['ElTreeSelect']
ElUpload: typeof import('element-plus/es')['ElUpload']