fix: key top up supplier
This commit is contained in:
parent
f120728365
commit
e3d5d81277
|
@ -42,7 +42,7 @@ export const SupplierComponent = observer((props) => {
|
||||||
store.supplier.code = data.code;
|
store.supplier.code = data.code;
|
||||||
console.log(data.code, "isi data");
|
console.log(data.code, "isi data");
|
||||||
form.setFieldsValue({
|
form.setFieldsValue({
|
||||||
code: data.code,
|
supplier: data.code,
|
||||||
});
|
});
|
||||||
store.supplier.visibleModalTransaction = true;
|
store.supplier.visibleModalTransaction = true;
|
||||||
};
|
};
|
||||||
|
@ -169,6 +169,7 @@ export const SupplierComponent = observer((props) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleSubmitTransaction = async (data) => {
|
const handleSubmitTransaction = async (data) => {
|
||||||
|
console.log(data, ':)')
|
||||||
try {
|
try {
|
||||||
modalLoader.setLoading(true);
|
modalLoader.setLoading(true);
|
||||||
const response = await store.supplier.createTransaction(data);
|
const response = await store.supplier.createTransaction(data);
|
||||||
|
@ -467,7 +468,7 @@ export const SupplierComponent = observer((props) => {
|
||||||
layout="vertical"
|
layout="vertical"
|
||||||
>
|
>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="code"
|
name="supplier"
|
||||||
label="Supplier"
|
label="Supplier"
|
||||||
rules={[{ required: true, message: "Please input supplier!" }]}
|
rules={[{ required: true, message: "Please input supplier!" }]}
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user