Browse Source

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

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

7
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))
}) })
} }
}) })
@ -493,7 +494,7 @@ const MaintenanceSpotCheck = (props) => {
</div> </div>
) )
} }
function mapStateToProps(state) { function mapStateToProps (state) {
const { auth, spotCheckDetail, reportDetail } = state const { auth, spotCheckDetail, reportDetail } = state
//('state1', state) //('state1', state)
return { return {

Loading…
Cancel
Save