mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
v1.9 解决优惠申请导出bug
This commit is contained in:
parent
5870b43f63
commit
b9b17c9e20
@ -118,7 +118,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getDict } from '@/api/community/communityApi'
|
import { getDict,getCommunityId } from '@/api/community/communityApi'
|
||||||
import { queryApplyRoomDiscount, queryApplyRoomDiscountType } from '@/api/fee/applyRoomDiscountManageApi'
|
import { queryApplyRoomDiscount, queryApplyRoomDiscountType } from '@/api/fee/applyRoomDiscountManageApi'
|
||||||
import AddApplyRoomDiscount from '@/components/fee/addApplyRoomDiscount'
|
import AddApplyRoomDiscount from '@/components/fee/addApplyRoomDiscount'
|
||||||
import EditApplyRoomDiscount from '@/components/fee/editApplyRoomDiscount'
|
import EditApplyRoomDiscount from '@/components/fee/editApplyRoomDiscount'
|
||||||
@ -160,6 +160,7 @@ export default {
|
|||||||
this.getList()
|
this.getList()
|
||||||
this.getApplyTypes()
|
this.getApplyTypes()
|
||||||
this.getDictData()
|
this.getDictData()
|
||||||
|
this.searchForm.communityId = getCommunityId()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async getList() {
|
async getList() {
|
||||||
@ -250,8 +251,22 @@ export default {
|
|||||||
handleOpenDiscountType() {
|
handleOpenDiscountType() {
|
||||||
this.$router.push('/views/fee/discountType')
|
this.$router.push('/views/fee/discountType')
|
||||||
},
|
},
|
||||||
handleExport() {
|
async handleExport() {
|
||||||
// 导出逻辑
|
// 导出逻辑
|
||||||
|
try {
|
||||||
|
const params = {
|
||||||
|
...this.searchForm,
|
||||||
|
communityId: this.searchForm.communityId,
|
||||||
|
pagePath: 'applyRoomDiscount'
|
||||||
|
}
|
||||||
|
|
||||||
|
await exportData(params)
|
||||||
|
this.$message.success(this.$t('reportFeeSummary.exportSuccess'))
|
||||||
|
this.$router.push('/pages/property/downloadTempFile?tab=下载中心')
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Failed to export:', error)
|
||||||
|
this.$message.error(this.$t('reportFeeSummary.exportFailed'))
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleSuccess() {
|
handleSuccess() {
|
||||||
this.getList()
|
this.getList()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user