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
1d45eb05
Commit
1d45eb05
authored
Oct 06, 2020
by
Rifka Kurnia Irfiana
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.44.149.204/d.arizona/tia-dev
into rifka
parents
ab4834ec
26b73725
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
962 additions
and
177 deletions
+962
-177
index.js
src/api/index.js
+5
-1
BudgetTahunan.js
src/container/BudgetTahunan.js
+2
-2
OutlookPA.js
src/container/OutlookPA.js
+3
-3
BalanceSheetOLPA.js
src/container/OutlookPA/BalanceSheetOLPA.js
+2
-2
RollingOutlook.js
src/container/RollingOutlook.js
+950
-169
No files found.
src/api/index.js
View file @
1d45eb05
...
@@ -228,11 +228,13 @@ const create = (type = "") => {
...
@@ -228,11 +228,13 @@ const create = (type = "") => {
const
getSubmitOLPA
=
(
body
)
=>
api
.
post
(
'transaction/outlook_pa/get_latest_periode_submit'
,
body
)
const
getSubmitOLPA
=
(
body
)
=>
api
.
post
(
'transaction/outlook_pa/get_latest_periode_submit'
,
body
)
const
getOLPAAtt
=
(
body
)
=>
api
.
post
(
'transaction/outlook_pa/get_report_attachment'
,
body
)
const
getOLPAAtt
=
(
body
)
=>
api
.
post
(
'transaction/outlook_pa/get_report_attachment'
,
body
)
const
submitOLPA
=
(
body
)
=>
api
.
post
(
'transaction/outlook_pa/submit_outlook_pa'
,
body
)
const
submitOLPA
=
(
body
)
=>
api
.
post
(
'transaction/outlook_pa/submit_outlook_pa'
,
body
)
const
getDetailReportOLPA
=
(
body
)
=>
api
.
post
(
'transaction/outlook_pa/get_report_hierarki'
,
body
)
const
getLastestUpdateOLPA
=
(
body
)
=>
api
.
post
(
'transaction/outlook_pa/get_latest_update'
,
body
)
const
getLastestUpdateOLPA
=
(
body
)
=>
api
.
post
(
'transaction/outlook_pa/get_latest_update'
,
body
)
const
createReportOLPA
=
(
body
)
=>
api
.
post
(
'transaction/outlook_pa/create_outlook_report'
,
body
)
const
createReportOLPA
=
(
body
)
=>
api
.
post
(
'transaction/outlook_pa/create_outlook_report'
,
body
)
const
checkUploadOLPA
=
(
body
)
=>
api
.
post
(
'transaction/outlook_pa/check_import'
,
body
)
const
checkUploadOLPA
=
(
body
)
=>
api
.
post
(
'transaction/outlook_pa/check_import'
,
body
)
const
validateSubmitReportOLPA
=
(
body
)
=>
api
.
post
(
'transaction/outlook_pa/validate_save'
,
body
)
const
validateSubmitReportOLPA
=
(
body
)
=>
api
.
post
(
'transaction/outlook_pa/validate_save'
,
body
)
const
uploadOLPA
=
(
body
)
=>
api
.
post
(
'transaction/outlook_pa/import_outlook_pa'
)
const
uploadOLPA
=
(
body
)
=>
api
.
post
(
'transaction/outlook_pa/import_outlook_pa'
)
const
uploadAttOLPA
=
(
body
)
=>
api
.
post
(
'transaction/outlook_pa/upload_attachment'
,
body
)
//Template
//Template
const
downloadTemplate
=
(
fileName
,
fileType
)
=>
api
.
get
(
`attachment/download_file?fileName=
${
fileName
}
&&fileType=
${
fileType
}
`
)
const
downloadTemplate
=
(
fileName
,
fileType
)
=>
api
.
get
(
`attachment/download_file?fileName=
${
fileName
}
&&fileType=
${
fileType
}
`
)
...
@@ -403,7 +405,9 @@ const create = (type = "") => {
...
@@ -403,7 +405,9 @@ const create = (type = "") => {
createReportOLPA
,
createReportOLPA
,
checkUploadOLPA
,
checkUploadOLPA
,
uploadOLPA
,
uploadOLPA
,
validateSubmitReportOLPA
validateSubmitReportOLPA
,
getDetailReportOLPA
,
uploadAttOLPA
}
}
}
}
...
...
src/container/BudgetTahunan.js
View file @
1d45eb05
...
@@ -984,7 +984,7 @@ export default class BudgetTahunan extends Component {
...
@@ -984,7 +984,7 @@ export default class BudgetTahunan extends Component {
<
div
style
=
{{
width
:
'50%'
}}
>
<
div
style
=
{{
width
:
'50%'
}}
>
<
Typography
style
=
{{
fontSize
:
'16px'
,
color
:
'#4b4b4b'
,
fontWeight
:
'bold'
}}
>
Attachment
:
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'16px'
,
color
:
'#4b4b4b'
,
fontWeight
:
'bold'
}}
>
Attachment
:
<
/Typography
>
<
/div
>
<
/div
>
{
!
this
.
state
.
isApprover
&&
(
this
.
state
.
lastStatus
===
'SUBMIT'
&&
this
.
state
.
lastStatus
===
'REVISION'
)
&&
(
{
!
this
.
state
.
isApprover
&&
(
this
.
state
.
lastStatus
===
'SUBMIT'
||
this
.
state
.
lastStatus
===
'REVISION'
)
&&
(
<
div
style
=
{{
width
:
'50%'
}}
>
<
div
style
=
{{
width
:
'50%'
}}
>
<
button
<
button
style
=
{{
style
=
{{
...
@@ -1030,7 +1030,7 @@ export default class BudgetTahunan extends Component {
...
@@ -1030,7 +1030,7 @@ export default class BudgetTahunan extends Component {
:
null
:
null
}
}
<
/div
>
<
/div
>
{
!
this
.
state
.
isApprover
&&
(
this
.
state
.
lastStatus
===
'SUBMIT'
&&
this
.
state
.
lastStatus
===
'REVISION'
)
&&
(
{
!
this
.
state
.
isApprover
&&
(
this
.
state
.
lastStatus
===
'SUBMIT'
||
this
.
state
.
lastStatus
===
'REVISION'
)
&&
(
<
div
style
=
{{
width
:
'50%'
}}
>
<
div
style
=
{{
width
:
'50%'
}}
>
{
this
.
state
.
listAttachment
.
length
>
0
?
{
this
.
state
.
listAttachment
.
length
>
0
?
this
.
state
.
listAttachment
.
map
((
item
)
=>
{
this
.
state
.
listAttachment
.
map
((
item
)
=>
{
...
...
src/container/OutlookPA.js
View file @
1d45eb05
...
@@ -492,7 +492,7 @@ export default class OutlookPA extends Component {
...
@@ -492,7 +492,7 @@ export default class OutlookPA extends Component {
}
}
uploadAttachment
(
formData
)
{
uploadAttachment
(
formData
)
{
api
.
create
().
uploadAtt
achment
(
formData
).
then
(
response
=>
{
api
.
create
().
uploadAtt
OLPA
(
formData
).
then
(
response
=>
{
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
setState
({
visibleUpload
:
false
},
()
=>
{
this
.
setState
({
visibleUpload
:
false
},
()
=>
{
...
@@ -905,7 +905,7 @@ export default class OutlookPA extends Component {
...
@@ -905,7 +905,7 @@ export default class OutlookPA extends Component {
<
div
style
=
{{
width
:
'50%'
}}
>
<
div
style
=
{{
width
:
'50%'
}}
>
<
Typography
style
=
{{
fontSize
:
'16px'
,
color
:
'#4b4b4b'
,
fontWeight
:
'bold'
}}
>
Attachment
:
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'16px'
,
color
:
'#4b4b4b'
,
fontWeight
:
'bold'
}}
>
Attachment
:
<
/Typography
>
<
/div
>
<
/div
>
{
!
this
.
state
.
isApprover
&&
(
this
.
state
.
lastStatus
===
'SUBMIT'
&&
this
.
state
.
lastStatus
===
'REVISION'
)
&&
(
{
!
this
.
state
.
isApprover
&&
(
this
.
state
.
lastStatus
===
'SUBMIT'
||
this
.
state
.
lastStatus
===
'REVISION'
)
&&
(
<
div
style
=
{{
width
:
'50%'
}}
>
<
div
style
=
{{
width
:
'50%'
}}
>
<
button
<
button
style
=
{{
style
=
{{
...
@@ -951,7 +951,7 @@ export default class OutlookPA extends Component {
...
@@ -951,7 +951,7 @@ export default class OutlookPA extends Component {
:
null
:
null
}
}
<
/div
>
<
/div
>
{
!
this
.
state
.
isApprover
&&
(
this
.
state
.
lastStatus
===
'SUBMIT'
&&
this
.
state
.
lastStatus
===
'REVISION'
)
&&
(
{
!
this
.
state
.
isApprover
&&
(
this
.
state
.
lastStatus
===
'SUBMIT'
||
this
.
state
.
lastStatus
===
'REVISION'
)
&&
(
<
div
style
=
{{
width
:
'50%'
}}
>
<
div
style
=
{{
width
:
'50%'
}}
>
{
this
.
state
.
listAttachment
.
length
>
0
?
{
this
.
state
.
listAttachment
.
length
>
0
?
this
.
state
.
listAttachment
.
map
((
item
)
=>
{
this
.
state
.
listAttachment
.
map
((
item
)
=>
{
...
...
src/container/OutlookPA/BalanceSheetOLPA.js
View file @
1d45eb05
...
@@ -85,7 +85,7 @@ export default class BalanceSheetOLPA extends Component {
...
@@ -85,7 +85,7 @@ export default class BalanceSheetOLPA extends Component {
"periode"
:
this
.
props
.
periode
,
"periode"
:
this
.
props
.
periode
,
"company_id"
:
this
.
props
.
company
.
company_id
"company_id"
:
this
.
props
.
company
.
company_id
}
}
let
response
=
await
api
.
create
().
getDetailReport
MB
(
payload
)
let
response
=
await
api
.
create
().
getDetailReport
OLPA
(
payload
)
console
.
log
(
response
);
console
.
log
(
response
);
let
dataTable
=
[]
let
dataTable
=
[]
if
(
response
.
data
)
{
if
(
response
.
data
)
{
...
@@ -341,7 +341,7 @@ export default class BalanceSheetOLPA extends Component {
...
@@ -341,7 +341,7 @@ export default class BalanceSheetOLPA extends Component {
balance_sheet
:
data
,
balance_sheet
:
data
,
status
:
type
status
:
type
}
}
// console.log(data
);
console
.
log
(
JSON
.
stringify
(
body
)
);
api
.
create
(
'UPLOAD'
).
uploadOLPA
(
body
).
then
(
response
=>
{
api
.
create
(
'UPLOAD'
).
uploadOLPA
(
body
).
then
(
response
=>
{
console
.
log
(
response
);
console
.
log
(
response
);
if
(
response
.
data
)
{
if
(
response
.
data
)
{
...
...
src/container/RollingOutlook.js
View file @
1d45eb05
This diff is collapsed.
Click to expand it.
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