合并代码
This commit is contained in:
@ -50,6 +50,8 @@ const InvoiceFormModal: React.FC<props> = ({
|
||||
...data,
|
||||
id: data.id ? data.id : null,
|
||||
};
|
||||
console.log(fields);
|
||||
|
||||
form.setFieldsValue(fields);
|
||||
setViewData(fields);
|
||||
}
|
||||
@ -68,7 +70,6 @@ const InvoiceFormModal: React.FC<props> = ({
|
||||
...values,
|
||||
"supplierId": "9c12e8ea-a681-4184-81ba-5fa276299a00",
|
||||
};
|
||||
|
||||
if (!values.id) {
|
||||
bankAdd(payload).then((res) => {
|
||||
if (res.code == 200) {
|
||||
@ -183,6 +184,9 @@ const InvoiceFormModal: React.FC<props> = ({
|
||||
<Input />
|
||||
</Form.Item>
|
||||
</Col>
|
||||
<Form.Item name="id" noStyle>
|
||||
<Input type="hidden" />
|
||||
</Form.Item>
|
||||
</Row>
|
||||
</Form>
|
||||
)}
|
||||
|
Reference in New Issue
Block a user