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
20860775
Commit
20860775
authored
Dec 07, 2020
by
Riri Novita
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.44.149.204/d.arizona/tia-dev
into riri
parents
44637e6a
4b7ccdf0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
47 deletions
+20
-47
index.js
src/api/index.js
+5
-0
BudgetTahunan.js
src/container/BudgetTahunan.js
+0
-30
TaxPlanningMR.js
src/container/MonthlyReport/TaxPlanningMR.js
+15
-17
No files found.
src/api/index.js
View file @
20860775
...
@@ -227,6 +227,9 @@ const create = (type = "") => {
...
@@ -227,6 +227,9 @@ const create = (type = "") => {
const
getLastPeriodeOI
=
(
idCompany
)
=>
api
.
post
(
`transaction/master_budget/get_last_periode/
${
idCompany
}
`
)
const
getLastPeriodeOI
=
(
idCompany
)
=>
api
.
post
(
`transaction/master_budget/get_last_periode/
${
idCompany
}
`
)
const
getReportHierarkiPL
=
(
body
)
=>
api
.
post
(
'transaction/db_report_detail/get_report_hierarki'
,
body
)
const
getReportHierarkiPL
=
(
body
)
=>
api
.
post
(
'transaction/db_report_detail/get_report_hierarki'
,
body
)
const
getLastestUpdateMR
=
(
body
)
=>
api
.
post
(
'/transaction/monthly_report/get_latest_update'
,
body
)
const
getLastestUpdateMROI
=
(
body
)
=>
api
.
post
(
'transaction/monthly_report_oi/get_latest_update'
,
body
)
//CASH FLOW
//CASH FLOW
const
getDetailReportCF
=
(
body
)
=>
api
.
post
(
'/transaction/cash_flow/get_report_hierarki'
,
body
)
const
getDetailReportCF
=
(
body
)
=>
api
.
post
(
'/transaction/cash_flow/get_report_hierarki'
,
body
)
...
@@ -436,6 +439,8 @@ const create = (type = "") => {
...
@@ -436,6 +439,8 @@ const create = (type = "") => {
checkUploadOperatingInd
,
checkUploadOperatingInd
,
uploadOperatingInd
,
uploadOperatingInd
,
getLastestUpdateMB
,
getLastestUpdateMB
,
getLastestUpdateMR
,
getLastestUpdateMROI
,
countingFormula
,
countingFormula
,
submitMasterBudget
,
submitMasterBudget
,
checkIsSubmit
,
checkIsSubmit
,
...
...
src/container/BudgetTahunan.js
View file @
20860775
...
@@ -183,34 +183,6 @@ export default class BudgetTahunan extends Component {
...
@@ -183,34 +183,6 @@ export default class BudgetTahunan extends Component {
})
})
}
}
getPermission
()
{
let
payload
=
{
menu
:
"master budget & cat"
}
api
.
create
().
getPermission
(
payload
).
then
(
response
=>
{
console
.
log
(
response
)
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
setState
({
btncreate
:
response
.
data
.
data
.
create
,
loadview
:
response
.
data
.
data
.
view
})
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
},
()
=>
{
if
(
response
.
data
.
message
.
includes
(
"Someone Logged In"
))
{
setTimeout
(()
=>
{
localStorage
.
removeItem
(
Constant
.
TOKEN
)
window
.
location
.
reload
();
},
1000
);
}
})
}
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
problem
,
tipeAlert
:
'error'
})
}
})
}
getCompanySubmitted
()
{
getCompanySubmitted
()
{
let
body
=
{
let
body
=
{
"periode"
:
this
.
state
.
periode
.
periode
"periode"
:
this
.
state
.
periode
.
periode
...
@@ -1548,8 +1520,6 @@ export default class BudgetTahunan extends Component {
...
@@ -1548,8 +1520,6 @@ export default class BudgetTahunan extends Component {
isApprover
=
{
this
.
state
.
isApprover
}
isApprover
=
{
this
.
state
.
isApprover
}
lastStatus
=
{
this
.
state
.
lastStatus
}
lastStatus
=
{
this
.
state
.
lastStatus
}
prevRevision
=
{
this
.
state
.
isSubmit
?
this
.
state
.
prevRevision
:
true
}
prevRevision
=
{
this
.
state
.
isSubmit
?
this
.
state
.
prevRevision
:
true
}
btncreate
=
{
this
.
state
.
btncreate
}
loadview
=
{
this
.
state
.
loadview
}
/
>
/
>
)
)
}
}
...
...
src/container/MonthlyReport/TaxPlanningMR.js
View file @
20860775
...
@@ -61,8 +61,7 @@ export default class TaxPlanningMR extends Component {
...
@@ -61,8 +61,7 @@ export default class TaxPlanningMR extends Component {
componentDidMount
()
{
componentDidMount
()
{
this
.
getSettingControl
()
this
.
getSettingControl
()
// this.getItemHierarki()
// this.getItemHierarki()
// this.getLatestUpdate()
this
.
getLatestUpdate
()
console
.
log
(
this
.
props
.
loadview
)
}
}
getSettingControl
()
{
getSettingControl
()
{
...
@@ -85,13 +84,15 @@ export default class TaxPlanningMR extends Component {
...
@@ -85,13 +84,15 @@ export default class TaxPlanningMR extends Component {
getLatestUpdate
()
{
getLatestUpdate
()
{
let
payload
=
{
let
payload
=
{
"report_id"
:
5
,
"report_id"
:
this
.
props
.
report_id
,
"revision"
:
0
,
"revision"
:
Number
(
this
.
props
.
revision
),
"periode"
:
2021
,
"periode"
:
this
.
props
.
periode
,
"company_id"
:
2193390
,
"company_id"
:
this
.
props
.
company
.
company_id
,
"submission_id"
:
3425765
"monthly_report_id"
:
this
.
props
.
monthlyReportId
,
"months"
:
this
.
props
.
month
.
month_id
}
}
api
.
create
().
getLastestUpdateMB
(
payload
).
then
(
response
=>
{
api
.
create
().
getLastestUpdateMR
(
payload
).
then
(
response
=>
{
console
.
log
(
response
)
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
setState
({
this
.
setState
({
...
@@ -113,7 +114,7 @@ export default class TaxPlanningMR extends Component {
...
@@ -113,7 +114,7 @@ export default class TaxPlanningMR extends Component {
"months"
:
this
.
props
.
month
.
month_id
"months"
:
this
.
props
.
month
.
month_id
}
}
api
.
create
().
getHierarkiMontlyReportTP
(
payload
).
then
(
response
=>
{
api
.
create
().
getHierarkiMontlyReportTP
(
payload
).
then
(
response
=>
{
console
.
log
(
response
);
//
console.log(response);
// console.log(payload);
// console.log(payload);
let
dataTable
=
[]
let
dataTable
=
[]
if
(
response
.
data
)
{
if
(
response
.
data
)
{
...
@@ -198,7 +199,7 @@ export default class TaxPlanningMR extends Component {
...
@@ -198,7 +199,7 @@ export default class TaxPlanningMR extends Component {
}
else
{
}
else
{
this
.
setState
({
dataTable
,
loading
:
false
,
editable
:
true
})
this
.
setState
({
dataTable
,
loading
:
false
,
editable
:
true
})
}
}
console
.
log
(
this
.
state
.
dataTable
)
//
console.log(this.state.dataTable)
})
})
}
}
...
@@ -244,8 +245,8 @@ export default class TaxPlanningMR extends Component {
...
@@ -244,8 +245,8 @@ export default class TaxPlanningMR extends Component {
}
}
api
.
create
(
'UPLOAD'
).
createMonthlyReportTP
(
payload
).
then
(
response
=>
{
api
.
create
(
'UPLOAD'
).
createMonthlyReportTP
(
payload
).
then
(
response
=>
{
console
.
log
(
payload
);
//
console.log(payload);
console
.
log
(
response
);
//
console.log(response);
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
props
.
saveToMonthlyReport
()
this
.
props
.
saveToMonthlyReport
()
...
@@ -311,7 +312,7 @@ export default class TaxPlanningMR extends Component {
...
@@ -311,7 +312,7 @@ export default class TaxPlanningMR extends Component {
api
.
create
().
checkUploadMonthlyReportTP
(
this
.
state
.
payload
).
then
(
response
=>
{
api
.
create
().
checkUploadMonthlyReportTP
(
this
.
state
.
payload
).
then
(
response
=>
{
// console.log(JSON.stringify(this.state.payload));
// console.log(JSON.stringify(this.state.payload));
// console.log(this.state.payload)
// console.log(this.state.payload)
console
.
log
(
response
)
//
console.log(response)
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
'success'
)
{
if
(
response
.
data
.
status
===
'success'
)
{
this
.
setState
({
visibleUpload
:
false
,
visibleTP
:
false
,
loading
:
true
})
this
.
setState
({
visibleUpload
:
false
,
visibleTP
:
false
,
loading
:
true
})
...
@@ -379,7 +380,7 @@ export default class TaxPlanningMR extends Component {
...
@@ -379,7 +380,7 @@ export default class TaxPlanningMR extends Component {
api
.
create
(
'UPLOAD'
).
uploadMonthlyReportTP
(
body
).
then
(
response
=>
{
api
.
create
(
'UPLOAD'
).
uploadMonthlyReportTP
(
body
).
then
(
response
=>
{
// console.log(body);
// console.log(body);
// console.log(JSON.stringify(body));
// console.log(JSON.stringify(body));
console
.
log
(
response
);
//
console.log(response);
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
props
.
saveToMonthlyReport
()
this
.
props
.
saveToMonthlyReport
()
...
@@ -474,9 +475,6 @@ export default class TaxPlanningMR extends Component {
...
@@ -474,9 +475,6 @@ export default class TaxPlanningMR extends Component {
render
()
{
render
()
{
let
dataTable2
=
this
.
state
.
dataTable
let
dataTable2
=
this
.
state
.
dataTable
let
dataFormula
=
[]
let
id
=
0
let
double
=
false
const
handleValueFormula
=
(
value
,
tableMeta
,
dex
,
xntd
,
forecast
,
periode
)
=>
{
const
handleValueFormula
=
(
value
,
tableMeta
,
dex
,
xntd
,
forecast
,
periode
)
=>
{
// console.log(xntd)
// console.log(xntd)
let
form
=
dex
===
1
?
tableMeta
.
rowData
[
6
].
tbc
:
dex
===
2
?
tableMeta
.
rowData
[
6
].
fcp
:
tableMeta
.
rowData
[
6
].
tbf
let
form
=
dex
===
1
?
tableMeta
.
rowData
[
6
].
tbc
:
dex
===
2
?
tableMeta
.
rowData
[
6
].
fcp
:
tableMeta
.
rowData
[
6
].
tbf
...
...
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