Commit e2110869 by 10_noah@other.ren

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

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