Commit ef8b1123 by 杨明

fixed

1 parent 8a7eaaf4
......@@ -1233,8 +1233,12 @@ export default {
this.maxStock = 9999
this.orderShow.forEach(item => {
this.couponObj[item].list.forEach(subItem => {
const mult = Math.floor(subItem.residueAmount / subItem.couponAmount)
console.log(mult)
let mult
if (!subItem.residueAmount) {
mult = 9999
} else {
mult = Math.floor(subItem.residueAmount / subItem.couponAmount)
}
this.maxStock = this.maxStock < mult ? this.maxStock : mult
// 失效券不加入预估成本
if (subItem.status != '3') {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!