//===============================================================================
let _this=this
let salesorderdata=_this.params
_this.salesorder.aToken=uni.getStorageSync('token')
debugger
salesorderdata.detail.forEach(valitem=>{
valitem.SizeList.forEach(item=>{
var sizename='x_'+item.No
valitem[sizename] = item.Qty
})
delete valitem.SizeList
})
let tempdata=salesorderdata
_this.salesorder.T_SalesOrderDetail=tempdata.detail
delete tempdata.detail
_this.salesorder.T_SalesOrder.push(tempdata)
//===============================================================================
标签:AB,salesorder,detail,Rest,valitem,item,Json,let,tempdata From: https://www.cnblogs.com/edrp/p/16749767.html