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
f89c0485
Commit
f89c0485
authored
Feb 24, 2021
by
faisalhamdi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uodate
parent
1da99a2c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
index.js
src/api/index.js
+2
-2
EditMasterDataCAT.js
src/container/MasterData/MasterDataCAT/EditMasterDataCAT.js
+2
-1
No files found.
src/api/index.js
View file @
f89c0485
...
@@ -189,7 +189,7 @@ const create = (type = "") => {
...
@@ -189,7 +189,7 @@ const create = (type = "") => {
const
getAllMasterDataCat
=
()
=>
api
.
get
(
'item_report_company/get_all_item_report_company'
)
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
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
saveMasterDataCat
=
(
body
)
=>
api
.
post
(
'item_report_company/create_item_report_company'
,
body
)
// const getDetailMasterDataCat = (id) => api.get(`item_report_company/create_item_report_company/${id
}`)
const
getDetailMasterDataCat
=
(
idCompany
,
years
)
=>
api
.
get
(
`item_report_company/get_item_report_company_by_companyid_years/
${
idCompany
}
/
${
years
}
`
)
const
deleteMasterDataCat
=
(
idCompany
,
years
)
=>
api
.
post
(
`item_report_company/delete_item_report_company/
${
idCompany
}
/
${
years
}
`
)
const
deleteMasterDataCat
=
(
idCompany
,
years
)
=>
api
.
post
(
`item_report_company/delete_item_report_company/
${
idCompany
}
/
${
years
}
`
)
//Transaction
//Transaction
...
@@ -694,7 +694,7 @@ const create = (type = "") => {
...
@@ -694,7 +694,7 @@ const create = (type = "") => {
getAllMasterDataCat
,
getAllMasterDataCat
,
getParentItemReport
,
getParentItemReport
,
saveMasterDataCat
,
saveMasterDataCat
,
//
getDetailMasterDataCat,
getDetailMasterDataCat
,
deleteMasterDataCat
deleteMasterDataCat
}
}
}
}
...
...
src/container/MasterData/MasterDataCAT/EditMasterDataCAT.js
View file @
f89c0485
...
@@ -391,7 +391,8 @@ export default class EditMasterDataCAT extends Component {
...
@@ -391,7 +391,8 @@ export default class EditMasterDataCAT extends Component {
}
}
getDetailMasterDataCat
()
{
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
);
console
.
log
(
response
);
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
ok
)
{
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