Commit d270a5eb authored by 李超鹏's avatar 李超鹏

修改组件计算合计

parent 144ab83e
......@@ -98,8 +98,9 @@ export default {
get: function() {
let sum = 0
this.item.list.map((ele, index) => {
if (index !== 0 && ele.useLength > 0) {
sum = sum + ele.unitAmt * (ele.useLength - ele.freeLength)
const outLength = ele.useLength - ele.freeLength
if (index !== 0 && outLength > 0) {
sum = sum + ele.unitAmt * outLength
}
})
this.item.other.map(ele => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment