lichong 8 months ago
parent
commit
86258b452a
  1. 12
      api/app/service/dingdan.js

12
api/app/service/dingdan.js

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

Loading…
Cancel
Save