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
9e2b67f2
Commit
9e2b67f2
authored
Feb 24, 2021
by
Faisal Hamdi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'faisal' into 'master'
Faisal See merge request
!1214
parents
bb0b76eb
da178ccd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
index.js
src/api/index.js
+2
-1
EditMasterDataCAT.js
src/container/MasterData/MasterDataCAT/EditMasterDataCAT.js
+2
-1
No files found.
src/api/index.js
View file @
9e2b67f2
...
...
@@ -189,6 +189,7 @@ const create = (type = "") => {
const
getAllMasterDataCat
=
()
=>
api
.
get
(
'item_report_company/get_all_item_report_company'
)
const
getParentItemReport
=
(
body
)
=>
api
.
post
(
'item_report/get_parent_item_report_default'
,
body
)
const
saveMasterDataCat
=
(
body
)
=>
api
.
post
(
'item_report_company/create_item_report_company'
,
body
)
const
getDetailMasterDataCat
=
(
idCompany
,
years
)
=>
api
.
get
(
`item_report_company/get_item_report_company_by_companyid_years/
${
idCompany
}
/
${
years
}
`
)
const
deleteMasterDataCat
=
(
idCompany
,
years
)
=>
api
.
get
(
`item_report_company/delete_item_report_company/
${
idCompany
}
/
${
years
}
`
)
//Transaction
...
...
@@ -693,7 +694,7 @@ const create = (type = "") => {
getAllMasterDataCat
,
getParentItemReport
,
saveMasterDataCat
,
//
getDetailMasterDataCat,
getDetailMasterDataCat
,
deleteMasterDataCat
}
}
...
...
src/container/MasterData/MasterDataCAT/EditMasterDataCAT.js
View file @
9e2b67f2
...
...
@@ -391,7 +391,8 @@ export default class EditMasterDataCAT extends Component {
}
getDetailMasterDataCat
()
{
api
.
create
().
getDetailReportItems
(
this
.
props
.
data
[
1
]).
then
((
response
)
=>
{
console
.
log
(
this
.
props
);
api
.
create
().
getDetailMasterDataCat
(
this
.
props
.
data
[
1
],
this
.
props
.
data
[
6
]).
then
((
response
)
=>
{
console
.
log
(
response
);
if
(
response
.
data
)
{
if
(
response
.
ok
)
{
...
...
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