| | |
| | | }, |
| | | // 获取车队列表 |
| | | getFleet() { |
| | | this.$reqGet('getFleet', { customerId }).then(res => { |
| | | this.$reqGet('getFleet').then(res => { |
| | | this.fleetData = res.data; |
| | | console.log('车队列表', res); |
| | | }); |
| | |
| | | // 新建车队 |
| | | this.$reqPost('saveFleet', this.addGroupForm, 'params').then(res => { |
| | | uni.hideLoading(); |
| | | console.log('新建车队', res); |
| | | this.getFleet(); |
| | | if (res.code == 0) { |
| | | this.$u.toast('添加成功'); |
| | | this.getFleet(); |
| | | } else { |
| | | this.$u.toast(res.data ? res.data : '添加失败'); |
| | | } |
| | | }); |
| | | this.updateGroupShow = false; |
| | | }, |
| | |
| | | // 货代详情 |
| | | toFreightForwarderDetails(id) { |
| | | uni.navigateTo({ |
| | | url: `/pages/customer-page/freight-forwarder-details/freight-forwarder-details?huoDaiId=${id}` |
| | | url: `/pages/customer-page/freight-forwarder-details/freight-forwarder-details` |
| | | }); |
| | | }, |
| | | // 车队详情 |