a6fd0349
wuxw
开发完成套餐费用
|
1
|
<template>
|
24d3590f
wuxw
房屋收费页面开发完成
|
2
3
|
<el-dialog
:title="$t('returnPayFee.fillRefundReason')"
|
a6fd0349
wuxw
开发完成套餐费用
|
4
5
|
:visible.sync="visible"
width="50%"
|
24d3590f
wuxw
房屋收费页面开发完成
|
6
|
center
|
a6fd0349
wuxw
开发完成套餐费用
|
7
|
>
|
24d3590f
wuxw
房屋收费页面开发完成
|
8
9
10
|
<el-form :model="returnFeeDetailInfo" label-width="120px">
<el-form-item :label="$t('returnPayFee.paymentId')">
<el-input v-model="returnFeeDetailInfo.detailId" readonly />
|
a6fd0349
wuxw
开发完成套餐费用
|
11
|
</el-form-item>
|
24d3590f
wuxw
房屋收费页面开发完成
|
12
13
14
|
<el-form-item :label="`${$t('returnPayFee.cycle')}(单位月)`">
<el-input v-model="returnFeeDetailInfo.cycles" readonly />
|
a6fd0349
wuxw
开发完成套餐费用
|
15
|
</el-form-item>
|
24d3590f
wuxw
房屋收费页面开发完成
|
16
|
|
a6fd0349
wuxw
开发完成套餐费用
|
17
|
<el-form-item :label="$t('returnPayFee.receivableAmount')">
|
24d3590f
wuxw
房屋收费页面开发完成
|
18
|
<el-input v-model="returnFeeDetailInfo.receivableAmount" readonly />
|
a6fd0349
wuxw
开发完成套餐费用
|
19
|
</el-form-item>
|
24d3590f
wuxw
房屋收费页面开发完成
|
20
|
|
a6fd0349
wuxw
开发完成套餐费用
|
21
|
<el-form-item :label="$t('returnPayFee.receivedAmount')">
|
24d3590f
wuxw
房屋收费页面开发完成
|
22
|
<el-input v-model="returnFeeDetailInfo.receivedAmount" readonly />
|
a6fd0349
wuxw
开发完成套餐费用
|
23
|
</el-form-item>
|
24d3590f
wuxw
房屋收费页面开发完成
|
24
25
26
|
<el-form-item :label="$t('returnPayFee.paymentTime')">
<el-input v-model="returnFeeDetailInfo.payTime" readonly />
|
a6fd0349
wuxw
开发完成套餐费用
|
27
|
</el-form-item>
|
24d3590f
wuxw
房屋收费页面开发完成
|
28
29
|
<el-form-item :label="$t('returnPayFee.refundReason')" required>
|
a6fd0349
wuxw
开发完成套餐费用
|
30
|
<el-input
|
a6fd0349
wuxw
开发完成套餐费用
|
31
|
type="textarea"
|
24d3590f
wuxw
房屋收费页面开发完成
|
32
33
34
35
|
:rows="3"
v-model="returnFeeDetailInfo.reason"
:placeholder="$t('returnPayFee.enterRefundReason')"
></el-input>
|
a6fd0349
wuxw
开发完成套餐费用
|
36
37
|
</el-form-item>
</el-form>
|
24d3590f
wuxw
房屋收费页面开发完成
|
38
|
|
a6fd0349
wuxw
开发完成套餐费用
|
39
40
|
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false">{{ $t('common.cancel') }}</el-button>
|
24d3590f
wuxw
房屋收费页面开发完成
|
41
|
<el-button type="primary" @click="submitReturnPayFee">{{ $t('returnPayFee.submitRefund') }}</el-button>
|
a6fd0349
wuxw
开发完成套餐费用
|
42
43
44
45
46
|
</span>
</el-dialog>
</template>
<script>
|
a6fd0349
wuxw
开发完成套餐费用
|
47
|
import { getCommunityId } from '@/api/community/communityApi'
|
24d3590f
wuxw
房屋收费页面开发完成
|
48
|
import { saveReturnPayFee } from '@/api/fee/propertyFeeApi'
|
a6fd0349
wuxw
开发完成套餐费用
|
49
50
|
export default {
|
24d3590f
wuxw
房屋收费页面开发完成
|
51
|
name: 'ReturnPayFee',
|
a6fd0349
wuxw
开发完成套餐费用
|
52
53
54
|
data() {
return {
visible: false,
|
24d3590f
wuxw
房屋收费页面开发完成
|
55
|
returnFeeDetailInfo: {
|
a6fd0349
wuxw
开发完成套餐费用
|
56
57
58
59
60
61
62
63
64
65
66
|
detailId: '',
cycles: '',
receivableAmount: '',
receivedAmount: '',
payTime: '',
reason: '',
communityId: '',
feeId: '',
feeTypeCd: '',
configId: ''
},
|
24d3590f
wuxw
房屋收费页面开发完成
|
67
|
communityId: ''
|
a6fd0349
wuxw
开发完成套餐费用
|
68
69
|
}
},
|
24d3590f
wuxw
房屋收费页面开发完成
|
70
71
72
|
created() {
this.communityId = getCommunityId()
},
|
a6fd0349
wuxw
开发完成套餐费用
|
73
|
methods: {
|
24d3590f
wuxw
房屋收费页面开发完成
|
74
75
76
77
78
79
80
81
82
83
84
85
86
|
open(params) {
this.returnFeeDetailInfo = {
...this.returnFeeDetailInfo,
communityId: params.communityId || this.communityId,
payTime: params.createTime,
detailId: params.detailId,
cycles: params.cycles,
receivableAmount: params.receivableAmount,
receivedAmount: params.receivedAmount,
feeId: params.mainFeeInfo.feeId || '',
feeTypeCd: params.mainFeeInfo.feeTypeCd || '',
configId: params.mainFeeInfo.configId || '',
remark: params.remark || ''
|
a6fd0349
wuxw
开发完成套餐费用
|
87
88
89
|
}
this.visible = true
},
|
24d3590f
wuxw
房屋收费页面开发完成
|
90
91
92
93
94
95
96
97
98
99
|
returnPayFeeValidate() {
if (!this.returnFeeDetailInfo.reason) {
this.$message.error(this.$t('returnPayFee.refundReasonRequired'))
return false
}
if (this.returnFeeDetailInfo.reason.length > 200) {
this.$message.error(this.$t('returnPayFee.refundReasonTooLong'))
return false
}
return true
|
a6fd0349
wuxw
开发完成套餐费用
|
100
|
},
|
24d3590f
wuxw
房屋收费页面开发完成
|
101
102
103
|
async submitReturnPayFee() {
if (!this.returnPayFeeValidate()) return
|
a6fd0349
wuxw
开发完成套餐费用
|
104
|
try {
|
24d3590f
wuxw
房屋收费页面开发完成
|
105
106
107
108
109
110
111
|
const res = await saveReturnPayFee(this.returnFeeDetailInfo)
if (res.code === 0) {
this.$message.success(this.$t('common.operateSuccess'))
this.visible = false
this.$emit('success')
} else {
this.$message.error(res.msg || this.$t('common.operateFailed'))
|
a6fd0349
wuxw
开发完成套餐费用
|
112
|
}
|
24d3590f
wuxw
房屋收费页面开发完成
|
113
114
115
|
} catch (error) {
console.error('提交退费申请失败:', error)
this.$message.error(this.$t('common.operateFailed'))
|
a6fd0349
wuxw
开发完成套餐费用
|
116
117
118
119
|
}
}
}
}
|
24d3590f
wuxw
房屋收费页面开发完成
|
120
121
122
123
124
125
126
|
</script>
<style scoped>
.el-input, .el-textarea {
width: 100%;
}
</style>
|