|
@ -121,6 +121,7 @@ |
|
|
import * as PurchaseMainApi from '@/api/wms/purchaseMain' |
|
|
import * as PurchaseMainApi from '@/api/wms/purchaseMain' |
|
|
import { PurchaseMain } from '../purchaseMain/purchaseMain.data' |
|
|
import { PurchaseMain } from '../purchaseMain/purchaseMain.data' |
|
|
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|
|
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|
|
|
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
const { wsCache } = useCache() |
|
|
const { wsCache } = useCache() |
|
|
const language = wsCache.get('lang') |
|
|
const language = wsCache.get('lang') |
|
|
const announcements = ref<any>([]) |
|
|
const announcements = ref<any>([]) |
|
@ -716,8 +717,9 @@ const handleSelectionPublish = async ()=>{ |
|
|
await message.exportConfirm() |
|
|
await message.exportConfirm() |
|
|
// 发起导出 |
|
|
// 发起导出 |
|
|
exportLoading.value = true |
|
|
exportLoading.value = true |
|
|
|
|
|
const excelTitle = ref(route.meta.title) |
|
|
const data = await PurchasePlanMainApi.exportPurchasePlanMain(tableObject.params) |
|
|
const data = await PurchasePlanMainApi.exportPurchasePlanMain(tableObject.params) |
|
|
download.excel(data, `${t('ts.要货计划主')}.xlsx`) |
|
|
download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) |
|
|
} catch { |
|
|
} catch { |
|
|
} finally { |
|
|
} finally { |
|
|
exportLoading.value = false |
|
|
exportLoading.value = false |
|
@ -731,8 +733,9 @@ const handleSelectionPublish = async ()=>{ |
|
|
await message.exportConfirm() |
|
|
await message.exportConfirm() |
|
|
// 发起导出 |
|
|
// 发起导出 |
|
|
exportLoading.value = true |
|
|
exportLoading.value = true |
|
|
|
|
|
const excelTitle = ref(route.meta.title) |
|
|
const data = await PurchasePlanMainApi.exportDetailsPurchasePlanMain(tableObject.params) |
|
|
const data = await PurchasePlanMainApi.exportDetailsPurchasePlanMain(tableObject.params) |
|
|
download.excel(data, `${t('ts.要货计划明细')}.xlsx`) |
|
|
download.excel(data, `【${excelTitle.value}明细】【${formatDate(new Date())}】.xlsx`) |
|
|
} catch { |
|
|
} catch { |
|
|
} finally { |
|
|
} finally { |
|
|
exportLoading.value = false |
|
|
exportLoading.value = false |
|
@ -745,8 +748,9 @@ const handleSelectionPublish = async ()=>{ |
|
|
await message.exportConfirm() |
|
|
await message.exportConfirm() |
|
|
// 发起导出 |
|
|
// 发起导出 |
|
|
exportLoading.value = true |
|
|
exportLoading.value = true |
|
|
|
|
|
const excelTitle = ref(route.meta.title) |
|
|
const data = await PurchasePlanMainApi.exportTablePurchasePlanMain(tableObject.params) |
|
|
const data = await PurchasePlanMainApi.exportTablePurchasePlanMain(tableObject.params) |
|
|
download.excel(data, `${t('ts.要货计划二维表')}.xlsx`) |
|
|
download.excel(data, `【${excelTitle.value}二维表】【${formatDate(new Date())}】.xlsx`) |
|
|
} catch { |
|
|
} catch { |
|
|
} finally { |
|
|
} finally { |
|
|
exportLoading.value = false |
|
|
exportLoading.value = false |
|
@ -890,7 +894,7 @@ const handleSelectionPublish = async ()=>{ |
|
|
// 导入附件弹窗所需的参数 |
|
|
// 导入附件弹窗所需的参数 |
|
|
const importTemplateData = reactive({ |
|
|
const importTemplateData = reactive({ |
|
|
templateUrl: '', |
|
|
templateUrl: '', |
|
|
templateTitle: `${t('ts.要货计划主导入模版')}.xlsx` |
|
|
templateTitle: `【${route.meta.title}】导入模版.xlsx` |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
// 导入成功之后 |
|
|
// 导入成功之后 |
|
|