Commit e2110869 by 10_noah@other.ren

总后台&商家合同-订单管理:商家需要发货的商品订单,待收货状态,“查看物流”功能有误

parent 6d7054a4
...@@ -266,31 +266,24 @@ ...@@ -266,31 +266,24 @@
// 查看物流-对话框 // 查看物流-对话框
viewLogistics(row){ viewLogistics(row){
// 1.打开对话框 // 1.打开对话框
this.dialogVisible = true this.dialogVisible = true;
this.form.waybillNo=row.waybillNo this.activities=[];
if(row.waybillNo==undefined){
this.$message.error('订单数据异常,没有物流相关信息。')
this.dialogVisible = false
}else {
viewLogisticsApi( viewLogisticsApi(
{waybillNo:row.waybillNo,expressCompany:row.expressCompany} {waybillNo:row.waybillNo,expressCompany:row.expressCompany}
).then(r=>{ ).then(r=>{
if(r.data.data.result==undefined){ let jsonData = JSON.parse(r.data.data);
this.activities.push({"content":'用户已签收', let jsonList = jsonData.result.list;
"timestamp":undefined,color: '#0bbd87'}) for (let i = 0; i <jsonList.length ; i++) {
}else {
for (let i = 0; i <r.data.data.result.list.length ; i++) {
if(i === 0){ if(i === 0){
this.activities.push({"content":r.data.data.result.list[i].status, this.activities.push({"content":jsonList[i].status,
"timestamp":r.data.data.result.list[i].time,color: '#0bbd87'}) "timestamp":jsonList[i].time,color: '#0bbd87'})
}else { }else {
this.activities.push({"content":r.data.data.result.list[i].status, this.activities.push({"content":jsonList[i].status,
"timestamp":r.data.data.result.list[i].time}) "timestamp":jsonList[i].time})
}
} }
} }
}) })
}
}, },
// 查看详情 // 查看详情
checkTheDetails(row){ checkTheDetails(row){
......
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