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