|
|
|
@ -83,7 +83,9 @@ export default function OperationApprovalsTable(props) {
|
|
|
|
|
|
|
|
|
|
const handlerReviewed = type => { |
|
|
|
|
let text = '검토대기'; |
|
|
|
|
if (!type) { |
|
|
|
|
if (type === 'U') { |
|
|
|
|
text = '검토불필요'; |
|
|
|
|
} else if (!type) { |
|
|
|
|
text = '검토대기'; |
|
|
|
|
} else { |
|
|
|
|
if (type === 'R') { |
|
|
|
@ -464,7 +466,9 @@ export default function OperationApprovalsTable(props) {
|
|
|
|
|
render: areaList => { |
|
|
|
|
const approvalCounts = areaList.reduce( |
|
|
|
|
(counts, item) => { |
|
|
|
|
if (item.reviewedType === 'R') { |
|
|
|
|
if (item.reviewedType === 'U') { |
|
|
|
|
counts.unapproved += 1; |
|
|
|
|
} else if (item.reviewedType === 'R') { |
|
|
|
|
counts.reviewed += 1; |
|
|
|
|
} else if (item.reviewedType === 'W') { |
|
|
|
|
counts.wait += 1; |
|
|
|
@ -473,7 +477,7 @@ export default function OperationApprovalsTable(props) {
|
|
|
|
|
} |
|
|
|
|
return counts; |
|
|
|
|
}, |
|
|
|
|
{ reviewed: 0, wait: 0, cancel: 0 } |
|
|
|
|
{ reviewed: 0, wait: 0, cancel: 0, unapproved: 0 } |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
@ -484,6 +488,9 @@ export default function OperationApprovalsTable(props) {
|
|
|
|
|
검토대기:{approvalCounts.wait}건 <br /> |
|
|
|
|
검토취소: |
|
|
|
|
{approvalCounts.cancel}건 |
|
|
|
|
<br /> |
|
|
|
|
검토불필요: |
|
|
|
|
{approvalCounts.unapproved}건 |
|
|
|
|
</> |
|
|
|
|
) : ( |
|
|
|
|
<>{handlerReviewed(areaList[0].reviewedType)}</> |
|
|
|
@ -704,11 +711,13 @@ export default function OperationApprovalsTable(props) {
|
|
|
|
|
align: 'center', |
|
|
|
|
width: '130px', |
|
|
|
|
render: text => { |
|
|
|
|
return text === 'R' |
|
|
|
|
return text === 'U' |
|
|
|
|
? '검토불필요' |
|
|
|
|
: text === 'R' |
|
|
|
|
? '검토완료' |
|
|
|
|
: text === 'W' |
|
|
|
|
? '검토대기' |
|
|
|
|
: '검토취소'; |
|
|
|
|
: text === 'C' |
|
|
|
|
? '검토취소' |
|
|
|
|
: '검토대기'; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|