|
|
@@ -236,7 +236,6 @@ export default {
|
|
|
settleType: 1,
|
|
|
dateFormat: 'YYYY-MM-DD',
|
|
|
rangeValue: [moment(first_date), moment(last_date)],
|
|
|
- defaultRange: [first_date.format('yyyy-MM-dd'), last_date.format('yyyy-MM-dd')],
|
|
|
agreementUnitInfo: {},
|
|
|
accountModel: {
|
|
|
consume: '0',
|
|
|
@@ -322,6 +321,10 @@ export default {
|
|
|
revoke: "/business/busAgreementOrderFee/revoke",
|
|
|
queryAgreementAccount: "/business/busAgreementOrderFee/queryAgreementAccount",//获取协议单位消费、收款信息
|
|
|
},
|
|
|
+ queryParam: {
|
|
|
+ startTime: first_date.format('yyyy-MM-dd'),
|
|
|
+ endTime: last_date.format('yyyy-MM-dd'),
|
|
|
+ },
|
|
|
}
|
|
|
},
|
|
|
activated() {
|
|
|
@@ -340,7 +343,30 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
moment,
|
|
|
- onRangeChange(e) {
|
|
|
+ onRangeChange(date, dateString) {
|
|
|
+ console.log(date)
|
|
|
+ console.log(dateString)
|
|
|
+ if (dateString[0]=="" || dateString[1]=="") {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.queryParam = {
|
|
|
+ startTime: dateString[0],
|
|
|
+ endTime: dateString[1],
|
|
|
+ }
|
|
|
+ if (this.settleType == 1 || this.settleType == 2){
|
|
|
+ this.url.list = this.url.baseList +"?status="+this.settleType+"&agreementUnitId="+this.agreementUnitInfo.id;
|
|
|
+ }else{
|
|
|
+ this.url.list = this.url.baseList+"?status=1&agreementUnitId="+this.agreementUnitInfo.id;
|
|
|
+ }
|
|
|
+ // if (!this.queryParam.startTime=="") {
|
|
|
+ // this.url.list = this.url.list + "&startDate=" + this.queryParam.startTime
|
|
|
+ // }
|
|
|
+ // if (!this.queryParam.endTime=="") {
|
|
|
+ // this.url.list = this.url.list + "&endDate=" + this.queryParam.endTime
|
|
|
+ // }
|
|
|
+ this.loadData(1);
|
|
|
+ this.selectedRowKeys = [];
|
|
|
+ this.selectionRows = [];
|
|
|
},
|
|
|
onTypeChange(e) {
|
|
|
if (this.settleType == 1 || this.settleType == 2){
|
|
|
@@ -348,6 +374,12 @@ export default {
|
|
|
}else{
|
|
|
this.url.list = this.url.baseList+"?status=1&agreementUnitId="+this.agreementUnitInfo.id;
|
|
|
}
|
|
|
+ // if (!this.queryParam.startTime=="") {
|
|
|
+ // this.url.list = this.url.list + "&startDate=" + this.queryParam.startTime
|
|
|
+ // }
|
|
|
+ // if (!this.queryParam.endTime=="") {
|
|
|
+ // this.url.list = this.url.list + "&endDate=" + this.queryParam.endTime
|
|
|
+ // }
|
|
|
this.loadData(1);
|
|
|
this.selectedRowKeys = [];
|
|
|
this.selectionRows = [];
|