| | |
| | | <u-swipe-action> |
| | | <u-cell-group :border="false"> |
| | | <u-swipe-action-item :options="options1" v-for="(item, index) in huoDaiData" :index="index" :name="item.userId" :key="index" @click="deleteHuoDaiClick"> |
| | | <u-cell :title="item.name" value="详情" @click="toFreightForwarderDetails(item.id)"></u-cell> |
| | | <u-cell :title="item.name" value="详情" @click="toFreightForwarderDetails(item.userId)"></u-cell> |
| | | </u-swipe-action-item> |
| | | </u-cell-group> |
| | | </u-swipe-action> |
| | |
| | | this.$u.toast('添加成功'); |
| | | this.getFleet(); |
| | | } else { |
| | | this.$u.toast(res.data ? res.data : '添加失败'); |
| | | this.$u.toast(res.msg ? res.msg : '添加失败'); |
| | | } |
| | | }); |
| | | this.updateGroupShow = false; |
| | |
| | | console.log('删除车队', res); |
| | | if (res.code == 0) { |
| | | this.$u.toast('删除成功'); |
| | | } else { |
| | | this.$u.toast(res.msg ? res.msg : '删除失败'); |
| | | } |
| | | uni.hideLoading(); |
| | | this.getFleet(); |
| | | }); |
| | | }, |
| | | // 货代详情 |
| | | toFreightForwarderDetails(id) { |
| | | toFreightForwarderDetails(userId) { |
| | | uni.navigateTo({ |
| | | url: `/pages/customer-page/freight-forwarder-details/freight-forwarder-details` |
| | | url: `/pages/customer-page/freight-forwarder-details/freight-forwarder-details?userId=${userId}` |
| | | }); |
| | | }, |
| | | // 车队详情 |