|
|
@ -126,7 +126,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { customerBillListPage, exportExcel, customerBillDetailsList, customerBillThreeDetails } from '@/api/anruifinmanagement/paymentConfirmation.js' |
|
|
|
import { customerBillListPage, exportCustomerBillExcel, customerBillDetailsList, customerBillThreeDetails } from '@/api/anruifinmanagement/paymentConfirmation.js' |
|
|
|
import Pagination from '@/components/pagination' |
|
|
|
import pageye from '@/components/pagination/pageye' |
|
|
|
import ButtonBar from '@/components/ButtonBar' |
|
|
@ -301,30 +301,29 @@ export default { |
|
|
|
this.innerVisible = false |
|
|
|
}, |
|
|
|
doExport() { |
|
|
|
this.$message({ showClose: true, type: 'warning', message: '导出功能完善中' }) |
|
|
|
// const loading = this.$loading({ |
|
|
|
// lock: true, |
|
|
|
// text: 'Loading', |
|
|
|
// spinner: 'el-icon-loading', |
|
|
|
// background: 'rgba(0, 0, 0, 0.7)' |
|
|
|
// }) |
|
|
|
// exportExcel(this.listQuery.params).then((resp) => { |
|
|
|
// loading.close() |
|
|
|
// const blob = new Blob([resp], { |
|
|
|
// type: 'application/vnd.ms-excel' |
|
|
|
// }) |
|
|
|
// const fileName = '客户账单汇总' + '.xls' |
|
|
|
// const elink = document.createElement('a') |
|
|
|
// elink.download = fileName |
|
|
|
// elink.style.display = 'nonde' |
|
|
|
// elink.href = URL.createObjectURL(blob) |
|
|
|
// document.body.appendChild(elink) |
|
|
|
// elink.click() |
|
|
|
// URL.revokeObjectURL(elink.href) |
|
|
|
// document.body.removeChild(elink) |
|
|
|
// }).catch(() => { |
|
|
|
// loading.close() |
|
|
|
// }) |
|
|
|
const loading = this.$loading({ |
|
|
|
lock: true, |
|
|
|
text: 'Loading', |
|
|
|
spinner: 'el-icon-loading', |
|
|
|
background: 'rgba(0, 0, 0, 0.7)' |
|
|
|
}) |
|
|
|
exportCustomerBillExcel(this.listQuery.params).then((resp) => { |
|
|
|
loading.close() |
|
|
|
const blob = new Blob([resp], { |
|
|
|
type: 'application/vnd.ms-excel' |
|
|
|
}) |
|
|
|
const fileName = '客户账单汇总' + '.xls' |
|
|
|
const elink = document.createElement('a') |
|
|
|
elink.download = fileName |
|
|
|
elink.style.display = 'nonde' |
|
|
|
elink.href = URL.createObjectURL(blob) |
|
|
|
document.body.appendChild(elink) |
|
|
|
elink.click() |
|
|
|
URL.revokeObjectURL(elink.href) |
|
|
|
document.body.removeChild(elink) |
|
|
|
}).catch(() => { |
|
|
|
loading.close() |
|
|
|
}) |
|
|
|
}, |
|
|
|
resetState() { |
|
|
|
this.viewState = 1 |
|
|
|