WIP MMCM
This commit is contained in:
@@ -72,9 +72,9 @@ const timestampConverter = (digit13) => digit13 / 1000
|
||||
export const useMMCMStore = defineStore('counter', {
|
||||
state: () => ({
|
||||
idSession: '',
|
||||
street: '',
|
||||
zipCode: '',
|
||||
city: '',
|
||||
street: null,
|
||||
zipCode: null,
|
||||
city: null,
|
||||
productList: [],
|
||||
withPrescription: null,
|
||||
idProduct: null,
|
||||
@@ -82,7 +82,7 @@ export const useMMCMStore = defineStore('counter', {
|
||||
dateCollect: null
|
||||
}),
|
||||
getters: {
|
||||
fullAddress: (state) => state.street + ' ' + state.zipCode + ' ' + state.city,
|
||||
fullAddress: (state) => (state.street !== null) ? state.street + ' ' + state.zipCode + ' ' + state.city : null,
|
||||
deliveryMethod: (state) => state.productList.filter(p => p.id === state.idProduct)[0].name,
|
||||
deliveryMethodCode: (state) => state.productList.filter(p => p.id === state.idProduct)[0].ref,
|
||||
dateDeliveryString: (state) => new Date(state.dateDelivery).toLocaleDateString("fr-FR"),
|
||||
|
||||
Reference in New Issue
Block a user