Commit 81a4df30 authored by Administrator's avatar Administrator

Merge branch 'release' into 'jd_dev'

Release分支合并到jd分支20241213

See merge request !43
parents a2d040dc 7664952a
......@@ -1981,7 +1981,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: ''
})
if (copy){
// 复制订单,需要将数据初始化
that.params.orderId = null
......@@ -2056,13 +2061,14 @@ export default {
that.params.consigneeVO.id = null
that.params.consigneeVO.orderId = null
}
}
// if(!that.params.number) that.params.number = ''
that.getType()
if(that.params.orderItemVOList.length>0){
that.params.orderItemVOList.forEach((item,index)=>{
if (this.$route.query.copy && this.$route.query.copy == 1) {
item = {
res.data.orderItemVOList.forEach((item)=>{
let newItem = {}
if (copy) {
newItem = {
link: item.link,
prodId: item.prodId,
prodTitleEn: item.prodTitleEn,
......@@ -2078,10 +2084,13 @@ export default {
brand: item.brand,
brandType: item.brandType
}
}else {
newItem = item
}
if(item.prodAttrIds) item.prodAttrs = item.prodAttrIds.split(',')
})
}
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