Commit 73fceb41 authored by Babin Egor's avatar Babin Egor

up utl order

parent eb896b39
......@@ -22,6 +22,7 @@ Vue.component('app-waste-utilisation-order', {
// при загрузке страницы, если localStorage не пустой- вытаскиваем и
// записываем в wasteRecords
this.getOrderStatus();
if (localStorage.getItem('lsWasteRecords')) {
this.wasteRecords = JSON.parse(localStorage.getItem('lsWasteRecords'));
......@@ -29,7 +30,6 @@ Vue.component('app-waste-utilisation-order', {
// Если масив с записями пустой сразу открываем форму
//this.openForm = this.wasteRecords.length ? false : true;
this.getOrderStatus();
},
methods: {
// узнаем статус заявки
......@@ -42,9 +42,17 @@ Vue.component('app-waste-utilisation-order', {
if (options["status"] == "true") {
this.removeWasteAllRecords();
this.openForm = true;
}
this.setOrderStatus();
}
});
},
setOrderStatus(){
axios
.get("/api/setOrderStatus/");
},
// запись данных в localStorage
setLocalStorage() {
// Предварительно очистим массивы wDocs с файлами
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment