|
@@ -15,7 +15,7 @@
|
|
|
@change="effectiveDateToggle"
|
|
|
></el-date-picker>
|
|
|
|
|
|
- <el-button type="primary" class="search-btn" @click="mixins_search" icon="el-icon-search">查询 </el-button>
|
|
|
+ <el-button type="primary" class="search-btn" @click="initPageData" icon="el-icon-search">查询 </el-button>
|
|
|
<div class="search-icon">
|
|
|
<el-tooltip class="item" effect="light" placement="bottom" content="导出">
|
|
|
<i class="zoniot_font zoniot-icon-daochu2" @click="exportExcel"></i>
|
|
@@ -141,7 +141,7 @@ export default {
|
|
|
activeIndex: 1,
|
|
|
mixins_post: 'post',
|
|
|
times: [],
|
|
|
- communityArr:[]
|
|
|
+ communityArr: []
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -150,9 +150,7 @@ export default {
|
|
|
accountType: 3,
|
|
|
paymentType: 1
|
|
|
};
|
|
|
- this.getSun(1);
|
|
|
- this.getSun(2);
|
|
|
- this.mixins_search();
|
|
|
+ this.initPageData();
|
|
|
this.getorgTree();
|
|
|
},
|
|
|
mounted() {},
|
|
@@ -162,9 +160,20 @@ export default {
|
|
|
this.mixins_query.paymentType = index;
|
|
|
this.mixins_search();
|
|
|
},
|
|
|
+ initPageData() {
|
|
|
+ this.getSun(1);
|
|
|
+ this.getSun(2);
|
|
|
+ this.mixins_search();
|
|
|
+ },
|
|
|
getSun(type) {
|
|
|
this.$http
|
|
|
- .post('/sc-charge/payment/record/sum/amount', { accountType: 3, paymentType: type })
|
|
|
+ .post('/sc-charge/payment/record/sum/amount', {
|
|
|
+ accountType: 3,
|
|
|
+ paymentType: type,
|
|
|
+ communityId: this.mixins_query.communityId,
|
|
|
+ endTime: this.mixins_query.endTime,
|
|
|
+ startTime: this.mixins_query.startTime
|
|
|
+ })
|
|
|
.then(({ data, status, msg }) => {
|
|
|
if (status == 0) {
|
|
|
if (type == 1) {
|
|
@@ -186,8 +195,8 @@ export default {
|
|
|
if (!arr) {
|
|
|
arr = ['', ''];
|
|
|
}
|
|
|
- this.mixins_query.startTime = arr[0] + ' 00:00:00';
|
|
|
- this.mixins_query.endTime = arr[1] + ' 23:59:59';
|
|
|
+ this.mixins_query.startTime = !!arr[0] ? arr[0] + ' 00:00:00' : '';
|
|
|
+ this.mixins_query.endTime = !!arr[1] ? arr[1] + ' 23:59:59' : '';
|
|
|
},
|
|
|
getorgTree() {
|
|
|
this.$http
|