Przeglądaj źródła

Merge branch 'master' into dev

refactoring
Guillaume 3 lat temu
rodzic
commit
735d233b57
3 zmienionych plików z 10 dodań i 5 usunięć
  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 Wyświetl plik

@@ -1308,7 +1308,7 @@ termes.
display: block;
}
/* 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;
}
/* line 18, ../sass/order/_order.scss */

+ 8
- 3
producer/web/js/vuejs/order-order.js Wyświetl plik

@@ -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: {

+ 1
- 1
producer/web/sass/order/_order.scss Wyświetl plik

@@ -11,7 +11,7 @@
display: block ;
}
#distribution-date {
#distribution-date, #order-distribution-date {
display: none ;
}

Ładowanie…
Anuluj
Zapisz