|
|
@ -151,6 +151,7 @@ import dayjs from 'dayjs' |
|
|
|
import { ElMessageBox } from 'element-plus' |
|
|
|
import { getJmreportBaseUrl } from '@/utils/systemParam' |
|
|
|
import { accountantFormart } from '@/utils/formatter' |
|
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
|
|
|
|
|
defineOptions({ name: 'SupplierinvoiceRequestMain' }) |
|
|
|
|
|
|
@ -329,8 +330,9 @@ const searchTableSuccessDetail = async (formField, searchField, val, formRef,sea |
|
|
|
await message.exportConfirm() |
|
|
|
// 发起导出 |
|
|
|
exportLoading.value = true |
|
|
|
const excelTitle = ref(route.meta.title) |
|
|
|
const data = await SupplierinvoiceRequestMainApi.exportSupplierinvoiceRequestMain(paramsData) |
|
|
|
download.excel(data, `${t('ts.供应商发票申请主')}.xlsx`) |
|
|
|
download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) |
|
|
|
} catch { |
|
|
|
} finally { |
|
|
|
exportLoading.value = false |
|
|
@ -351,7 +353,7 @@ const searchTableSuccessDetail = async (formField, searchField, val, formRef,sea |
|
|
|
// 导入附件弹窗所需的参数 |
|
|
|
const importTemplateData = reactive({ |
|
|
|
templateUrl: '', |
|
|
|
templateTitle: `${t('ts.供应商发票申请主导入模板')}.xlsx` |
|
|
|
templateTitle: `【${route.meta.title}】导入模版.xlsx` |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
@ -407,8 +409,9 @@ const importTemplateData = reactive({ |
|
|
|
let params = { |
|
|
|
masterId: masterId |
|
|
|
} |
|
|
|
const excelTitle = ref(route.meta.title) |
|
|
|
const data = await SupplierinvoiceRequestMainApi.exportSupplierinvoiceRequestDetail(params) |
|
|
|
download.excel(data, `${t('ts.供应商发票申请明细')}.xlsx`) |
|
|
|
download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) |
|
|
|
} catch { |
|
|
|
} finally { |
|
|
|
exportLoadingDetail.value = false |
|
|
|