fix: 隐藏虚比,同步订单号
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m53s

This commit is contained in:
sexygoat
2026-04-27 11:59:20 +08:00
parent 6c9b29c53b
commit 853c87b8a2
3 changed files with 19 additions and 23 deletions

View File

@@ -36,20 +36,19 @@
<div class="flow-stat-item"> <div class="flow-stat-item">
<span class="flow-stat-label">总量</span> <span class="flow-stat-label">总量</span>
<span class="flow-stat-value"> <span class="flow-stat-value">
{{ {{ formatDataSize(currentPackage.data_limit_mb || 0) }}
formatDataSize(
currentPackage.data_limit_mb || currentPackage.package_total_data || 0
)
}}
</span> </span>
</div> </div>
<div <div v-if="isAdminOrPlatform" class="flow-stat-item">
v-if="isAdminOrPlatform && currentPackage.enable_virtual_data"
class="flow-stat-item"
>
<span class="flow-stat-label">实际可用</span> <span class="flow-stat-label">实际可用</span>
<span class="flow-stat-value"> <span class="flow-stat-value">
{{ formatDataSize(currentPackage.virtual_limit_mb || 0) }} {{
formatDataSize(
currentPackage.enable_virtual_data
? currentPackage.virtual_limit_mb || 0
: currentPackage.data_limit_mb || 0
)
}}
</span> </span>
</div> </div>
<div class="flow-stat-item"> <div class="flow-stat-item">
@@ -59,8 +58,7 @@
formatDataSize( formatDataSize(
currentPackage.enable_virtual_data currentPackage.enable_virtual_data
? currentPackage.virtual_remain_mb || 0 ? currentPackage.virtual_remain_mb || 0
: (currentPackage.data_limit_mb || currentPackage.package_total_data || 0) - : (currentPackage.data_limit_mb || 0) - (currentPackage.data_usage_mb || 0)
(currentPackage.data_usage_mb || 0)
) )
}} }}
</span> </span>
@@ -100,7 +98,7 @@
</div> </div>
<!-- 套餐详情表格 --> <!-- 套餐详情表格 -->
<ElDescriptions :column="3" border class="package-info-table"> <ElDescriptions :column="4" border class="package-info-table">
<ElDescriptionsItem label="订单号"> <ElDescriptionsItem label="订单号">
{{ currentPackage.order_no || '-' }} {{ currentPackage.order_no || '-' }}
</ElDescriptionsItem> </ElDescriptionsItem>
@@ -113,12 +111,12 @@
<ElDescriptionsItem label="套餐类型"> <ElDescriptionsItem label="套餐类型">
{{ getPackageTypeName(currentPackage.package_type) }} {{ getPackageTypeName(currentPackage.package_type) }}
</ElDescriptionsItem> </ElDescriptionsItem>
<ElDescriptionsItem <!--<ElDescriptionsItem-->
v-if="isAdminOrPlatform && currentPackage.enable_virtual_data" <!-- v-if="isAdminOrPlatform && currentPackage.enable_virtual_data"-->
label="虚流量比例" <!-- label="虚流量比例"-->
> <!--&gt;-->
{{ currentPackage.virtual_ratio || '-' }} <!-- {{ currentPackage.virtual_ratio || '-' }}-->
</ElDescriptionsItem> <!--</ElDescriptionsItem>-->
<ElDescriptionsItem label="开始时间"> <ElDescriptionsItem label="开始时间">
{{ formatDateTime(currentPackage.start_time) || '-' }} {{ formatDateTime(currentPackage.start_time) || '-' }}
</ElDescriptionsItem> </ElDescriptionsItem>

View File

@@ -187,6 +187,8 @@ export function useAssetInfo() {
currentPackage.value = { currentPackage.value = {
id: pkg.package_usage_id || 0, id: pkg.package_usage_id || 0,
package_id: pkg.package_id || 0, package_id: pkg.package_id || 0,
order_id: pkg.order_id || 0,
order_no: pkg.order_no || '',
package_name: pkg.package_name || '', package_name: pkg.package_name || '',
paid_amount: pkg.paid_amount || 0, paid_amount: pkg.paid_amount || 0,
package_total_data: pkg.data_limit_mb || 0, package_total_data: pkg.data_limit_mb || 0,

View File

@@ -363,7 +363,6 @@
if (res.code === 0) { if (res.code === 0) {
ElMessage.success('设置切卡模式成功') ElMessage.success('设置切卡模式成功')
switchModeDialogVisible.value = false switchModeDialogVisible.value = false
await refreshAsset(cardInfo.value!.identifier, cardInfo.value!.asset_type)
} else { } else {
ElMessage.error(res.msg || '设置切卡模式失败') ElMessage.error(res.msg || '设置切卡模式失败')
} }
@@ -405,7 +404,6 @@
* 更新实名状态成功 * 更新实名状态成功
*/ */
const handleUpdateRealnameStatusSuccess = async () => { const handleUpdateRealnameStatusSuccess = async () => {
await refreshAsset(cardInfo.value!.identifier, cardInfo.value!.asset_type)
} }
/** /**
@@ -421,7 +419,6 @@
* 绑定卡更新实名状态成功 * 绑定卡更新实名状态成功
*/ */
const handleBindingCardRealnameStatusSuccess = async () => { const handleBindingCardRealnameStatusSuccess = async () => {
await refreshAsset(cardInfo.value!.identifier, cardInfo.value!.asset_type)
} }
/** /**
@@ -435,7 +432,6 @@
if (res.code === 0) { if (res.code === 0) {
ElMessage.success('设置实名认证策略成功') ElMessage.success('设置实名认证策略成功')
realnamePolicyDialogVisible.value = false realnamePolicyDialogVisible.value = false
await refreshAsset(cardInfo.value!.identifier, cardInfo.value!.asset_type)
} else { } else {
ElMessage.error(res.msg || '设置实名认证策略失败') ElMessage.error(res.msg || '设置实名认证策略失败')
} }