Commit 4277ec260a15ef59f0deef5dff2d4b877247427f
1 parent
96514773
v1.9 优化报表相关页面的布局以及bug
Showing
15 changed files
with
54 additions
and
136 deletions
src/components/fee/aOwnerDetailAcctReceipt.vue
| ... | ... | @@ -31,12 +31,6 @@ import { listAdminAccountReceipt } from '@/api/fee/adminRoomFeeApi' |
| 31 | 31 | |
| 32 | 32 | export default { |
| 33 | 33 | name: 'AOwnerDetailAcctReceipt', |
| 34 | - props: { | |
| 35 | - ownerId: { | |
| 36 | - type: String, | |
| 37 | - default: '' | |
| 38 | - } | |
| 39 | - }, | |
| 40 | 34 | data() { |
| 41 | 35 | return { |
| 42 | 36 | feeReceipts: [], |
| ... | ... | @@ -48,7 +42,8 @@ export default { |
| 48 | 42 | } |
| 49 | 43 | }, |
| 50 | 44 | methods: { |
| 51 | - open() { | |
| 45 | + open(params) { | |
| 46 | + this.ownerId = params.ownerId | |
| 52 | 47 | this.page.current = 1 |
| 53 | 48 | this.loadData() |
| 54 | 49 | }, | ... | ... |
src/components/fee/aRoomDetailReceipt.vue
| ... | ... | @@ -36,19 +36,11 @@ import {dateFormat} from '@/utils/dateUtil' |
| 36 | 36 | |
| 37 | 37 | export default { |
| 38 | 38 | name: 'ARoomDetailReceipt', |
| 39 | - props: { | |
| 40 | - ownerId: { | |
| 41 | - type: String, | |
| 42 | - default: '' | |
| 43 | - }, | |
| 44 | - feeId: { | |
| 45 | - type: String, | |
| 46 | - default: '' | |
| 47 | - } | |
| 48 | - }, | |
| 49 | 39 | data() { |
| 50 | 40 | return { |
| 51 | 41 | feeReceipts: [], |
| 42 | + ownerId: '', | |
| 43 | + feeId: '', | |
| 52 | 44 | page: { |
| 53 | 45 | current: 1, |
| 54 | 46 | size: 10, |
| ... | ... | @@ -57,7 +49,8 @@ export default { |
| 57 | 49 | } |
| 58 | 50 | }, |
| 59 | 51 | methods: { |
| 60 | - open() { | |
| 52 | + open(params) { | |
| 53 | + this.ownerId = params.ownerId | |
| 61 | 54 | this.page.current = 1 |
| 62 | 55 | this.loadData() |
| 63 | 56 | }, | ... | ... |
src/components/report/ChooseReportCustomComponent.vue
| 1 | 1 | <template> |
| 2 | - <el-dialog | |
| 3 | - :title="$t('chooseReportCustomComponent.title')" | |
| 4 | - :visible.sync="visible" | |
| 5 | - width="80%" | |
| 6 | - top="5vh" | |
| 7 | - > | |
| 2 | + <el-dialog :title="$t('chooseReportCustomComponent.title')" :visible.sync="visible" width="80%" top="5vh"> | |
| 8 | 3 | <el-row :gutter="20"> |
| 9 | 4 | <el-col :span="24"> |
| 10 | - <el-input | |
| 11 | - v-model="searchText" | |
| 12 | - :placeholder="$t('chooseReportCustomComponent.searchPlaceholder')" | |
| 13 | - style="width: 300px; margin-right: 10px" | |
| 14 | - /> | |
| 5 | + <el-input v-model="searchText" :placeholder="$t('chooseReportCustomComponent.searchPlaceholder')" | |
| 6 | + style="width: 300px; margin-right: 10px" /> | |
| 15 | 7 | <el-button type="primary" @click="handleSearch"> |
| 16 | 8 | {{ $t('common.search') }} |
| 17 | 9 | </el-button> |
| 18 | 10 | </el-col> |
| 19 | 11 | </el-row> |
| 20 | 12 | |
| 21 | - <el-table | |
| 22 | - :data="tableData" | |
| 23 | - border | |
| 24 | - style="width: 100%; margin-top: 20px" | |
| 25 | - v-loading="loading" | |
| 26 | - > | |
| 27 | - <el-table-column | |
| 28 | - prop="componentId" | |
| 29 | - :label="$t('chooseReportCustomComponent.componentId')" | |
| 30 | - align="center" | |
| 31 | - /> | |
| 32 | - <el-table-column | |
| 33 | - prop="name" | |
| 34 | - :label="$t('chooseReportCustomComponent.componentName')" | |
| 35 | - align="center" | |
| 36 | - /> | |
| 37 | - <el-table-column | |
| 38 | - prop="componentType" | |
| 39 | - :label="$t('chooseReportCustomComponent.componentType')" | |
| 40 | - align="center" | |
| 41 | - /> | |
| 42 | - <el-table-column | |
| 43 | - prop="queryModel" | |
| 44 | - :label="$t('chooseReportCustomComponent.queryModel')" | |
| 45 | - align="center" | |
| 46 | - /> | |
| 47 | - <el-table-column | |
| 48 | - prop="remark" | |
| 49 | - :label="$t('chooseReportCustomComponent.remark')" | |
| 50 | - align="center" | |
| 51 | - /> | |
| 52 | - <el-table-column | |
| 53 | - :label="$t('common.operation')" | |
| 54 | - align="center" | |
| 55 | - width="100" | |
| 56 | - > | |
| 13 | + <el-table :data="tableData" border style="width: 100%; margin-top: 20px" v-loading="loading"> | |
| 14 | + <el-table-column prop="componentId" :label="$t('chooseReportCustomComponent.componentId')" align="center" /> | |
| 15 | + <el-table-column prop="name" :label="$t('chooseReportCustomComponent.componentName')" align="center" /> | |
| 16 | + <el-table-column prop="componentType" :label="$t('chooseReportCustomComponent.componentType')" align="center" /> | |
| 17 | + <el-table-column prop="queryModel" :label="$t('chooseReportCustomComponent.queryModel')" align="center" /> | |
| 18 | + <el-table-column prop="remark" :label="$t('chooseReportCustomComponent.remark')" align="center" /> | |
| 19 | + <el-table-column :label="$t('common.operation')" align="center" width="100"> | |
| 57 | 20 | <template slot-scope="scope"> |
| 58 | - <el-button | |
| 59 | - size="mini" | |
| 60 | - type="primary" | |
| 61 | - @click="handleSelect(scope.row)" | |
| 62 | - > | |
| 21 | + <el-button size="mini" type="primary" @click="handleSelect(scope.row)"> | |
| 63 | 22 | {{ $t('common.select') }} |
| 64 | 23 | </el-button> |
| 65 | 24 | </template> |
| 66 | 25 | </el-table-column> |
| 67 | 26 | </el-table> |
| 68 | 27 | |
| 69 | - <el-pagination | |
| 70 | - @size-change="handleSizeChange" | |
| 71 | - @current-change="handleCurrentChange" | |
| 72 | - :current-page="pagination.current" | |
| 73 | - :page-sizes="[10, 20, 30, 50]" | |
| 74 | - :page-size="pagination.size" | |
| 75 | - layout="total, sizes, prev, pager, next, jumper" | |
| 76 | - :total="pagination.total" | |
| 77 | - style="margin-top: 20px" | |
| 78 | - /> | |
| 28 | + <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" | |
| 29 | + :current-page="pagination.current" :page-sizes="[10, 20, 30, 50]" :page-size="pagination.size" | |
| 30 | + layout="total, sizes, prev, pager, next, jumper" :total="pagination.total" style="margin-top: 20px" /> | |
| 79 | 31 | </el-dialog> |
| 80 | 32 | </template> |
| 81 | 33 | |
| ... | ... | @@ -111,9 +63,9 @@ export default { |
| 111 | 63 | row: this.pagination.size, |
| 112 | 64 | name: this.searchText |
| 113 | 65 | } |
| 114 | - const { data, records } = await listReportCustomComponent(params) | |
| 66 | + const { data, total } = await listReportCustomComponent(params) | |
| 115 | 67 | this.tableData = data |
| 116 | - this.pagination.total = records | |
| 68 | + this.pagination.total = total | |
| 117 | 69 | } catch (error) { |
| 118 | 70 | this.$message.error(this.$t('chooseReportCustomComponent.fetchError')) |
| 119 | 71 | } finally { | ... | ... |
src/components/report/commonReportTable.vue
| ... | ... | @@ -6,7 +6,7 @@ |
| 6 | 6 | <span>{{ $t('commonReportTable.queryConditions') }}</span> |
| 7 | 7 | </div> |
| 8 | 8 | <el-row :gutter="20"> |
| 9 | - <el-col v-for="(conditionItem, conditionIndex) in item.conditions" :key="conditionIndex" :span="6"> | |
| 9 | + <el-col v-for="(conditionItem, conditionIndex) in item.conditions" :key="conditionIndex" :span="6" class="margin-bottom"> | |
| 10 | 10 | <div class="el-input"> |
| 11 | 11 | <input class="el-input__inner" |
| 12 | 12 | v-model.trim="conditionItem.value" | ... | ... |
src/components/report/reportFeeDetailCar.vue
| 1 | 1 | <template> |
| 2 | 2 | <div class="report-fee-detail-car"> |
| 3 | 3 | <div class="operation-bar"> |
| 4 | - <el-button | |
| 5 | - type="primary" | |
| 6 | - size="small" | |
| 7 | - @click="exportReportFeeDetailCarExcel"> | |
| 4 | + <el-button type="primary" size="small" @click="exportReportFeeDetailCarExcel"> | |
| 8 | 5 | <i class="el-icon-download"></i> |
| 9 | 6 | {{ $t('common.export') }} |
| 10 | 7 | </el-button> |
| 11 | 8 | </div> |
| 12 | 9 | |
| 13 | - <el-table | |
| 14 | - :data="reportFeeDetailCarInfo.fees" | |
| 15 | - border | |
| 16 | - style="width: 100%" | |
| 17 | - v-loading="loading"> | |
| 18 | - <el-table-column | |
| 19 | - prop="carNum" | |
| 20 | - :label="$t('reportFeeDetailCar.car')" | |
| 21 | - align="center"> | |
| 10 | + <el-table :data="reportFeeDetailCarInfo.fees" border style="width: 100%" v-loading="loading"> | |
| 11 | + <el-table-column prop="carNum" :label="$t('reportFeeDetailCar.car')" align="center"> | |
| 22 | 12 | </el-table-column> |
| 23 | - <el-table-column | |
| 24 | - prop="ownerName" | |
| 25 | - :label="$t('reportFeeDetailCar.owner')" | |
| 26 | - align="center"> | |
| 13 | + <el-table-column prop="ownerName" :label="$t('reportFeeDetailCar.owner')" align="center"> | |
| 27 | 14 | <template slot-scope="scope"> |
| 28 | 15 | {{ scope.row.ownerName }}({{ scope.row.link }}) |
| 29 | 16 | </template> |
| 30 | 17 | </el-table-column> |
| 31 | - <el-table-column | |
| 32 | - prop="oweFee" | |
| 33 | - :label="$t('reportFeeDetailCar.oweFee')" | |
| 34 | - align="center"> | |
| 18 | + <el-table-column prop="oweFee" :label="$t('reportFeeDetailCar.oweFee')" align="center"> | |
| 35 | 19 | <template slot-scope="scope"> |
| 36 | 20 | {{ scope.row.oweFee || '0' }} |
| 37 | 21 | </template> |
| 38 | 22 | </el-table-column> |
| 39 | - <el-table-column | |
| 40 | - prop="receivedFee" | |
| 41 | - :label="$t('reportFeeDetailCar.receivedFee')" | |
| 42 | - align="center"> | |
| 23 | + <el-table-column prop="receivedFee" :label="$t('reportFeeDetailCar.receivedFee')" align="center"> | |
| 43 | 24 | <template slot-scope="scope"> |
| 44 | 25 | {{ scope.row.receivedFee || '0' }} |
| 45 | 26 | </template> |
| 46 | 27 | </el-table-column> |
| 47 | - <template v-for="(item,index) in reportFeeDetailCarInfo.feeTypeCds"> | |
| 48 | - <el-table-column | |
| 49 | - :key="index+'owe'" | |
| 50 | - :label="item.name + $t('reportFeeDetailCar.owe')" | |
| 51 | - align="center"> | |
| 28 | + <template v-for="(item, index) in reportFeeDetailCarInfo.feeTypeCds"> | |
| 29 | + <el-table-column :key="index + 'owe'" :label="item.name + $t('reportFeeDetailCar.owe')" align="center"> | |
| 52 | 30 | <template slot-scope="scope"> |
| 53 | - {{ scope.row['oweFee'+item.statusCd] || '0' }} | |
| 31 | + {{ scope.row['oweFee' + item.statusCd] || '0' }} | |
| 54 | 32 | </template> |
| 55 | 33 | </el-table-column> |
| 56 | - <el-table-column | |
| 57 | - :key="index+'received'" | |
| 58 | - :label="item.name + $t('reportFeeDetailCar.received')" | |
| 59 | - align="center"> | |
| 34 | + <el-table-column :key="index + 'received'" :label="item.name + $t('reportFeeDetailCar.received')" align="center"> | |
| 60 | 35 | <template slot-scope="scope"> |
| 61 | - {{ scope.row['receivedFee'+item.statusCd] || '0' }} | |
| 36 | + {{ scope.row['receivedFee' + item.statusCd] || '0' }} | |
| 62 | 37 | </template> |
| 63 | 38 | </el-table-column> |
| 64 | 39 | </template> |
| 65 | 40 | </el-table> |
| 66 | 41 | |
| 67 | - <el-pagination | |
| 68 | - @size-change="handleSizeChange" | |
| 69 | - @current-change="handleCurrentChange" | |
| 70 | - :current-page="pagination.current" | |
| 71 | - :page-sizes="[10, 20, 30, 50]" | |
| 72 | - :page-size="pagination.size" | |
| 73 | - layout="total, sizes, prev, pager, next, jumper" | |
| 74 | - :total="pagination.total"> | |
| 42 | + <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" | |
| 43 | + :current-page="pagination.current" :page-sizes="[10, 20, 30, 50]" :page-size="pagination.size" | |
| 44 | + layout="total, sizes, prev, pager, next, jumper" :total="pagination.total"> | |
| 75 | 45 | </el-pagination> |
| 76 | 46 | </div> |
| 77 | 47 | </template> |
| ... | ... | @@ -138,6 +108,8 @@ export default { |
| 138 | 108 | } |
| 139 | 109 | await exportReportFeeDetailCar(params) |
| 140 | 110 | this.$message.success(this.$t('common.operationSuccess')) |
| 111 | + this.$router.push('/pages/property/downloadTempFile?tab=下载中心') | |
| 112 | + | |
| 141 | 113 | } catch (error) { |
| 142 | 114 | console.error('导出失败:', error) |
| 143 | 115 | this.$message.error(this.$t('common.exportFailed')) |
| ... | ... | @@ -161,7 +133,7 @@ export default { |
| 161 | 133 | margin-bottom: 20px; |
| 162 | 134 | text-align: right; |
| 163 | 135 | } |
| 164 | - | |
| 136 | + | |
| 165 | 137 | .el-pagination { |
| 166 | 138 | margin-top: 20px; |
| 167 | 139 | text-align: right; | ... | ... |
src/components/report/reportFeeDetailContract.vue
| ... | ... | @@ -138,6 +138,8 @@ export default { |
| 138 | 138 | } |
| 139 | 139 | await exportReportFeeDetailContract(params) |
| 140 | 140 | this.$message.success(this.$t('common.operationSuccess')) |
| 141 | + this.$router.push('/pages/property/downloadTempFile?tab=下载中心') | |
| 142 | + | |
| 141 | 143 | } catch (error) { |
| 142 | 144 | console.error('导出失败:', error) |
| 143 | 145 | this.$message.error(this.$t('common.exportFailed')) | ... | ... |
src/components/report/reportFeeDetailOwner.vue
| ... | ... | @@ -141,6 +141,8 @@ export default { |
| 141 | 141 | } |
| 142 | 142 | await exportReportFeeDetailOwner(params) |
| 143 | 143 | this.$message.success(this.$t('common.operationSuccess')) |
| 144 | + this.$router.push('/pages/property/downloadTempFile?tab=下载中心') | |
| 145 | + | |
| 144 | 146 | } catch (error) { |
| 145 | 147 | console.error('导出失败:', error) |
| 146 | 148 | this.$message.error(this.$t('common.exportFailed')) | ... | ... |
src/components/report/reportFeeDetailRoom.vue
| ... | ... | @@ -151,7 +151,10 @@ export default { |
| 151 | 151 | pagePath: 'reportFeeDetailRoom' |
| 152 | 152 | } |
| 153 | 153 | await exportReportFeeDetailRoom(params) |
| 154 | + | |
| 154 | 155 | this.$message.success(this.$t('common.operationSuccess')) |
| 156 | + this.$router.push('/pages/property/downloadTempFile?tab=下载中心') | |
| 157 | + | |
| 155 | 158 | } catch (error) { |
| 156 | 159 | console.error('导出失败:', error) |
| 157 | 160 | this.$message.error(this.$t('common.exportFailed')) | ... | ... |
src/views/report/feeRemindList.vue
| ... | ... | @@ -3,9 +3,6 @@ |
| 3 | 3 | <el-card class="box-card"> |
| 4 | 4 | <div slot="header" class="flex justify-between"> |
| 5 | 5 | <span>{{ $t('feeRemind.queryCondition') }}</span> |
| 6 | - <el-button type="text" style="float: right; padding: 3px 0" @click="_moreCondition()"> | |
| 7 | - {{ feeRemindInfo.moreCondition ? $t('feeRemind.hide') : $t('feeRemind.more') }} | |
| 8 | - </el-button> | |
| 9 | 6 | </div> |
| 10 | 7 | <el-row :gutter="20"> |
| 11 | 8 | <el-col :span="4"> | ... | ... |
src/views/report/reportFeeDetailList.vue
| ... | ... | @@ -37,7 +37,7 @@ |
| 37 | 37 | </el-button> |
| 38 | 38 | </el-col> |
| 39 | 39 | </el-row> |
| 40 | - <el-row :gutter="20" v-show="reportFeeDetailInfo.moreCondition"> | |
| 40 | + <el-row :gutter="20" v-show="reportFeeDetailInfo.moreCondition" class="margin-top"> | |
| 41 | 41 | <el-col :span="6"> |
| 42 | 42 | <el-input v-model.trim="reportFeeDetailInfo.conditions.ownerName" |
| 43 | 43 | :placeholder="$t('reportFeeDetail.placeholder.ownerName')"> | ... | ... |
src/views/report/reportHuaningList.vue
src/views/report/reportNoFeeRoomList.vue
| ... | ... | @@ -213,6 +213,8 @@ export default { |
| 213 | 213 | } |
| 214 | 214 | await exportData(params) |
| 215 | 215 | this.$message.success(this.$t('common.operationSuccess')) |
| 216 | + this.$router.push('/pages/property/downloadTempFile?tab=下载中心') | |
| 217 | + | |
| 216 | 218 | } catch (error) { |
| 217 | 219 | console.error('导出失败:', error) |
| 218 | 220 | this.$message.error(this.$t('reportNoFeeRoom.exportFailed')) | ... | ... |
src/views/report/reportPayFeeDepositList.vue
| ... | ... | @@ -54,7 +54,7 @@ |
| 54 | 54 | </el-button> |
| 55 | 55 | </el-col> |
| 56 | 56 | </el-row> |
| 57 | - <el-row :gutter="20" style="margin-top: 15px;"> | |
| 57 | + <el-row :gutter="20" > | |
| 58 | 58 | <el-col :span="4"> |
| 59 | 59 | <el-select v-model="conditions.state" :placeholder="$t('reportPayFeeDeposit.search.state')" |
| 60 | 60 | class="search-item" style="width:100%"> | ... | ... |
src/views/report/reportQuestionAnswerDetailList.vue
src/views/report/reportRepairList.vue
| ... | ... | @@ -50,7 +50,7 @@ |
| 50 | 50 | </el-col> |
| 51 | 51 | </el-row> |
| 52 | 52 | |
| 53 | - <el-row :gutter="20" v-show="reportRepairInfo.moreCondition"> | |
| 53 | + <el-row :gutter="20" v-show="reportRepairInfo.moreCondition" class="margin-top"> | |
| 54 | 54 | <el-col :span="4"> |
| 55 | 55 | <el-select v-model="reportRepairInfo.conditions.staffId" |
| 56 | 56 | :placeholder="$t('reportRepair.staffPlaceholder')" style="width: 100%;"> | ... | ... |