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
30ff56f7
Commit
30ff56f7
authored
Sep 29, 2020
by
EKSAD
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.44.149.204/d.arizona/tia-dev
into riri
parents
f2005354
ebe38bef
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
157 additions
and
66 deletions
+157
-66
BudgetTahunan.js
src/container/BudgetTahunan.js
+1
-0
TaxPlanning.js
src/container/BudgetTahunan/TaxPlanning.js
+138
-44
CreateManagementDoc.js
src/container/DocumentManagement/CreateManagementDoc.js
+12
-8
DocumentManagement.js
src/container/DocumentManagement/DocumentManagement.js
+5
-5
EditManagementDoc.js
src/container/DocumentManagement/EditManagementDoc.js
+1
-9
No files found.
src/container/BudgetTahunan.js
View file @
30ff56f7
...
@@ -1002,6 +1002,7 @@ export default class BudgetTahunan extends Component {
...
@@ -1002,6 +1002,7 @@ export default class BudgetTahunan extends Component {
onClickClose
=
{()
=>
this
.
setState
({
visibleTP
:
false
,
visibleBudgetTahunan
:
true
})}
onClickClose
=
{()
=>
this
.
setState
({
visibleTP
:
false
,
visibleBudgetTahunan
:
true
})}
getReport
=
{
this
.
getCompanyActive
.
bind
(
this
)}
getReport
=
{
this
.
getCompanyActive
.
bind
(
this
)}
status
=
{
this
.
state
.
status
}
status
=
{
this
.
state
.
status
}
isApprover
=
{
this
.
state
.
isApprover
}
/
>
/
>
)}
)}
{
this
.
state
.
visibleFAM
&&
(
{
this
.
state
.
visibleFAM
&&
(
...
...
src/container/BudgetTahunan/TaxPlanning.js
View file @
30ff56f7
This diff is collapsed.
Click to expand it.
src/container/DocumentManagement/CreateManagementDoc.js
View file @
30ff56f7
...
@@ -55,7 +55,6 @@ export default class CreateManagementDoc extends Component {
...
@@ -55,7 +55,6 @@ export default class CreateManagementDoc extends Component {
this
.
getPeriode
()
this
.
getPeriode
()
this
.
getMonth
()
this
.
getMonth
()
this
.
getFileSize
()
this
.
getFileSize
()
console
.
log
(
this
.
props
.
setting_id
)
console
.
log
(
this
.
props
.
name
)
console
.
log
(
this
.
props
.
name
)
}
}
...
@@ -69,9 +68,15 @@ export default class CreateManagementDoc extends Component {
...
@@ -69,9 +68,15 @@ export default class CreateManagementDoc extends Component {
console
.
log
(
response
);
console
.
log
(
response
);
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
data
.
length
==
0
){
this
.
setState
({
sizeUpload
:
"1"
})
}
else
this
.
setState
({
this
.
setState
({
sizeUpload
:
response
.
data
.
data
[
0
]
?
response
.
data
.
data
[
0
].
value
===
undefined
?
"1"
:
response
.
data
.
data
[
0
].
value
:
"1"
sizeUpload
:
response
.
data
.
data
[
0
]
.
value
})
})
console
.
log
(
this
.
state
.
sizeUpload
)
}
}
}
}
})
})
...
@@ -121,7 +126,7 @@ export default class CreateManagementDoc extends Component {
...
@@ -121,7 +126,7 @@ export default class CreateManagementDoc extends Component {
// }
// }
api
.
create
().
getDocumentCategory
().
then
(
response
=>
{
api
.
create
().
getDocumentCategory
().
then
(
response
=>
{
console
.
log
(
response
);
//
console.log(response);
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
data
.
status
==
'success'
)
{
if
(
response
.
data
.
status
==
'success'
)
{
let
data
=
response
.
data
.
data
let
data
=
response
.
data
.
data
...
@@ -155,7 +160,7 @@ export default class CreateManagementDoc extends Component {
...
@@ -155,7 +160,7 @@ export default class CreateManagementDoc extends Component {
getPeriode
()
{
getPeriode
()
{
api
.
create
().
getPeriodeTransaction
().
then
(
response
=>
{
api
.
create
().
getPeriodeTransaction
().
then
(
response
=>
{
let
dateNow
=
new
Date
let
dateNow
=
new
Date
console
.
log
(
dateNow
)
//
console.log(dateNow)
let
year
=
format
(
dateNow
,
'yyyy'
)
let
year
=
format
(
dateNow
,
'yyyy'
)
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
status
===
"success"
)
{
...
@@ -179,7 +184,6 @@ export default class CreateManagementDoc extends Component {
...
@@ -179,7 +184,6 @@ export default class CreateManagementDoc extends Component {
getMonth
(){
getMonth
(){
api
.
create
().
getMonthTransaction
().
then
(
response
=>
{
api
.
create
().
getMonthTransaction
().
then
(
response
=>
{
let
dateNow
=
new
Date
let
dateNow
=
new
Date
console
.
log
(
dateNow
)
// let bulan = format(dateNow, 'MMMM')
// let bulan = format(dateNow, 'MMMM')
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
status
===
"success"
)
{
...
@@ -220,7 +224,7 @@ export default class CreateManagementDoc extends Component {
...
@@ -220,7 +224,7 @@ export default class CreateManagementDoc extends Component {
let
length
=
event
.
name
.
split
(
"."
).
length
let
length
=
event
.
name
.
split
(
"."
).
length
let
fileType
=
event
.
name
.
split
(
"."
)[
length
-
1
]
let
fileType
=
event
.
name
.
split
(
"."
)[
length
-
1
]
ExcelRenderer
(
fileObj
,
(
err
,
resp
)
=>
{
ExcelRenderer
(
fileObj
,
(
err
,
resp
)
=>
{
console
.
log
(
fileType
)
//
console.log(fileType)
if
(
err
)
{
if
(
err
)
{
console
.
log
(
err
);
console
.
log
(
err
);
}
}
...
@@ -248,7 +252,7 @@ export default class CreateManagementDoc extends Component {
...
@@ -248,7 +252,7 @@ export default class CreateManagementDoc extends Component {
formData
.
append
(
"documentPeriode"
,
null
);
formData
.
append
(
"documentPeriode"
,
null
);
formData
.
append
(
"documentMonth"
,
null
);
formData
.
append
(
"documentMonth"
,
null
);
this
.
setState
({
formData
},
()
=>
{
this
.
setState
({
formData
},
()
=>
{
this
.
props
.
createDocument
(
this
.
state
.
formData
,
this
.
props
.
setting_id
)
this
.
props
.
createDocument
(
this
.
state
.
formData
,
this
.
props
.
setting_id
,
this
.
props
.
name
)
})
})
}
}
...
@@ -274,7 +278,7 @@ export default class CreateManagementDoc extends Component {
...
@@ -274,7 +278,7 @@ export default class CreateManagementDoc extends Component {
formData
.
append
(
"documentPeriode"
,
this
.
state
.
periode
.
periode
);
formData
.
append
(
"documentPeriode"
,
this
.
state
.
periode
.
periode
);
formData
.
append
(
"documentMonth"
,
this
.
state
.
monthId
.
month_id
);
formData
.
append
(
"documentMonth"
,
this
.
state
.
monthId
.
month_id
);
this
.
setState
({
formData
},
()
=>
{
this
.
setState
({
formData
},
()
=>
{
this
.
props
.
createDocument
(
this
.
state
.
formData
,
this
.
props
.
setting_id
)
this
.
props
.
createDocument
(
this
.
state
.
formData
,
this
.
props
.
setting_id
,
this
.
props
.
name
)
})
})
}
}
}
}
...
...
src/container/DocumentManagement/DocumentManagement.js
View file @
30ff56f7
...
@@ -37,7 +37,7 @@ export default class DocumentManagement extends Component {
...
@@ -37,7 +37,7 @@ export default class DocumentManagement extends Component {
menu
:
"document management"
menu
:
"document management"
}
}
api
.
create
().
getPermission
(
payload
).
then
(
response
=>
{
api
.
create
().
getPermission
(
payload
).
then
(
response
=>
{
console
.
log
(
response
)
//
console.log(response)
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
setState
({
this
.
setState
({
...
@@ -95,7 +95,7 @@ export default class DocumentManagement extends Component {
...
@@ -95,7 +95,7 @@ export default class DocumentManagement extends Component {
})
})
}
}
createDocument
(
payload
,
settingID
)
{
createDocument
(
payload
,
settingID
,
menuName
)
{
api
.
create
().
uploadDocument
(
payload
).
then
(
response
=>
{
api
.
create
().
uploadDocument
(
payload
).
then
(
response
=>
{
console
.
log
(
response
)
console
.
log
(
response
)
if
(
response
.
data
)
{
if
(
response
.
data
)
{
...
@@ -106,8 +106,8 @@ export default class DocumentManagement extends Component {
...
@@ -106,8 +106,8 @@ export default class DocumentManagement extends Component {
})
})
}
}
else
if
(
response
.
data
.
message
===
"Upload Document Success"
)
{
else
if
(
response
.
data
.
message
===
"Upload Document Success"
)
{
this
.
getDataDocument
(
settingID
)
this
.
getDataDocument
(
settingID
,
menuName
)
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'success'
,
settingID
,
visibleCreate
:
false
})
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'success'
,
settingID
,
menuName
,
visibleCreate
:
false
})
}
}
else
{
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
},
()
=>
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
},
()
=>
{
...
@@ -146,7 +146,7 @@ export default class DocumentManagement extends Component {
...
@@ -146,7 +146,7 @@ export default class DocumentManagement extends Component {
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
ok
)
{
if
(
response
.
ok
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
getDataDocument
(
this
.
state
.
settingID
)
this
.
getDataDocument
(
this
.
state
.
settingID
,
this
.
state
.
menuName
)
this
.
setState
({
konfirmasi
:
false
,
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'success'
,
visibleCreate
:
false
})
this
.
setState
({
konfirmasi
:
false
,
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'success'
,
visibleCreate
:
false
})
}
else
{
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
},
()
=>
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
},
()
=>
{
...
...
src/container/DocumentManagement/EditManagementDoc.js
View file @
30ff56f7
...
@@ -57,7 +57,6 @@ export default class EditManagementDoc extends Component {
...
@@ -57,7 +57,6 @@ export default class EditManagementDoc extends Component {
this
.
getFileSize
()
this
.
getFileSize
()
if
(
this
.
props
.
type
===
'edit'
)
{
if
(
this
.
props
.
type
===
'edit'
)
{
this
.
getDetailDoc
()
this
.
getDetailDoc
()
console
.
log
(
this
.
props
.
data
)
}
}
}
}
...
@@ -265,12 +264,11 @@ export default class EditManagementDoc extends Component {
...
@@ -265,12 +264,11 @@ export default class EditManagementDoc extends Component {
}
}
fileHandler
=
(
event
)
=>
{
fileHandler
=
(
event
)
=>
{
console
.
log
(
event
)
let
fileObj
=
event
let
fileObj
=
event
let
length
=
event
.
name
.
split
(
"."
).
length
let
length
=
event
.
name
.
split
(
"."
).
length
let
fileType
=
event
.
name
.
split
(
"."
)[
length
-
1
]
let
fileType
=
event
.
name
.
split
(
"."
)[
length
-
1
]
ExcelRenderer
(
fileObj
,
(
err
,
resp
)
=>
{
ExcelRenderer
(
fileObj
,
(
err
,
resp
)
=>
{
console
.
log
(
fileType
)
//
console.log(fileType)
if
(
err
)
{
if
(
err
)
{
console
.
log
(
err
);
console
.
log
(
err
);
}
}
...
@@ -321,12 +319,6 @@ export default class EditManagementDoc extends Component {
...
@@ -321,12 +319,6 @@ export default class EditManagementDoc extends Component {
this
.
setState
({
formData
},
()
=>
{
this
.
setState
({
formData
},
()
=>
{
this
.
props
.
updateDocument
(
this
.
state
.
formData
)
this
.
props
.
updateDocument
(
this
.
state
.
formData
)
})
})
var
object
=
{};
formData
.
forEach
(
function
(
value
,
key
){
object
[
key
]
=
value
;
});
var
json
=
JSON
.
stringify
(
object
);
console
.
log
(
json
)
}
}
}
}
...
...
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