Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CmsPetrolPay
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
11
Issues
11
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
Giang Tran
CmsPetrolPay
Commits
ff0becda
Commit
ff0becda
authored
Feb 26, 2024
by
tdgiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update build
parent
422f6984
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
106 additions
and
43 deletions
+106
-43
translation.json
src/app/assets/languages/locates/vi/translation.json
+5
-1
Index.js
src/app/views/Fee/Index.js
+35
-14
Index.js
src/app/views/Transaction/Index.js
+39
-16
Index.js
src/app/views/product/product/Index.js
+26
-11
Table.js
src/app/views/product/product/Table.js
+1
-1
No files found.
src/app/assets/languages/locates/vi/translation.json
View file @
ff0becda
...
...
@@ -351,6 +351,10 @@
"ERROR_PERMISSION_IS_EXIST"
:
"Nhóm quyền đã tồn tại"
,
"ERROR_CODE_IS_EXISTS"
:
"Mã code đã tồn tại"
,
"ERROR_NAME_IS_EXISTS"
:
"Tên sản phẩm đã tồn tại"
"ERROR_NAME_IS_EXISTS"
:
"Tên sản phẩm đã tồn tại"
,
"ERROR_CODE_IS_EXITS"
:
"Mã code đã tồn tại"
,
"ERROR_NAME_IS_EXITS"
:
"Tên sản phẩm đã tồn tại"
}
src/app/views/Fee/Index.js
View file @
ff0becda
...
...
@@ -71,20 +71,37 @@ const ToolNotificate = (props) => {
}
}
const
getData
=
async
()
=>
{
const
getData
=
async
(
init
)
=>
{
props
.
showLoading
()
const
res
=
await
listFee
({
text_search
:
searchDebount
,
page_no
:
pageIndex
+
1
,
page_size
:
pageSize
,
from_date
:
startDate
?
convertDate
(
startDate
)
:
null
,
to_date
:
endDate
?
convertDate
(
endDate
)
:
null
,
store_id
:
module
,
merchant_id
:
merchant
,
status
:
status
,
})
let
res
if
(
init
)
{
setPageIndex
(
0
)
res
=
await
listFee
({
text_search
:
searchDebount
,
page_no
:
0
,
page_size
:
pageSize
,
from_date
:
startDate
?
convertDate
(
startDate
)
:
null
,
to_date
:
endDate
?
convertDate
(
endDate
)
:
null
,
store_id
:
module
,
merchant_id
:
merchant
,
status
:
status
,
})
}
else
{
res
=
await
listFee
({
text_search
:
searchDebount
,
page_no
:
pageIndex
+
1
,
page_size
:
pageSize
,
from_date
:
startDate
?
convertDate
(
startDate
)
:
null
,
to_date
:
endDate
?
convertDate
(
endDate
)
:
null
,
store_id
:
module
,
merchant_id
:
merchant
,
status
:
status
,
})
}
props
.
hideLoading
()
console
.
log
(
'res.data.data'
,
res
.
data
.
data
)
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
data
)
{
setReport
(
res
.
data
.
data
.
data
)
...
...
@@ -105,8 +122,12 @@ const ToolNotificate = (props) => {
}
useEffect
(()
=>
{
getData
()
},
[
searchDebount
,
pageIndex
,
startDate
,
module
,
merchant
,
status
])
getData
(
false
)
},
[
pageIndex
])
useEffect
(()
=>
{
getData
(
true
)
},
[
searchDebount
,
startDate
,
module
,
merchant
,
status
])
return
(
<
LogAuth
...
...
src/app/views/Transaction/Index.js
View file @
ff0becda
...
...
@@ -38,21 +38,40 @@ const ToolNotificate = (props) => {
setEndDate
(
end
)
}
const
getData
=
async
()
=>
{
const
getData
=
async
(
init
)
=>
{
props
.
showLoading
()
const
res
=
await
listTransaction
({
order_code
:
searchDebount
,
applications
,
page_no
:
pageIndex
+
1
,
page_size
:
pageSize
,
from_date
:
startDate
?
convertDate
(
startDate
)
:
null
,
to_date
:
endDate
?
convertDate
(
endDate
)
:
null
,
type_code
:
type
,
merchant_id
:
merchant
,
store_id
:
store
,
// gasoline_id: '57dd1a73-d847-4d73-9791-08dc0841e7a9',
})
let
res
if
(
init
)
{
setPageIndex
(
0
)
res
=
await
listTransaction
({
order_code
:
searchDebount
,
applications
,
page_no
:
0
,
page_size
:
pageSize
,
from_date
:
startDate
?
convertDate
(
startDate
)
:
null
,
to_date
:
endDate
?
convertDate
(
endDate
)
:
null
,
type_code
:
type
,
merchant_id
:
merchant
,
store_id
:
store
,
// gasoline_id: '57dd1a73-d847-4d73-9791-08dc0841e7a9',
})
}
else
{
res
=
await
listTransaction
({
order_code
:
searchDebount
,
applications
,
page_no
:
pageIndex
+
1
,
page_size
:
pageSize
,
from_date
:
startDate
?
convertDate
(
startDate
)
:
null
,
to_date
:
endDate
?
convertDate
(
endDate
)
:
null
,
type_code
:
type
,
merchant_id
:
merchant
,
store_id
:
store
,
// gasoline_id: '57dd1a73-d847-4d73-9791-08dc0841e7a9',
})
}
props
.
hideLoading
()
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
data
)
{
const
newList
=
res
.
data
.
data
.
data
.
map
((
e
,
i
)
=>
{
...
...
@@ -72,8 +91,12 @@ const ToolNotificate = (props) => {
}
useEffect
(()
=>
{
getData
()
},
[
searchDebount
,
pageIndex
,
startDate
,
type
,
merchant
,
store
])
getData
(
false
)
},
[
pageIndex
])
useEffect
(()
=>
{
getData
(
true
)
},
[
searchDebount
,
startDate
,
type
,
merchant
,
store
])
useEffect
(()
=>
{
if
(
merchant
)
{
...
...
src/app/views/product/product/Index.js
View file @
ff0becda
...
...
@@ -50,16 +50,27 @@ const ToolNotificate = (props) => {
}
}
const
getData
=
async
()
=>
{
const
getData
=
async
(
init
)
=>
{
props
.
showLoading
()
const
res
=
await
getListProduct
({
code
:
searchDebount
,
page_no
:
pageIndex
+
1
,
page_size
:
pageSize
,
status
,
type_id
:
type
,
})
let
res
if
(
init
)
{
setPageIndex
(
0
)
res
=
await
getListProduct
({
code
:
searchDebount
,
page_no
:
0
,
page_size
:
pageSize
,
status
,
type_id
:
type
,
})
}
else
{
res
=
await
getListProduct
({
code
:
searchDebount
,
page_no
:
pageIndex
+
1
,
page_size
:
pageSize
,
status
,
type_id
:
type
,
})
}
props
.
hideLoading
()
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
data
)
{
...
...
@@ -83,8 +94,12 @@ const ToolNotificate = (props) => {
}
useEffect
(()
=>
{
getData
()
},
[
searchDebount
,
pageIndex
,
status
,
type
])
getData
(
false
)
},
[
pageIndex
])
useEffect
(()
=>
{
getData
(
true
)
},
[
searchDebount
,
status
,
type
])
const
removeItem
=
async
(
id
)
=>
{
props
.
showLoading
()
...
...
src/app/views/product/product/Table.js
View file @
ff0becda
...
...
@@ -133,7 +133,7 @@ function TableList(props) {
width
:
120
,
}}
>
s
ả
n
ph
ẩ
m
H
à
nh
độ
ng
<
/TableCell
>
<
/TableRow
>
<
/TableHead
>
...
...
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