...
|
...
|
@@ -84,7 +84,7 @@ |
|
|
<div class="select-container">
|
|
|
<Button type="primary" @click="search">查询</Button>
|
|
|
<Button type="primary" @click="reset">全部</Button>
|
|
|
<!-- <Button>导出</Button>-->
|
|
|
<Button type="warning" @click="exportList">导出</Button>
|
|
|
</div>
|
|
|
</filter-item>
|
|
|
</layout-filter>
|
...
|
...
|
@@ -107,7 +107,8 @@ import _ from 'lodash'; |
|
|
import moment from 'moment';
|
|
|
import { ServiceList } from './store';
|
|
|
import FinanceService from 'services/finance/finance-service';
|
|
|
|
|
|
import baseExportApi from 'util/excel';
|
|
|
import qs from 'querystringify';
|
|
|
export default {
|
|
|
data() {
|
|
|
return ServiceList.call(this);
|
...
|
...
|
@@ -133,35 +134,34 @@ export default { |
|
|
targetAccount: 'targetAccount',
|
|
|
clearingType: 'clearingType',
|
|
|
subClearingType: 'subClearingType',
|
|
|
// statementSn: 'statementSn',
|
|
|
};
|
|
|
|
|
|
if (this.enableFilter) {
|
|
|
_.each(keysMap, (val, key) => {
|
|
|
values[key] = fields[val].model;
|
|
|
});
|
|
|
}
|
|
|
_.each(keysMap, (val, key) => {
|
|
|
values[key] = fields[val].model;
|
|
|
});
|
|
|
return values;
|
|
|
},
|
|
|
search() {
|
|
|
let params = {};
|
|
|
this.enableFilter = true;
|
|
|
this.filters.timeFlag.model = '';
|
|
|
params = this.filterValues();
|
|
|
this.list(params);
|
|
|
this.pageData.current = 1;
|
|
|
},
|
|
|
reset() {
|
|
|
let params = {};
|
|
|
this.enableFilter = false;
|
|
|
_.each(this.filters, value => {
|
|
|
if (value.hasOwnProperty('model')) {
|
|
|
value.model = '';
|
|
|
}
|
|
|
});
|
|
|
params = this.filterValues();
|
|
|
this.list(params);
|
|
|
this.pageData.current = 1;
|
|
|
},
|
|
|
timeFlag(flag) {
|
|
|
let params = {};
|
|
|
this.enableFilter = false;
|
|
|
this.filters.timeFlag.model = flag;
|
|
|
params = this.filterValues();
|
|
|
params.timeFlag = flag;
|
|
|
this.list(params);
|
|
|
this.pageData.current = 1;
|
|
|
},
|
...
|
...
|
@@ -190,6 +190,12 @@ export default { |
|
|
this.pageData.current = _.get(ret, 'data.pageNo', 1);
|
|
|
});
|
|
|
},
|
|
|
exportList() {
|
|
|
const queryString = { ...this.filterValues(), excelConf: 'shopServiceList' };
|
|
|
const params = qs.stringify(queryString, true);
|
|
|
const href = `${baseExportApi}${params}`;
|
|
|
window.open(href, '_blank');
|
|
|
},
|
|
|
},
|
|
|
};
|
|
|
</script>
|
...
|
...
|
|