Commit acfe91a9acbd42a80e89caa17738e847a89c2617
1 parent
6ec243d6
v1.9 修复客户反馈车位结构图部分bug
Showing
11 changed files
with
90 additions
and
63 deletions
src/components/community/RoomDecorationAcceptance.vue
| ... | ... | @@ -5,7 +5,7 @@ |
| 5 | 5 | width="40%" |
| 6 | 6 | @close="resetForm" |
| 7 | 7 | > |
| 8 | - <el-form :model="form" ref="form" label-width="120px"> | |
| 8 | + <el-form :model="form" ref="form" :rules="rules" label-width="120px"> | |
| 9 | 9 | <el-form-item :label="$t('roomRenovationManage.room')" prop="roomName"> |
| 10 | 10 | <el-input |
| 11 | 11 | v-model.trim="form.roomName" |
| ... | ... | @@ -13,7 +13,7 @@ |
| 13 | 13 | /> |
| 14 | 14 | </el-form-item> |
| 15 | 15 | |
| 16 | - <el-form-item :label="$t('roomRenovationManage.status')" prop="state" required> | |
| 16 | + <el-form-item :label="$t('roomRenovationManage.status')" prop="state" > | |
| 17 | 17 | <el-select v-model="form.state"> |
| 18 | 18 | <el-option |
| 19 | 19 | :label="$t('roomRenovationManage.acceptanceSuccess')" |
| ... | ... | @@ -26,7 +26,7 @@ |
| 26 | 26 | </el-select> |
| 27 | 27 | </el-form-item> |
| 28 | 28 | |
| 29 | - <el-form-item :label="$t('roomRenovationManage.acceptanceOpinion')" prop="remark" required> | |
| 29 | + <el-form-item :label="$t('roomRenovationManage.acceptanceOpinion')" prop="remark" > | |
| 30 | 30 | <el-input |
| 31 | 31 | v-model.trim="form.remark" |
| 32 | 32 | type="textarea" |
| ... | ... | @@ -61,6 +61,14 @@ export default { |
| 61 | 61 | remark: '', |
| 62 | 62 | detailType: '1001', |
| 63 | 63 | communityId: '' |
| 64 | + }, | |
| 65 | + rules: { | |
| 66 | + state: [ | |
| 67 | + { required: true, message: this.$t('common.required'), trigger: 'change' } | |
| 68 | + ], | |
| 69 | + remark: [ | |
| 70 | + { required: true, message: this.$t('common.required'), trigger: 'blur' } | |
| 71 | + ] | |
| 64 | 72 | } |
| 65 | 73 | } |
| 66 | 74 | }, | ... | ... |
src/components/community/RoomDecorationRecord.vue
| ... | ... | @@ -118,7 +118,11 @@ export default { |
| 118 | 118 | |
| 119 | 119 | |
| 120 | 120 | |
| 121 | - await updateRoomDecorationRecord(this.roomDecorationRecordInfo) | |
| 121 | + const {code,msg} = await updateRoomDecorationRecord(this.roomDecorationRecordInfo) | |
| 122 | + if(code != 0){ | |
| 123 | + this.$message.error(msg); | |
| 124 | + return; | |
| 125 | + } | |
| 122 | 126 | this.$message.success(this.$t('common.operationSuccess')) |
| 123 | 127 | this.$emit('success') |
| 124 | 128 | this.visible = false | ... | ... |
src/components/community/RoomToExamine.vue
| 1 | 1 | <template> |
| 2 | 2 | <el-dialog :title="$t('roomRenovationManage.review')" :visible.sync="visible" width="40%" @close="resetForm"> |
| 3 | - <el-form :model="form" ref="form" label-width="120px"> | |
| 3 | + <el-form :model="form" :rules="rules" ref="form" label-width="120px"> | |
| 4 | 4 | <el-form-item :label="$t('roomRenovationManage.room')" prop="roomName"> |
| 5 | 5 | <el-input v-model.trim="form.roomName" disabled /> |
| 6 | 6 | </el-form-item> |
| 7 | 7 | |
| 8 | - <el-form-item :label="$t('roomRenovationManage.status')" prop="state" required> | |
| 8 | + <el-form-item :label="$t('roomRenovationManage.status')" prop="state"> | |
| 9 | 9 | <el-select v-model="form.state"> |
| 10 | 10 | <el-option :label="$t('roomRenovationManage.reviewPass')" value="3000" /> |
| 11 | 11 | <el-option :label="$t('roomRenovationManage.reviewReject')" value="2000" /> |
| 12 | 12 | </el-select> |
| 13 | 13 | </el-form-item> |
| 14 | 14 | |
| 15 | - <el-form-item :label="$t('roomRenovationManage.reviewOpinion')" prop="examineRemark" required> | |
| 15 | + <el-form-item :label="$t('roomRenovationManage.reviewOpinion')" prop="examineRemark"> | |
| 16 | 16 | <el-input v-model.trim="form.examineRemark" type="textarea" /> |
| 17 | 17 | </el-form-item> |
| 18 | 18 | </el-form> |
| ... | ... | @@ -42,6 +42,14 @@ export default { |
| 42 | 42 | state: '', |
| 43 | 43 | examineRemark: '', |
| 44 | 44 | communityId: '' |
| 45 | + }, | |
| 46 | + rules: { | |
| 47 | + state: [ | |
| 48 | + { required: true, message: this.$t('common.pleaseSelect'), trigger: 'change' } | |
| 49 | + ], | |
| 50 | + examineRemark: [ | |
| 51 | + { required: true, message: this.$t('common.pleaseInput'), trigger: 'blur' } | |
| 52 | + ] | |
| 45 | 53 | } |
| 46 | 54 | } |
| 47 | 55 | }, |
| ... | ... | @@ -67,18 +75,24 @@ export default { |
| 67 | 75 | examineRemark: '', |
| 68 | 76 | communityId: '' |
| 69 | 77 | } |
| 78 | + this.$refs.form && this.$refs.form.resetFields() | |
| 70 | 79 | }, |
| 71 | 80 | |
| 72 | 81 | async saveRoomToExamine() { |
| 73 | - try { | |
| 74 | - await updateRoomToExamine(this.form) | |
| 75 | - this.$message.success(this.$t('common.operationSuccess')) | |
| 76 | - this.visible = false | |
| 77 | - this.$emit('success') | |
| 78 | - } catch (error) { | |
| 79 | - console.error('保存审核信息失败:', error) | |
| 80 | - this.$message.error(error.message || this.$t('common.operationFailed')) | |
| 81 | - } | |
| 82 | + this.$refs.form.validate(async (valid) => { | |
| 83 | + if (!valid) { | |
| 84 | + return false | |
| 85 | + } | |
| 86 | + try { | |
| 87 | + await updateRoomToExamine(this.form) | |
| 88 | + this.$message.success(this.$t('common.operationSuccess')) | |
| 89 | + this.visible = false | |
| 90 | + this.$emit('success') | |
| 91 | + } catch (error) { | |
| 92 | + console.error('保存审核信息失败:', error) | |
| 93 | + this.$message.error(error.message || this.$t('common.operationFailed')) | |
| 94 | + } | |
| 95 | + }) | |
| 82 | 96 | } |
| 83 | 97 | } |
| 84 | 98 | } | ... | ... |
src/components/owner/ownerDetailRoom.vue
| ... | ... | @@ -76,7 +76,7 @@ |
| 76 | 76 | </div> |
| 77 | 77 | |
| 78 | 78 | <edit-room ref="editRoom" @refresh="_loadOwnerDetailRoomData" /> |
| 79 | - <owner-exit-room ref="ownerExitRoom" @refresh="_loadOwnerDetailRoomData" /> | |
| 79 | + <owner-exit-room ref="ownerExitRoom" @success="_loadOwnerDetailRoomData" /> | |
| 80 | 80 | </div> |
| 81 | 81 | </template> |
| 82 | 82 | ... | ... |
src/components/owner/ownerExitRoom.vue
src/components/owner/showOwnerRoom.vue
src/components/room/deletePropertyRightRegistration.vue
| ... | ... | @@ -42,7 +42,7 @@ export default { |
| 42 | 42 | }, |
| 43 | 43 | async handleConfirm() { |
| 44 | 44 | try { |
| 45 | - const res = await deletePropertyRightRegistration(this.deleteData) | |
| 45 | + const res = await deletePropertyRightRegistration(this.deleteData.prrId) | |
| 46 | 46 | if (res.code === 0) { |
| 47 | 47 | this.$message.success(this.$t('common.operationSuccess')) |
| 48 | 48 | this.visible = false | ... | ... |
src/components/room/editPropertyRightRegistrationDetail.vue
| ... | ... | @@ -7,21 +7,22 @@ |
| 7 | 7 | :placeholder="$t('propertyRightDetail.edit.materialTypePlaceholder')" disabled /> |
| 8 | 8 | </el-form-item> |
| 9 | 9 | |
| 10 | - <template v-if="editPropertyRightRegistrationDetailInfo.securities === '001'"> | |
| 10 | + <template v-if="editPropertyRightRegistrationDetailInfo.securities == '001'"> | |
| 11 | 11 | <el-form-item :label="$t('propertyRightDetail.edit.idCardPhoto')"> |
| 12 | 12 | <upload-image-url ref="idCardUpload" :image-count="2" @notifyUploadCoverImage="handleIdCardImageChange" /> |
| 13 | 13 | <p class="help-block">*{{ $t('propertyRightDetail.edit.idCardPhotoTip') }}*</p> |
| 14 | 14 | </el-form-item> |
| 15 | 15 | </template> |
| 16 | 16 | |
| 17 | - <template v-if="editPropertyRightRegistrationDetailInfo.securities === '002'"> | |
| 17 | + <template v-if="editPropertyRightRegistrationDetailInfo.securities == '002'"> | |
| 18 | 18 | <el-form-item :label="$t('propertyRightDetail.edit.houseContract')"> |
| 19 | - <upload-image-url ref="housePurchaseUpload" :image-count="10" @notifyUploadCoverImage="handleHousePurchaseImageChange" /> | |
| 19 | + <upload-image-url ref="housePurchaseUpload" :image-count="10" | |
| 20 | + @notifyUploadCoverImage="handleHousePurchaseImageChange" /> | |
| 20 | 21 | <p class="help-block">*{{ $t('propertyRightDetail.edit.houseContractTip') }}*</p> |
| 21 | 22 | </el-form-item> |
| 22 | 23 | </template> |
| 23 | 24 | |
| 24 | - <template v-if="editPropertyRightRegistrationDetailInfo.securities === '003'"> | |
| 25 | + <template v-if="editPropertyRightRegistrationDetailInfo.securities == '003'"> | |
| 25 | 26 | <el-form-item :label="$t('propertyRightDetail.edit.repairFund')"> |
| 26 | 27 | <el-select v-model="editPropertyRightRegistrationDetailInfo.isTrue" style="width: 100%" |
| 27 | 28 | :placeholder="$t('propertyRightDetail.edit.repairFundPlaceholder')"> |
| ... | ... | @@ -31,14 +32,14 @@ |
| 31 | 32 | </el-select> |
| 32 | 33 | </el-form-item> |
| 33 | 34 | |
| 34 | - <template v-if="editPropertyRightRegistrationDetailInfo.isTrue === 'true'"> | |
| 35 | + <template v-if="editPropertyRightRegistrationDetailInfo.isTrue == 'true'"> | |
| 35 | 36 | <el-form-item :label="$t('propertyRightDetail.edit.repairFundPhoto')"> |
| 36 | 37 | <upload-image-url ref="repairUpload" :image-count="3" @notifyUploadCoverImage="handleRepairImageChange" /> |
| 37 | 38 | </el-form-item> |
| 38 | 39 | </template> |
| 39 | 40 | </template> |
| 40 | 41 | |
| 41 | - <template v-if="editPropertyRightRegistrationDetailInfo.securities === '004'"> | |
| 42 | + <template v-if="editPropertyRightRegistrationDetailInfo.securities == '004'"> | |
| 42 | 43 | <el-form-item :label="$t('propertyRightDetail.edit.deedTax')"> |
| 43 | 44 | <el-select v-model="editPropertyRightRegistrationDetailInfo.isTrue" style="width: 100%" |
| 44 | 45 | :placeholder="$t('propertyRightDetail.edit.deedTaxPlaceholder')"> |
| ... | ... | @@ -48,7 +49,7 @@ |
| 48 | 49 | </el-select> |
| 49 | 50 | </el-form-item> |
| 50 | 51 | |
| 51 | - <template v-if="editPropertyRightRegistrationDetailInfo.isTrue === 'true'"> | |
| 52 | + <template v-if="editPropertyRightRegistrationDetailInfo.isTrue == 'true'"> | |
| 52 | 53 | <el-form-item :label="$t('propertyRightDetail.edit.deedTaxPhoto')"> |
| 53 | 54 | <upload-image-url ref="deedTaxUpload" :image-count="3" @notifyUploadCoverImage="handleDeedTaxImageChange" /> |
| 54 | 55 | </el-form-item> |
| ... | ... | @@ -79,14 +80,9 @@ export default { |
| 79 | 80 | components: { |
| 80 | 81 | UploadImageUrl |
| 81 | 82 | }, |
| 82 | - props: { | |
| 83 | - visible: { | |
| 84 | - type: Boolean, | |
| 85 | - default: false | |
| 86 | - } | |
| 87 | - }, | |
| 88 | 83 | data() { |
| 89 | 84 | return { |
| 85 | + visible: false, | |
| 90 | 86 | editPropertyRightRegistrationDetailInfo: { |
| 91 | 87 | prrdId: '', |
| 92 | 88 | prrId: '', |
| ... | ... | @@ -101,7 +97,8 @@ export default { |
| 101 | 97 | housePurchasePhotos: [], |
| 102 | 98 | repairPhotos: [], |
| 103 | 99 | deedTaxPhotos: [], |
| 104 | - communityId: '' | |
| 100 | + communityId: '', | |
| 101 | + | |
| 105 | 102 | } |
| 106 | 103 | } |
| 107 | 104 | }, |
| ... | ... | @@ -115,28 +112,28 @@ export default { |
| 115 | 112 | }, |
| 116 | 113 | loadPhotos() { |
| 117 | 114 | setTimeout(() => { |
| 118 | - if (this.editPropertyRightRegistrationDetailInfo.securities === '001' && this.editPropertyRightRegistrationDetailInfo.idCardUrl) { | |
| 119 | - const urls = this.editPropertyRightRegistrationDetailInfo.idCardUrl | |
| 120 | - if (urls) { | |
| 121 | - this.$refs.idCardUpload.setImages(urls.split(',')) | |
| 115 | + if (this.editPropertyRightRegistrationDetailInfo.securities == '001' && this.editPropertyRightRegistrationDetailInfo.idCardUrl) { | |
| 116 | + const urls = this.editPropertyRightRegistrationDetailInfo.idCardUrl | |
| 117 | + if (urls) { | |
| 118 | + this.$refs.idCardUpload.setImages(urls) | |
| 119 | + } | |
| 122 | 120 | } |
| 123 | - } | |
| 124 | - if (this.editPropertyRightRegistrationDetailInfo.securities === '002' && this.editPropertyRightRegistrationDetailInfo.housePurchaseUrl) { | |
| 125 | - const urls = this.editPropertyRightRegistrationDetailInfo.housePurchaseUrl | |
| 126 | - if (urls) { | |
| 127 | - this.$refs.housePurchaseUpload.setImages(urls.split(',')) | |
| 121 | + if (this.editPropertyRightRegistrationDetailInfo.securities == '002' && this.editPropertyRightRegistrationDetailInfo.housePurchaseUrl) { | |
| 122 | + const urls = this.editPropertyRightRegistrationDetailInfo.housePurchaseUrl | |
| 123 | + if (urls) { | |
| 124 | + this.$refs.housePurchaseUpload.setImages(urls) | |
| 125 | + } | |
| 128 | 126 | } |
| 129 | - } | |
| 130 | - if (this.editPropertyRightRegistrationDetailInfo.securities === '003' && this.editPropertyRightRegistrationDetailInfo.repairUrl) { | |
| 131 | - const urls = this.editPropertyRightRegistrationDetailInfo.repairUrl | |
| 132 | - if (urls) { | |
| 133 | - this.$refs.repairUpload.setImages(urls.split(',')) | |
| 127 | + if (this.editPropertyRightRegistrationDetailInfo.securities == '003' && this.editPropertyRightRegistrationDetailInfo.repairUrl) { | |
| 128 | + const urls = this.editPropertyRightRegistrationDetailInfo.repairUrl | |
| 129 | + if (urls) { | |
| 130 | + this.$refs.repairUpload.setImages(urls) | |
| 131 | + } | |
| 134 | 132 | } |
| 135 | - } | |
| 136 | - if (this.editPropertyRightRegistrationDetailInfo.securities === '004' && this.editPropertyRightRegistrationDetailInfo.deedTaxUrl) { | |
| 137 | - const urls = this.editPropertyRightRegistrationDetailInfo.deedTaxUrl | |
| 138 | - if (urls) { | |
| 139 | - this.$refs.deedTaxUpload.setImages(urls.split(',')) | |
| 133 | + if (this.editPropertyRightRegistrationDetailInfo.securities == '004' && this.editPropertyRightRegistrationDetailInfo.deedTaxUrl) { | |
| 134 | + const urls = this.editPropertyRightRegistrationDetailInfo.deedTaxUrl | |
| 135 | + if (urls) { | |
| 136 | + this.$refs.deedTaxUpload.setImages(urls) | |
| 140 | 137 | } |
| 141 | 138 | } |
| 142 | 139 | }, 1000) |
| ... | ... | @@ -159,13 +156,13 @@ export default { |
| 159 | 156 | } |
| 160 | 157 | |
| 161 | 158 | const params = { ...this.editPropertyRightRegistrationDetailInfo } |
| 162 | - if (params.securities === '001') { | |
| 159 | + if (params.securities == '001') { | |
| 163 | 160 | params.idCardUrl = params.idCardPhotos && params.idCardPhotos.length > 0 ? params.idCardPhotos.join(',') : '' |
| 164 | - } else if (params.securities === '002') { | |
| 161 | + } else if (params.securities == '002') { | |
| 165 | 162 | params.housePurchaseUrl = params.housePurchasePhotos && params.housePurchasePhotos.length > 0 ? params.housePurchasePhotos.join(',') : '' |
| 166 | - } else if (params.securities === '003') { | |
| 163 | + } else if (params.securities == '003') { | |
| 167 | 164 | params.repairUrl = params.repairPhotos && params.repairPhotos.length > 0 ? params.repairPhotos.join(',') : '' |
| 168 | - } else if (params.securities === '004') { | |
| 165 | + } else if (params.securities == '004') { | |
| 169 | 166 | params.deedTaxUrl = params.deedTaxPhotos && params.deedTaxPhotos.length > 0 ? params.deedTaxPhotos.join(',') : '' |
| 170 | 167 | } |
| 171 | 168 | ... | ... |
src/views/car/carStructureList.vue
| ... | ... | @@ -6,9 +6,9 @@ |
| 6 | 6 | </el-col> |
| 7 | 7 | <el-col :span="20"> |
| 8 | 8 | <el-card class="box-card margin-bottom car-list-card"> |
| 9 | - <el-row :gutter="10" class="margin-top"> | |
| 9 | + <el-row :gutter="10" class=""> | |
| 10 | 10 | <el-col v-for="(car, index) in carStructureInfo.cars" :key="index" :span="4" |
| 11 | - class="text-center margin-bottom padding car-card" :style="{ 'background-color': getBgColor(car) }" | |
| 11 | + class="text-center margin-bottom car-card margin-sm" :style="{ 'background-color': getBgColor(car) }" | |
| 12 | 12 | @dblclick.native="toSimplifyAcceptance(car)"> |
| 13 | 13 | <div>{{ car.areaNum }}-{{ car.num }}</div> |
| 14 | 14 | <div>{{ car.carNum }}</div> |
| ... | ... | @@ -52,6 +52,7 @@ export default { |
| 52 | 52 | }, |
| 53 | 53 | methods: { |
| 54 | 54 | switchFloorUnit(data) { |
| 55 | + this.carStructureInfo.cars = [] | |
| 55 | 56 | if (!data.unitId) { |
| 56 | 57 | return |
| 57 | 58 | } | ... | ... |
src/views/community/roomRenovationManageList.vue
| ... | ... | @@ -342,8 +342,11 @@ export default { |
| 342 | 342 | this.$router.push({ |
| 343 | 343 | path: '/views/community/listRoomDecorationRecord', |
| 344 | 344 | query: { |
| 345 | + roomId: row.roomId, | |
| 345 | 346 | rId: row.rId, |
| 346 | - roomName: row.roomName | |
| 347 | + roomName: row.roomName, | |
| 348 | + state: row.state, | |
| 349 | + stateName: row.stateName | |
| 347 | 350 | } |
| 348 | 351 | }) |
| 349 | 352 | } | ... | ... |
src/views/work/addItemReleaseViewList.vue
| ... | ... | @@ -111,8 +111,8 @@ |
| 111 | 111 | |
| 112 | 112 | <el-row v-if="form.audit.assignee === '-2'" :gutter="20" class="mt-20"> |
| 113 | 113 | <el-col :span="24"> |
| 114 | - | |
| 115 | - <div slot="header" class="clearfix"> | |
| 114 | + <el-card> | |
| 115 | + <div slot="header" class="flex justify-between"> | |
| 116 | 116 | <span>{{ $t('addItemReleaseView.approverInfo') }}</span> |
| 117 | 117 | </div> |
| 118 | 118 | <el-form label-width="120px"> |
| ... | ... | @@ -130,7 +130,7 @@ |
| 130 | 130 | </el-col> |
| 131 | 131 | </el-row> |
| 132 | 132 | </el-form> |
| 133 | - | |
| 133 | + </el-card> | |
| 134 | 134 | </el-col> |
| 135 | 135 | </el-row> |
| 136 | 136 | ... | ... |