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
e0158a96
Commit
e0158a96
authored
Oct 11, 2024
by
tdgiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update code
parent
a4d2e6ea
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
3 deletions
+15
-3
dropdown.js
src/app/apis/Functions/dropdown.js
+10
-0
url.js
src/app/apis/url.js
+2
-0
Create.js
src/app/views/PaymentSupplier/Create.js
+1
-1
View.js
src/app/views/Reconciliation/Sheet/View.js
+2
-2
No files found.
src/app/apis/Functions/dropdown.js
View file @
e0158a96
...
@@ -114,3 +114,13 @@ export const dropdownPaymentType = async (body) =>
...
@@ -114,3 +114,13 @@ export const dropdownPaymentType = async (body) =>
GetData
(
url
.
dropdownPaymentType
,
body
)
GetData
(
url
.
dropdownPaymentType
,
body
)
.
then
((
res
)
=>
res
)
.
then
((
res
)
=>
res
)
.
catch
((
err
)
=>
null
)
.
catch
((
err
)
=>
null
)
export
const
dropdownCustomberByMerchant
=
async
(
id
)
=>
GetData
(
`
${
url
.
dropdownCustomberByMerchant
}
/
${
id
}
`
,
{})
.
then
((
res
)
=>
res
)
.
catch
((
err
)
=>
null
)
export
const
dropdownVehicleByCustomer
=
async
(
id
)
=>
GetData
(
`
${
url
.
dropdownVehicleByCustomer
}
/
${
id
}
`
,
{})
.
then
((
res
)
=>
res
)
.
catch
((
err
)
=>
null
)
src/app/apis/url.js
View file @
e0158a96
...
@@ -195,4 +195,6 @@ export default {
...
@@ -195,4 +195,6 @@ export default {
dropdownPaymentType
:
`
${
root
}
/dropdown/paymentType`
,
dropdownPaymentType
:
`
${
root
}
/dropdown/paymentType`
,
dropdownAllStore
:
`
${
root
}
/dropdown/getAllStore`
,
dropdownAllStore
:
`
${
root
}
/dropdown/getAllStore`
,
dropdownCustomberByMerchant
:
`
${
root
}
/dropdown/customerdebt`
,
dropdownVehicleByCustomer
:
`
${
root
}
/dropdown/Vehicle`
,
}
}
src/app/views/PaymentSupplier/Create.js
View file @
e0158a96
...
@@ -47,7 +47,7 @@ const SimpleForm = (props) => {
...
@@ -47,7 +47,7 @@ const SimpleForm = (props) => {
const
res
=
await
createSupplier
({
const
res
=
await
createSupplier
({
...
newValue
,
...
newValue
,
type
:
0
,
type
:
0
,
status
:
1
,
status
:
2
,
})
})
console
.
log
(
res
)
console
.
log
(
res
)
props
.
hideLoading
()
props
.
hideLoading
()
...
...
src/app/views/Reconciliation/Sheet/View.js
View file @
e0158a96
...
@@ -113,12 +113,12 @@ function CustomerView(props) {
...
@@ -113,12 +113,12 @@ function CustomerView(props) {
{
{
name
:
'Đang đối soát'
,
name
:
'Đang đối soát'
,
value
:
2
,
value
:
2
,
id
:
3
,
id
:
2
,
},
},
{
{
name
:
'Đã đối soát'
,
name
:
'Đã đối soát'
,
value
:
3
,
value
:
3
,
id
:
4
,
id
:
3
,
},
},
].
map
((
e
)
=>
(
].
map
((
e
)
=>
(
<
MenuItem
value
=
{
e
.
id
}
>
{
e
.
name
}
<
/MenuItem
>
<
MenuItem
value
=
{
e
.
id
}
>
{
e
.
name
}
<
/MenuItem
>
...
...
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