feature/IO-3499-React-19 checkpoint
This commit is contained in:
@@ -34,13 +34,13 @@ export default function PartsOrderModalPriceChange({ form, field }) {
|
|||||||
{
|
{
|
||||||
key: "custom",
|
key: "custom",
|
||||||
label: (
|
label: (
|
||||||
<InputNumber
|
<Space.Compact>
|
||||||
onClick={(e) => e.stopPropagation()}
|
<InputNumber
|
||||||
addonAfter="%"
|
onClick={(e) => e.stopPropagation()}
|
||||||
onKeyUp={(e) => {
|
onKeyUp={(e) => {
|
||||||
if (e.key === "Enter") {
|
if (e.key === "Enter") {
|
||||||
const values = form.getFieldsValue();
|
const values = form.getFieldsValue();
|
||||||
const { parts_order_lines } = values;
|
const { parts_order_lines } = values;
|
||||||
|
|
||||||
form.setFieldsValue({
|
form.setFieldsValue({
|
||||||
parts_order_lines: {
|
parts_order_lines: {
|
||||||
@@ -56,10 +56,12 @@ export default function PartsOrderModalPriceChange({ form, field }) {
|
|||||||
});
|
});
|
||||||
e.target.value = 0;
|
e.target.value = 0;
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
min={0}
|
min={0}
|
||||||
max={100}
|
max={100}
|
||||||
/>
|
/>
|
||||||
|
<span style={{ padding: "0 11px", backgroundColor: "#fafafa", border: "1px solid #d9d9d9", borderLeft: 0 }}>%</span>
|
||||||
|
</Space.Compact>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -199,7 +199,10 @@ export function PartsOrderModalComponent({
|
|||||||
key={`${index}act_price`}
|
key={`${index}act_price`}
|
||||||
name={[field.name, "act_price"]}
|
name={[field.name, "act_price"]}
|
||||||
>
|
>
|
||||||
<CurrencyInput addonBefore={<PartsOrderModalPriceChange form={form} field={field} />} />
|
<Space.Compact style={{ width: "100%" }}>
|
||||||
|
<PartsOrderModalPriceChange form={form} field={field} />
|
||||||
|
<CurrencyInput style={{ flex: 1 }} />
|
||||||
|
</Space.Compact>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
{isReturn && (
|
{isReturn && (
|
||||||
<Form.Item
|
<Form.Item
|
||||||
|
|||||||
@@ -93,7 +93,10 @@ export default function TimeTicketCalculatorComponent({
|
|||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|
||||||
<Form.Item name="percent">
|
<Form.Item name="percent">
|
||||||
<InputNumber min={0} max={100} precision={1} addonAfter="%" />
|
<Space.Compact>
|
||||||
|
<InputNumber min={0} max={100} precision={1} />
|
||||||
|
<span style={{ padding: "0 11px", backgroundColor: "#fafafa", border: "1px solid #d9d9d9", borderLeft: 0, display: "flex", alignItems: "center" }}>%</span>
|
||||||
|
</Space.Compact>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Button htmlType="submit">Calculate</Button>
|
<Button htmlType="submit">Calculate</Button>
|
||||||
</Form>
|
</Form>
|
||||||
|
|||||||
@@ -96,7 +96,10 @@ export function TimeTicketListTeamPay({ bodyshop, context }) {
|
|||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|
||||||
<Form.Item name="percent">
|
<Form.Item name="percent">
|
||||||
<InputNumber min={0} max={100} precision={1} addonAfter="%" />
|
<Space.Compact>
|
||||||
|
<InputNumber min={0} max={100} precision={1} />
|
||||||
|
<span style={{ padding: "0 11px", backgroundColor: "#fafafa", border: "1px solid #d9d9d9", borderLeft: 0, display: "flex", alignItems: "center" }}>%</span>
|
||||||
|
</Space.Compact>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</LayoutFormRow>
|
</LayoutFormRow>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user