Browse Source

Merge branch 'master' into dev

dev
Guillaume 3 years ago
parent
commit
735d233b57
3 changed files with 10 additions and 5 deletions
  1. +1
    -1
      producer/web/css/screen.css
  2. +8
    -3
      producer/web/js/vuejs/order-order.js
  3. +1
    -1
      producer/web/sass/order/_order.scss

+ 1
- 1
producer/web/css/screen.css View File

display: block; display: block;
} }
/* line 14, ../sass/order/_order.scss */ /* line 14, ../sass/order/_order.scss */
.order-order #main #app-order-order #distribution-date {
.order-order #main #app-order-order #distribution-date, .order-order #main #app-order-order #order-distribution-date {
display: none; display: none;
} }
/* line 18, ../sass/order/_order.scss */ /* line 18, ../sass/order/_order.scss */

+ 8
- 3
producer/web/js/vuejs/order-order.js View File

}, },
mounted: function() { 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()) { if($('#order-distribution-date').size()) {
this.date = new Date($('#order-distribution-date').html()) ; this.date = new Date($('#order-distribution-date').html()) ;
} }
this.dateFormat = ('0' + this.date.getDate()).slice(-2)+ '/' this.dateFormat = ('0' + this.date.getDate()).slice(-2)+ '/'
+ ('0' + (this.date.getMonth() +1)).slice(-2) + '/' + ('0' + (this.date.getMonth() +1)).slice(-2) + '/'
+ this.date.getFullYear() ; + this.date.getFullYear() ;
}
this.init('first') ;


if(dateDefined) {
if(this.producer && this.producer.option_order_entry_point == 'date') { if(this.producer && this.producer.option_order_entry_point == 'date') {
this.changeStep('point-sale') ; this.changeStep('point-sale') ;
} }
} }
this.init('first') ;

this.loadingInit = false ; this.loadingInit = false ;
}, },
methods: { methods: {

+ 1
- 1
producer/web/sass/order/_order.scss View File

display: block ; display: block ;
} }
#distribution-date {
#distribution-date, #order-distribution-date {
display: none ; display: none ;
} }

Loading…
Cancel
Save