| | |
| | | </template> |
| | | |
| | | <script> |
| | | import moment from 'moment' |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | var lastMonthDate = new Date(new Date(this.$util.toDate(new Date(currentMonthStr).getTime() + 3600_000 * 24 * |
| | | 40).substring(0, 8) + '01').getTime() - 3600_000 * 24 * 1) |
| | | this.query.endDateStr = this.$util.toDate(lastMonthDate) |
| | | |
| | | this.listApi = '/api/partner/settlement/list' |
| | | // #ifdef PUB_PARTNER |
| | | this.listApi = '/api/partner/settlement/list' |
| | | // #endif |
| | | // #ifdef PUB_SUPPLIER |
| | | this.listApi = '/api/supplier/settlement/list' |
| | | // #endif |
| | | this.getList() |
| | | |
| | | }, |
| | | onReachBottom() { |
| | | this.page.current += 1 |
| | | this.getMore() |
| | | }, |
| | | async onPullDownRefresh() { |
| | |
| | | if (index === 0) { |
| | | var currentMonthStr = this.$util.toDate(new Date()).substring(0, 8) + '01' |
| | | this.query.startDateStr = currentMonthStr |
| | | // moment().startOf |
| | | var lastMonthDate = new Date(new Date(this.$util.toDate(new Date(currentMonthStr).getTime() + |
| | | 3600_000 * 24 * 40).substring(0, 8) + '01').getTime() - 3600_000 * 24 * 1) |
| | | this.query.endDateStr = this.$util.toDate(lastMonthDate) |