|
|
@ -7,7 +7,8 @@ import { Form, Input, Select, Table } from 'antd'; |
|
|
|
import { |
|
|
|
import { |
|
|
|
updateLaancAprv, |
|
|
|
updateLaancAprv, |
|
|
|
getLaancAprvList, |
|
|
|
getLaancAprvList, |
|
|
|
updateLaancAprvReview |
|
|
|
updateLaancAprvReview, |
|
|
|
|
|
|
|
updateDronOneStopSend |
|
|
|
} from '@src/redux/features/laanc/laancThunk'; |
|
|
|
} from '@src/redux/features/laanc/laancThunk'; |
|
|
|
import { ERROR_MESSAGE, ERROR_TITLE } from '@src/configs/msgConst'; |
|
|
|
import { ERROR_MESSAGE, ERROR_TITLE } from '@src/configs/msgConst'; |
|
|
|
import OperationModal from './OperationModal'; |
|
|
|
import OperationModal from './OperationModal'; |
|
|
@ -256,7 +257,7 @@ export default function OperationApprovalsTable(props) { |
|
|
|
case 'C': |
|
|
|
case 'C': |
|
|
|
text = '검토취소'; |
|
|
|
text = '검토취소'; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 'P': |
|
|
|
case 'S': |
|
|
|
text = '검토완료'; |
|
|
|
text = '검토완료'; |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
@ -562,8 +563,8 @@ export default function OperationApprovalsTable(props) { |
|
|
|
|
|
|
|
|
|
|
|
if (reviewedType === 'U') { |
|
|
|
if (reviewedType === 'U') { |
|
|
|
reviewedType = 'W'; |
|
|
|
reviewedType = 'W'; |
|
|
|
} else if (reviewedType === 'S') { |
|
|
|
} else if (reviewedType === 'P') { |
|
|
|
reviewedType = 'P'; |
|
|
|
reviewedType = 'S'; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
@ -596,7 +597,7 @@ export default function OperationApprovalsTable(props) { |
|
|
|
<option key={6} value={'R'}> |
|
|
|
<option key={6} value={'R'}> |
|
|
|
재검토요청 |
|
|
|
재검토요청 |
|
|
|
</option> */} |
|
|
|
</option> */} |
|
|
|
<option key={7} value={'P'}> |
|
|
|
<option key={7} value={'S'}> |
|
|
|
검토완료 |
|
|
|
검토완료 |
|
|
|
</option> |
|
|
|
</option> |
|
|
|
</Select> |
|
|
|
</Select> |
|
|
@ -637,11 +638,11 @@ export default function OperationApprovalsTable(props) { |
|
|
|
상태 |
|
|
|
상태 |
|
|
|
</> |
|
|
|
</> |
|
|
|
), |
|
|
|
), |
|
|
|
dataIndex: 'planAreaSno', |
|
|
|
dataIndex: 'sendStatus', |
|
|
|
width: '100px', |
|
|
|
width: '100px', |
|
|
|
align: 'center', |
|
|
|
align: 'center', |
|
|
|
render: planAreaSno => { |
|
|
|
render: sendStatus => { |
|
|
|
return '미전송'; |
|
|
|
return sendStatus ? (sendStatus === 'S' ? '전송' : '미전송') : '미전송'; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
@ -822,7 +823,8 @@ export default function OperationApprovalsTable(props) { |
|
|
|
A: item => { |
|
|
|
A: item => { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
!(item.reviewedType === 'P' || item.reviewedType === 'S') && |
|
|
|
!(item.reviewedType === 'P' || item.reviewedType === 'S') && |
|
|
|
!(item?.reviewedProcType === 'P' || item?.reviewedProcType === 'S') |
|
|
|
!(item?.reviewedProcType === 'P' || item?.reviewedProcType === 'S') && |
|
|
|
|
|
|
|
!(item?.sendStatus === 'N') |
|
|
|
); |
|
|
|
); |
|
|
|
}, |
|
|
|
}, |
|
|
|
Q: item => item.reviewedType !== 'W', |
|
|
|
Q: item => item.reviewedType !== 'W', |
|
|
@ -845,8 +847,19 @@ export default function OperationApprovalsTable(props) { |
|
|
|
// 요청 성공 시 액션 핸들러
|
|
|
|
// 요청 성공 시 액션 핸들러
|
|
|
|
const actionHandlers = { |
|
|
|
const actionHandlers = { |
|
|
|
A: () => { |
|
|
|
A: () => { |
|
|
|
setCheckData(res); |
|
|
|
try { |
|
|
|
setIsCheckBoxModal(true); |
|
|
|
setCheckData(res); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const planAreaSnoList = res.map(i => i.planAreaSno); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dispatch(updateDronOneStopSend(planAreaSnoList)); |
|
|
|
|
|
|
|
} catch (error) { |
|
|
|
|
|
|
|
return handlerErrorModal( |
|
|
|
|
|
|
|
'전송 실패', |
|
|
|
|
|
|
|
'전송 요청을 실패하였습니다. 다시 시도해주세요.', |
|
|
|
|
|
|
|
false |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
Q: async () => { |
|
|
|
Q: async () => { |
|
|
|
try { |
|
|
|
try { |
|
|
@ -900,7 +913,7 @@ export default function OperationApprovalsTable(props) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 요청 성공 시 액션 핸들러 실행
|
|
|
|
// 요청 성공 시 액션 핸들러 실행
|
|
|
|
// await actionHandlers[type]();
|
|
|
|
await actionHandlers[type](); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|