diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/components/learun-mpui/learun-ui-mp/input.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/components/learun-mpui/learun-ui-mp/input.vue index 61bc84dd7..4860547ad 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/components/learun-mpui/learun-ui-mp/input.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/components/learun-mpui/learun-ui-mp/input.vue @@ -6,6 +6,7 @@ - - + + @@ -388,19 +388,32 @@ _this.current.FundsApply.SumAmount = _this.sum(Amounts) _this.current.FundsApply.UpperAmount = _this.smalltoBIG(_this.current.FundsApply.SumAmount) }, + blurChange(item){ + console.log(item) + let _this = this + item.Price = Number(item.Price).toFixed(2) + if (item.Number && item.Price) { + item.Amount = (item.Number * item.Price).toFixed(2) + // _this.current.SumAmount = item.Number * item.Price + let Amounts = _this.FundsApplyDetail.map(item => { + return Number(item.Amount).toFixed(2) + }) + _this.current.FundsApply.SumAmount = Number(_this.sum(Amounts)).toFixed(2) + _this.current.FundsApply.UpperAmount = _this.smalltoBIG(_this.current.FundsApply.SumAmount) + // console.log(_this.smalltoBIG(_this.current.FundsApply.SumAmount)) + } + }, SumAmountChange(item) { console.log(item) let _this = this if (item.Number && item.Price) { + item.Amount = (item.Number * item.Price).toFixed(2) - // _this.current.SumAmount = item.Number * item.Price - let Amounts = _this.FundsApplyDetail.map(item => { return item.Amount }) - - _this.current.FundsApply.SumAmount = _this.sum(Amounts) + _this.current.FundsApply.SumAmount = Number(_this.sum(Amounts)).toFixed(2) _this.current.FundsApply.UpperAmount = _this.smalltoBIG(_this.current.FundsApply.SumAmount) // console.log(_this.smalltoBIG(_this.current.FundsApply.SumAmount)) }