|
|
@ -71,6 +71,7 @@ import * as PurchasereceiptRecordDetailApi from '@/api/wms/purchasereceiptRecord |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import { PurchasereceiptRequestTabsList } from '@/utils/disposition/tabsList' |
|
|
|
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' |
|
|
|
import {exportSparereceiptRecordMain} from "@/api/wms/purchasereceiptRecordMain"; |
|
|
|
// 采购收货记录主 |
|
|
|
defineOptions({ name: 'PurchasereceiptRecordMain' }) |
|
|
|
|
|
|
@ -158,8 +159,8 @@ const handleExport = async () => { |
|
|
|
await message.exportConfirm() |
|
|
|
// 发起导出 |
|
|
|
exportLoading.value = true |
|
|
|
const data = await PurchasereceiptRecordMainApi.exportPurchasereceiptRecordMain(tableObject.params) |
|
|
|
download.excel(data, '采购收货记录主.xlsx') |
|
|
|
const data = await PurchasereceiptRecordMainApi.exportSparereceiptRecordMain(tableObject.params) |
|
|
|
download.excel(data, '备件收货记录.xlsx') |
|
|
|
} catch { |
|
|
|
} finally { |
|
|
|
exportLoading.value = false |
|
|
@ -190,4 +191,4 @@ const changeTabs = (data) =>{ |
|
|
|
onMounted(async () => { |
|
|
|
getList() |
|
|
|
}) |
|
|
|
</script> |
|
|
|
</script> |
|
|
|