Pārlūkot izejas kodu

Merge branch 'master' into dev

dev
Guillaume pirms 3 gadiem
vecāks
revīzija
735d233b57
3 mainītis faili ar 10 papildinājumiem un 5 dzēšanām
  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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt