Commit 4530a491 authored by lixy's avatar lixy

订单管理

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