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

8
api/app/service/dingdan.js

@ -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)

Loading…
Cancel
Save