Merge branch 'master' of github.com:shawncai/ERP

This commit is contained in:
beyond 2019-05-25 15:53:45 +08:00
commit b4e21153aa
7 changed files with 19 additions and 19 deletions

View file

@ -428,7 +428,7 @@ export default {
if (row.discountRate === 0) {
row.discountMoney = 0
} else {
row.discountMoney = (row.price * row.arrivalQuantity * (1 - row.discountRate / 100)).toFixed(2)
row.discountMoney = (row.includeTaxPrice * row.arrivalQuantity * (1 - row.discountRate / 100)).toFixed(2)
}
return row.discountMoney
},

View file

@ -489,8 +489,8 @@ export default {
//
getdiscountMoney(row) {
console.log(row)
if (row.price !== 0 && row.plannedQuantity !== 0 && row.discountMoney !== 0) {
row.discountRate = ((1 - row.discountMoney / row.price / row.plannedQuantity) * 100).toFixed(2)
if (row.includeTaxPrice !== 0 && row.plannedQuantity !== 0 && row.discountMoney !== 0) {
row.discountRate = ((1 - row.discountMoney / row.includeTaxPrice / row.plannedQuantity) * 100).toFixed(2)
}
},
//
@ -498,7 +498,7 @@ export default {
if (row.discountRate === 0) {
row.discountMoney = 0
} else {
row.discountMoney = (row.price * row.plannedQuantity * (1 - row.discountRate / 100)).toFixed(2)
row.discountMoney = (row.includeTaxPrice * row.plannedQuantity * (1 - row.discountRate / 100)).toFixed(2)
}
},
//

View file

@ -483,8 +483,8 @@ export default {
//
getdiscountMoney(row) {
console.log(row)
if (row.price !== 0 && row.plannedQuantity !== 0 && row.discountMoney !== 0) {
row.discountRate = ((1 - row.discountMoney / row.price / row.plannedQuantity) * 100).toFixed(2)
if (row.includeTaxPrice !== 0 && row.plannedQuantity !== 0 && row.discountMoney !== 0) {
row.discountRate = ((1 - row.discountMoney / row.includeTaxPrice / row.plannedQuantity) * 100).toFixed(2)
}
},
//
@ -492,7 +492,7 @@ export default {
if (row.discountRate === 0) {
row.discountMoney = 0
} else {
row.discountMoney = (row.price * row.plannedQuantity * (1 - row.discountRate / 100)).toFixed(2)
row.discountMoney = (row.includeTaxPrice * row.plannedQuantity * (1 - row.discountRate / 100)).toFixed(2)
}
},
//

View file

@ -406,8 +406,8 @@ export default {
//
getdiscountMoney(row) {
console.log(row)
if (row.price !== 0 && row.plannedQuantity !== 0 && row.discountMoney !== 0) {
row.discountRate = ((1 - row.discountMoney / row.price / row.plannedQuantity) * 100).toFixed(2)
if (row.includeTaxPrice !== 0 && row.plannedQuantity !== 0 && row.discountMoney !== 0) {
row.discountRate = ((1 - row.discountMoney / row.includeTaxPrice / row.plannedQuantity) * 100).toFixed(2)
}
},
//
@ -415,7 +415,7 @@ export default {
if (row.discountRate === 0) {
row.discountMoney = 0
} else {
row.discountMoney = (row.price * row.plannedQuantity * (1 - row.discountRate / 100)).toFixed(2)
row.discountMoney = (row.includeTaxPrice * row.plannedQuantity * (1 - row.discountRate / 100)).toFixed(2)
}
},
//

View file

@ -427,8 +427,8 @@ export default {
//
getdiscountMoney(row) {
console.log(row)
if (row.price !== 0 && row.plannedQuantity !== 0 && row.discountMoney !== 0) {
row.discountRate = ((1 - row.discountMoney / row.price / row.plannedQuantity) * 100).toFixed(2)
if (row.includeTaxPrice !== 0 && row.plannedQuantity !== 0 && row.discountMoney !== 0) {
row.discountRate = ((1 - row.discountMoney / row.includeTaxPrice / row.plannedQuantity) * 100).toFixed(2)
}
},
//
@ -436,7 +436,7 @@ export default {
if (row.discountRate === 0) {
row.discountMoney = 0
} else {
row.discountMoney = (row.price * row.plannedQuantity * (1 - row.discountRate / 100)).toFixed(2)
row.discountMoney = (row.includeTaxPrice * row.plannedQuantity * (1 - row.discountRate / 100)).toFixed(2)
}
},
//

View file

@ -542,8 +542,8 @@ export default {
//
getdiscountMoney(row) {
console.log(row)
if (row.price !== 0 && row.stockQuantity !== 0 && row.discountMoney !== 0) {
row.discountRate = ((1 - row.discountMoney / row.price / row.stockQuantity) * 100).toFixed(2)
if (row.includeTaxPrice !== 0 && row.stockQuantity !== 0 && row.discountMoney !== 0) {
row.discountRate = ((1 - row.discountMoney / row.includeTaxPrice / row.stockQuantity) * 100).toFixed(2)
}
},
//
@ -551,7 +551,7 @@ export default {
if (row.discountRate === 0) {
row.discountMoney = 0
} else {
row.discountMoney = (row.price * row.stockQuantity * (1 - row.discountRate / 100)).toFixed(2)
row.discountMoney = (row.includeTaxPrice * row.stockQuantity * (1 - row.discountRate / 100)).toFixed(2)
}
},
//

View file

@ -552,8 +552,8 @@ export default {
//
getdiscountMoney(row) {
console.log(row)
if (row.price !== 0 && row.stockQuantity !== 0 && row.discountMoney !== 0) {
row.discountRate = ((1 - row.discountMoney / row.price / row.stockQuantity) * 100).toFixed(2)
if (row.includeTaxPrice !== 0 && row.stockQuantity !== 0 && row.discountMoney !== 0) {
row.discountRate = ((1 - row.discountMoney / row.includeTaxPrice / row.stockQuantity) * 100).toFixed(2)
}
},
//
@ -561,7 +561,7 @@ export default {
if (row.discountRate === 0) {
row.discountMoney = 0
} else {
row.discountMoney = (row.price * row.stockQuantity * (1 - row.discountRate / 100)).toFixed(2)
row.discountMoney = (row.includeTaxPrice * row.stockQuantity * (1 - row.discountRate / 100)).toFixed(2)
}
},
//