Commit 4277ec260a15ef59f0deef5dff2d4b877247427f

Authored by wuxw
1 parent 96514773

v1.9 优化报表相关页面的布局以及bug

src/components/fee/aOwnerDetailAcctReceipt.vue
@@ -31,12 +31,6 @@ import { listAdminAccountReceipt } from '@/api/fee/adminRoomFeeApi' @@ -31,12 +31,6 @@ import { listAdminAccountReceipt } from '@/api/fee/adminRoomFeeApi'
31 31
32 export default { 32 export default {
33 name: 'AOwnerDetailAcctReceipt', 33 name: 'AOwnerDetailAcctReceipt',
34 - props: {  
35 - ownerId: {  
36 - type: String,  
37 - default: ''  
38 - }  
39 - },  
40 data() { 34 data() {
41 return { 35 return {
42 feeReceipts: [], 36 feeReceipts: [],
@@ -48,7 +42,8 @@ export default { @@ -48,7 +42,8 @@ export default {
48 } 42 }
49 }, 43 },
50 methods: { 44 methods: {
51 - open() { 45 + open(params) {
  46 + this.ownerId = params.ownerId
52 this.page.current = 1 47 this.page.current = 1
53 this.loadData() 48 this.loadData()
54 }, 49 },
src/components/fee/aRoomDetailReceipt.vue
@@ -36,19 +36,11 @@ import {dateFormat} from '@/utils/dateUtil' @@ -36,19 +36,11 @@ import {dateFormat} from '@/utils/dateUtil'
36 36
37 export default { 37 export default {
38 name: 'ARoomDetailReceipt', 38 name: 'ARoomDetailReceipt',
39 - props: {  
40 - ownerId: {  
41 - type: String,  
42 - default: ''  
43 - },  
44 - feeId: {  
45 - type: String,  
46 - default: ''  
47 - }  
48 - },  
49 data() { 39 data() {
50 return { 40 return {
51 feeReceipts: [], 41 feeReceipts: [],
  42 + ownerId: '',
  43 + feeId: '',
52 page: { 44 page: {
53 current: 1, 45 current: 1,
54 size: 10, 46 size: 10,
@@ -57,7 +49,8 @@ export default { @@ -57,7 +49,8 @@ export default {
57 } 49 }
58 }, 50 },
59 methods: { 51 methods: {
60 - open() { 52 + open(params) {
  53 + this.ownerId = params.ownerId
61 this.page.current = 1 54 this.page.current = 1
62 this.loadData() 55 this.loadData()
63 }, 56 },
src/components/report/ChooseReportCustomComponent.vue
1 <template> 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 <el-row :gutter="20"> 3 <el-row :gutter="20">
9 <el-col :span="24"> 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 <el-button type="primary" @click="handleSearch"> 7 <el-button type="primary" @click="handleSearch">
16 {{ $t('common.search') }} 8 {{ $t('common.search') }}
17 </el-button> 9 </el-button>
18 </el-col> 10 </el-col>
19 </el-row> 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 <template slot-scope="scope"> 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 {{ $t('common.select') }} 22 {{ $t('common.select') }}
64 </el-button> 23 </el-button>
65 </template> 24 </template>
66 </el-table-column> 25 </el-table-column>
67 </el-table> 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 </el-dialog> 31 </el-dialog>
80 </template> 32 </template>
81 33
@@ -111,9 +63,9 @@ export default { @@ -111,9 +63,9 @@ export default {
111 row: this.pagination.size, 63 row: this.pagination.size,
112 name: this.searchText 64 name: this.searchText
113 } 65 }
114 - const { data, records } = await listReportCustomComponent(params) 66 + const { data, total } = await listReportCustomComponent(params)
115 this.tableData = data 67 this.tableData = data
116 - this.pagination.total = records 68 + this.pagination.total = total
117 } catch (error) { 69 } catch (error) {
118 this.$message.error(this.$t('chooseReportCustomComponent.fetchError')) 70 this.$message.error(this.$t('chooseReportCustomComponent.fetchError'))
119 } finally { 71 } finally {
src/components/report/commonReportTable.vue
@@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
6 <span>{{ $t('commonReportTable.queryConditions') }}</span> 6 <span>{{ $t('commonReportTable.queryConditions') }}</span>
7 </div> 7 </div>
8 <el-row :gutter="20"> 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 <div class="el-input"> 10 <div class="el-input">
11 <input class="el-input__inner" 11 <input class="el-input__inner"
12 v-model.trim="conditionItem.value" 12 v-model.trim="conditionItem.value"
src/components/report/reportFeeDetailCar.vue
1 <template> 1 <template>
2 <div class="report-fee-detail-car"> 2 <div class="report-fee-detail-car">
3 <div class="operation-bar"> 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 <i class="el-icon-download"></i> 5 <i class="el-icon-download"></i>
9 {{ $t('common.export') }} 6 {{ $t('common.export') }}
10 </el-button> 7 </el-button>
11 </div> 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 </el-table-column> 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 <template slot-scope="scope"> 14 <template slot-scope="scope">
28 {{ scope.row.ownerName }}({{ scope.row.link }}) 15 {{ scope.row.ownerName }}({{ scope.row.link }})
29 </template> 16 </template>
30 </el-table-column> 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 <template slot-scope="scope"> 19 <template slot-scope="scope">
36 {{ scope.row.oweFee || '0' }} 20 {{ scope.row.oweFee || '0' }}
37 </template> 21 </template>
38 </el-table-column> 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 <template slot-scope="scope"> 24 <template slot-scope="scope">
44 {{ scope.row.receivedFee || '0' }} 25 {{ scope.row.receivedFee || '0' }}
45 </template> 26 </template>
46 </el-table-column> 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 <template slot-scope="scope"> 30 <template slot-scope="scope">
53 - {{ scope.row['oweFee'+item.statusCd] || '0' }} 31 + {{ scope.row['oweFee' + item.statusCd] || '0' }}
54 </template> 32 </template>
55 </el-table-column> 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 <template slot-scope="scope"> 35 <template slot-scope="scope">
61 - {{ scope.row['receivedFee'+item.statusCd] || '0' }} 36 + {{ scope.row['receivedFee' + item.statusCd] || '0' }}
62 </template> 37 </template>
63 </el-table-column> 38 </el-table-column>
64 </template> 39 </template>
65 </el-table> 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 </el-pagination> 45 </el-pagination>
76 </div> 46 </div>
77 </template> 47 </template>
@@ -138,6 +108,8 @@ export default { @@ -138,6 +108,8 @@ export default {
138 } 108 }
139 await exportReportFeeDetailCar(params) 109 await exportReportFeeDetailCar(params)
140 this.$message.success(this.$t('common.operationSuccess')) 110 this.$message.success(this.$t('common.operationSuccess'))
  111 + this.$router.push('/pages/property/downloadTempFile?tab=下载中心')
  112 +
141 } catch (error) { 113 } catch (error) {
142 console.error('导出失败:', error) 114 console.error('导出失败:', error)
143 this.$message.error(this.$t('common.exportFailed')) 115 this.$message.error(this.$t('common.exportFailed'))
@@ -161,7 +133,7 @@ export default { @@ -161,7 +133,7 @@ export default {
161 margin-bottom: 20px; 133 margin-bottom: 20px;
162 text-align: right; 134 text-align: right;
163 } 135 }
164 - 136 +
165 .el-pagination { 137 .el-pagination {
166 margin-top: 20px; 138 margin-top: 20px;
167 text-align: right; 139 text-align: right;
src/components/report/reportFeeDetailContract.vue
@@ -138,6 +138,8 @@ export default { @@ -138,6 +138,8 @@ export default {
138 } 138 }
139 await exportReportFeeDetailContract(params) 139 await exportReportFeeDetailContract(params)
140 this.$message.success(this.$t('common.operationSuccess')) 140 this.$message.success(this.$t('common.operationSuccess'))
  141 + this.$router.push('/pages/property/downloadTempFile?tab=下载中心')
  142 +
141 } catch (error) { 143 } catch (error) {
142 console.error('导出失败:', error) 144 console.error('导出失败:', error)
143 this.$message.error(this.$t('common.exportFailed')) 145 this.$message.error(this.$t('common.exportFailed'))
src/components/report/reportFeeDetailOwner.vue
@@ -141,6 +141,8 @@ export default { @@ -141,6 +141,8 @@ export default {
141 } 141 }
142 await exportReportFeeDetailOwner(params) 142 await exportReportFeeDetailOwner(params)
143 this.$message.success(this.$t('common.operationSuccess')) 143 this.$message.success(this.$t('common.operationSuccess'))
  144 + this.$router.push('/pages/property/downloadTempFile?tab=下载中心')
  145 +
144 } catch (error) { 146 } catch (error) {
145 console.error('导出失败:', error) 147 console.error('导出失败:', error)
146 this.$message.error(this.$t('common.exportFailed')) 148 this.$message.error(this.$t('common.exportFailed'))
src/components/report/reportFeeDetailRoom.vue
@@ -151,7 +151,10 @@ export default { @@ -151,7 +151,10 @@ export default {
151 pagePath: 'reportFeeDetailRoom' 151 pagePath: 'reportFeeDetailRoom'
152 } 152 }
153 await exportReportFeeDetailRoom(params) 153 await exportReportFeeDetailRoom(params)
  154 +
154 this.$message.success(this.$t('common.operationSuccess')) 155 this.$message.success(this.$t('common.operationSuccess'))
  156 + this.$router.push('/pages/property/downloadTempFile?tab=下载中心')
  157 +
155 } catch (error) { 158 } catch (error) {
156 console.error('导出失败:', error) 159 console.error('导出失败:', error)
157 this.$message.error(this.$t('common.exportFailed')) 160 this.$message.error(this.$t('common.exportFailed'))
src/views/report/feeRemindList.vue
@@ -3,9 +3,6 @@ @@ -3,9 +3,6 @@
3 <el-card class="box-card"> 3 <el-card class="box-card">
4 <div slot="header" class="flex justify-between"> 4 <div slot="header" class="flex justify-between">
5 <span>{{ $t('feeRemind.queryCondition') }}</span> 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 </div> 6 </div>
10 <el-row :gutter="20"> 7 <el-row :gutter="20">
11 <el-col :span="4"> 8 <el-col :span="4">
src/views/report/reportFeeDetailList.vue
@@ -37,7 +37,7 @@ @@ -37,7 +37,7 @@
37 </el-button> 37 </el-button>
38 </el-col> 38 </el-col>
39 </el-row> 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 <el-col :span="6"> 41 <el-col :span="6">
42 <el-input v-model.trim="reportFeeDetailInfo.conditions.ownerName" 42 <el-input v-model.trim="reportFeeDetailInfo.conditions.ownerName"
43 :placeholder="$t('reportFeeDetail.placeholder.ownerName')"> 43 :placeholder="$t('reportFeeDetail.placeholder.ownerName')">
src/views/report/reportHuaningList.vue
@@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
6 <div slot="header" class="flex justify-between"> 6 <div slot="header" class="flex justify-between">
7 <h5>{{ $t('reportHuaning.search.title') }}</h5> 7 <h5>{{ $t('reportHuaning.search.title') }}</h5>
8 </div> 8 </div>
9 - <div class="ibox-content"> 9 + <div class="">
10 <el-row :gutter="20"> 10 <el-row :gutter="20">
11 <!-- 费用类型 --> 11 <!-- 费用类型 -->
12 <el-col :span="6"> 12 <el-col :span="6">
src/views/report/reportNoFeeRoomList.vue
@@ -213,6 +213,8 @@ export default { @@ -213,6 +213,8 @@ export default {
213 } 213 }
214 await exportData(params) 214 await exportData(params)
215 this.$message.success(this.$t('common.operationSuccess')) 215 this.$message.success(this.$t('common.operationSuccess'))
  216 + this.$router.push('/pages/property/downloadTempFile?tab=下载中心')
  217 +
216 } catch (error) { 218 } catch (error) {
217 console.error('导出失败:', error) 219 console.error('导出失败:', error)
218 this.$message.error(this.$t('reportNoFeeRoom.exportFailed')) 220 this.$message.error(this.$t('reportNoFeeRoom.exportFailed'))
src/views/report/reportPayFeeDepositList.vue
@@ -54,7 +54,7 @@ @@ -54,7 +54,7 @@
54 </el-button> 54 </el-button>
55 </el-col> 55 </el-col>
56 </el-row> 56 </el-row>
57 - <el-row :gutter="20" style="margin-top: 15px;"> 57 + <el-row :gutter="20" >
58 <el-col :span="4"> 58 <el-col :span="4">
59 <el-select v-model="conditions.state" :placeholder="$t('reportPayFeeDeposit.search.state')" 59 <el-select v-model="conditions.state" :placeholder="$t('reportPayFeeDeposit.search.state')"
60 class="search-item" style="width:100%"> 60 class="search-item" style="width:100%">
src/views/report/reportQuestionAnswerDetailList.vue
@@ -38,7 +38,7 @@ @@ -38,7 +38,7 @@
38 </el-col> 38 </el-col>
39 </el-row> 39 </el-row>
40 40
41 - <el-row :gutter="20" style="margin-top:20px"> 41 + <el-row :gutter="20" >
42 <el-col :span="24"> 42 <el-col :span="24">
43 <el-card class="box-card"> 43 <el-card class="box-card">
44 <div slot="header" class="flex justify-between"> 44 <div slot="header" class="flex justify-between">
src/views/report/reportRepairList.vue
@@ -50,7 +50,7 @@ @@ -50,7 +50,7 @@
50 </el-col> 50 </el-col>
51 </el-row> 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 <el-col :span="4"> 54 <el-col :span="4">
55 <el-select v-model="reportRepairInfo.conditions.staffId" 55 <el-select v-model="reportRepairInfo.conditions.staffId"
56 :placeholder="$t('reportRepair.staffPlaceholder')" style="width: 100%;"> 56 :placeholder="$t('reportRepair.staffPlaceholder')" style="width: 100%;">