|
@ -166,6 +166,9 @@ export default { |
|
|
if(newVehiclesMap.length === 0 && newEmployees.length === 0){ |
|
|
if(newVehiclesMap.length === 0 && newEmployees.length === 0){ |
|
|
this.$message.warning('未选择人员或车辆') |
|
|
this.$message.warning('未选择人员或车辆') |
|
|
return; |
|
|
return; |
|
|
|
|
|
} else if (newEmployees.length < newVehiclesMap.length){ |
|
|
|
|
|
this.$message.warning('人员数量不得少于车辆数量') |
|
|
|
|
|
return; |
|
|
} |
|
|
} |
|
|
if(this.action===0){ |
|
|
if(this.action===0){ |
|
|
this.form.eventId = this.provideData.detail.id |
|
|
this.form.eventId = this.provideData.detail.id |
|
@ -183,7 +186,7 @@ export default { |
|
|
this.$emit("handleRefresh",'reload'); |
|
|
this.$emit("handleRefresh",'reload'); |
|
|
});; |
|
|
});; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}; |
|
|
}; |
|
|