Commit 6ba5bda3 authored by dragondean@qq.com's avatar dragondean@qq.com

精简计价接口的参数

parent c0e3084a
......@@ -1545,12 +1545,28 @@ export default {
getProductListWithDefaultValue(){
let arr = []
this.form.orderItemVOList.forEach(item => {
let tmp = {...item}
// 商品信息只要商品id、品牌收费模式、件数、数量、体积、重量、货值、包装类型即可
// let tmp = {...item}
const tmp = {
prodId: item.prodId,
brandType: item.brandType,
num: item.num,
quantity: item.quantity,
volume: item.volume,
weight: item.weight,
prodAttrIds: item.prodAttrArr.join(','),
worth: item.worth,
packageType: item.packageType,
unit: item.unit
}
if(!tmp.volume)tmp.volume = 0
if(!tmp.weight)tmp.weight = 0
if(!tmp.quantity)tmp.quantity = 0
if(!tmp.num)tmp.num = 0
tmp.orderType = item.orderItemType
delete tmp.fee
delete tmp.couponInfo
delete tmp.couponInfoVOList
arr.push(tmp)
})
return arr
......
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