Commit cc72c420 authored by zhengyi's avatar zhengyi

订单编辑详情赋值表单逻辑修改

parent 85fba7c3
......@@ -1975,14 +1975,12 @@ export default {
let that = this
that.$request.get('/app-api/my/order/get',{orderId:id}).then(async (res) => {
if(res.code==0&&res.data){
that.params = res.data
this.params = Object.assign({}, res.data, {
orderItemVOList: [],
destCountryId: null,
consigneeName: '',
consigneePhone: ''
})
console.log("是否是copy:", copy)
if (copy){
// 复制订单,需要将数据初始化
that.params.orderId = null
......@@ -2057,8 +2055,6 @@ export default {
that.params.consigneeVO.id = null
that.params.consigneeVO.orderId = null
}
console.log("商品信息1:", that.params.orderItemVOList)
console.log("商品信息2:", res.data.orderItemVOList)
res.data.orderItemVOList.forEach((item)=>{
let newItem = {
link: item.link,
......@@ -2076,10 +2072,8 @@ export default {
brand: item.brand,
brandType: item.brandType
}
console.log("商品信息单项:", newItem)
that.params.orderItemVOList.push({ ...newItem })
});
console.log("商品信息3:", that.params.orderItemVOList)
}
// if(!that.params.number) that.params.number = ''
that.getType()
......@@ -2087,7 +2081,6 @@ export default {
that.params.orderItemVOList.forEach((item,index)=>{
if(item.prodAttrIds) item.prodAttrs = item.prodAttrIds.split(',')
})
console.log("商品信息:", that.params.orderItemVOList)
}
/*if(that.params.transportId != 0 ||that.params.lineId!=0 ||(that.params.departureId != 0 && that.params.objectiveId != 0)){
......
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