|
@@ -130,7 +130,7 @@
|
|
|
})
|
|
|
})
|
|
|
}
|
|
|
- return total
|
|
|
+ return total.toFixed(2)
|
|
|
},
|
|
|
// 总重量
|
|
|
totalWeight() {
|
|
@@ -229,7 +229,7 @@
|
|
|
let arr = []
|
|
|
this.list.map(item =>{
|
|
|
item.typeList.map(k =>{
|
|
|
- if(k.rubbishWeight !=='') {
|
|
|
+ if(k.rubbishWeight) {
|
|
|
let p = {
|
|
|
rubbishType: item.typeCode, //垃圾大类型
|
|
|
rubbishTypeItem: k.code, // 垃圾细分类型
|
|
@@ -243,7 +243,7 @@
|
|
|
})
|
|
|
if(arr.length==0) {
|
|
|
uni.showToast({
|
|
|
- title: '请先输入回收品类的重量!',
|
|
|
+ title: '请先输入重量,总重大于0!',
|
|
|
icon: 'none'
|
|
|
})
|
|
|
return
|