|
|
@ -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 { |
|
|
|