|
|
@ -36,13 +36,15 @@ Component({ |
|
|
attached: function () { |
|
|
attached: function () { |
|
|
// 在组件实例进入页面节点树时执行
|
|
|
// 在组件实例进入页面节点树时执行
|
|
|
// console.log(this.data.item)
|
|
|
// console.log(this.data.item)
|
|
|
this.data.item.otherAmountDtoList.forEach(element => { |
|
|
|
|
|
if (element.amount != null&&element.amount!=0) { |
|
|
|
|
|
this.setData({ |
|
|
|
|
|
isShowtotalOtherAmount: false |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
if(this.data.item.otherAmountDtoList.length){ |
|
|
|
|
|
this.data.item.otherAmountDtoList.forEach(element => { |
|
|
|
|
|
if (element.amount != null&&element.amount!=0) { |
|
|
|
|
|
this.setData({ |
|
|
|
|
|
isShowtotalOtherAmount: false |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
console.log(this.data) |
|
|
console.log(this.data) |
|
|
console.log(this.data.isShowtotalOtherAmount) |
|
|
console.log(this.data.isShowtotalOtherAmount) |
|
|
//首笔货款金额tiptip提示
|
|
|
//首笔货款金额tiptip提示
|
|
|
|