|
@@ -115,7 +115,7 @@
|
|
<!-- <el-button size='small' @click.stop="iGnoreOrder(item.id)">忽略订单</el-button> -->
|
|
<!-- <el-button size='small' @click.stop="iGnoreOrder(item.id)">忽略订单</el-button> -->
|
|
<!-- <el-button size='small' @click.stop="itemAddRemark(item.id, item)">添加备注</el-button> -->
|
|
<!-- <el-button size='small' @click.stop="itemAddRemark(item.id, item)">添加备注</el-button> -->
|
|
<el-button v-if="item.waimaiOrderId" size="small" class="btn" @click.stop="settingTime(item)">{{
|
|
<el-button v-if="item.waimaiOrderId" size="small" class="btn" @click.stop="settingTime(item)">{{
|
|
- item.delayTime ? "修改定时" : "定时发单"
|
|
|
|
|
|
+ item.delayTime ? "修改定时" : "预约发单"
|
|
}}</el-button>
|
|
}}</el-button>
|
|
|
|
|
|
<el-button v-else size="small" class="btn" @click.stop="sendNow(item)">立即配送</el-button>
|
|
<el-button v-else size="small" class="btn" @click.stop="sendNow(item)">立即配送</el-button>
|
|
@@ -430,6 +430,7 @@ export default {
|
|
return { background: bgColor };
|
|
return { background: bgColor };
|
|
},
|
|
},
|
|
againSend(order) {
|
|
againSend(order) {
|
|
|
|
+ let orderCopy = this.$tool.deepClone(order);
|
|
if ([97, 98].includes(order.buttonStatus)) {
|
|
if ([97, 98].includes(order.buttonStatus)) {
|
|
this.$confirm("当前订单已完成,确认要再次发起配送吗?", "提示", {
|
|
this.$confirm("当前订单已完成,确认要再次发起配送吗?", "提示", {
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
@@ -437,34 +438,26 @@ export default {
|
|
center: true,
|
|
center: true,
|
|
})
|
|
})
|
|
.then(() => {
|
|
.then(() => {
|
|
- this.showParentOrderSn = true;
|
|
|
|
- if (
|
|
|
|
- order.waimaiOrderId &&
|
|
|
|
- !order.addDelivery &&
|
|
|
|
- order.buttonStatus !== -2
|
|
|
|
- ) {
|
|
|
|
- order.waimaiOrderId = null;
|
|
|
|
- order.id = null;
|
|
|
|
- order.waimaiId = null;
|
|
|
|
- order.weight = 1;
|
|
|
|
- }
|
|
|
|
- this.getValuation(order);
|
|
|
|
|
|
+ this.beforeValuation(orderCopy);
|
|
})
|
|
})
|
|
.catch(() => {});
|
|
.catch(() => {});
|
|
} else {
|
|
} else {
|
|
- this.showParentOrderSn = true;
|
|
|
|
- if (
|
|
|
|
- order.waimaiOrderId &&
|
|
|
|
- !order.addDelivery &&
|
|
|
|
- order.buttonStatus !== -2
|
|
|
|
- ) {
|
|
|
|
- order.waimaiOrderId = null;
|
|
|
|
- order.id = null;
|
|
|
|
- order.waimaiId = null;
|
|
|
|
- order.weight = 1;
|
|
|
|
- }
|
|
|
|
- this.getValuation(order);
|
|
|
|
|
|
+ this.beforeValuation(orderCopy);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ beforeValuation(orderCopy) {
|
|
|
|
+ this.showParentOrderSn = true;
|
|
|
|
+ if (
|
|
|
|
+ orderCopy.waimaiOrderId &&
|
|
|
|
+ !orderCopy.addDelivery &&
|
|
|
|
+ orderCopy.buttonStatus !== -2
|
|
|
|
+ ) {
|
|
|
|
+ orderCopy.waimaiOrderId = null;
|
|
|
|
+ orderCopy.id = null;
|
|
|
|
+ orderCopy.waimaiId = null;
|
|
|
|
+ orderCopy.weight = 1;
|
|
}
|
|
}
|
|
|
|
+ this.getValuation(orderCopy);
|
|
},
|
|
},
|
|
paySuccess() {
|
|
paySuccess() {
|
|
this.showCode = false;
|
|
this.showCode = false;
|
|
@@ -652,6 +645,7 @@ export default {
|
|
this.cancelStatus = true;
|
|
this.cancelStatus = true;
|
|
},
|
|
},
|
|
chooseOrder(v, index) {
|
|
chooseOrder(v, index) {
|
|
|
|
+ this.curIdx = index;
|
|
this.buttonStatus = this.list[index].buttonStatus;
|
|
this.buttonStatus = this.list[index].buttonStatus;
|
|
if (this.buttonStatus === 0 || this.buttonStatus === 10) {
|
|
if (this.buttonStatus === 0 || this.buttonStatus === 10) {
|
|
this.needTrack = false;
|
|
this.needTrack = false;
|
|
@@ -660,7 +654,6 @@ export default {
|
|
this.needTrack = true;
|
|
this.needTrack = true;
|
|
this.orderDetailStutus = 0;
|
|
this.orderDetailStutus = 0;
|
|
}
|
|
}
|
|
- this.curIdx = index;
|
|
|
|
this.getDetailOrder();
|
|
this.getDetailOrder();
|
|
this.getTrackOrder();
|
|
this.getTrackOrder();
|
|
this.getRiderArriveTime();
|
|
this.getRiderArriveTime();
|