|
|
@ -1275,7 +1275,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
/** 返回上一页 */ |
|
|
|
/** 返回上一页 */ |
|
|
|
back() { |
|
|
|
back() { |
|
|
|
this.$router.back(); |
|
|
|
this.$router.push('/distribution/reservation/reservation'); |
|
|
|
this.$store.commit('DEL_TAG_CURRENT'); |
|
|
|
this.$store.commit('DEL_TAG_CURRENT'); |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 提交(配送内容) |
|
|
|
// 提交(配送内容) |
|
|
@ -1553,6 +1553,8 @@ export default { |
|
|
|
a.push(item); |
|
|
|
a.push(item); |
|
|
|
// 主司机赋值 |
|
|
|
// 主司机赋值 |
|
|
|
if (i === 0) this.driverForm.masterDriverName = item.name; |
|
|
|
if (i === 0) this.driverForm.masterDriverName = item.name; |
|
|
|
|
|
|
|
if (!this.driverForm.masterVehicleNub) |
|
|
|
|
|
|
|
this.driverForm.masterVehicleNub = item.vehicleVOList[0].vehicleNub; |
|
|
|
|
|
|
|
|
|
|
|
// 车辆赋值, 当司机数大于车辆数时, 取最后一位司机的车辆 |
|
|
|
// 车辆赋值, 当司机数大于车辆数时, 取最后一位司机的车辆 |
|
|
|
if (i === params.length - 1) { |
|
|
|
if (i === params.length - 1) { |
|
|
@ -1578,7 +1580,8 @@ export default { |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// this.vehticleList.push(id); |
|
|
|
// this.vehticleList.push(id); |
|
|
|
this.vehicleIds.push(id); |
|
|
|
this.vehticleList = [...new Set([...this.vehticleList, id])]; |
|
|
|
|
|
|
|
this.vehicleIds = [...new Set([...this.vehicleIds, id])]; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|