|
@ -852,6 +852,15 @@ const butttondata = (row, $index) => { |
|
|
link: true, // 文本展现按钮 |
|
|
link: true, // 文本展现按钮 |
|
|
hasPermi: '' |
|
|
hasPermi: '' |
|
|
} |
|
|
} |
|
|
|
|
|
,{ |
|
|
|
|
|
label: t('导出对账单明细'), |
|
|
|
|
|
name: 'export_statement_detail', |
|
|
|
|
|
hide: false, |
|
|
|
|
|
type: 'primary', |
|
|
|
|
|
color: '', |
|
|
|
|
|
link: true, // 文本展现按钮 |
|
|
|
|
|
hasPermi: 'wms:supplierinvoice-request-main:export_statement_detail' |
|
|
|
|
|
} |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -918,6 +927,28 @@ const buttonTableClick = async (val, row) => { |
|
|
} else if (val == 'repeal') { |
|
|
} else if (val == 'repeal') { |
|
|
// 作废 |
|
|
// 作废 |
|
|
handleRepeal(row.id) |
|
|
handleRepeal(row.id) |
|
|
|
|
|
} else if (val == 'export_statement_detail') { |
|
|
|
|
|
// 导出对账单明细 |
|
|
|
|
|
exportStatementDetail(row.id) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
const exportStatementDetail = async (masterId) => { |
|
|
|
|
|
try { |
|
|
|
|
|
|
|
|
|
|
|
// 导出的二次确认 |
|
|
|
|
|
await message.exportConfirm() |
|
|
|
|
|
debugger |
|
|
|
|
|
// 发起导出导出明细 |
|
|
|
|
|
tableObject.loading = true |
|
|
|
|
|
let params = { |
|
|
|
|
|
masterId: masterId |
|
|
|
|
|
} |
|
|
|
|
|
const excelTitle = ref(route.meta.title) |
|
|
|
|
|
const data = await SupplierinvoiceRequestMainApi.exportStatementDetail(params) |
|
|
|
|
|
download.excel(data, `【${excelTitle.value}明细】【${formatDate(new Date())}】.xlsx`) |
|
|
|
|
|
} catch { |
|
|
|
|
|
} finally { |
|
|
|
|
|
tableObject.loading = false |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
// const procurementCreators = ref([]) |
|
|
// const procurementCreators = ref([]) |
|
|