From ec7681832703d4c4b32c5ff3849f5ed4940df550 Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Wed, 2 Aug 2023 23:02:37 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=85=BB=E6=8A=A4=E6=8A=BD=E6=9F=A5-?= =?UTF-8?q?=E6=8A=BD=E5=8F=96=E5=90=8E=E7=BB=93=E6=9E=9C=E6=9D=A1=E6=95=B0?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sections/fillion/containers/maintenanceSpotCheck.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/web/client/src/sections/fillion/containers/maintenanceSpotCheck.js b/web/client/src/sections/fillion/containers/maintenanceSpotCheck.js index 2d7a2780..777488a0 100644 --- a/web/client/src/sections/fillion/containers/maintenanceSpotCheck.js +++ b/web/client/src/sections/fillion/containers/maintenanceSpotCheck.js @@ -399,8 +399,9 @@ const MaintenanceSpotCheck = (props) => { setPreviewId(res?.payload.data?.previewId) setTotal(((res?.payload.data?.reportCount) * Number(values.percentValue)) / 100) form.setFieldsValue({ - 'result': count, 'village': res?.payload.data?.lukyDepartment?.name, - 'total': Math.ceil(((res?.payload.data?.reportCount) * Number(values.percentValue)) / 100) + 'result': res?.payload.data?.reportCount, + 'village': res?.payload.data?.lukyDepartment?.name, + 'total': Math.ceil((res?.payload.data?.reportCount) * (Number(values.percentValue) / 100)) }) } }) @@ -493,7 +494,7 @@ const MaintenanceSpotCheck = (props) => { ) } -function mapStateToProps(state) { +function mapStateToProps (state) { const { auth, spotCheckDetail, reportDetail } = state //('state1', state) return {