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