| | |
| | | <text>{{ item.carNum }}</text> |
| | | 张 |
| | | </view> |
| | | <view class="card-left__utils"><u-button @tap.stop="qiangDanBtn(item.orderPlanId)" text="抢单" type="primary" shape="circle"></u-button></view> |
| | | <view class="card-left__utils"><u-button @tap.stop="qiangDan(item.orderPlanId)" text="抢单" type="primary" shape="circle"></u-button></view> |
| | | </template> |
| | | <template v-slot:right-top> |
| | | <view class="right-top"> |
| | |
| | | }, |
| | | // 抢单请求 |
| | | qiangDan(id) { |
| | | // this.$reqPost('qiangDan', { orderPlanId: id, wxUserId: customerId }, 'params').then(res => { |
| | | this.$reqPost('qiangDan', { orderPlanId: id }, 'params').then(res => { |
| | | if (res.code == 0) { |
| | | this.$u.toast('抢单成功'); |
| | | } else { |
| | | this.$u.toast(res.data ? res.data : '抢单失败'); |
| | | } |
| | | console.log('抢单', res); |
| | | this.qiangDanList(); |
| | | }); |
| | | }, |