Commit 98f0b83d by 宋毅

tj

parent 5bd0e047
...@@ -376,10 +376,11 @@ class OrderInfoService extends ServiceBase { ...@@ -376,10 +376,11 @@ class OrderInfoService extends ServiceBase {
updated: actionBody.updated, updated: actionBody.updated,
flowList: [] flowList: []
}; };
var deliveryInfo = await this.getOrderDeliveryInfo(pobj); pobj.actionBody.sourceOrderNo = actionBody.orderNo;
var deliveryInfo = await this.getOrderDeliveryFlowInfo(pobj);
var addi = 0; var addi = 0;
if (deliveryInfo.status == 0 && deliveryInfo.data && deliveryInfo.data.length > 0) { if (deliveryInfo.status == 0 && deliveryInfo.data && deliveryInfo.data.flowList.length > 0) {
updateDeliveryInfo = deliveryInfo.data; updateDeliveryInfo.flowList = deliveryInfo.data.flowList;
} else { } else {
updateDeliveryInfo = { updateDeliveryInfo = {
orderDeliveryStatus: "已下单", orderDeliveryStatus: "已下单",
...@@ -393,6 +394,11 @@ class OrderInfoService extends ServiceBase { ...@@ -393,6 +394,11 @@ class OrderInfoService extends ServiceBase {
}; };
addi = 1; addi = 1;
} }
updateDeliveryInfo.updated = actionBody.updated;
updateDeliveryInfo.orderDeliveryStatus = actionBody.orderDeliveryStatus;
var tempList = actionBody.orderDeliveryStatusName.split('-');
updateDeliveryInfo.orderDeliveryStatusName = tempList[tempList.length - 1];
var dataIndex = updateDeliveryInfo.flowList.findIndex(f => f.orderDeliveryStatus == actionBody.orderDeliveryStatus); var dataIndex = updateDeliveryInfo.flowList.findIndex(f => f.orderDeliveryStatus == actionBody.orderDeliveryStatus);
if (dataIndex > -1) { if (dataIndex > -1) {
updateDeliveryInfo.flowList[dataIndex].orderDeliveryStatusName = actionBody.orderDeliveryStatusName; updateDeliveryInfo.flowList[dataIndex].orderDeliveryStatusName = actionBody.orderDeliveryStatusName;
......
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