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
25e3c70f
Commit
25e3c70f
authored
Jan 29, 2026
by
Hardiansyah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
master report type on approval matrix
parent
c0f39076
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
265 additions
and
146 deletions
+265
-146
index.js
src/api/index.js
+2
-0
CreateApprovalMatrix.js
src/container/ApprovalMatrix/CreateApprovalMatrix.js
+151
-102
EditApprovalMatrix.js
src/container/ApprovalMatrix/EditApprovalMatrix.js
+92
-41
AutocompleteField.js
src/library/AutocompleteField.js
+10
-2
Utils.js
src/library/Utils.js
+8
-0
services.js
src/utils/services.js
+2
-1
No files found.
src/api/index.js
View file @
25e3c70f
...
...
@@ -165,6 +165,7 @@ const create = (type = "") => {
const
getApprovedByAM
=
()
=>
api
.
get
(
'approval_matrix/get_all_approver'
)
const
getTypeAM
=
()
=>
api
.
get
(
'approval_type/get_all_approval_type'
)
const
getOperatorAM
=
()
=>
api
.
get
(
'operator_type/get_all_operator_type'
)
const
getMasterReportType
=
()
=>
api
.
get
(
'masterreporttype/get_all_master_report_type'
)
const
getDetailAM
=
(
id
)
=>
api
.
get
(
`approval_matrix/get_approval_matrix_by_id/
${
id
}
`
)
const
searchAM
=
(
body
)
=>
api
.
post
(
'/approval_matrix/search_approval_matrix'
,
body
)
const
createAM
=
(
body
)
=>
api
.
post
(
'/approval_matrix/create_approval_matrix'
,
body
)
...
...
@@ -633,6 +634,7 @@ const create = (type = "") => {
getApprovedByAM
,
getTypeAM
,
getOperatorAM
,
getMasterReportType
,
getDetailAM
,
searchAM
,
createAM
,
...
...
src/container/ApprovalMatrix/CreateApprovalMatrix.js
View file @
25e3c70f
This diff is collapsed.
Click to expand it.
src/container/ApprovalMatrix/EditApprovalMatrix.js
View file @
25e3c70f
This diff is collapsed.
Click to expand it.
src/library/AutocompleteField.js
View file @
25e3c70f
...
...
@@ -27,21 +27,29 @@ const AutocompleteField = ({
multiple
=
false
,
showCheckbox
=
false
,
isLoading
=
false
,
minSizeBox
=
false
,
...
props
})
=>
{
const
defaultRenderInput
=
(
params
)
=>
(
<
TextField
{...
params
}
label
=
{
label
}
margin
=
{
margin
}
style
=
{{
marginTop
:
7
}}
margin
=
{
m
inSizeBox
?
'none'
:
m
argin
}
style
=
{
minSizeBox
?
{}
:
{
marginTop
:
7
}}
disabled
=
{
disabled
}
required
=
{
required
}
error
=
{
error
}
helperText
=
{
helperText
}
fullWidth
InputLabelProps
=
{
minSizeBox
?
{
style
:
{
fontSize
:
11
,
color
:
'#7e8085'
}
}
:
{}}
InputProps
=
{{
...
params
.
InputProps
,
style
:
minSizeBox
?
{
fontSize
:
11
}
:
{},
endAdornment
:
(
<>
{
isLoading
?
(
...
...
src/library/Utils.js
View file @
25e3c70f
...
...
@@ -73,3 +73,11 @@ export const createMonthData = (item, startIdx, formatFn) => {
});
return
months
;
};
export
const
convertSelect
=
(
id
,
name
)
=>
{
const
obj
=
id
?
{
id
,
name
,
}
:
null
return
obj
};
\ No newline at end of file
src/utils/services.js
View file @
25e3c70f
...
...
@@ -69,3 +69,4 @@ export const fetchHierarkiCreateReportPLMB = (payload) => wrapService(api.create
export
const
fetchFRID
=
(
payload
)
=>
wrapService
(
api
.
create
().
getFRID
(
payload
));
export
const
fetchDownloadFile
=
(
payload
)
=>
wrapService
(
api
.
create
().
createDownloadFile
(
payload
));
export
const
fetchZipReport
=
(
downloadedFileReportId
)
=>
wrapService
(
api
.
create
().
createZipReport
(
downloadedFileReportId
));
export
const
fetchMasterReportType
=
()
=>
wrapService
(
api
.
create
().
getMasterReportType
());
\ No newline at end of file
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