|
@@ -13,7 +13,15 @@
|
|
|
:show-expand-button="false"
|
|
:show-expand-button="false"
|
|
|
:show-reload-button="false">
|
|
:show-reload-button="false">
|
|
|
<template #toolbar>
|
|
<template #toolbar>
|
|
|
- <q-btn color="primary"
|
|
|
|
|
|
|
+ <q-btn class="q-ml-sm"
|
|
|
|
|
+ color="red"
|
|
|
|
|
+ outline
|
|
|
|
|
+ :loading="exportReportLoading"
|
|
|
|
|
+ @click="cancelAllPayingInvoices">
|
|
|
|
|
+ لغو همه درحال پرداخت
|
|
|
|
|
+ </q-btn>
|
|
|
|
|
+ <q-btn class="q-ml-sm"
|
|
|
|
|
+ color="primary"
|
|
|
:loading="exportReportLoading"
|
|
:loading="exportReportLoading"
|
|
|
@click="getInvoicesListExcel">
|
|
@click="getInvoicesListExcel">
|
|
|
دریافت
|
|
دریافت
|
|
@@ -180,6 +188,17 @@ export default {
|
|
|
search () {
|
|
search () {
|
|
|
this.$refs.entityIndex.search()
|
|
this.$refs.entityIndex.search()
|
|
|
},
|
|
},
|
|
|
|
|
+ cancelAllPayingInvoices () {
|
|
|
|
|
+ this.exportReportLoading = true
|
|
|
|
|
+ APIGateway.invoice.cancelAllPayingInvoices()
|
|
|
|
|
+ .then(() => {
|
|
|
|
|
+ this.$refs.entityIndex.search()
|
|
|
|
|
+ this.exportReportLoading = false
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch((e) => {
|
|
|
|
|
+ this.exportReportLoading = false
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
getInvoicesListExcel () {
|
|
getInvoicesListExcel () {
|
|
|
this.exportReportLoading = true
|
|
this.exportReportLoading = true
|
|
|
const filter = this.$refs.entityIndex.createParams()
|
|
const filter = this.$refs.entityIndex.createParams()
|