fix: 隐藏虚比,同步订单号
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m53s
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m53s
This commit is contained in:
@@ -36,20 +36,19 @@
|
||||
<div class="flow-stat-item">
|
||||
<span class="flow-stat-label">总量</span>
|
||||
<span class="flow-stat-value">
|
||||
{{
|
||||
formatDataSize(
|
||||
currentPackage.data_limit_mb || currentPackage.package_total_data || 0
|
||||
)
|
||||
}}
|
||||
{{ formatDataSize(currentPackage.data_limit_mb || 0) }}
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
v-if="isAdminOrPlatform && currentPackage.enable_virtual_data"
|
||||
class="flow-stat-item"
|
||||
>
|
||||
<div v-if="isAdminOrPlatform" class="flow-stat-item">
|
||||
<span class="flow-stat-label">实际可用</span>
|
||||
<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>
|
||||
</div>
|
||||
<div class="flow-stat-item">
|
||||
@@ -59,8 +58,7 @@
|
||||
formatDataSize(
|
||||
currentPackage.enable_virtual_data
|
||||
? currentPackage.virtual_remain_mb || 0
|
||||
: (currentPackage.data_limit_mb || currentPackage.package_total_data || 0) -
|
||||
(currentPackage.data_usage_mb || 0)
|
||||
: (currentPackage.data_limit_mb || 0) - (currentPackage.data_usage_mb || 0)
|
||||
)
|
||||
}}
|
||||
</span>
|
||||
@@ -100,7 +98,7 @@
|
||||
</div>
|
||||
|
||||
<!-- 套餐详情表格 -->
|
||||
<ElDescriptions :column="3" border class="package-info-table">
|
||||
<ElDescriptions :column="4" border class="package-info-table">
|
||||
<ElDescriptionsItem label="订单号">
|
||||
{{ currentPackage.order_no || '-' }}
|
||||
</ElDescriptionsItem>
|
||||
@@ -113,12 +111,12 @@
|
||||
<ElDescriptionsItem label="套餐类型">
|
||||
{{ getPackageTypeName(currentPackage.package_type) }}
|
||||
</ElDescriptionsItem>
|
||||
<ElDescriptionsItem
|
||||
v-if="isAdminOrPlatform && currentPackage.enable_virtual_data"
|
||||
label="虚流量比例"
|
||||
>
|
||||
{{ currentPackage.virtual_ratio || '-' }}
|
||||
</ElDescriptionsItem>
|
||||
<!--<ElDescriptionsItem-->
|
||||
<!-- v-if="isAdminOrPlatform && currentPackage.enable_virtual_data"-->
|
||||
<!-- label="虚流量比例"-->
|
||||
<!-->-->
|
||||
<!-- {{ currentPackage.virtual_ratio || '-' }}-->
|
||||
<!--</ElDescriptionsItem>-->
|
||||
<ElDescriptionsItem label="开始时间">
|
||||
{{ formatDateTime(currentPackage.start_time) || '-' }}
|
||||
</ElDescriptionsItem>
|
||||
|
||||
@@ -187,6 +187,8 @@ export function useAssetInfo() {
|
||||
currentPackage.value = {
|
||||
id: pkg.package_usage_id || 0,
|
||||
package_id: pkg.package_id || 0,
|
||||
order_id: pkg.order_id || 0,
|
||||
order_no: pkg.order_no || '',
|
||||
package_name: pkg.package_name || '',
|
||||
paid_amount: pkg.paid_amount || 0,
|
||||
package_total_data: pkg.data_limit_mb || 0,
|
||||
|
||||
@@ -363,7 +363,6 @@
|
||||
if (res.code === 0) {
|
||||
ElMessage.success('设置切卡模式成功')
|
||||
switchModeDialogVisible.value = false
|
||||
await refreshAsset(cardInfo.value!.identifier, cardInfo.value!.asset_type)
|
||||
} else {
|
||||
ElMessage.error(res.msg || '设置切卡模式失败')
|
||||
}
|
||||
@@ -405,7 +404,6 @@
|
||||
* 更新实名状态成功
|
||||
*/
|
||||
const handleUpdateRealnameStatusSuccess = async () => {
|
||||
await refreshAsset(cardInfo.value!.identifier, cardInfo.value!.asset_type)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -421,7 +419,6 @@
|
||||
* 绑定卡更新实名状态成功
|
||||
*/
|
||||
const handleBindingCardRealnameStatusSuccess = async () => {
|
||||
await refreshAsset(cardInfo.value!.identifier, cardInfo.value!.asset_type)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -435,7 +432,6 @@
|
||||
if (res.code === 0) {
|
||||
ElMessage.success('设置实名认证策略成功')
|
||||
realnamePolicyDialogVisible.value = false
|
||||
await refreshAsset(cardInfo.value!.identifier, cardInfo.value!.asset_type)
|
||||
} else {
|
||||
ElMessage.error(res.msg || '设置实名认证策略失败')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user