提交 e00d9f90 authored 作者: 翟畅's avatar 翟畅

zc订单地址

上级 1646ebb4
...@@ -568,6 +568,7 @@ export default { ...@@ -568,6 +568,7 @@ export default {
orderDetAPI(id).then(res =>{ orderDetAPI(id).then(res =>{
if (res.data.code == 0) { if (res.data.code == 0) {
this.order = res.data.data this.order = res.data.data
this.order.invoiceContext = this.order.invoiceContext?this.order.invoiceContext:'1'
this.returnOfGoods = res.data.data.returnOfGoods this.returnOfGoods = res.data.data.returnOfGoods
this.orderinfoList = [] this.orderinfoList = []
res.data.data.commodityList.forEach((item,index) => { res.data.data.commodityList.forEach((item,index) => {
...@@ -582,7 +583,7 @@ export default { ...@@ -582,7 +583,7 @@ export default {
this.orderinfoList.push(item) this.orderinfoList.push(item)
} }
}) })
console.log(this.orderinfoList,'&&&&******')
this.salesOrderList = this.orderinfoList this.salesOrderList = this.orderinfoList
this.statusHis = res.data.data.orderStatusLogVOList this.statusHis = res.data.data.orderStatusLogVOList
this.addressInfo = res.data.data.deliveryAddressVO this.addressInfo = res.data.data.deliveryAddressVO
......
...@@ -335,20 +335,14 @@ export default { ...@@ -335,20 +335,14 @@ export default {
returnOrderDetAPI({orderId:this.orderid,refundId:this.refundId}).then(res =>{ returnOrderDetAPI({orderId:this.orderid,refundId:this.refundId}).then(res =>{
if (res.data.code == 0) { if (res.data.code == 0) {
this.order = res.data.data this.order = res.data.data
this.order.invoiceContext = this.order.invoiceContext?this.order.invoiceContext:'1'
this.returnOfGoods = res.data.data.returnOfGoods this.returnOfGoods = res.data.data.returnOfGoods
this.orderinfoList = res.data.data.commodityList this.orderinfoList = res.data.data.commodityList
this.statusHis = res.data.data.orderStatusLogVOList
this.addressInfo = res.data.data.deliveryAddressVO
this.getAddList()
let data = this.order.orderType=='5'?{'0':1,'1':2,'2':3,'6':4}:{'0':1,'1':2,'6':3}
console.log(data,6666666)
this.activeProgress = data[this.order.status]
this.$nextTick(() => { this.$nextTick(() => {
let selectedList = [] let selectedList = []
this.returnTotalPrice = 0 this.returnTotalPrice = 0
this.orderinfoList.forEach((item,index) => { this.orderinfoList.forEach((item,index) => {
if(item.refundId || this.returnOfGoods.refundId){ if(item.refundId){
this.returnTotalPrice += Number(item.realPrice) * Number(item.num) this.returnTotalPrice += Number(item.realPrice) * Number(item.num)
selectedList.push(item) selectedList.push(item)
} }
...@@ -359,6 +353,13 @@ export default { ...@@ -359,6 +353,13 @@ export default {
}) })
} }
}) })
this.statusHis = res.data.data.orderStatusLogVOList
this.addressInfo = res.data.data.deliveryAddressVO
this.getAddList()
let data = this.order.orderType=='5'?{'0':1,'1':2,'2':3,'6':4}:{'0':1,'1':2,'6':3}
this.activeProgress = data[this.order.status]
} else { } else {
this.$message.error('获取数据失败'); this.$message.error('获取数据失败');
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论