|
|
@ -28,6 +28,7 @@ |
|
|
|
<script setup lang="ts"> |
|
|
|
import * as BalanceApi from '@/api/wms/balance' |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
|
import { BalanceSummary,BalanceSummarySearch } from './balanceSummary.data' |
|
|
|
import { usePageLoading } from '@/hooks/web/usePageLoading' |
|
|
|
const { loadStart, loadDone } = usePageLoading() |
|
|
@ -138,7 +139,7 @@ const handleExport = async () => { |
|
|
|
// 发起导出 |
|
|
|
loadStart() |
|
|
|
const excelTitle = ref(route.meta.title) |
|
|
|
const data = await BalanceApi.exportBalance(tableObject.params) |
|
|
|
const data = await BalanceApi.exportBalanceSummary(tableObject.params) |
|
|
|
download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) |
|
|
|
} catch { |
|
|
|
} finally { |
|
|
|