v1.9 解决优惠申请导出bug

This commit is contained in:
wuxw 2025-07-29 11:23:41 +08:00
parent 5870b43f63
commit b9b17c9e20

View File

@ -118,7 +118,7 @@
</template>
<script>
import { getDict } from '@/api/community/communityApi'
import { getDict,getCommunityId } from '@/api/community/communityApi'
import { queryApplyRoomDiscount, queryApplyRoomDiscountType } from '@/api/fee/applyRoomDiscountManageApi'
import AddApplyRoomDiscount from '@/components/fee/addApplyRoomDiscount'
import EditApplyRoomDiscount from '@/components/fee/editApplyRoomDiscount'
@ -160,6 +160,7 @@ export default {
this.getList()
this.getApplyTypes()
this.getDictData()
this.searchForm.communityId = getCommunityId()
},
methods: {
async getList() {
@ -250,8 +251,22 @@ export default {
handleOpenDiscountType() {
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() {
this.getList()