|
|
@ -121,6 +121,7 @@ if(routeName.value == 'SupplierinvoiceInvoiced'){ |
|
|
|
HeadButttondata.value = [ |
|
|
|
defaultButtons.defaultExportBtn(null), // 导出 |
|
|
|
defaultButtons.mainListSelectionOrderPassBtn({hasPermi:'wms:supplierinvoice-invoiced:batchPass'}), //批量通过 |
|
|
|
defaultButtons.invoicedExportBtn({hasPermi:'wms:supplierinvoice-invoiced:exportStatement'}), //导出对账单 |
|
|
|
defaultButtons.defaultFreshBtn(null), // 刷新 |
|
|
|
defaultButtons.defaultFilterBtn(null), // 筛选 |
|
|
|
defaultButtons.defaultSetBtn(null), // 设置 |
|
|
@ -146,6 +147,8 @@ const buttonBaseClick = (val, item) => { |
|
|
|
handleImport() |
|
|
|
} else if (val == 'export') { // 导出 |
|
|
|
handleExport() |
|
|
|
} else if (val == 'exportStatement') { // 导出对账单 |
|
|
|
handleExportStatement() |
|
|
|
} else if (val == 'refresh') { // 刷新 |
|
|
|
getList() |
|
|
|
} else if (val == 'filtrate') { // 筛选 |
|
|
@ -310,6 +313,30 @@ const handleExport = async () => { |
|
|
|
loadDone() |
|
|
|
} |
|
|
|
} |
|
|
|
//导出财务代开票对账单 |
|
|
|
const handleExportStatement = async () => { |
|
|
|
try { |
|
|
|
// 导出的二次确认 |
|
|
|
await message.exportConfirm() |
|
|
|
// 发起导出 |
|
|
|
loadStart() |
|
|
|
const excelTitle = ref(route.meta.title) |
|
|
|
if (routeName.value == 'SupplierinvoiceInvoiced') { |
|
|
|
// 待开票数据查询-财务 |
|
|
|
const data = await SupplierinvoiceInvoicedApi.exportExcelSheetStatement(tableObject.params) |
|
|
|
download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) |
|
|
|
} |
|
|
|
|
|
|
|
// else if (routeName.value == 'SupplierinvoiceInvoicedWork') { |
|
|
|
// // 待开票数据查询-工务 |
|
|
|
// const data = await SupplierinvoiceInvoicedApi.exportSupplierinvoiceInvoicedWork(tableObject.params) |
|
|
|
// download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) |
|
|
|
// } |
|
|
|
} catch { |
|
|
|
} finally { |
|
|
|
loadDone() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** 导入 */ |
|
|
|
const importFormRef = ref() |
|
|
|