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
abd2af98
Commit
abd2af98
authored
Apr 26, 2024
by
tdgiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update code
parent
cafaf461
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
25 additions
and
11 deletions
+25
-11
url.js
src/app/apis/url.js
+3
-0
CreateFountain.jsx
src/app/components/dialog/CreateFountain.jsx
+10
-5
View.js
src/app/views/Company/Employee/View.js
+1
-1
Create.js
src/app/views/GasStation/Create.js
+4
-2
Update.js
src/app/views/GasStation/Update.js
+3
-1
Update.js
src/app/views/Merchant/Update.js
+3
-1
View.js
src/app/views/Merchant/View.js
+1
-1
No files found.
src/app/apis/url.js
View file @
abd2af98
...
...
@@ -104,6 +104,9 @@ export default {
listRequest
:
`
${
root
}
/customerCare/list`
,
updateStatusRequest
:
`
${
root
}
/customerCare/changeStatus`
,
detailCustomerCare
:
`
${
root
}
/customerCare`
,
//dropdown
dropdownFuntions
:
`
${
root
}
/dropdown/function`
,
dropdownPermission
:
`
${
root
}
/function/getFunctionTree`
,
...
...
src/app/components/dialog/CreateFountain.jsx
View file @
abd2af98
...
...
@@ -99,19 +99,24 @@ export default function FormDialog({ onCreate }) {
}
const
handleSubmit
=
async
(
value
)
=>
{
if
(
state
?.
product_id
&&
state
?.
name
?.
trim
()
&&
state
?.
code
?.
trim
()){
let
index
=
listProduct
.
findIndex
(
e
=>
e
.
id
==
state
.
product_id
)
if
(
index
!=-
1
){
console
.
log
(
listProduct
[
index
])
console
.
log
(
"listProduct"
,
listProduct
)
console
.
log
(
'state'
,
state
)
onCreate
({...
state
,
type
,
type_name
:
listProduct
[
index
].
type_name
,
product_name
:
listProduct
[
index
].
product_name
})
setOpen
(
false
)
setState
({})
setType
()
}
}
else
{
toast
.
warning
(
'Bạn chưa nhập đầy đủ thông tin'
,
{
theme
:
'colored'
,
})
}
}
...
...
src/app/views/Company/Employee/View.js
View file @
abd2af98
...
...
@@ -77,7 +77,7 @@ function CustomerView(props) {
<
TextField
variant
=
"outlined"
className
=
"w-full"
label
=
"
Tên thành viên
"
label
=
"
Nhập từ khoá
"
onChange
=
{(
e
)
=>
{
const
text
=
e
.
target
.
value
setTimeout
(()
=>
{
...
...
src/app/views/GasStation/Create.js
View file @
abd2af98
...
...
@@ -105,7 +105,7 @@ const SimpleForm = (props) => {
}
const
onCreateField
=
(
value
)
=>
{
if
(
value
)
{
if
(
value
&&
value
.
trim
()
)
{
console
.
log
(
'value'
,
value
)
if
(
listField
.
findIndex
(
...
...
@@ -722,7 +722,9 @@ const SimpleForm = (props) => {
}}
color
=
"inherit"
variant
=
"contained"
onClick
=
{()
=>
{}}
onClick
=
{()
=>
{
history
.
goBack
()
}}
>
<
span
className
=
"capitalize"
>
Quay
l
ạ
i
<
/span
>
<
/Button
>
...
...
src/app/views/GasStation/Update.js
View file @
abd2af98
...
...
@@ -798,7 +798,9 @@ const SimpleForm = (props) => {
}}
color
=
"inherit"
variant
=
"contained"
onClick
=
{()
=>
{}}
onClick
=
{()
=>
{
history
.
goBack
()
}}
>
<
span
className
=
"capitalize"
>
Quay
l
ạ
i
<
/span
>
<
/Button
>
...
...
src/app/views/Merchant/Update.js
View file @
abd2af98
...
...
@@ -643,7 +643,9 @@ const SimpleForm = (props) => {
}}
color
=
"inherit"
variant
=
"contained"
onClick
=
{()
=>
{}}
onClick
=
{()
=>
{
history
.
goBack
()
}}
>
<
span
className
=
"capitalize"
>
Quay
l
ạ
i
<
/span
>
<
/Button
>
...
...
src/app/views/Merchant/View.js
View file @
abd2af98
...
...
@@ -77,7 +77,7 @@ function CustomerView(props) {
<
TextField
variant
=
"outlined"
className
=
"w-full"
label
=
"
Tên pháp nhân
"
label
=
"
Nhập từ khoá
"
onChange
=
{(
e
)
=>
{
const
text
=
e
.
target
.
value
setTimeout
(()
=>
{
...
...
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