|
|
@ -115,6 +115,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import { PurchasereceiptRefuseRequestTabsList } from '@/utils/disposition/tabsList' |
|
|
|
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' |
|
|
|
import { getReportUrl } from '@/utils/systemParam' |
|
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
|
// 采购收货记录主 |
|
|
|
defineOptions({ name: 'PurchasereceiptRecordRefuseMain' }) |
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
@ -292,10 +293,10 @@ const handleExport = async () => { |
|
|
|
exportLoading.value = true |
|
|
|
if(routeName.value.includes('SCP')){ |
|
|
|
const data = await PurchasereceiptRecordMainApi.exportPurchasereceiptRecordMainSCP(tableObject.params) |
|
|
|
download.excel(data, `${t('ts.采购收货记录主')}.xlsx`) |
|
|
|
download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) |
|
|
|
}else{ |
|
|
|
const data = await PurchasereceiptRecordMainApi.exportPurchasereceiptRecordRefuseMain(tableObject.params) |
|
|
|
download.excel(data, `${t('ts.采购拒收记录主')}.xlsx`) |
|
|
|
download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) |
|
|
|
} |
|
|
|
} catch { |
|
|
|
} finally { |
|
|
|