IO-1023 receive parts modal updates.

This commit is contained in:
Patrick Fic
2021-05-10 13:44:08 -07:00
parent 29c280c852
commit 23a9b3605f
4 changed files with 67 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
import { DeleteFilled } from "@ant-design/icons";
import { Form, Input, Select, Typography } from "antd";
import { Form, Input, InputNumber, Select, Typography } from "antd";
import React from "react";
import { useTranslation } from "react-i18next";
import { connect } from "react-redux";
@@ -58,6 +58,13 @@ export function PartsReceiveModalComponent({ bodyshop, form }) {
>
<Input />
</Form.Item>
<Form.Item
style={{ display: "none" }}
key={`${index}id`}
name={[field.name, "id"]}
>
<Input />
</Form.Item>
<LayoutFormRow grow style={{ flex: 1 }}>
<Form.Item
label={t("parts_orders.fields.line_desc")}
@@ -85,6 +92,13 @@ export function PartsReceiveModalComponent({ bodyshop, form }) {
))}
</Select>
</Form.Item>
<Form.Item
label={t("parts_orders.fields.quantity")}
key={`${index}quantity`}
name={[field.name, "quantity"]}
>
<InputNumber min={0} />
</Form.Item>
</LayoutFormRow>
<DeleteFilled
style={{ margin: "1rem" }}