add: alert_list in load & branches
This commit is contained in:
@@ -19,8 +19,6 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(props.location);
|
|
||||||
|
|
||||||
defineEmits(['reset-location']);
|
defineEmits(['reset-location']);
|
||||||
|
|
||||||
const authStore = useAuthStore();
|
const authStore = useAuthStore();
|
||||||
@@ -78,7 +76,7 @@
|
|||||||
locationForm.address = props.location.address;
|
locationForm.address = props.location.address;
|
||||||
locationForm.description = props.location.description;
|
locationForm.description = props.location.description;
|
||||||
locationForm.zipcode = props.location.zipcode;
|
locationForm.zipcode = props.location.zipcode;
|
||||||
console.log(props.location);
|
emails.value = props.location.alert_list || [];
|
||||||
} else {
|
} else {
|
||||||
Object.assign(locationForm, initState);
|
Object.assign(locationForm, initState);
|
||||||
}
|
}
|
||||||
@@ -109,8 +107,6 @@
|
|||||||
alert_list: emails.value.length > 0 ? emails.value : null
|
alert_list: emails.value.length > 0 ? emails.value : null
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(branchData);
|
|
||||||
|
|
||||||
let result = 'error';
|
let result = 'error';
|
||||||
let action = t('directory.msgLocationCreated');
|
let action = t('directory.msgLocationCreated');
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
|
|||||||
@@ -114,6 +114,7 @@ import { validateEmail } from '../helpers/validations';
|
|||||||
destination.postalCode = loadStore.currentLoad.destination.zipcode;
|
destination.postalCode = loadStore.currentLoad.destination.zipcode;
|
||||||
destinationRef.value = loadStore.currentLoad.destination.landmark;
|
destinationRef.value = loadStore.currentLoad.destination.landmark;
|
||||||
locationLoadSelected.value = loadStore.currentLoad?.shipper_warehouse || null; /// Selected warehouse
|
locationLoadSelected.value = loadStore.currentLoad?.shipper_warehouse || null; /// Selected warehouse
|
||||||
|
emails.value = loadStore.currentLoad?.alert_list || [];
|
||||||
getCoordsMap();
|
getCoordsMap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user