| | |
| | | }, |
| | | methods: { |
| | | init() { |
| | | uni.showLoading({ |
| | | title: '加载中...' |
| | | }); |
| | | this.getAllHuoDaiByCustomerId(); |
| | | this.getFleet(); |
| | | uni.hideLoading(); |
| | | }, |
| | | // 获取货代列表 |
| | | getAllHuoDaiByCustomerId() { |
| | | uni.showLoading({ |
| | | title: '加载中...' |
| | | }); |
| | | this.$reqGet('getAllHuoDaiByCustomerId').then(res => { |
| | | uni.hideLoading(); |
| | | this.huoDaiData = res.data; |
| | | console.log('货代列表', res); |
| | | }); |
| | | }, |
| | | // 获取车队列表 |
| | | getFleet() { |
| | | uni.showLoading({ |
| | | title: '加载中...' |
| | | }); |
| | | this.$reqGet('getFleet').then(res => { |
| | | uni.hideLoading(); |
| | | this.fleetData = res.data; |
| | | console.log('车队列表', res); |
| | | }); |
| | | }, |
| | | // 添加货代 |
| | |
| | | }, |
| | | // 添加车队 |
| | | addFleet() { |
| | | console.log('添加车队'); |
| | | this.updateGroupShow = true; |
| | | }, |
| | | addNewFleetPopupClose() { |