Commit fc7beaf6 authored by 刘用法's avatar 刘用法

材料页面取值

parent d3d79253
......@@ -100,7 +100,7 @@
money() { // 总额
var amount = 0
for (var item of this.list) {
amount += Math.abs(item.consumption - item.freeAmount) * item.price
amount += Math.max(item.consumption - item.freeAmount, 0) * item.price
}
for (var item of this.other) {
if (item.value) {
......
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