Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Tia-dev
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dida Adams Arizona
Tia-dev
Commits
3a6b31f2
Commit
3a6b31f2
authored
Dec 29, 2020
by
Riri Novita
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.44.149.204/d.arizona/tia-dev
into riri
parents
6df23d41
174125dc
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
193 additions
and
45 deletions
+193
-45
index.js
src/api/index.js
+3
-1
BalanceSheetMR.js
src/container/MonthlyReport/BalanceSheetMR.js
+6
-4
CorporateAnnualTargetMR.js
src/container/MonthlyReport/CorporateAnnualTargetMR.js
+181
-37
ListOfCreditFacilities.js
src/container/MonthlyReport/ListOfCreditFacilities.js
+3
-3
No files found.
src/api/index.js
View file @
3a6b31f2
...
...
@@ -176,6 +176,7 @@ const create = (type = "") => {
const
getDetailParameter
=
(
id
)
=>
api
.
get
(
`setting/get_setting_by_id/
${
id
}
`
)
const
getAllGroup
=
()
=>
api
.
get
(
'/setting_group/get_all_setting_group'
)
const
getParameterByGroup
=
(
groupID
)
=>
api
.
get
(
`/setting_type/get_all_setting_type_by_group/
${
groupID
}
`
)
const
getParameterByGroupName
=
(
groupName
)
=>
api
.
post
(
`/setting/get_all_setting_by_group_name`
,
groupName
)
const
createParameter
=
(
body
)
=>
api
.
post
(
'setting/create_setting'
,
body
)
const
updateParameter
=
(
body
)
=>
api
.
post
(
'setting/update_setting'
,
body
)
const
checkUploadParameter
=
(
body
)
=>
api
.
post
(
'setting/check_import'
,
body
)
...
...
@@ -532,7 +533,8 @@ const create = (type = "") => {
checkUploadMonthlyReportLOCF
,
uploadMonthlyReportLOCF
,
validateSubmitReportOI
,
getMonthlyOI
getMonthlyOI
,
getParameterByGroupName
}
}
...
...
src/container/MonthlyReport/BalanceSheetMR.js
View file @
3a6b31f2
...
...
@@ -140,6 +140,7 @@ export default class BalanceSheetMR extends Component {
"get_for"
:
this
.
state
.
get_for
}
api
.
create
().
getHierarkiMontlyReportBS
(
payload
).
then
(
response
=>
{
console
.
log
(
payload
);
console
.
log
(
response
);
let
dataTable
=
[]
let
err
=
false
...
...
@@ -418,6 +419,7 @@ export default class BalanceSheetMR extends Component {
}
console
.
log
(
body
);
// console.log(JSON.stringify(body));
console
.
log
(
body
)
api
.
create
(
'UPLOAD'
).
uploadMonthlyReportBS
(
body
).
then
(
response
=>
{
console
.
log
(
response
);
if
(
response
.
data
)
{
...
...
@@ -473,7 +475,7 @@ export default class BalanceSheetMR extends Component {
}
api
.
create
(
'UPLOAD'
).
createMonthlyReportBS
(
payload
).
then
(
response
=>
{
console
.
log
(
response
);
console
.
log
(
JSON
.
stringify
(
payload
))
//
console.log(JSON.stringify(payload))
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
props
.
saveToMonthlyReport
()
...
...
@@ -493,7 +495,7 @@ export default class BalanceSheetMR extends Component {
let
err
=
false
this
.
state
.
dataTable
.
map
((
i
,
index
)
=>
{
if
(
i
[
0
]
===
3
)
{
console
.
log
(
i
);
//
console.log(i);
if
(
i
[
17
]
===
""
&&
(
Number
(
i
[
12
])
<
this
.
state
.
minValue
||
Number
(
i
[
12
])
>
this
.
state
.
maxValue
))
{
console
.
log
(
'msk 1'
);
// console.log(i);
...
...
@@ -524,7 +526,7 @@ export default class BalanceSheetMR extends Component {
"mtd_vs_rb"
:
i
[
19
]
})
})
console
.
log
(
JSON
.
stringify
(
data
));
//
console.log(JSON.stringify(data));
// data.map(i => {
// if (i.mtd_vs_previous_month === "" && (Number(i.percent_act_vs_previous_month) < this.state.minValue || Number(i.percent_act_vs_previous_month) > this.state.maxValue)) {
// console.log('msk 1');
...
...
@@ -556,7 +558,7 @@ export default class BalanceSheetMR extends Component {
"months"
:
this
.
props
.
month
.
month_id
,
"balance_sheet"
:
data
}
console
.
log
(
JSON
.
stringify
(
payload
));
//
console.log(JSON.stringify(payload));
console
.
log
(
this
.
state
.
dataTable
)
api
.
create
().
validateSubmitReportBS
(
payload
).
then
((
response
)
=>
{
console
.
log
(
response
)
...
...
src/container/MonthlyReport/CorporateAnnualTargetMR.js
View file @
3a6b31f2
This diff is collapsed.
Click to expand it.
src/container/MonthlyReport/ListOfCreditFacilities.js
View file @
3a6b31f2
...
...
@@ -3761,8 +3761,8 @@ export default class ListOfCreditFacilities extends Component {
<
div
style
=
{{
padding
:
5
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Total
Outstanding
Loan
<
/Typography
>
<
/div
>
<
div
style
=
{{
border
:
'1px solid black'
,
padding
:
5
,
display
:
'flex'
,
justifyContent
:
'flex-end'
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
{
this
.
state
.
totalOutStand
}
<
/Typography
>
<
div
style
=
{{
border
:
'1px solid black'
,
padding
:
5
,
minWidth
:
200
,
display
:
'flex'
,
justifyContent
:
'flex-end'
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
,
minWidth
:
200
,
}}
>
{
this
.
state
.
totalOutStand
}
<
/Typography
>
<
/div
>
<
/div
>
<
/div
>
...
...
@@ -3771,7 +3771,7 @@ export default class ListOfCreditFacilities extends Component {
<
div
style
=
{{
padding
:
5
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Diff
<
/Typography
>
<
/div
>
<
div
style
=
{{
borderStyle
:
'solid'
,
borderWidth
:
'0px 1px 1px 1px'
,
padding
:
5
,
display
:
'flex'
,
justifyContent
:
'flex-end'
}}
>
<
div
style
=
{{
borderStyle
:
'solid'
,
borderWidth
:
'0px 1px 1px 1px'
,
padding
:
5
,
minWidth
:
200
,
display
:
'flex'
,
justifyContent
:
'flex-end'
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
{
this
.
state
.
diff
}
<
/Typography
>
<
/div
>
<
/div
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment