fix bug
This commit is contained in:
@@ -2331,6 +2331,9 @@ export default {
|
||||
if (driver && !this.dialogForm.driverPhone) {
|
||||
this.dialogForm.driverPhone = driver.mobile || driver.driverPhone || driver.phone || '';
|
||||
}
|
||||
if (String(driver?.drivingVehicle || '').trim()) {
|
||||
this.dialogForm.vehicleNo = String(driver.drivingVehicle).trim();
|
||||
}
|
||||
},
|
||||
fetchDriverSuggestions(queryString, callback) {
|
||||
this.loadDriverOptions(String(queryString || '').trim())
|
||||
@@ -2350,6 +2353,8 @@ export default {
|
||||
this.dialogForm.driverName = value;
|
||||
const phone = item.mobile || item.driverPhone || item.phone || '';
|
||||
if (phone) this.dialogForm.driverPhone = phone;
|
||||
const drivingVehicle = String(item.drivingVehicle || '').trim();
|
||||
if (drivingVehicle) this.dialogForm.vehicleNo = drivingVehicle;
|
||||
}
|
||||
},
|
||||
handleMileageInput(value) {
|
||||
|
||||
Reference in New Issue
Block a user