|
|
@@ -266,8 +266,13 @@ export default {
|
|
|
if (this.customId !== 0) {
|
|
|
this.clearFn()
|
|
|
}
|
|
|
+
|
|
|
+ this.getOrderList();
|
|
|
},
|
|
|
methods: {
|
|
|
+ init () {
|
|
|
+ //this.getOrderList();
|
|
|
+ },
|
|
|
// 面板相关
|
|
|
openFilterPanel () {
|
|
|
this.showFilterPanel = true
|
|
|
@@ -440,9 +445,6 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- init () {
|
|
|
- this.getOrderList();
|
|
|
- },
|
|
|
getOrderList () {
|
|
|
let status = JSON.parse(JSON.stringify(this.tabIndex));
|
|
|
return getListB({
|
|
|
@@ -477,12 +479,18 @@ export default {
|
|
|
this.getOrderList();
|
|
|
}
|
|
|
},
|
|
|
- updateOrderStatus(orderId) {
|
|
|
+ /**
|
|
|
+ * 更新订单状态及配送状态
|
|
|
+ * @param orderId 订单ID
|
|
|
+ * @param orderStatus 订单状态
|
|
|
+ * @param sendStatus 配送状态
|
|
|
+ */
|
|
|
+ updateOrderStatus(orderId, orderStatus, sendStatus) {
|
|
|
if (this.list && this.list.data) {
|
|
|
const item = this.list.data.find(item => item.id == orderId);
|
|
|
if (item) {
|
|
|
- item.status = 3;
|
|
|
- item.sendStatus = 0;
|
|
|
+ item.status = orderStatus;
|
|
|
+ item.sendStatus = String(sendStatus);
|
|
|
}
|
|
|
}
|
|
|
},
|