Browse Source

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

dev
巴林闲侠 1 year 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)
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) => {
</div>
)
}
function mapStateToProps(state) {
function mapStateToProps (state) {
const { auth, spotCheckDetail, reportDetail } = state
//('state1', state)
return {

Loading…
Cancel
Save