Commit 7664952a authored by zhengyi's avatar zhengyi

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

parent cc72c420
......@@ -2055,8 +2055,14 @@ export default {
that.params.consigneeVO.id = null
that.params.consigneeVO.orderId = null
}
res.data.orderItemVOList.forEach((item)=>{
let newItem = {
}
// if(!that.params.number) that.params.number = ''
that.getType()
res.data.orderItemVOList.forEach((item)=>{
let newItem = {}
if (copy) {
newItem = {
link: item.link,
prodId: item.prodId,
prodTitleEn: item.prodTitleEn,
......@@ -2072,16 +2078,13 @@ export default {
brand: item.brand,
brandType: item.brandType
}
that.params.orderItemVOList.push({ ...newItem })
});
}
// if(!that.params.number) that.params.number = ''
that.getType()
if(that.params.orderItemVOList.length>0){
that.params.orderItemVOList.forEach((item,index)=>{
if(item.prodAttrIds) item.prodAttrs = item.prodAttrIds.split(',')
})
}
}else {
newItem = item
}
if(newItem.prodAttrIds) newItem.prodAttrs = newItem.prodAttrIds.split(',')
that.params.orderItemVOList.push({ ...newItem })
});
/*if(that.params.transportId != 0 ||that.params.lineId!=0 ||(that.params.departureId != 0 && that.params.objectiveId != 0)){
that.openedRouterF = false
......
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