|
|
@@ -67,7 +67,9 @@ var app = new Vue({ |
|
|
|
}, |
|
|
|
mounted: function() { |
|
|
|
|
|
|
|
if($('#order-distribution-date').size() || $('#distribution-date').size()) { |
|
|
|
var dateDefined = $('#order-distribution-date').size() || $('#distribution-date').size() ; |
|
|
|
|
|
|
|
if(dateDefined) { |
|
|
|
if($('#order-distribution-date').size()) { |
|
|
|
this.date = new Date($('#order-distribution-date').html()) ; |
|
|
|
} |
|
|
@@ -78,13 +80,16 @@ var app = new Vue({ |
|
|
|
this.dateFormat = ('0' + this.date.getDate()).slice(-2)+ '/' |
|
|
|
+ ('0' + (this.date.getMonth() +1)).slice(-2) + '/' |
|
|
|
+ this.date.getFullYear() ; |
|
|
|
} |
|
|
|
|
|
|
|
this.init('first') ; |
|
|
|
|
|
|
|
if(dateDefined) { |
|
|
|
if(this.producer && this.producer.option_order_entry_point == 'date') { |
|
|
|
this.changeStep('point-sale') ; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
this.init('first') ; |
|
|
|
|
|
|
|
this.loadingInit = false ; |
|
|
|
}, |
|
|
|
methods: { |