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
ed408605
Commit
ed408605
authored
Jul 17, 2022
by
syadziy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update fixing UAT
parent
1281c5dc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
38 deletions
+30
-38
CreateCarfmDocument.js
src/container/CAFRM/CreateCarfmDocument.js
+30
-38
No files found.
src/container/CAFRM/CreateCarfmDocument.js
View file @
ed408605
...
...
@@ -19,10 +19,13 @@ export default class CreateCarfmDoc extends Component {
super
(
props
)
this
.
state
=
{
perusahaan
:
null
,
perusahaanData
:
null
,
getPerusahaan
:
null
,
errorPerusahaan
:
false
,
msgErrorPerusahaan
:
''
,
document
:
null
,
documentData
:
null
,
getDocument
:
null
,
errorDocument
:
false
,
msgErrorDocument
:
''
,
listPeriode
:
null
,
...
...
@@ -43,8 +46,7 @@ export default class CreateCarfmDoc extends Component {
fileType
:
''
,
docId
:
''
,
sizeUpload
:
"1"
,
saveDisable
:
false
,
submitVal
:
0
isClickSave
:
0
}
}
...
...
@@ -234,6 +236,7 @@ export default class CreateCarfmDoc extends Component {
else
if
(
R
.
isNil
(
this
.
state
.
file
))
{
this
.
setState
({
alert
:
true
,
messageAlert
:
'File Cannot be Empty'
,
tipeAlert
:
'warning'
,
saveDisable
:
false
})
}
else
{
console
.
log
(
this
.
state
.
isClickSave
+
" ===> di luar"
);
const
formData
=
new
FormData
();
formData
.
append
(
"file"
,
this
.
state
.
file
);
formData
.
append
(
"companyId"
,
this
.
state
.
getPerusahaan
.
company_id
);
...
...
@@ -430,21 +433,10 @@ export default class CreateCarfmDoc extends Component {
disabled
=
{
this
.
state
.
saveDisable
}
type
=
"button"
onClick
=
{()
=>
{
this
.
props
.
handleLoading
(
1
);
this
.
setState
({
saveDisable
:
true
,
submitVal
:
this
.
state
.
submitVal
+
1
},
console
.
log
());
setTimeout
(()
=>
{
this
.
state
.
isClickSave
==
1
?
null
:
this
.
setState
({
isClickSave
:
1
},
()
=>
{
this
.
validasi
()
console
.
log
(
"vlidasi "
+
this
.
validasi
());
},
100
)
this
.
props
.
handleLoading
(
0
);
}
})
}
>
<
div
style
=
{{
width
:
102
,
height
:
30
,
backgroundColor
:
'#354960'
,
borderRadius
:
5
,
alignItems
:
'center'
,
display
:
'flex'
,
justifyContent
:
'center'
}}
>
...
...
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