| | |
| | | // 抢单模态框 |
| | | qiangDanConfirm() { |
| | | this.qiangDanContent = ''; |
| | | this.qiangDanShow = false; |
| | | this.qiangDan(this.qiangDanOrderPlanId, this.fleetId); |
| | | }, |
| | | qiangDanCancel() { |
| | |
| | | }, |
| | | // 抢单请求 |
| | | qiangDan(id, fleetId) { |
| | | this.$reqPost('qiangDan', { orderPlanId: id, fleetId: fleetId }, 'params').then(res => { |
| | | if (res.code == 0) { |
| | | this.$u.toast('抢单成功'); |
| | | this.qiangDanShow = false; |
| | | this.qiangDanList(); |
| | | } else { |
| | | this.$u.toast(res.data ? res.data : '抢单失败'); |
| | | this.qiangDanShow = false; |
| | | } |
| | | }); |
| | | this.$reqPost('qiangDan', { orderPlanId: id, fleetId: fleetId }, 'params') |
| | | .then(res => { |
| | | if (res.code == 0) { |
| | | this.$u.toast('抢单成功'); |
| | | } else { |
| | | this.$u.toast(res.data ? res.data : '抢单失败'); |
| | | } |
| | | }) |
| | | .then(() => { |
| | | setTimeout(() => { |
| | | this.qiangDanList(); |
| | | }, 1000); |
| | | }); |
| | | }, |
| | | list3CardIconClick(value) { |
| | | uni.navigateTo({ |