Commit 4530a491 authored by lixy's avatar lixy

订单管理

parent 51cc6deb
...@@ -188,6 +188,10 @@ ...@@ -188,6 +188,10 @@
} }
}, },
created() { created() {
let query = localStorage.getItem("memberOrderInfo");
if(query !="null" && query){
this.listQuery = JSON.parse(query);
}
this.getList(); this.getList();
this.btn_del = this.elements['branchCompany/stockApply:btn_delete']; this.btn_del = this.elements['branchCompany/stockApply:btn_delete'];
}, },
...@@ -297,16 +301,19 @@ ...@@ -297,16 +301,19 @@
if(this.listQuery.endTime){ if(this.listQuery.endTime){
this.listQuery.endTime = this.listQuery.endTime.getTime(); this.listQuery.endTime = this.listQuery.endTime.getTime();
} }
if(this.listQuery.name == '1') { // if(this.listQuery.name == '1') {
this.listQuery.name = "普通会员" // this.listQuery.name = "普通会员"
} else // } else
if(this.listQuery.name == '2') { // if(this.listQuery.name == '2') {
this.listQuery.name = "黄金会员" // this.listQuery.name = "黄金会员"
} else // } else
if(this.listQuery.name == '3') { // if(this.listQuery.name == '3') {
this.listQuery.name = "钻石会员" // this.listQuery.name = "钻石会员"
} else { // } else {
this.listQuery.name = null // this.listQuery.name = null
// }
if(this.listQuery){
localStorage.setItem("memberOrderInfo", JSON.stringify(this.listQuery));
} }
page(this.listQuery) page(this.listQuery)
.then(response => { .then(response => {
......
...@@ -643,6 +643,12 @@ export default { ...@@ -643,6 +643,12 @@ export default {
}; };
}, },
created() { created() {
let query = localStorage.getItem("rentVehicleInfo");
if(query !="null" && query){
this.listQuery = JSON.parse(query);
this.listQuery.zoneId = undefined;
this.listQuery.startCompanyId = undefined;
}
this.getList(); this.getList();
this.btn_del = this.elements["branchCompany/stockApply:btn_delete"]; this.btn_del = this.elements["branchCompany/stockApply:btn_delete"];
this.order_btn_order_violcation_save = this.elements[ this.order_btn_order_violcation_save = this.elements[
...@@ -1066,6 +1072,9 @@ export default { ...@@ -1066,6 +1072,9 @@ export default {
// if(this.listQuery.endTime){ // if(this.listQuery.endTime){
// this.listQuery.endTime = this.listQuery.endTime.getTime(); // this.listQuery.endTime = this.listQuery.endTime.getTime();
// } // }
if(this.listQuery){
localStorage.setItem("rentVehicleInfo", JSON.stringify(this.listQuery));
}
page(this.listQuery).then(response => { page(this.listQuery).then(response => {
if (response.data.data) { if (response.data.data) {
response.data.data.map(function(el) { response.data.data.map(function(el) {
...@@ -1098,6 +1107,9 @@ export default { ...@@ -1098,6 +1107,9 @@ export default {
}, },
handleSizeChange(val) { handleSizeChange(val) {
this.listQuery.limit = val; this.listQuery.limit = val;
if(this.listQuery){
localStorage.setItem("rentVehicleInfo", JSON.stringify(this.listQuery));
}
this.getList(); this.getList();
}, },
dateFormat(timestamp) { dateFormat(timestamp) {
...@@ -1106,6 +1118,9 @@ export default { ...@@ -1106,6 +1118,9 @@ export default {
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.listQuery.page = val; this.listQuery.page = val;
if(this.listQuery){
localStorage.setItem("rentVehicleInfo", JSON.stringify(this.listQuery));
}
this.getList(); this.getList();
}, },
......
...@@ -286,6 +286,12 @@ ...@@ -286,6 +286,12 @@
} }
}, },
created() { created() {
let query = localStorage.getItem("tourOrderInfo");
if(query !="null" && query){
this.listQuery = JSON.parse(query);
this.listQuery.zoneId = undefined;
this.listQuery.startCompanyId = undefined;
}
this.getList(); this.getList();
this.btn_del = this.elements['branchCompany/stockApply:btn_delete']; this.btn_del = this.elements['branchCompany/stockApply:btn_delete'];
}, },
...@@ -424,6 +430,9 @@ ...@@ -424,6 +430,9 @@
// if(this.listQuery.endTime){ // if(this.listQuery.endTime){
// this.listQuery.endTime = this.listQuery.endTime.getTime(); // this.listQuery.endTime = this.listQuery.endTime.getTime();
// } // }
if(this.listQuery){
localStorage.setItem("tourOrderInfo", JSON.stringify(this.listQuery));
}
page(this.listQuery) page(this.listQuery)
.then(response => { .then(response => {
this.list = response.data.data; this.list = response.data.data;
......
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