From a5e76313cb15682b37f09411d32337c5443c3007 Mon Sep 17 00:00:00 2001
From: sexygoat <1538832180@qq.com>
Date: Thu, 23 Apr 2026 14:59:05 +0800
Subject: [PATCH] fix: bug
---
.../widget/art-search-select/index.vue | 7 +-
src/types/api/asset.ts | 1 +
src/types/api/order.ts | 5 +-
src/types/api/refund.ts | 5 +
.../account-management/account/index.vue | 28 +-
.../components/BasicInfoCard.vue | 12 +-
.../components/CurrentPackageCard.vue | 249 ++++++-------
.../components/PackageListCard.vue | 28 +-
.../components/WalletTransactionCard.vue | 2 +-
.../composables/useAssetInfo.ts | 29 +-
.../asset-information/index.vue | 5 +
.../asset-management/device-list/index.vue | 261 +++++++++++---
.../exchange-management/index.vue | 20 +-
.../iot-card-management/index.vue | 133 ++++++-
.../record-management/asset-assign/detail.vue | 20 ++
.../record-management/asset-assign/index.vue | 181 ++++++----
.../authorization-records/index.vue | 42 ++-
src/views/finance/agent-recharge/detail.vue | 5 +-
src/views/finance/agent-recharge/index.vue | 20 +-
src/views/finance/refund/detail.vue | 335 +++++++++---------
src/views/finance/refund/index.vue | 125 ++++---
.../order-management/order-list/index.vue | 94 ++++-
.../package-management/package-list/index.vue | 75 +++-
.../package-series/index.vue | 48 ++-
.../series-grants/index.vue | 47 ++-
.../polling-management/concurrency/index.vue | 79 +----
src/views/polling-management/config/index.vue | 88 ++---
src/views/shop-management/list/index.vue | 42 ++-
28 files changed, 1284 insertions(+), 702 deletions(-)
diff --git a/src/components/core/forms/art-search-bar/widget/art-search-select/index.vue b/src/components/core/forms/art-search-bar/widget/art-search-select/index.vue
index af07afe..c4b64fb 100644
--- a/src/components/core/forms/art-search-bar/widget/art-search-select/index.vue
+++ b/src/components/core/forms/art-search-bar/widget/art-search-select/index.vue
@@ -8,6 +8,7 @@
:disabled="v.disabled || false"
>
+
@@ -39,7 +40,7 @@
// 合并默认配置和自定义配置
const config = reactive({
- placeholder: `${t('table.searchBar.searchSelectPlaceholder')}${prop.item.label}`, // 修改默认placeholder文案
+ placeholder: `${t('table.searchBar.searchSelectPlaceholder')}${prop.item.label}`,
...(prop.item.config || {})
})
@@ -56,14 +57,12 @@
// 计算属性:处理选项数据
const options = computed(() => {
if (prop.item.options) {
- // 判断options是数组还是函数
if (Array.isArray(prop.item.options)) {
return prop.item.options
} else {
return prop.item.options()
}
- } else {
- return []
}
+ return []
})
diff --git a/src/types/api/asset.ts b/src/types/api/asset.ts
index 5ab6cbf..42a7ead 100644
--- a/src/types/api/asset.ts
+++ b/src/types/api/asset.ts
@@ -209,6 +209,7 @@ export interface AssetPackageUsageRecord {
virtual_remain_mb?: number // 剩余虚流量 MB
virtual_ratio?: number // 虚流量比例(real/virtual)
enable_virtual_data?: boolean // 是否启用虚流量
+ paid_amount?: number // 实际支付金额(分)
package_price?: number // 套餐价格(分)
activated_at?: string // 激活时间
expires_at?: string // 到期时间
diff --git a/src/types/api/order.ts b/src/types/api/order.ts
index 1c98443..c9a6810 100644
--- a/src/types/api/order.ts
+++ b/src/types/api/order.ts
@@ -53,6 +53,7 @@ export interface Order {
actual_paid_amount?: number // 实付金额(分)
paid_at: string | null
commission_status: OrderCommissionStatus
+ commission_status_name?: string // 佣金状态名称(中文)
commission_config_version: number
device_id: number | null
iot_card_id: number | null
@@ -71,13 +72,15 @@ export interface OrderQueryParams {
page?: number
page_size?: number
payment_status?: PaymentStatus
+ payment_method?: OrderPaymentMethod
order_type?: OrderType
order_no?: string
- identifier?: string // 按资产标识符过滤
+ identifier?: string // 按资产标识符过滤(ICCID 或 VirtualNo)
purchase_role?: string // 订单渠道
buyer_phone?: string // 按买家手机号精确过滤
start_time?: string
end_time?: string
+ is_expired?: boolean // 是否已过期
dateRange?: string[] | any // For date range picker in UI
}
diff --git a/src/types/api/refund.ts b/src/types/api/refund.ts
index 93d050b..e8e9b5d 100644
--- a/src/types/api/refund.ts
+++ b/src/types/api/refund.ts
@@ -15,8 +15,12 @@ export interface Refund {
id: number
refund_no: string
order_id: number
+ order_no: string // 订单号
shop_id: number
+ shop_name: string // 店铺名称
package_usage_id: number | null
+ asset_identifier: string // 资产标识符
+ asset_type: string // 资产类型
requested_refund_amount: number // 申请退款金额(分)
approved_refund_amount: number | null // 实际退款金额(分)
actual_received_amount: number // 实收金额(分)
@@ -41,6 +45,7 @@ export interface RefundQueryParams {
status?: RefundStatus
order_id?: number
shop_id?: number
+ shop_name?: string // 店铺名称(模糊查询)
dateRange?: string[]
}
diff --git a/src/views/account-management/account/index.vue b/src/views/account-management/account/index.vue
index b73ac0f..8e70179 100644
--- a/src/views/account-management/account/index.vue
+++ b/src/views/account-management/account/index.vue
@@ -278,7 +278,7 @@
// 响应式表单数据
const formFilters = reactive({ ...initialSearchState })
- // 店铺和企业列表
+// 店铺和企业列表
const shopList = ref([])
const enterpriseList = ref([])
@@ -359,7 +359,18 @@
filterable: true,
remote: true,
remoteMethod: handleShopSearch,
- placeholder: '请输入店铺名称搜索'
+ placeholder: '请输入店铺名称搜索',
+ reserveKeyword: true
+ }
+ },
+ {
+ label: '状态',
+ prop: 'status',
+ type: 'select',
+ options: STATUS_SELECT_OPTIONS,
+ config: {
+ clearable: true,
+ placeholder: '请选择状态'
}
},
{
@@ -375,17 +386,8 @@
filterable: true,
remote: true,
remoteMethod: handleEnterpriseSearch,
- placeholder: '请输入企业名称搜索'
- }
- },
- {
- label: '状态',
- prop: 'status',
- type: 'select',
- options: STATUS_SELECT_OPTIONS,
- config: {
- clearable: true,
- placeholder: '请选择状态'
+ placeholder: '请输入企业名称搜索',
+ reserveKeyword: true
}
}
])
diff --git a/src/views/asset-management/asset-information/components/BasicInfoCard.vue b/src/views/asset-management/asset-information/components/BasicInfoCard.vue
index c489acc..051b100 100644
--- a/src/views/asset-management/asset-information/components/BasicInfoCard.vue
+++ b/src/views/asset-management/asset-information/components/BasicInfoCard.vue
@@ -194,6 +194,11 @@
+
+
+ {{ getRealnamePolicyName(scope.row.realname_policy) }}
+
+
{{ scope.row.real_name_at ? formatDateTime(scope.row.real_name_at) : '-' }}
@@ -229,7 +234,7 @@
设备实时信息
-
+
@@ -522,9 +527,12 @@
cardInfo: AssetInfo
deviceRealtime: DeviceRealtimeInfo | null
pollingEnabled: boolean
+ realtimeLoading?: boolean
}
- const props = defineProps()
+ const props = withDefaults(defineProps(), {
+ realtimeLoading: false
+ })
const { hasAuth } = useAuth()
diff --git a/src/views/asset-management/asset-information/components/CurrentPackageCard.vue b/src/views/asset-management/asset-information/components/CurrentPackageCard.vue
index ffe5a33..1b5c09d 100644
--- a/src/views/asset-management/asset-information/components/CurrentPackageCard.vue
+++ b/src/views/asset-management/asset-information/components/CurrentPackageCard.vue
@@ -2,66 +2,9 @@