Browse Source

审核订单状态问题

zhangrenyuan/feature-20260113104415-现金重构
ZhangYong 1 month ago
parent
commit
03401938c3
  1. 10
      src/api/common/common.js
  2. 5
      src/views/consume/gold/coinConsumeDetail.vue
  3. 1
      src/views/moneyManage/financialAccount/cashFlow.vue
  4. 26
      src/views/moneyManage/financialAccount/performanceAttribution.vue

10
src/api/common/common.js

@ -0,0 +1,10 @@
import http from '@/util/http.js'
//查询资金流水
export const getUserInfo = (data) => {
return http({
method: 'POST',
url: '/admin/userinfo',
data
})
}

5
src/views/consume/gold/coinConsumeDetail.vue

@ -705,12 +705,11 @@ const getMarket = async function () {
</el-table-column>
<el-table-column prop="remark" :label="$t('common_list.remark')" width="200px" show-overflow-tooltip />
<el-table-column prop="isRefund" :label="$t('common_list.orderStatus')" width="120px" show-overflow-tooltip fixed="right" align="center">
<el-table-column prop="isRefund" :label="$t('common_list.orderStatus')" width="120px" fixed="right" align="center">
<template #default="scope">
<div v-if="scope.row.isRefund == 0">{{ $t('consume.normal') }}</div>
<div v-else-if="scope.row.isRefund == 1" style="display: flex; justify-content: center; align-items: center;">{{ $t('consume.refunded') }}
<el-popover
v-model:visible="scope.row.popoverVisible"
trigger="hover"
placement="left"
popper-class="refund-popover"
@ -718,7 +717,7 @@ const getMarket = async function () {
>
<div class="popover-content">
<div class="popover-title" v-if="scope.row.refundModel">{{ scope.row.refundModel == 0 ? $t('common_list.refundModelAll') : $t('common_list.refundModelPart') }}</div>
<div class="popover-title" v-if="scope.row.refundModel != null">{{ scope.row.refundModel == 0 ? $t('common_list.refundModelAll') : $t('common_list.refundModelPart') }}</div>
<div class="popover-title" v-else>{{ $t('common_list.refundStatusPending') }}</div>
<div class="popover-item">
<span class="label">{{ $t('common.totalGoldCoin') }}</span>

1
src/views/moneyManage/financialAccount/cashFlow.vue

@ -455,7 +455,6 @@ onMounted(async () => {
{{ row.status === 4 ? t('common_list.received') : t('common_list.refunded') }}
</el-tag>
<el-popover
v-model:visible="row.popoverVisible"
trigger="hover"
placement="top"
popper-class="refund-popover"

26
src/views/moneyManage/financialAccount/performanceAttribution.vue

@ -5,11 +5,11 @@ import request from '@/util/http.js'
import dayjs from 'dayjs'
import { useI18n } from 'vue-i18n'
import { refundOnline,performanceSelect,exportPerformance } from '@/api/cash/financialAccount.js'
import {useAdminStore} from '@/store/index.js'
import { storeToRefs } from 'pinia'
import { getUserInfo } from '@/api/common/common.js'
const adminData = ref({})
const adminStore = useAdminStore()
const {adminData} = storeToRefs(adminStore)
const { t } = useI18n()
@ -84,6 +84,7 @@ const fetchData = async () => {
loading.value = true
try {
//
console.log('adminData.value.markets:', adminData.value.markets)
const params = {
pageNum: queryParams.pageNum,
pageSize: queryParams.pageSize,
@ -113,6 +114,18 @@ const fetchData = async () => {
}
}
const handleAdminInfo = async () => {
try {
const res = await getUserInfo()
adminData.value = res || {}
console.log('adminData.value:', adminData.value);
} catch (error) {
console.error(error)
ElMessage.error(t('elmessage.getDataFailed'))
}
}
const handleSearch = () => {
queryParams.pageNum = 1
fetchData()
@ -243,9 +256,10 @@ const getTagText = (state) => {
}
}
onMounted(() => {
onMounted( async() => {
await handleAdminInfo()
getMarket()
fetchData()
await fetchData()
})
</script>

Loading…
Cancel
Save