|
|
@ -163,12 +163,12 @@ class DingdanService extends Service { |
|
|
|
item["xiugaihouxiaoshoushuliang"] = item.xiaoshoushuliang |
|
|
|
} else if (guigexinghaoArr.length === 3) { |
|
|
|
let jishu = Number(guigexinghaoArr[2]) |
|
|
|
if (item.xiaoshoushuliang > jishu) { |
|
|
|
// if (item.xiaoshoushuliang > jishu) {
|
|
|
|
let count = Math.floor(item.xiaoshoushuliang / jishu) |
|
|
|
item["xiugaihouxiaoshoushuliang"] = count * jishu |
|
|
|
} else { |
|
|
|
item["xiugaihouxiaoshoushuliang"] = item.xiaoshoushuliang |
|
|
|
} |
|
|
|
// } else {
|
|
|
|
// item["xiugaihouxiaoshoushuliang"] = item.xiaoshoushuliang
|
|
|
|
// }
|
|
|
|
} |
|
|
|
item["xiaoshoujine"] = item.xiaoshoujine |
|
|
|
item["zuigaocaigoujia"] = _.get(chanpinItemA, [0, "zuigaocaigoujia"], 0) |
|
|
|