6ec243d6
wuxw
v1.9 点击提交后,成功提示没有...
|
1
|
<template>
|
f92fd6ac
wuxw
开发我的小区下的功能
|
2
3
4
5
6
7
8
9
|
<el-dialog :title="$t('propertyRightDetail.edit.title')" :visible.sync="visible" width="70%"
:before-close="handleClose">
<el-form ref="form" :model="editPropertyRightRegistrationDetailInfo" label-width="120px">
<el-form-item :label="$t('propertyRightDetail.edit.materialType')">
<el-input v-model="editPropertyRightRegistrationDetailInfo.securitiesName"
:placeholder="$t('propertyRightDetail.edit.materialTypePlaceholder')" disabled />
</el-form-item>
|
acfe91a9
wuxw
v1.9 修复客户反馈车位结构图部...
|
10
|
<template v-if="editPropertyRightRegistrationDetailInfo.securities == '001'">
|
f92fd6ac
wuxw
开发我的小区下的功能
|
11
12
13
14
15
16
|
<el-form-item :label="$t('propertyRightDetail.edit.idCardPhoto')">
<upload-image-url ref="idCardUpload" :image-count="2" @notifyUploadCoverImage="handleIdCardImageChange" />
<p class="help-block">*{{ $t('propertyRightDetail.edit.idCardPhotoTip') }}*</p>
</el-form-item>
</template>
|
acfe91a9
wuxw
v1.9 修复客户反馈车位结构图部...
|
17
|
<template v-if="editPropertyRightRegistrationDetailInfo.securities == '002'">
|
f92fd6ac
wuxw
开发我的小区下的功能
|
18
|
<el-form-item :label="$t('propertyRightDetail.edit.houseContract')">
|
acfe91a9
wuxw
v1.9 修复客户反馈车位结构图部...
|
19
20
|
<upload-image-url ref="housePurchaseUpload" :image-count="10"
@notifyUploadCoverImage="handleHousePurchaseImageChange" />
|
f92fd6ac
wuxw
开发我的小区下的功能
|
21
22
23
24
|
<p class="help-block">*{{ $t('propertyRightDetail.edit.houseContractTip') }}*</p>
</el-form-item>
</template>
|
acfe91a9
wuxw
v1.9 修复客户反馈车位结构图部...
|
25
|
<template v-if="editPropertyRightRegistrationDetailInfo.securities == '003'">
|
f92fd6ac
wuxw
开发我的小区下的功能
|
26
27
28
29
30
31
32
33
34
|
<el-form-item :label="$t('propertyRightDetail.edit.repairFund')">
<el-select v-model="editPropertyRightRegistrationDetailInfo.isTrue" style="width: 100%"
:placeholder="$t('propertyRightDetail.edit.repairFundPlaceholder')">
<el-option value="" disabled :label="$t('propertyRightDetail.edit.repairFundPlaceholder')" />
<el-option :label="$t('common.yes')" value="true" />
<el-option :label="$t('common.no')" value="false" />
</el-select>
</el-form-item>
|
acfe91a9
wuxw
v1.9 修复客户反馈车位结构图部...
|
35
|
<template v-if="editPropertyRightRegistrationDetailInfo.isTrue == 'true'">
|
f92fd6ac
wuxw
开发我的小区下的功能
|
36
37
38
39
40
41
|
<el-form-item :label="$t('propertyRightDetail.edit.repairFundPhoto')">
<upload-image-url ref="repairUpload" :image-count="3" @notifyUploadCoverImage="handleRepairImageChange" />
</el-form-item>
</template>
</template>
|
acfe91a9
wuxw
v1.9 修复客户反馈车位结构图部...
|
42
|
<template v-if="editPropertyRightRegistrationDetailInfo.securities == '004'">
|
f92fd6ac
wuxw
开发我的小区下的功能
|
43
44
45
46
47
48
49
50
51
|
<el-form-item :label="$t('propertyRightDetail.edit.deedTax')">
<el-select v-model="editPropertyRightRegistrationDetailInfo.isTrue" style="width: 100%"
:placeholder="$t('propertyRightDetail.edit.deedTaxPlaceholder')">
<el-option value="" disabled :label="$t('propertyRightDetail.edit.deedTaxPlaceholder')" />
<el-option :label="$t('common.yes')" value="true" />
<el-option :label="$t('common.no')" value="false" />
</el-select>
</el-form-item>
|
acfe91a9
wuxw
v1.9 修复客户反馈车位结构图部...
|
52
|
<template v-if="editPropertyRightRegistrationDetailInfo.isTrue == 'true'">
|
f92fd6ac
wuxw
开发我的小区下的功能
|
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
<el-form-item :label="$t('propertyRightDetail.edit.deedTaxPhoto')">
<upload-image-url ref="deedTaxUpload" :image-count="3" @notifyUploadCoverImage="handleDeedTaxImageChange" />
</el-form-item>
</template>
</template>
<el-form-item class="dialog-footer">
<el-button type="primary" @click="editPropertyRightRegistrationDetail">
<i class="el-icon-check"></i>
{{ $t('common.save') }}
</el-button>
<el-button @click="handleClose">
<i class="el-icon-close"></i>
{{ $t('common.cancel') }}
</el-button>
</el-form-item>
</el-form>
</el-dialog>
</template>
<script>
import { updatePropertyRightRegistrationDetail } from '@/api/room/listPropertyRightRegistrationDetailApi'
import UploadImageUrl from '@/components/upload/UploadImageUrl'
import { getCommunityId } from '@/api/community/communityApi'
export default {
name: 'EditPropertyRightRegistrationDetail',
components: {
UploadImageUrl
},
|
f92fd6ac
wuxw
开发我的小区下的功能
|
83
84
|
data() {
return {
|
acfe91a9
wuxw
v1.9 修复客户反馈车位结构图部...
|
85
|
visible: false,
|
f92fd6ac
wuxw
开发我的小区下的功能
|
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
editPropertyRightRegistrationDetailInfo: {
prrdId: '',
prrId: '',
securities: '',
securitiesName: '',
idCardUrl: '',
housePurchaseUrl: '',
repairUrl: '',
deedTaxUrl: '',
isTrue: '',
idCardPhotos: [],
housePurchasePhotos: [],
repairPhotos: [],
deedTaxPhotos: [],
|
acfe91a9
wuxw
v1.9 修复客户反馈车位结构图部...
|
100
101
|
communityId: '',
|
f92fd6ac
wuxw
开发我的小区下的功能
|
102
103
104
105
106
107
108
109
110
111
112
113
|
}
}
},
methods: {
open(row) {
this.resetForm()
this.editPropertyRightRegistrationDetailInfo = { ...row }
this.editPropertyRightRegistrationDetailInfo.communityId = getCommunityId()
this.loadPhotos()
this.visible = true
},
loadPhotos() {
|
20ddb876
wuxw
优化房屋产权
|
114
|
setTimeout(() => {
|
acfe91a9
wuxw
v1.9 修复客户反馈车位结构图部...
|
115
116
117
118
119
|
if (this.editPropertyRightRegistrationDetailInfo.securities == '001' && this.editPropertyRightRegistrationDetailInfo.idCardUrl) {
const urls = this.editPropertyRightRegistrationDetailInfo.idCardUrl
if (urls) {
this.$refs.idCardUpload.setImages(urls)
}
|
f92fd6ac
wuxw
开发我的小区下的功能
|
120
|
}
|
acfe91a9
wuxw
v1.9 修复客户反馈车位结构图部...
|
121
122
123
124
125
|
if (this.editPropertyRightRegistrationDetailInfo.securities == '002' && this.editPropertyRightRegistrationDetailInfo.housePurchaseUrl) {
const urls = this.editPropertyRightRegistrationDetailInfo.housePurchaseUrl
if (urls) {
this.$refs.housePurchaseUpload.setImages(urls)
}
|
f92fd6ac
wuxw
开发我的小区下的功能
|
126
|
}
|
acfe91a9
wuxw
v1.9 修复客户反馈车位结构图部...
|
127
128
129
130
131
|
if (this.editPropertyRightRegistrationDetailInfo.securities == '003' && this.editPropertyRightRegistrationDetailInfo.repairUrl) {
const urls = this.editPropertyRightRegistrationDetailInfo.repairUrl
if (urls) {
this.$refs.repairUpload.setImages(urls)
}
|
f92fd6ac
wuxw
开发我的小区下的功能
|
132
|
}
|
acfe91a9
wuxw
v1.9 修复客户反馈车位结构图部...
|
133
134
135
136
|
if (this.editPropertyRightRegistrationDetailInfo.securities == '004' && this.editPropertyRightRegistrationDetailInfo.deedTaxUrl) {
const urls = this.editPropertyRightRegistrationDetailInfo.deedTaxUrl
if (urls) {
this.$refs.deedTaxUpload.setImages(urls)
|
20ddb876
wuxw
优化房屋产权
|
137
|
}
|
f92fd6ac
wuxw
开发我的小区下的功能
|
138
|
}
|
20ddb876
wuxw
优化房屋产权
|
139
|
}, 1000)
|
f92fd6ac
wuxw
开发我的小区下的功能
|
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
|
},
handleIdCardImageChange(photos) {
this.editPropertyRightRegistrationDetailInfo.idCardPhotos = photos
},
handleHousePurchaseImageChange(photos) {
this.editPropertyRightRegistrationDetailInfo.housePurchasePhotos = photos
},
handleRepairImageChange(photos) {
this.editPropertyRightRegistrationDetailInfo.repairPhotos = photos
},
handleDeedTaxImageChange(photos) {
this.editPropertyRightRegistrationDetailInfo.deedTaxPhotos = photos
},
editPropertyRightRegistrationDetail() {
if (!this.validateForm()) {
return
}
const params = { ...this.editPropertyRightRegistrationDetailInfo }
|
acfe91a9
wuxw
v1.9 修复客户反馈车位结构图部...
|
159
|
if (params.securities == '001') {
|
f92fd6ac
wuxw
开发我的小区下的功能
|
160
|
params.idCardUrl = params.idCardPhotos && params.idCardPhotos.length > 0 ? params.idCardPhotos.join(',') : ''
|
acfe91a9
wuxw
v1.9 修复客户反馈车位结构图部...
|
161
|
} else if (params.securities == '002') {
|
f92fd6ac
wuxw
开发我的小区下的功能
|
162
|
params.housePurchaseUrl = params.housePurchasePhotos && params.housePurchasePhotos.length > 0 ? params.housePurchasePhotos.join(',') : ''
|
acfe91a9
wuxw
v1.9 修复客户反馈车位结构图部...
|
163
|
} else if (params.securities == '003') {
|
f92fd6ac
wuxw
开发我的小区下的功能
|
164
|
params.repairUrl = params.repairPhotos && params.repairPhotos.length > 0 ? params.repairPhotos.join(',') : ''
|
acfe91a9
wuxw
v1.9 修复客户反馈车位结构图部...
|
165
|
} else if (params.securities == '004') {
|
f92fd6ac
wuxw
开发我的小区下的功能
|
166
167
168
169
170
|
params.deedTaxUrl = params.deedTaxPhotos && params.deedTaxPhotos.length > 0 ? params.deedTaxPhotos.join(',') : ''
}
updatePropertyRightRegistrationDetail(params)
.then(() => {
|
6ec243d6
wuxw
v1.9 点击提交后,成功提示没有...
|
171
|
this.$message.success(this.$t('common.operationSuccess'))
|
f92fd6ac
wuxw
开发我的小区下的功能
|
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
|
this.$emit('success')
this.handleClose()
})
.catch(error => {
this.$message.error(error.message || this.$t('common.updateFailed'))
})
},
validateForm() {
if (!this.editPropertyRightRegistrationDetailInfo.securities) {
this.$message.error(this.$t('propertyRightDetail.edit.materialTypeRequired'))
return false
}
return true
},
handleClose() {
this.visible = false
},
resetForm() {
this.editPropertyRightRegistrationDetailInfo = {
prrdId: '',
prrId: '',
securities: '',
securitiesName: '',
idCardUrl: '',
housePurchaseUrl: '',
repairUrl: '',
deedTaxUrl: '',
isTrue: '',
idCardPhotos: [],
housePurchasePhotos: [],
repairPhotos: [],
deedTaxPhotos: [],
communityId: ''
}
}
}
}
</script>
<style lang="scss" scoped>
.dialog-footer {
text-align: right;
margin-top: 20px;
}
.help-block {
color: #f56c6c;
font-size: 12px;
margin-top: 5px;
}
</style>
|