Browse Source

fix 养护抽查-抽取后结果条数展示错误

dev
巴林闲侠 2 years ago
parent
commit
ec76818327
  1. 5
      web/client/src/sections/fillion/containers/maintenanceSpotCheck.js

5
web/client/src/sections/fillion/containers/maintenanceSpotCheck.js

@ -399,8 +399,9 @@ const MaintenanceSpotCheck = (props) => {
setPreviewId(res?.payload.data?.previewId) setPreviewId(res?.payload.data?.previewId)
setTotal(((res?.payload.data?.reportCount) * Number(values.percentValue)) / 100) setTotal(((res?.payload.data?.reportCount) * Number(values.percentValue)) / 100)
form.setFieldsValue({ form.setFieldsValue({
'result': count, 'village': res?.payload.data?.lukyDepartment?.name, 'result': res?.payload.data?.reportCount,
'total': Math.ceil(((res?.payload.data?.reportCount) * Number(values.percentValue)) / 100) 'village': res?.payload.data?.lukyDepartment?.name,
'total': Math.ceil((res?.payload.data?.reportCount) * (Number(values.percentValue) / 100))
}) })
} }
}) })

Loading…
Cancel
Save