WIP MMCM
This commit is contained in:
@@ -50,6 +50,7 @@ export default {
|
||||
name: "address-check",
|
||||
data() {
|
||||
return {
|
||||
//query: "",
|
||||
query: "9 Impasse des Peupliers 13008 Marseill",
|
||||
searchResults: [],
|
||||
isSearching: false,
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
<span v-if="store.withPrescription">Oui</span>
|
||||
<span v-else>Non</span>
|
||||
</div>
|
||||
<div class="mb-2" v-if="store.withPrescription && store.deliveryMethod === 'MMCM_FACTEUR'"><strong>Date de collect
|
||||
de l'orodnnance
|
||||
<div class="mb-2" v-if="store.withPrescription && store.dateDelivery !== store.dateCollect"><strong>Date de collecte
|
||||
de l'ordonnnce
|
||||
: </strong>{{ store.dateCollectString }}
|
||||
</div>
|
||||
<div class="mb-2"><strong>Date de livraison des medicaments : </strong>{{ store.dateDeliveryString }}</div>
|
||||
@@ -49,17 +49,14 @@ export default {
|
||||
+ '&city=' + this.store.city
|
||||
;
|
||||
|
||||
|
||||
if (this.store.withPrescription) {
|
||||
if (this.store.deliveryMethod === 'MMCM_FACTEUR') {
|
||||
urlApi += '&date_collect=' + this.store.dateCollectTimestampInSecond
|
||||
} else {
|
||||
urlApi += '&date_collect=' + this.store.dateDeliveryTimestampInSecond
|
||||
}
|
||||
urlApi += '&date_collect=' + ((this.store.dateCollect !== null) ? this.store.dateCollectTimestampInSecond : this.store.dateDeliveryTimestampInSecond)
|
||||
}
|
||||
|
||||
if (import.meta.env.DEV) {
|
||||
urlApi += '&ID_SESSION=ch6LyRNw';
|
||||
console.log(urlApi)
|
||||
urlApi += '&ID_SESSION=0w1YDpPz';
|
||||
}
|
||||
|
||||
const result = await fetch(urlApi).then(rep => rep.json())
|
||||
|
||||
Reference in New Issue
Block a user