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 { ...@@ -1981,7 +1981,12 @@ export default {
let that = this let that = this
that.$request.get('/app-api/my/order/get',{orderId:id}).then(async (res) => { that.$request.get('/app-api/my/order/get',{orderId:id}).then(async (res) => {
if(res.code==0&&res.data){ if(res.code==0&&res.data){
that.params = res.data this.params = Object.assign({}, res.data, {
orderItemVOList: [],
destCountryId: null,
consigneeName: '',
consigneePhone: ''
})
if (copy){ if (copy){
// 复制订单,需要将数据初始化 // 复制订单,需要将数据初始化
that.params.orderId = null that.params.orderId = null
...@@ -2056,32 +2061,36 @@ export default { ...@@ -2056,32 +2061,36 @@ export default {
that.params.consigneeVO.id = null that.params.consigneeVO.id = null
that.params.consigneeVO.orderId = null that.params.consigneeVO.orderId = null
} }
} }
// if(!that.params.number) that.params.number = '' // if(!that.params.number) that.params.number = ''
that.getType() that.getType()
if(that.params.orderItemVOList.length>0){ res.data.orderItemVOList.forEach((item)=>{
that.params.orderItemVOList.forEach((item,index)=>{ let newItem = {}
if (this.$route.query.copy && this.$route.query.copy == 1) { if (copy) {
item = { newItem = {
link: item.link, link: item.link,
prodId: item.prodId, prodId: item.prodId,
prodTitleEn: item.prodTitleEn, prodTitleEn: item.prodTitleEn,
prodTitleZh: item.prodTitleZh, prodTitleZh: item.prodTitleZh,
prodAttrIds: item.prodAttrIds, prodAttrIds: item.prodAttrIds,
prodType: item.prodType, prodType: item.prodType,
volume: item.volume, volume: item.volume,
weight: item.weight, weight: item.weight,
quantity: item.quantity, quantity: item.quantity,
num: item.num, num: item.num,
worth: item.worth, worth: item.worth,
boxGauge: item.boxGauge, boxGauge: item.boxGauge,
brand: item.brand, brand: item.brand,
brandType: item.brandType brandType: item.brandType
}
} }
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)){ /*if(that.params.transportId != 0 ||that.params.lineId!=0 ||(that.params.departureId != 0 && that.params.objectiveId != 0)){
that.openedRouterF = false 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