|
@@ -258,15 +258,11 @@ const handleSelectionChange = (arrs) => {
|
|
|
}
|
|
|
/** 列表导出 */
|
|
|
const getExportContractInvoiceListExcel = async () => {
|
|
|
- if (idList.value.length === 0) {
|
|
|
- idList.value = list.value.map((item) => item.id)
|
|
|
+ const sendData = {}
|
|
|
+ if (idList.value.length > 0) {
|
|
|
+ sendData['idList'] = idList.value
|
|
|
}
|
|
|
- if (idList.value.length === 0) {
|
|
|
- return
|
|
|
- }
|
|
|
- const data = await kpglApi.exportContractInvoiceListExcel({
|
|
|
- idList: idList.value
|
|
|
- })
|
|
|
+ const data = await kpglApi.exportContractInvoiceListExcel(sendData)
|
|
|
download.excel(data, '开票台账导出记录.xls')
|
|
|
}
|
|
|
const loading = ref(true) // 列表的加载中
|