|
|
@ -35,7 +35,7 @@ Component({ |
|
|
}, |
|
|
}, |
|
|
attached: function () { |
|
|
attached: function () { |
|
|
// 在组件实例进入页面节点树时执行
|
|
|
// 在组件实例进入页面节点树时执行
|
|
|
console.log(this.data.item) |
|
|
|
|
|
|
|
|
// console.log(this.data.item)
|
|
|
this.data.item.otherAmountDtoList.forEach(element => { |
|
|
this.data.item.otherAmountDtoList.forEach(element => { |
|
|
if (element.amount != null&&element.amount!=0) { |
|
|
if (element.amount != null&&element.amount!=0) { |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
@ -43,6 +43,8 @@ Component({ |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
console.log(this.data) |
|
|
|
|
|
console.log(this.data.isShowtotalOtherAmount) |
|
|
//首笔货款金额tiptip提示
|
|
|
//首笔货款金额tiptip提示
|
|
|
var firstFkbl = (this.data.item.activitySettleType == 0 ? '(×首付70%)' : (this.data.item.activitySettleType == 1 ? '(×首付85%)' :(this.data.item.activitySettleType == 2?'(×首付100%)':''))) |
|
|
var firstFkbl = (this.data.item.activitySettleType == 0 ? '(×首付70%)' : (this.data.item.activitySettleType == 1 ? '(×首付85%)' :(this.data.item.activitySettleType == 2?'(×首付100%)':''))) |
|
|
var firstLeft = '预估总金额' + firstFkbl + '-代码费总额' |
|
|
var firstLeft = '预估总金额' + firstFkbl + '-代码费总额' |
|
|
@ -56,20 +58,17 @@ Component({ |
|
|
firstMoneyStringTip: firstLeft + '=' + rightJsdj + '×' + rightJsjz + '×' + rightFkbl + rightDmf + '×' + rightJz |
|
|
firstMoneyStringTip: firstLeft + '=' + rightJsdj + '×' + rightJsjz + '×' + rightFkbl + rightDmf + '×' + rightJz |
|
|
}) |
|
|
}) |
|
|
//尾款金额toptip提示
|
|
|
//尾款金额toptip提示
|
|
|
console.log(1) |
|
|
|
|
|
var secondLeft = '结算单价x结算重量-首笔货款金额' + firstFkbl + '+' + (this.data.isShowtotalOtherAmount == false ? '纸厂补贴与扣款' : '') + '+返还补贴+调节费' |
|
|
var secondLeft = '结算单价x结算重量-首笔货款金额' + firstFkbl + '+' + (this.data.isShowtotalOtherAmount == false ? '纸厂补贴与扣款' : '') + '+返还补贴+调节费' |
|
|
if (this.data.item.unitPrice) { |
|
|
if (this.data.item.unitPrice) { |
|
|
var secondJsdj = (math.times(this.data.item.unitPrice, 1000) + '元/吨') |
|
|
var secondJsdj = (math.times(this.data.item.unitPrice, 1000) + '元/吨') |
|
|
} else { |
|
|
} else { |
|
|
var secondJsdj = '0' |
|
|
var secondJsdj = '0' |
|
|
} |
|
|
} |
|
|
console.log(2) |
|
|
|
|
|
if (this.data.item.weightnoteInfo.settleWeight) { |
|
|
if (this.data.item.weightnoteInfo.settleWeight) { |
|
|
var secondJszl = (math.divide(this.data.item.weightnoteInfo.settleWeight, 1000) + '吨') |
|
|
var secondJszl = (math.divide(this.data.item.weightnoteInfo.settleWeight, 1000) + '吨') |
|
|
} else { |
|
|
} else { |
|
|
var secondJszl = '0' |
|
|
var secondJszl = '0' |
|
|
} |
|
|
} |
|
|
console.log(3) |
|
|
|
|
|
if (this.data.item.weightnoteInfo.netWeight) { |
|
|
if (this.data.item.weightnoteInfo.netWeight) { |
|
|
var secondJsjz = (math.divide(this.data.item.weightnoteInfo.netWeight, 1000) + '吨') |
|
|
var secondJsjz = (math.divide(this.data.item.weightnoteInfo.netWeight, 1000) + '吨') |
|
|
} else { |
|
|
} else { |
|
|
@ -93,9 +92,7 @@ Component({ |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
secondMoneyStringTip: secondLeft + '=' + secondJsdj + '×' + secondJszl + secondSbhkje + secondzcbtykk + '+' + secondbtdj + '×' + secondJsjz +'+'+ secondfhbt |
|
|
secondMoneyStringTip: secondLeft + '=' + secondJsdj + '×' + secondJszl + secondSbhkje + secondzcbtykk + '+' + secondbtdj + '×' + secondJsjz +'+'+ secondfhbt |
|
|
}) |
|
|
}) |
|
|
console.log(this.data) |
|
|
|
|
|
console.log(this.data.firstMoneyStringTip) |
|
|
|
|
|
console.log(this.data.secondMoneyStringTip) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
detached: function () { |
|
|
detached: function () { |
|
|
@ -114,7 +111,7 @@ Component({ |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
onChange(e) { |
|
|
onChange(e) { |
|
|
console.log('onChange', e) |
|
|
|
|
|
|
|
|
// console.log('onChange', e)
|
|
|
this.setData({ |
|
|
this.setData({ |
|
|
visible: e.detail.visible, |
|
|
visible: e.detail.visible, |
|
|
}) |
|
|
}) |
|
|
|