订单排序
This commit is contained in:
parent
249961762f
commit
a3316e76b6
|
|
@ -242,7 +242,9 @@
|
||||||
let waitServRes = await this.$request.qryDetailOrderPage({
|
let waitServRes = await this.$request.qryDetailOrderPage({
|
||||||
orderStatus: 2,
|
orderStatus: 2,
|
||||||
expectTimeStart: date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate() + " 00:00:00",
|
expectTimeStart: date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate() + " 00:00:00",
|
||||||
expectTimeEnd: date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate() + " 23:59:59"
|
expectTimeEnd: date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate() + " 23:59:59",
|
||||||
|
orderByColumn: "expectTimeStart",
|
||||||
|
isAsc: "desc"
|
||||||
});
|
});
|
||||||
this.waitServOrderToday = waitServRes.rows;
|
this.waitServOrderToday = waitServRes.rows;
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -638,6 +638,8 @@
|
||||||
params.goodsName = this.formData.orderKeywords;
|
params.goodsName = this.formData.orderKeywords;
|
||||||
params.countryId = this.formData.area && this.formData.area.length > 2 ? this.formData.area[2].areaId : null;
|
params.countryId = this.formData.area && this.formData.area.length > 2 ? this.formData.area[2].areaId : null;
|
||||||
params.goodsCategoryId = this.formData.category && this.formData.category.length > 2 ? this.formData.category[2].goodsCategoryId : null;
|
params.goodsCategoryId = this.formData.category && this.formData.category.length > 2 ? this.formData.category[2].goodsCategoryId : null;
|
||||||
|
params.orderByColumn = "updateTime";
|
||||||
|
params.isAsc = "desc";
|
||||||
// 状态
|
// 状态
|
||||||
if (this.tabCur != null) {
|
if (this.tabCur != null) {
|
||||||
params.orderStatus = this.subStateList[this.tabCur].code;
|
params.orderStatus = this.subStateList[this.tabCur].code;
|
||||||
|
|
@ -660,11 +662,15 @@
|
||||||
params.orderStatus = 2;
|
params.orderStatus = 2;
|
||||||
params.expectTimeStart = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate() + " 00:00:00",
|
params.expectTimeStart = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate() + " 00:00:00",
|
||||||
params.expectTimeEnd = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate() + " 23:59:59"
|
params.expectTimeEnd = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate() + " 23:59:59"
|
||||||
|
params.orderByColumn = "expectTimeStart";
|
||||||
|
params.isAsc = "desc";
|
||||||
} else if (this.stateList[this.stateCur].code === 101) {
|
} else if (this.stateList[this.stateCur].code === 101) {
|
||||||
// 明日单
|
// 明日单
|
||||||
params.orderStatus = 2;
|
params.orderStatus = 2;
|
||||||
params.expectTimeStart = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + (date.getDate() + 1) + " 00:00:00",
|
params.expectTimeStart = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + (date.getDate() + 1) + " 00:00:00",
|
||||||
params.expectTimeEnd = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + (date.getDate() + 1) + " 23:59:59"
|
params.expectTimeEnd = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + (date.getDate() + 1) + " 23:59:59"
|
||||||
|
params.orderByColumn = "expectTimeStart";
|
||||||
|
params.isAsc = "desc";
|
||||||
} else if (this.stateList[this.stateCur].code === 104) {
|
} else if (this.stateList[this.stateCur].code === 104) {
|
||||||
// 搁置单
|
// 搁置单
|
||||||
params.shelveStatus = 1;
|
params.shelveStatus = 1;
|
||||||
|
|
@ -678,6 +684,12 @@
|
||||||
// 超时单
|
// 超时单
|
||||||
params.isMonitoredOrder = true;
|
params.isMonitoredOrder = true;
|
||||||
params.allSelfAssigned = 0;
|
params.allSelfAssigned = 0;
|
||||||
|
params.orderByColumn = "createTime";
|
||||||
|
params.isAsc = "desc";
|
||||||
|
} else if (this.stateList[this.stateCur].code === 0) {
|
||||||
|
// 新订单
|
||||||
|
params.orderByColumn = "createTime";
|
||||||
|
params.isAsc = "desc";
|
||||||
}
|
}
|
||||||
// else if (this.stateList[this.stateCur].code === 100) {
|
// else if (this.stateList[this.stateCur].code === 100) {
|
||||||
// // 急报单
|
// // 急报单
|
||||||
|
|
@ -699,6 +711,10 @@
|
||||||
// 已完成/子单
|
// 已完成/子单
|
||||||
params.workFinishTimeExisted = true;
|
params.workFinishTimeExisted = true;
|
||||||
params.drawCashStatus = 2;
|
params.drawCashStatus = 2;
|
||||||
|
} else if (this.tabCur === 1) {
|
||||||
|
// 待上门
|
||||||
|
params.orderByColumn = "expectTimeStart";
|
||||||
|
params.isAsc = "desc";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue