| | |
| | | |
| | | methods: { |
| | | async getDetail() { |
| | | var turl = '' |
| | | // #ifdef PUB_SUPPLIER |
| | | turl = '/api/supplier/settlement/list/view?id=' |
| | | // #endif |
| | | // #ifdef PUB_PARTNER |
| | | turl = '/api/partner/settlement/list/view?id=' |
| | | // #endif |
| | | |
| | | |
| | | |
| | | this.$message.showLoading() |
| | | const { |
| | | code, |
| | | data |
| | | } = await this.$http.request('get', '/api/partner/settlement/list/view?id=' + this.id, { |
| | | } = await this.$http.request('get', turl + this.id, { |
| | | |
| | | }) |
| | | |
| | |
| | | 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) |
| | | |
| | | // #ifdef PUB_PARTNER |
| | | this.listApi = '/api/partner/settlement/list' |
| | | // #endif |
| | | // #ifdef PUB_SUPPLIER |
| | | this.listApi = '/api/supplier/settlement/list' |
| | | // #endif |
| | | this.getList() |
| | | |
| | | }, |