feat: split payment-info into standalone menu with dual tabs

Remove payment tab from protocol-audit and keep deep-link redirect.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-10-05 13:03:16 +08:00
1 parent 1bc44cab13
commit 32c01a4c69
5 files changed
+117 -28

No files matched your search

@@ -1,4 +1,4 @@
<!-- 采集协议单管理(协议单 / 缴费 / 储存证 / 满月待办) -->
<!-- 采集协议单管理(协议单 / 储存证 / 满月待办) -->
<template>
<div class="page-container">
<section class="panel">
@@ -28,7 +28,6 @@
</nav>
<ProtocolAuditTab v-if="activeTab === 'protocol'" />
<PaymentInfoTab v-else-if="activeTab === 'payment-info'" />
<StorageCertTab v-else-if="activeTab === 'storage-cert'" />
<FullmoonTodoTab v-else-if="activeTab === 'fullmoon-todo'" />
</section>
@@ -37,7 +36,6 @@
<script setup lang="ts">
import ProtocolAuditTab from './ProtocolAuditTab.vue'
import PaymentInfoTab from './PaymentInfoTab.vue'
import StorageCertTab from './StorageCertTab.vue'
import FullmoonTodoTab from './FullmoonTodoTab.vue'
@@ -45,7 +43,7 @@
const LEGACY_SAMPLE_TABS = ['sample-reception', 'storage-entry'] as const
const VALID_TABS = ['protocol', 'payment-info', 'storage-cert', 'fullmoon-todo'] as const
const VALID_TABS = ['protocol', 'storage-cert', 'fullmoon-todo'] as const
type EntityTabKey = (typeof VALID_TABS)[number]
@@ -59,11 +57,6 @@
title: '协议单管理',
desc: '协议审核与状态维护'
},
{
key: 'payment-info',
title: '缴费信息',
desc: '缴费计划与到账查询'
},
{
key: 'storage-cert',
title: '储存证管理',
@@ -101,6 +94,13 @@
})
return
}
if (tab === 'payment-info') {
router.replace({
name: 'CellStoragePaymentInfo',
query: { ...route.query, tab: 'flow' }
})
return
}
if (VALID_TABS.includes(tab as EntityTabKey)) {
activeTab.value = tab as EntityTabKey
}