From ba721d261e4a0cb490be05eb58acbea7190ff3ee Mon Sep 17 00:00:00 2001 From: lb01 Date: Thu, 8 Dec 2022 12:23:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BB=8F=E8=B4=B9=E5=BC=80?= =?UTF-8?q?=E6=94=AF=E5=8D=95=E4=BB=B7=E5=92=8C=E6=80=BB=E9=87=91=E9=A2=9D?= =?UTF-8?q?=E4=BF=9D=E7=95=99=E4=B8=A4=E4=BD=8D=E5=B0=8F=E6=95=B0=EF=BC=8C?= =?UTF-8?q?=E7=BB=99l-input=E6=B7=BB=E5=8A=A0=E5=A4=B1=E5=8E=BB=E7=84=A6?= =?UTF-8?q?=E7=82=B9=E4=BA=8B=E4=BB=B6@blur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../learun-mpui/learun-ui-mp/input.vue | 6 ++++- .../FundsApply/single.vue | 25 ++++++++++++++----- 2 files changed, 24 insertions(+), 7 deletions(-) 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)) }