|
|
|
@ -658,6 +658,7 @@ import { editFormRule } from './utils/recriveFormRules.js'; |
|
|
|
import { productList, MarketNameForId, CurrencyForId, marketList, normalizeSubmitterMarket } from './utils/staticData.js'; |
|
|
|
import { useAdminStore } from '@/store/index.js'; |
|
|
|
import { hasMenuPermission } from '@/utils/menuTreePermission.js'; |
|
|
|
import { useRoute } from 'vue-router'; |
|
|
|
|
|
|
|
// 国际化 |
|
|
|
import { useI18n } from 'vue-i18n' |
|
|
|
@ -666,6 +667,7 @@ const { t } = useI18n() |
|
|
|
// ===================== 1. 核心状态管理(仅地区财务) ===================== |
|
|
|
const adminStore = useAdminStore(); |
|
|
|
const { menuTree } = storeToRefs(adminStore); |
|
|
|
const route = useRoute(); |
|
|
|
|
|
|
|
// 角色固定:地区财务(caiwu=true,其他角色关闭) |
|
|
|
const kefu = ref(false); |
|
|
|
@ -689,6 +691,15 @@ const getTime = ref([]); |
|
|
|
// 标签页:默认“待审核” |
|
|
|
const activeTab = ref('wait'); |
|
|
|
|
|
|
|
const applyTabFromRoute = (tabRaw) => { |
|
|
|
const tab = typeof tabRaw === 'string' ? tabRaw : null; |
|
|
|
if (tab !== 'wait' && tab !== 'pass' && tab !== 'reject' && tab !== 'done') return false; |
|
|
|
if (tab === activeTab.value) return false; |
|
|
|
activeTab.value = tab; |
|
|
|
pageInfo.value.pageNum = 1; |
|
|
|
return true; |
|
|
|
}; |
|
|
|
|
|
|
|
// 审核弹窗状态 |
|
|
|
const auditFormisible = ref(false); |
|
|
|
const auditFormData = ref({}); |
|
|
|
@ -1079,9 +1090,16 @@ const reset = () => { |
|
|
|
// 2.3 标签页切换 |
|
|
|
const navigateTo = async (tab) => { |
|
|
|
activeTab.value = tab; |
|
|
|
pageInfo.value.pageNum = 1; |
|
|
|
await getlist(); |
|
|
|
}; |
|
|
|
|
|
|
|
watch(() => route.query?.tab, async (tab) => { |
|
|
|
if (applyTabFromRoute(tab)) { |
|
|
|
await getlist(); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
// 2.4 审核功能 |
|
|
|
// 打开审核弹窗 |
|
|
|
const openAuditForm = (row) => { |
|
|
|
@ -1361,6 +1379,7 @@ const throttledsubmitRefund = _.throttle(submitRefund, 5000, { |
|
|
|
onMounted(async () => { |
|
|
|
await getAdminData(); |
|
|
|
await getActivitys(); |
|
|
|
applyTabFromRoute(route.query?.tab); |
|
|
|
// 初始化加载地区财务订单数据 |
|
|
|
await getlist(); |
|
|
|
|
|
|
|
|