|
@ -70,6 +70,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import { getAccessToken } from '@/utils/auth' |
|
|
import { getAccessToken } from '@/utils/auth' |
|
|
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' |
|
|
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' |
|
|
import { getJmreportBaseUrl } from '@/utils/systemParam' |
|
|
import { getJmreportBaseUrl } from '@/utils/systemParam' |
|
|
|
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
// 采购退货记录主 |
|
|
// 采购退货记录主 |
|
|
defineOptions({ name: 'PurchasereturnRecordSpareMain' }) |
|
|
defineOptions({ name: 'PurchasereturnRecordSpareMain' }) |
|
|
|
|
|
|
|
@ -170,10 +171,10 @@ const handleExport = async () => { |
|
|
exportLoading.value = true |
|
|
exportLoading.value = true |
|
|
if(routeName.value.includes('SCP')){ |
|
|
if(routeName.value.includes('SCP')){ |
|
|
const data = await PurchasereturnRecordMainApi.exportPurchasereturnRecordMainSCP(tableObject.params) |
|
|
const data = await PurchasereturnRecordMainApi.exportPurchasereturnRecordMainSCP(tableObject.params) |
|
|
download.excel(data, `${t('ts.采购退货记录主')}.xlsx`) |
|
|
download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) |
|
|
}else{ |
|
|
}else{ |
|
|
const data = await PurchasereturnRecordMainApi.exportPurchasereturnRecordMainSpare(tableObject.params) |
|
|
const data = await PurchasereturnRecordMainApi.exportPurchasereturnRecordMainSpare(tableObject.params) |
|
|
download.excel(data, `维修备件退货记录主.xlsx`) |
|
|
download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} catch { |
|
|
} catch { |
|
|