From acfe91a9acbd42a80e89caa17738e847a89c2617 Mon Sep 17 00:00:00 2001 From: wuxw <928255095@qq.com> Date: Mon, 13 Oct 2025 16:14:35 +0800 Subject: [PATCH] v1.9 修复客户反馈车位结构图部分bug --- src/components/community/RoomDecorationAcceptance.vue | 14 +++++++++++--- src/components/community/RoomDecorationRecord.vue | 6 +++++- src/components/community/RoomToExamine.vue | 38 ++++++++++++++++++++++++++------------ src/components/owner/ownerDetailRoom.vue | 2 +- src/components/owner/ownerExitRoom.vue | 2 +- src/components/owner/showOwnerRoom.vue | 2 +- src/components/room/deletePropertyRightRegistration.vue | 2 +- src/components/room/editPropertyRightRegistrationDetail.vue | 71 ++++++++++++++++++++++++++++++++++------------------------------------- src/views/car/carStructureList.vue | 5 +++-- src/views/community/roomRenovationManageList.vue | 5 ++++- src/views/work/addItemReleaseViewList.vue | 6 +++--- 11 files changed, 90 insertions(+), 63 deletions(-) diff --git a/src/components/community/RoomDecorationAcceptance.vue b/src/components/community/RoomDecorationAcceptance.vue index 4291fde..c054f6e 100644 --- a/src/components/community/RoomDecorationAcceptance.vue +++ b/src/components/community/RoomDecorationAcceptance.vue @@ -5,7 +5,7 @@ width="40%" @close="resetForm" > - + - + - + - + - + - + @@ -42,6 +42,14 @@ export default { state: '', examineRemark: '', communityId: '' + }, + rules: { + state: [ + { required: true, message: this.$t('common.pleaseSelect'), trigger: 'change' } + ], + examineRemark: [ + { required: true, message: this.$t('common.pleaseInput'), trigger: 'blur' } + ] } } }, @@ -67,18 +75,24 @@ export default { examineRemark: '', communityId: '' } + this.$refs.form && this.$refs.form.resetFields() }, async saveRoomToExamine() { - try { - await updateRoomToExamine(this.form) - this.$message.success(this.$t('common.operationSuccess')) - this.visible = false - this.$emit('success') - } catch (error) { - console.error('保存审核信息失败:', error) - this.$message.error(error.message || this.$t('common.operationFailed')) - } + this.$refs.form.validate(async (valid) => { + if (!valid) { + return false + } + try { + await updateRoomToExamine(this.form) + this.$message.success(this.$t('common.operationSuccess')) + this.visible = false + this.$emit('success') + } catch (error) { + console.error('保存审核信息失败:', error) + this.$message.error(error.message || this.$t('common.operationFailed')) + } + }) } } } diff --git a/src/components/owner/ownerDetailRoom.vue b/src/components/owner/ownerDetailRoom.vue index b73ed39..98883ce 100644 --- a/src/components/owner/ownerDetailRoom.vue +++ b/src/components/owner/ownerDetailRoom.vue @@ -76,7 +76,7 @@ - + diff --git a/src/components/owner/ownerExitRoom.vue b/src/components/owner/ownerExitRoom.vue index aeb1711..01b2948 100644 --- a/src/components/owner/ownerExitRoom.vue +++ b/src/components/owner/ownerExitRoom.vue @@ -42,7 +42,7 @@ export default { const res = await exitRoom(params) if (res.code === 0) { - this.$emit('exit-success') + this.$emit('success') this.close() this.$message.success('退房成功') } else { diff --git a/src/components/owner/showOwnerRoom.vue b/src/components/owner/showOwnerRoom.vue index e76f004..2fa63f6 100644 --- a/src/components/owner/showOwnerRoom.vue +++ b/src/components/owner/showOwnerRoom.vue @@ -104,7 +104,7 @@ - + diff --git a/src/components/room/deletePropertyRightRegistration.vue b/src/components/room/deletePropertyRightRegistration.vue index 439070c..14ecb88 100644 --- a/src/components/room/deletePropertyRightRegistration.vue +++ b/src/components/room/deletePropertyRightRegistration.vue @@ -42,7 +42,7 @@ export default { }, async handleConfirm() { try { - const res = await deletePropertyRightRegistration(this.deleteData) + const res = await deletePropertyRightRegistration(this.deleteData.prrId) if (res.code === 0) { this.$message.success(this.$t('common.operationSuccess')) this.visible = false diff --git a/src/components/room/editPropertyRightRegistrationDetail.vue b/src/components/room/editPropertyRightRegistrationDetail.vue index 835806b..969c70f 100644 --- a/src/components/room/editPropertyRightRegistrationDetail.vue +++ b/src/components/room/editPropertyRightRegistrationDetail.vue @@ -7,21 +7,22 @@ :placeholder="$t('propertyRightDetail.edit.materialTypePlaceholder')" disabled /> -