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
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
79 additions
and
16 deletions
+79
-16
translation.json
src/app/assets/languages/locates/vi/translation.json
+5
-1
Index.js
src/app/views/Fee/Index.js
+26
-5
Index.js
src/app/views/Transaction/Index.js
+27
-4
Index.js
src/app/views/product/product/Index.js
+20
-5
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 @@
...
@@ -351,6 +351,10 @@
"ERROR_PERMISSION_IS_EXIST"
:
"Nhóm quyền đã tồn tại"
,
"ERROR_PERMISSION_IS_EXIST"
:
"Nhóm quyền đã tồn tại"
,
"ERROR_CODE_IS_EXISTS"
:
"Mã code đã 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,9 +71,25 @@ const ToolNotificate = (props) => {
...
@@ -71,9 +71,25 @@ const ToolNotificate = (props) => {
}
}
}
}
const
getData
=
async
()
=>
{
const
getData
=
async
(
init
)
=>
{
props
.
showLoading
()
props
.
showLoading
()
const
res
=
await
listFee
({
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
,
text_search
:
searchDebount
,
page_no
:
pageIndex
+
1
,
page_no
:
pageIndex
+
1
,
page_size
:
pageSize
,
page_size
:
pageSize
,
...
@@ -83,8 +99,9 @@ const ToolNotificate = (props) => {
...
@@ -83,8 +99,9 @@ const ToolNotificate = (props) => {
merchant_id
:
merchant
,
merchant_id
:
merchant
,
status
:
status
,
status
:
status
,
})
})
}
props
.
hideLoading
()
props
.
hideLoading
()
console
.
log
(
'res.data.data'
,
res
.
data
.
data
)
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
data
)
{
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
data
)
{
setReport
(
res
.
data
.
data
.
data
)
setReport
(
res
.
data
.
data
.
data
)
...
@@ -105,8 +122,12 @@ const ToolNotificate = (props) => {
...
@@ -105,8 +122,12 @@ const ToolNotificate = (props) => {
}
}
useEffect
(()
=>
{
useEffect
(()
=>
{
getData
()
getData
(
false
)
},
[
searchDebount
,
pageIndex
,
startDate
,
module
,
merchant
,
status
])
},
[
pageIndex
])
useEffect
(()
=>
{
getData
(
true
)
},
[
searchDebount
,
startDate
,
module
,
merchant
,
status
])
return
(
return
(
<
LogAuth
<
LogAuth
...
...
src/app/views/Transaction/Index.js
View file @
ff0becda
...
@@ -38,9 +38,26 @@ const ToolNotificate = (props) => {
...
@@ -38,9 +38,26 @@ const ToolNotificate = (props) => {
setEndDate
(
end
)
setEndDate
(
end
)
}
}
const
getData
=
async
()
=>
{
const
getData
=
async
(
init
)
=>
{
props
.
showLoading
()
props
.
showLoading
()
const
res
=
await
listTransaction
({
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
,
order_code
:
searchDebount
,
applications
,
applications
,
page_no
:
pageIndex
+
1
,
page_no
:
pageIndex
+
1
,
...
@@ -53,6 +70,8 @@ const ToolNotificate = (props) => {
...
@@ -53,6 +70,8 @@ const ToolNotificate = (props) => {
// gasoline_id: '57dd1a73-d847-4d73-9791-08dc0841e7a9',
// gasoline_id: '57dd1a73-d847-4d73-9791-08dc0841e7a9',
})
})
}
props
.
hideLoading
()
props
.
hideLoading
()
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
data
)
{
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
data
)
{
const
newList
=
res
.
data
.
data
.
data
.
map
((
e
,
i
)
=>
{
const
newList
=
res
.
data
.
data
.
data
.
map
((
e
,
i
)
=>
{
...
@@ -72,8 +91,12 @@ const ToolNotificate = (props) => {
...
@@ -72,8 +91,12 @@ const ToolNotificate = (props) => {
}
}
useEffect
(()
=>
{
useEffect
(()
=>
{
getData
()
getData
(
false
)
},
[
searchDebount
,
pageIndex
,
startDate
,
type
,
merchant
,
store
])
},
[
pageIndex
])
useEffect
(()
=>
{
getData
(
true
)
},
[
searchDebount
,
startDate
,
type
,
merchant
,
store
])
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
merchant
)
{
if
(
merchant
)
{
...
...
src/app/views/product/product/Index.js
View file @
ff0becda
...
@@ -50,16 +50,27 @@ const ToolNotificate = (props) => {
...
@@ -50,16 +50,27 @@ const ToolNotificate = (props) => {
}
}
}
}
const
getData
=
async
()
=>
{
const
getData
=
async
(
init
)
=>
{
props
.
showLoading
()
props
.
showLoading
()
const
res
=
await
getListProduct
({
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
,
code
:
searchDebount
,
page_no
:
pageIndex
+
1
,
page_no
:
pageIndex
+
1
,
page_size
:
pageSize
,
page_size
:
pageSize
,
status
,
status
,
type_id
:
type
,
type_id
:
type
,
})
})
}
props
.
hideLoading
()
props
.
hideLoading
()
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
data
)
{
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
data
)
{
...
@@ -83,8 +94,12 @@ const ToolNotificate = (props) => {
...
@@ -83,8 +94,12 @@ const ToolNotificate = (props) => {
}
}
useEffect
(()
=>
{
useEffect
(()
=>
{
getData
()
getData
(
false
)
},
[
searchDebount
,
pageIndex
,
status
,
type
])
},
[
pageIndex
])
useEffect
(()
=>
{
getData
(
true
)
},
[
searchDebount
,
status
,
type
])
const
removeItem
=
async
(
id
)
=>
{
const
removeItem
=
async
(
id
)
=>
{
props
.
showLoading
()
props
.
showLoading
()
...
...
src/app/views/product/product/Table.js
View file @
ff0becda
...
@@ -133,7 +133,7 @@ function TableList(props) {
...
@@ -133,7 +133,7 @@ function TableList(props) {
width
:
120
,
width
:
120
,
}}
}}
>
>
s
ả
n
ph
ẩ
m
H
à
nh
độ
ng
<
/TableCell
>
<
/TableCell
>
<
/TableRow
>
<
/TableRow
>
<
/TableHead
>
<
/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