Commit e0158a96 by tdgiang

update code

parent a4d2e6ea
...@@ -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)
...@@ -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`,
} }
...@@ -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()
......
...@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment