|
|
|
@ -5,7 +5,7 @@ import { ElMessage, ElMessageBox } from 'element-plus' |
|
|
|
import request from '@/util/http.js' |
|
|
|
import dayjs from 'dayjs' |
|
|
|
import { useI18n } from 'vue-i18n' |
|
|
|
import { Moneyfunds, refundOnline } from '@/api/cash/financialAccount.js' |
|
|
|
import { Moneyfunds, refundOnline, exportFunds } from '@/api/cash/financialAccount.js' |
|
|
|
import { useAdminStore } from '@/store/index.js' |
|
|
|
import { storeToRefs } from 'pinia' |
|
|
|
import _ from 'lodash'; |
|
|
|
@ -240,7 +240,7 @@ const handleExport = async () => { |
|
|
|
} |
|
|
|
|
|
|
|
// TODO: 确认导出接口 URL |
|
|
|
const res = await request({ url: '/export/exportCash', data: params }) |
|
|
|
const res = await exportFunds( params ) |
|
|
|
if (res.code == 200) { |
|
|
|
|
|
|
|
console.log('导出参数', params) |
|
|
|
@ -265,7 +265,7 @@ const getExportList = async () => { |
|
|
|
try { |
|
|
|
const result = await request({ url: '/export/export' }) |
|
|
|
if (result.code === 200) { |
|
|
|
const filteredData = result.data.filter(item => item.type == 13); |
|
|
|
const filteredData = result.data.filter(item => item.type == 15); |
|
|
|
exportList.value = filteredData || [] |
|
|
|
} else { |
|
|
|
ElMessage.error(result.msg || t('elmessage.getExportListError')) |
|
|
|
@ -458,7 +458,7 @@ onMounted(async () => { |
|
|
|
|
|
|
|
<el-table-column :label="t('common_list.operation')" width="100" fixed="right" align="center"> |
|
|
|
<template #default="{ row }"> |
|
|
|
<el-button v-if="row.orderCode.slice(0, 4) == 'GOLD'" type="danger" link size="small" |
|
|
|
<el-button v-if="row.orderCode.slice(0, 4) == 'GOLD' && row.status === 4" type="danger" link size="small" |
|
|
|
@click="openRefundConfirm(row)"> |
|
|
|
{{ t('common_list.refund') }} |
|
|
|
</el-button> |
|
|
|
|