WIP MMCM
This commit is contained in:
@@ -83,10 +83,12 @@ export const useMMCMStore = defineStore('counter', {
|
||||
fullAddress: (state) => state.street + ' ' + state.zipCode + ' ' + state.city,
|
||||
deliveryMethod: (state) => state.productList.filter(p => p.id === state.idProduct)[0].name,
|
||||
dateDeliveryString: (state) => new Date(state.dateDelivery).toLocaleDateString("fr-FR"),
|
||||
dateCollectString: (state) => new Date(state.dateCollect).toLocaleDateString("fr-FR"),
|
||||
minDateForDelivery: (state) => (state.productList.filter(p => p.id === state.idProduct)[0].ref === 'MMCM_EXPRESS') ? date.deliveryExpress : date.deliveryFacteur,
|
||||
minDateForCollect: (state) => (state.productList.filter(p => p.id === state.idProduct)[0].ref === 'MMCM_EXPRESS') ? date.collectExpress : date.collectFacteur,
|
||||
needPrescriptionDateCollect: (state) => !!(state.productList.filter(p => p.id === state.idProduct)[0].ref === 'MMCM_FACTEUR' && state.withPrescription),
|
||||
dateDeliveryTimestampInSecond: (state) => timestampConverter(state.dateDelivery),
|
||||
dateCollectTimestampInSecond: (state) => timestampConverter(state.dateCollect),
|
||||
msgDelivery : (state) => {
|
||||
|
||||
//console.log(formatDistance(date.deliveryExpress, today))
|
||||
|
||||
Reference in New Issue
Block a user