Commit e0158a96 by tdgiang

update code

parent a4d2e6ea
......@@ -114,3 +114,13 @@ export const dropdownPaymentType = async (body) =>
GetData(url.dropdownPaymentType, body)
.then((res) => res)
.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 {
dropdownPaymentType: `${root}/dropdown/paymentType`,
dropdownAllStore: `${root}/dropdown/getAllStore`,
dropdownCustomberByMerchant: `${root}/dropdown/customerdebt`,
dropdownVehicleByCustomer: `${root}/dropdown/Vehicle`,
}
......@@ -47,7 +47,7 @@ const SimpleForm = (props) => {
const res = await createSupplier({
...newValue,
type: 0,
status: 1,
status: 2,
})
console.log(res)
props.hideLoading()
......
......@@ -113,12 +113,12 @@ function CustomerView(props) {
{
name: 'Đang đối soát',
value: 2,
id: 3,
id: 2,
},
{
name: 'Đã đối soát',
value: 3,
id: 4,
id: 3,
},
].map((e) => (
<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