|
|
@ -1555,19 +1555,19 @@ export default { |
|
|
|
if (i === 0) this.driverForm.masterDriverName = item.name; |
|
|
|
if (i === 0) this.driverForm.masterDriverName = item.name; |
|
|
|
|
|
|
|
|
|
|
|
// 车辆赋值, 当司机数大于车辆数时, 取最后一位司机的车辆 |
|
|
|
// 车辆赋值, 当司机数大于车辆数时, 取最后一位司机的车辆 |
|
|
|
if (i === params.length - 1) { |
|
|
|
// if (i === params.length - 1) { |
|
|
|
if ( |
|
|
|
// if ( |
|
|
|
this.driverList.length > this.vehticleList.length && |
|
|
|
// this.driverList.length > this.vehticleList.length && |
|
|
|
item.vehicleVOList && |
|
|
|
// item.vehicleVOList && |
|
|
|
item.vehicleVOList.length > 0 |
|
|
|
// item.vehicleVOList.length > 0 |
|
|
|
) { |
|
|
|
// ) { |
|
|
|
const id = item.vehicleVOList[0].id; |
|
|
|
// const id = item.vehicleVOList[0].id; |
|
|
|
if (!this.vehicleIds.includes(id)) { |
|
|
|
// if (!this.vehicleIds.includes(id)) { |
|
|
|
this.vehticleList.push(id); |
|
|
|
// this.vehticleList.push(id); |
|
|
|
this.vehicleIds.push(id); |
|
|
|
// this.vehicleIds.push(id); |
|
|
|
} |
|
|
|
// } |
|
|
|
} |
|
|
|
// } |
|
|
|
} |
|
|
|
// } |
|
|
|
console.log('this.vehticleList :>> ', this.vehticleList); |
|
|
|
console.log('this.vehticleList :>> ', this.vehticleList); |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|