|
|
@ -6,8 +6,12 @@ import dayjs from 'dayjs' |
|
|
import { useI18n } from 'vue-i18n' |
|
|
import { useI18n } from 'vue-i18n' |
|
|
import { refundOnline,performanceSelect,exportPerformance,adjustment } from '@/api/cash/financialAccount.js' |
|
|
import { refundOnline,performanceSelect,exportPerformance,adjustment } from '@/api/cash/financialAccount.js' |
|
|
import { getUserInfo } from '@/api/common/common.js' |
|
|
import { getUserInfo } from '@/api/common/common.js' |
|
|
|
|
|
import { useAdminStore } from '@/store/index.js' |
|
|
|
|
|
import { permissionMapping, hasMenuPermission } from "@/utils/menuTreePermission.js" |
|
|
|
|
|
import { storeToRefs } from 'pinia' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const adminStore = useAdminStore() |
|
|
|
|
|
const { menuTree,flag } = storeToRefs(adminStore) |
|
|
const adminData = ref({}) |
|
|
const adminData = ref({}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -29,6 +33,16 @@ const paytypeList = [ |
|
|
t('cash.payMethods.paypal'), |
|
|
t('cash.payMethods.paypal'), |
|
|
] |
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
const hasperformanceAdjustment = ref(false) |
|
|
|
|
|
// 初始化权限状态 |
|
|
|
|
|
const initPermissions = async () => { |
|
|
|
|
|
if (!menuTree.value || !menuTree.value.length) return; |
|
|
|
|
|
// 业绩调整 |
|
|
|
|
|
hasperformanceAdjustment.value = hasMenuPermission(menuTree.value, permissionMapping.performance_adjustment); |
|
|
|
|
|
console.log('业绩调整权限',hasperformanceAdjustment.value); |
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
const payPlatformOptions = ref([...paytypeList]) |
|
|
const payPlatformOptions = ref([...paytypeList]) |
|
|
|
|
|
|
|
|
const statusOptions = [ |
|
|
const statusOptions = [ |
|
|
@ -370,6 +384,7 @@ const submitAdjustment = async () => { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
onMounted( async() => { |
|
|
onMounted( async() => { |
|
|
|
|
|
await initPermissions() |
|
|
await handleAdminInfo() |
|
|
await handleAdminInfo() |
|
|
getMarket() |
|
|
getMarket() |
|
|
await fetchData() |
|
|
await fetchData() |
|
|
@ -421,7 +436,7 @@ onMounted( async() => { |
|
|
<el-button type="primary" @click="handleExport">{{ t('common.exportExcel') }}</el-button> |
|
|
<el-button type="primary" @click="handleExport">{{ t('common.exportExcel') }}</el-button> |
|
|
<el-button type="primary" @click="openExportList">{{ t('common.viewExportList') }}</el-button> |
|
|
<el-button type="primary" @click="openExportList">{{ t('common.viewExportList') }}</el-button> |
|
|
<el-button type="success" @click="handleReset">{{ t('common.reset') }}</el-button> |
|
|
<el-button type="success" @click="handleReset">{{ t('common.reset') }}</el-button> |
|
|
<button class="adjust-btn" @click="handleAdjustment">业绩调整</button> |
|
|
|
|
|
|
|
|
<button v-if="hasperformanceAdjustment" class="adjust-btn" @click="handleAdjustment">业绩调整</button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</el-card> |
|
|
</el-card> |
|
|
|