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', { ...@@ -22,6 +22,7 @@ Vue.component('app-waste-utilisation-order', {
// при загрузке страницы, если localStorage не пустой- вытаскиваем и // при загрузке страницы, если localStorage не пустой- вытаскиваем и
// записываем в wasteRecords // записываем в wasteRecords
this.getOrderStatus();
if (localStorage.getItem('lsWasteRecords')) { if (localStorage.getItem('lsWasteRecords')) {
this.wasteRecords = JSON.parse(localStorage.getItem('lsWasteRecords')); this.wasteRecords = JSON.parse(localStorage.getItem('lsWasteRecords'));
...@@ -29,7 +30,6 @@ Vue.component('app-waste-utilisation-order', { ...@@ -29,7 +30,6 @@ Vue.component('app-waste-utilisation-order', {
// Если масив с записями пустой сразу открываем форму // Если масив с записями пустой сразу открываем форму
//this.openForm = this.wasteRecords.length ? false : true; //this.openForm = this.wasteRecords.length ? false : true;
this.getOrderStatus();
}, },
methods: { methods: {
// узнаем статус заявки // узнаем статус заявки
...@@ -42,9 +42,17 @@ Vue.component('app-waste-utilisation-order', { ...@@ -42,9 +42,17 @@ Vue.component('app-waste-utilisation-order', {
if (options["status"] == "true") { if (options["status"] == "true") {
this.removeWasteAllRecords(); this.removeWasteAllRecords();
this.openForm = true; this.openForm = true;
this.setOrderStatus();
} }
}); });
}, },
setOrderStatus(){
axios
.get("/api/setOrderStatus/");
},
// запись данных в localStorage // запись данных в localStorage
setLocalStorage() { setLocalStorage() {
// Предварительно очистим массивы wDocs с файлами // Предварительно очистим массивы 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