feature/IO-3499-React-19 - The great button refactor of 2026
This commit is contained in:
@@ -77,13 +77,7 @@ export function BillDeleteButton({ bill, jobid, callback, insertAuditTrail }) {
|
|||||||
return (
|
return (
|
||||||
<RbacWrapper action="bills:delete" noauth={<></>}>
|
<RbacWrapper action="bills:delete" noauth={<></>}>
|
||||||
<Popconfirm disabled={bill.exported} onConfirm={handleDelete} title={t("bills.labels.deleteconfirm")}>
|
<Popconfirm disabled={bill.exported} onConfirm={handleDelete} title={t("bills.labels.deleteconfirm")}>
|
||||||
<Button
|
<Button icon={<DeleteFilled />} disabled={bill.exported} loading={loading} />
|
||||||
disabled={bill.exported}
|
|
||||||
// onClick={handleDelete}
|
|
||||||
loading={loading}
|
|
||||||
>
|
|
||||||
<DeleteFilled />
|
|
||||||
</Button>
|
|
||||||
</Popconfirm>
|
</Popconfirm>
|
||||||
</RbacWrapper>
|
</RbacWrapper>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ export function BillFormItemsExtendedFormItem({
|
|||||||
if (!value)
|
if (!value)
|
||||||
return (
|
return (
|
||||||
<Button
|
<Button
|
||||||
|
icon={<PlusCircleFilled />}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
const values = form.getFieldsValue("billlineskeys");
|
const values = form.getFieldsValue("billlineskeys");
|
||||||
|
|
||||||
@@ -53,9 +54,7 @@ export function BillFormItemsExtendedFormItem({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
>
|
/>
|
||||||
<PlusCircleFilled />
|
|
||||||
</Button>
|
|
||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -196,6 +195,7 @@ export function BillFormItemsExtendedFormItem({
|
|||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
|
icon={<MinusCircleFilled />}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
const values = form.getFieldsValue("billlineskeys");
|
const values = form.getFieldsValue("billlineskeys");
|
||||||
|
|
||||||
@@ -207,9 +207,7 @@ export function BillFormItemsExtendedFormItem({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
>
|
/>
|
||||||
<MinusCircleFilled />
|
|
||||||
</Button>
|
|
||||||
</Space>
|
</Space>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -564,11 +564,10 @@ export function BillEnterModalLinesComponent({
|
|||||||
{() => (
|
{() => (
|
||||||
<Space wrap>
|
<Space wrap>
|
||||||
<Button
|
<Button
|
||||||
|
icon={<DeleteFilled />}
|
||||||
disabled={disabled || getFieldValue("billlines")[record.fieldKey]?.inventories?.length > 0}
|
disabled={disabled || getFieldValue("billlines")[record.fieldKey]?.inventories?.length > 0}
|
||||||
onClick={() => remove(record.name)}
|
onClick={() => remove(record.name)}
|
||||||
>
|
/>
|
||||||
<DeleteFilled />
|
|
||||||
</Button>
|
|
||||||
|
|
||||||
{Simple_Inventory.treatment === "on" && (
|
{Simple_Inventory.treatment === "on" && (
|
||||||
<BilllineAddInventory
|
<BilllineAddInventory
|
||||||
|
|||||||
@@ -124,11 +124,11 @@ export function BilllineAddInventory({ currentUser, bodyshop, billline, disabled
|
|||||||
return (
|
return (
|
||||||
<Tooltip title={t("inventory.actions.addtoinventory")}>
|
<Tooltip title={t("inventory.actions.addtoinventory")}>
|
||||||
<Button
|
<Button
|
||||||
|
icon={<FileAddFilled />}
|
||||||
loading={loading}
|
loading={loading}
|
||||||
disabled={disabled || billline?.inventories?.length >= billline.quantity}
|
disabled={disabled || billline?.inventories?.length >= billline.quantity}
|
||||||
onClick={addToInventory}
|
onClick={addToInventory}
|
||||||
>
|
>
|
||||||
<FileAddFilled />
|
|
||||||
{billline?.inventories?.length > 0 && <div>({billline?.inventories?.length} in inv)</div>}
|
{billline?.inventories?.length > 0 && <div>({billline?.inventories?.length} in inv)</div>}
|
||||||
</Button>
|
</Button>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|||||||
@@ -84,15 +84,14 @@ export function BillsListTableComponent({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
>
|
icon={<FaTasks />}
|
||||||
<FaTasks />
|
/>
|
||||||
</Button>
|
|
||||||
<BillDeleteButton bill={record} jobid={job.id} />
|
<BillDeleteButton bill={record} jobid={job.id} />
|
||||||
<BillDetailEditReturnComponent
|
<BillDetailEditReturnComponent
|
||||||
data={{ bills_by_pk: { ...record, jobid: job.id, job: job } }}
|
data={{ bills_by_pk: { ...record, jobid: job.id, job: job } }}
|
||||||
disabled={record.is_credit_memo || record.vendorid === bodyshop.inhousevendorid || jobRO}
|
disabled={record.is_credit_memo || record.vendorid === bodyshop.inhousevendorid || jobRO}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{record.isinhouse && (
|
{record.isinhouse && (
|
||||||
<PrintWrapperComponent
|
<PrintWrapperComponent
|
||||||
templateObject={{
|
templateObject={{
|
||||||
@@ -190,9 +189,7 @@ export function BillsListTableComponent({
|
|||||||
title={t("bills.labels.bills")}
|
title={t("bills.labels.bills")}
|
||||||
extra={
|
extra={
|
||||||
<Space wrap>
|
<Space wrap>
|
||||||
<Button onClick={() => refetch()}>
|
<Button onClick={() => refetch()} icon={<SyncOutlined />} />
|
||||||
<SyncOutlined />
|
|
||||||
</Button>
|
|
||||||
{job && job.converted ? (
|
{job && job.converted ? (
|
||||||
<>
|
<>
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
@@ -41,9 +41,7 @@ export default function CABCpvrtCalculator({ disabled, form }) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Popover destroyOnHidden content={popContent} open={visibility} disabled={disabled}>
|
<Popover destroyOnHidden content={popContent} open={visibility} disabled={disabled}>
|
||||||
<Button disabled={disabled} onClick={() => setVisibility(true)}>
|
<Button disabled={disabled} onClick={() => setVisibility(true)} icon={<CalculatorFilled />} />
|
||||||
<CalculatorFilled />
|
|
||||||
</Button>
|
|
||||||
</Popover>
|
</Popover>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -156,9 +156,8 @@ export function ContractsList({ bodyshop, loading, contracts, refetch, total, se
|
|||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
<Button onClick={() => setContractFinderContext()}>{t("contracts.actions.find")}</Button>
|
<Button onClick={() => setContractFinderContext()}>{t("contracts.actions.find")}</Button>
|
||||||
<Button onClick={() => refetch()}>
|
<Button onClick={() => refetch()} icon={<SyncOutlined />} />
|
||||||
<SyncOutlined />
|
|
||||||
</Button>
|
|
||||||
<Input.Search
|
<Input.Search
|
||||||
placeholder={search.searh || t("general.labels.search")}
|
placeholder={search.searh || t("general.labels.search")}
|
||||||
onSearch={(value) => {
|
onSearch={(value) => {
|
||||||
|
|||||||
@@ -255,9 +255,8 @@ export default function CourtesyCarsList({ loading, courtesycars, refetch }) {
|
|||||||
title={t("menus.header.courtesycars")}
|
title={t("menus.header.courtesycars")}
|
||||||
extra={
|
extra={
|
||||||
<Space wrap>
|
<Space wrap>
|
||||||
<Button onClick={() => refetch()}>
|
<Button onClick={() => refetch()} icon={<SyncOutlined />} />
|
||||||
<SyncOutlined />
|
|
||||||
</Button>
|
|
||||||
<Dropdown trigger="click" menu={menu}>
|
<Dropdown trigger="click" menu={menu}>
|
||||||
<Button>{t("general.labels.print")}</Button>
|
<Button>{t("general.labels.print")}</Button>
|
||||||
</Dropdown>
|
</Dropdown>
|
||||||
|
|||||||
@@ -85,13 +85,7 @@ export default function CsiResponseListPaginated({ refetch, loading, responses,
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Card
|
<Card extra={<Button onClick={() => refetch()} icon={<SyncOutlined />} />}>
|
||||||
extra={
|
|
||||||
<Button onClick={() => refetch()}>
|
|
||||||
<SyncOutlined />
|
|
||||||
</Button>
|
|
||||||
}
|
|
||||||
>
|
|
||||||
<Table
|
<Table
|
||||||
loading={loading}
|
loading={loading}
|
||||||
pagination={{ placement: "top", pageSize: pageLimit, current: parseInt(state.page || 1), total: total }}
|
pagination={{ placement: "top", pageSize: pageLimit, current: parseInt(state.page || 1), total: total }}
|
||||||
|
|||||||
@@ -196,9 +196,7 @@ export function DashboardGridComponent({ currentUser }) {
|
|||||||
<PageHeader
|
<PageHeader
|
||||||
extra={
|
extra={
|
||||||
<Space>
|
<Space>
|
||||||
<Button onClick={() => refetch()}>
|
<Button onClick={() => refetch()} icon={<SyncOutlined />} />
|
||||||
<SyncOutlined />
|
|
||||||
</Button>
|
|
||||||
<Dropdown menu={menu} trigger={["click"]}>
|
<Dropdown menu={menu} trigger={["click"]}>
|
||||||
<Button>{t("dashboard.actions.addcomponent")}</Button>
|
<Button>{t("dashboard.actions.addcomponent")}</Button>
|
||||||
</Dropdown>
|
</Dropdown>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { SyncOutlined } from "@ant-design/icons";
|
import { SyncOutlined } from "@ant-design/icons";
|
||||||
import { Button, Card, Form, Input, Table } from "antd";
|
import { Button, Card, Form, Input, Table } from "antd";
|
||||||
import { useEffect, useState, useRef } from "react";
|
import { useEffect, useRef, useState } from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { connect } from "react-redux";
|
import { connect } from "react-redux";
|
||||||
import { createStructuredSelector } from "reselect";
|
import { createStructuredSelector } from "reselect";
|
||||||
@@ -111,9 +111,8 @@ export function DmsAllocationsSummaryAp({ socket, bodyshop, billids, title }) {
|
|||||||
onClick={() => {
|
onClick={() => {
|
||||||
socket.emit("pbs-calculate-allocations-ap", billids, (ack) => setAllocationsSummary(ack));
|
socket.emit("pbs-calculate-allocations-ap", billids, (ack) => setAllocationsSummary(ack));
|
||||||
}}
|
}}
|
||||||
>
|
icon={<SyncOutlined />}
|
||||||
<SyncOutlined />
|
/>
|
||||||
</Button>
|
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Table
|
<Table
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Alert, Button, Card, Table, Typography } from "antd";
|
import { Alert, Button, Card, Table, Typography } from "antd";
|
||||||
import { SyncOutlined } from "@ant-design/icons";
|
import { SyncOutlined } from "@ant-design/icons";
|
||||||
import { useCallback, useEffect, useState, useRef } from "react";
|
import { useCallback, useEffect, useRef, useState } from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { connect } from "react-redux";
|
import { connect } from "react-redux";
|
||||||
import { createStructuredSelector } from "reselect";
|
import { createStructuredSelector } from "reselect";
|
||||||
@@ -110,11 +110,7 @@ export function DmsAllocationsSummary({ mode, socket, bodyshop, jobId, title, on
|
|||||||
return (
|
return (
|
||||||
<Card
|
<Card
|
||||||
title={title}
|
title={title}
|
||||||
extra={
|
extra={<Button onClick={fetchAllocations} aria-label={t("general.actions.refresh")} icon={<SyncOutlined />} />}
|
||||||
<Button onClick={fetchAllocations} aria-label={t("general.actions.refresh")}>
|
|
||||||
<SyncOutlined />
|
|
||||||
</Button>
|
|
||||||
}
|
|
||||||
>
|
>
|
||||||
{bodyshop.pbs_configuration?.disablebillwip && (
|
{bodyshop.pbs_configuration?.disablebillwip && (
|
||||||
<Alert type="warning" title={t("jobs.labels.dms.disablebillwip")} />
|
<Alert type="warning" title={t("jobs.labels.dms.disablebillwip")} />
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Alert, Button, Card, Table, Tabs, Typography } from "antd";
|
import { Alert, Button, Card, Table, Tabs, Typography } from "antd";
|
||||||
import { SyncOutlined } from "@ant-design/icons";
|
import { SyncOutlined } from "@ant-design/icons";
|
||||||
import { useCallback, useEffect, useMemo, useState, useRef } from "react";
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { connect } from "react-redux";
|
import { connect } from "react-redux";
|
||||||
import { createStructuredSelector } from "reselect";
|
import { createStructuredSelector } from "reselect";
|
||||||
@@ -329,11 +329,7 @@ export function RrAllocationsSummary({ socket, bodyshop, jobId, title, onAllocat
|
|||||||
return (
|
return (
|
||||||
<Card
|
<Card
|
||||||
title={title}
|
title={title}
|
||||||
extra={
|
extra={<Button onClick={fetchAllocations} aria-label={t("general.actions.refresh")} icon={<SyncOutlined />} />}
|
||||||
<Button onClick={fetchAllocations} aria-label={t("general.actions.refresh")}>
|
|
||||||
<SyncOutlined />
|
|
||||||
</Button>
|
|
||||||
}
|
|
||||||
>
|
>
|
||||||
{bodyshop.pbs_configuration?.disablebillwip && (
|
{bodyshop.pbs_configuration?.disablebillwip && (
|
||||||
<Alert type="warning" title={t("jobs.labels.dms.disablebillwip")} />
|
<Alert type="warning" title={t("jobs.labels.dms.disablebillwip")} />
|
||||||
|
|||||||
@@ -53,9 +53,7 @@ export default function InventoryLineDelete({ inventoryline, disabled, refetch }
|
|||||||
onConfirm={handleDelete}
|
onConfirm={handleDelete}
|
||||||
title={t("inventory.labels.deleteconfirm")}
|
title={t("inventory.labels.deleteconfirm")}
|
||||||
>
|
>
|
||||||
<Button disabled={disabled || inventoryline.consumedbybillid} loading={loading}>
|
<Button disabled={disabled || inventoryline.consumedbybillid} loading={loading} icon={<DeleteFilled />} />
|
||||||
<DeleteFilled />
|
|
||||||
</Button>
|
|
||||||
</Popconfirm>
|
</Popconfirm>
|
||||||
</RbacWrapper>
|
</RbacWrapper>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -110,9 +110,9 @@ export function JobsList({ refetch, loading, jobs, total, setInventoryUpsertCont
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
>
|
icon={<EditFilled />}
|
||||||
<EditFilled />
|
/>
|
||||||
</Button>
|
|
||||||
<InventoryLineDelete inventoryline={record} refetch={refetch} />
|
<InventoryLineDelete inventoryline={record} refetch={refetch} />
|
||||||
</Space>
|
</Space>
|
||||||
)
|
)
|
||||||
@@ -155,9 +155,9 @@ export function JobsList({ refetch, loading, jobs, total, setInventoryUpsertCont
|
|||||||
context: {}
|
context: {}
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
>
|
icon={<FileAddFilled />}
|
||||||
<FileAddFilled />
|
/>
|
||||||
</Button>
|
|
||||||
<Button
|
<Button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
const updatedSearch = { ...search };
|
const updatedSearch = { ...search };
|
||||||
@@ -172,9 +172,8 @@ export function JobsList({ refetch, loading, jobs, total, setInventoryUpsertCont
|
|||||||
{search.showall ? t("inventory.labels.showavailable") : t("inventory.labels.showall")}
|
{search.showall ? t("inventory.labels.showavailable") : t("inventory.labels.showall")}
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Button onClick={() => refetch()}>
|
<Button onClick={() => refetch()} icon={<SyncOutlined />} />
|
||||||
<SyncOutlined />
|
|
||||||
</Button>
|
|
||||||
<Input.Search
|
<Input.Search
|
||||||
placeholder={search.search || t("general.labels.search")}
|
placeholder={search.search || t("general.labels.search")}
|
||||||
onSearch={(value) => {
|
onSearch={(value) => {
|
||||||
|
|||||||
@@ -61,9 +61,7 @@ export function ScheduleEventNote({ event }) {
|
|||||||
) : (
|
) : (
|
||||||
<Input.TextArea rows={3} value={note} onChange={(e) => setNote(e.target.value)} style={{ maxWidth: "8vw" }} />
|
<Input.TextArea rows={3} value={note} onChange={(e) => setNote(e.target.value)} style={{ maxWidth: "8vw" }} />
|
||||||
)}
|
)}
|
||||||
<Button onClick={toggleEdit} loading={loading}>
|
<Button onClick={toggleEdit} loading={loading} icon={editing ? <SaveFilled /> : <EditFilled />} />
|
||||||
{editing ? <SaveFilled /> : <EditFilled />}
|
|
||||||
</Button>
|
|
||||||
</Space>
|
</Space>
|
||||||
</DataLabel>
|
</DataLabel>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -159,9 +159,8 @@ export function JobAuditTrail({ bodyshop, jobId }) {
|
|||||||
onClick={() => {
|
onClick={() => {
|
||||||
refetch();
|
refetch();
|
||||||
}}
|
}}
|
||||||
>
|
icon={<SyncOutlined />}
|
||||||
<SyncOutlined />
|
/>
|
||||||
</Button>
|
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Table loading={loading} columns={columns} rowKey="id" dataSource={data ? data.audit_trail : []} />
|
<Table loading={loading} columns={columns} rowKey="id" dataSource={data ? data.audit_trail : []} />
|
||||||
|
|||||||
@@ -61,9 +61,12 @@ export default function JobIntakeTemplateList({ templates }) {
|
|||||||
renderItem={(template) => (
|
renderItem={(template) => (
|
||||||
<List.Item
|
<List.Item
|
||||||
actions={[
|
actions={[
|
||||||
<Button key="checkListTemplateButton" loading={loading} onClick={() => renderTemplate(template)}>
|
<Button
|
||||||
<PrinterFilled />
|
key="checkListTemplateButton"
|
||||||
</Button>
|
loading={loading}
|
||||||
|
onClick={() => renderTemplate(template)}
|
||||||
|
icon={<PrinterFilled />}
|
||||||
|
/>
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
<List.Item.Meta
|
<List.Item.Meta
|
||||||
|
|||||||
@@ -395,9 +395,8 @@ export function JobLinesComponent({
|
|||||||
context: { ...record, jobid: job.id }
|
context: { ...record, jobid: job.id }
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
>
|
icon={<EditFilled />}
|
||||||
<EditFilled />
|
/>
|
||||||
</Button>
|
|
||||||
)}
|
)}
|
||||||
<Button
|
<Button
|
||||||
title={t("tasks.buttons.create")}
|
title={t("tasks.buttons.create")}
|
||||||
@@ -409,9 +408,9 @@ export function JobLinesComponent({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
>
|
icon={<FaTasks />}
|
||||||
<FaTasks />
|
/>
|
||||||
</Button>
|
|
||||||
{(record.manual_line || jobIsPrivate) && !technician && (
|
{(record.manual_line || jobIsPrivate) && !technician && (
|
||||||
<Button
|
<Button
|
||||||
disabled={jobRO}
|
disabled={jobRO}
|
||||||
@@ -431,9 +430,8 @@ export function JobLinesComponent({
|
|||||||
await axios.post("/job/totalsssu", { id: job.id });
|
await axios.post("/job/totalsssu", { id: job.id });
|
||||||
if (refetch) refetch();
|
if (refetch) refetch();
|
||||||
}}
|
}}
|
||||||
>
|
icon={<DeleteFilled />}
|
||||||
<DeleteFilled />
|
/>
|
||||||
</Button>
|
|
||||||
)}
|
)}
|
||||||
</Space>
|
</Space>
|
||||||
)
|
)
|
||||||
@@ -542,9 +540,7 @@ export function JobLinesComponent({
|
|||||||
title={t("jobs.labels.estimatelines")}
|
title={t("jobs.labels.estimatelines")}
|
||||||
extra={
|
extra={
|
||||||
<Space wrap>
|
<Space wrap>
|
||||||
<Button onClick={() => refetch()}>
|
<Button onClick={() => refetch()} icon={<SyncOutlined />} />
|
||||||
<SyncOutlined />
|
|
||||||
</Button>
|
|
||||||
|
|
||||||
{/* Bulk Update Location */}
|
{/* Bulk Update Location */}
|
||||||
<Button
|
<Button
|
||||||
@@ -609,8 +605,8 @@ export function JobLinesComponent({
|
|||||||
|
|
||||||
setSelectedLines([]);
|
setSelectedLines([]);
|
||||||
}}
|
}}
|
||||||
|
icon={<HomeOutlined />}
|
||||||
>
|
>
|
||||||
<HomeOutlined />
|
|
||||||
{t("parts.actions.orderinhouse")}
|
{t("parts.actions.orderinhouse")}
|
||||||
{selectedLines.length > 0 && ` (${selectedLines.length})`}
|
{selectedLines.length > 0 && ` (${selectedLines.length})`}
|
||||||
</Button>
|
</Button>
|
||||||
@@ -641,6 +637,7 @@ export function JobLinesComponent({
|
|||||||
|
|
||||||
{!isPartsEntry && (
|
{!isPartsEntry && (
|
||||||
<Button
|
<Button
|
||||||
|
icon={<FilterFilled />}
|
||||||
id="job-lines-filter-parts-only-button"
|
id="job-lines-filter-parts-only-button"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setState((state) => ({
|
setState((state) => ({
|
||||||
@@ -652,7 +649,7 @@ export function JobLinesComponent({
|
|||||||
}));
|
}));
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<FilterFilled /> {t("jobs.actions.filterpartsonly")}
|
{t("jobs.actions.filterpartsonly")}
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|||||||
@@ -187,9 +187,8 @@ export function JobLineConvertToLabor({
|
|||||||
loading={loading}
|
loading={loading}
|
||||||
onClick={handleClick}
|
onClick={handleClick}
|
||||||
{...otherBtnProps}
|
{...otherBtnProps}
|
||||||
>
|
icon={<ClockCircleOutlined />}
|
||||||
<ClockCircleOutlined />
|
/>
|
||||||
</Button>
|
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</Popover>
|
</Popover>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -107,9 +107,8 @@ export function JobPayments({ job, bodyshop, setPaymentContext, setCardPaymentCo
|
|||||||
context: record
|
context: record
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
>
|
icon={<EditFilled />}
|
||||||
<EditFilled />
|
/>
|
||||||
</Button>
|
|
||||||
<PrintWrapperComponent
|
<PrintWrapperComponent
|
||||||
templateObject={{
|
templateObject={{
|
||||||
name: TemplateList("payment").payment_receipt.key,
|
name: TemplateList("payment").payment_receipt.key,
|
||||||
|
|||||||
@@ -11,8 +11,7 @@ export default function JobSyncButton({ job }) {
|
|||||||
};
|
};
|
||||||
if (job?.available_jobs && job?.available_jobs?.length > 0)
|
if (job?.available_jobs && job?.available_jobs?.length > 0)
|
||||||
return (
|
return (
|
||||||
<Button onClick={handleClick}>
|
<Button onClick={handleClick} icon={<SyncOutlined />}>
|
||||||
<SyncOutlined />
|
|
||||||
{t("jobs.actions.sync")}
|
{t("jobs.actions.sync")}
|
||||||
</Button>
|
</Button>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -53,10 +53,8 @@ export function JobsAdminStatus({ insertAuditTrail, bodyshop, job }) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Dropdown menu={statusMenu} trigger={["click"]} key="changestatus">
|
<Dropdown menu={statusMenu} trigger={["click"]} key="changestatus">
|
||||||
<Button shape="round">
|
<Button icon={<DownCircleFilled />} iconPlacement="end" shape="round">
|
||||||
<span>{job.status}</span>
|
<span>{job.status}</span>
|
||||||
|
|
||||||
<DownCircleFilled />
|
|
||||||
</Button>
|
</Button>
|
||||||
</Dropdown>
|
</Dropdown>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -94,11 +94,7 @@ export function JobsAvailableScan({ partnerVersion, refetch }) {
|
|||||||
{
|
{
|
||||||
title: t("general.labels.actions"),
|
title: t("general.labels.actions"),
|
||||||
key: "actions",
|
key: "actions",
|
||||||
render: (text, record) => (
|
render: (text, record) => <Button icon={<DownloadOutlined />} onClick={() => handleImport(record.filepath)} />
|
||||||
<Button onClick={() => handleImport(record.filepath)}>
|
|
||||||
<DownloadOutlined />
|
|
||||||
</Button>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -126,15 +122,14 @@ export function JobsAvailableScan({ partnerVersion, refetch }) {
|
|||||||
extra={
|
extra={
|
||||||
<Space wrap>
|
<Space wrap>
|
||||||
<Button
|
<Button
|
||||||
|
icon={<SyncOutlined />}
|
||||||
loading={loading}
|
loading={loading}
|
||||||
disabled={!partnerVersion}
|
disabled={!partnerVersion}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
scanEstimates();
|
scanEstimates();
|
||||||
}}
|
}}
|
||||||
id="scan-estimates-button"
|
id="scan-estimates-button"
|
||||||
>
|
/>
|
||||||
<SyncOutlined />
|
|
||||||
</Button>
|
|
||||||
|
|
||||||
<Input.Search
|
<Input.Search
|
||||||
placeholder={t("general.labels.search")}
|
placeholder={t("general.labels.search")}
|
||||||
|
|||||||
@@ -135,17 +135,16 @@ export function JobsAvailableComponent({ bodyshop, loading, data, refetch, addJo
|
|||||||
refetch();
|
refetch();
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
>
|
icon={<DeleteFilled />}
|
||||||
<DeleteFilled />
|
/>
|
||||||
</Button>
|
|
||||||
{!isClosed && (
|
{!isClosed && (
|
||||||
<>
|
<>
|
||||||
<Button onClick={() => addJobAsNew(record)} disabled={record.issupplement}>
|
<Button
|
||||||
<PlusCircleFilled />
|
onClick={() => addJobAsNew(record)}
|
||||||
</Button>
|
disabled={record.issupplement}
|
||||||
<Button onClick={() => addJobAsSupp(record)}>
|
icon={<PlusCircleFilled />}
|
||||||
<DownloadOutlined />
|
/>
|
||||||
</Button>
|
<Button onClick={() => addJobAsSupp(record)} icon={<DownloadOutlined />} />
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
{isClosed && <Alert type="error" title={t("jobs.labels.alreadyclosed")}></Alert>}
|
{isClosed && <Alert type="error" title={t("jobs.labels.alreadyclosed")}></Alert>}
|
||||||
@@ -175,9 +174,8 @@ export function JobsAvailableComponent({ bodyshop, loading, data, refetch, addJo
|
|||||||
onClick={() => {
|
onClick={() => {
|
||||||
refetch();
|
refetch();
|
||||||
}}
|
}}
|
||||||
>
|
icon={<SyncOutlined />}
|
||||||
<SyncOutlined />
|
/>
|
||||||
</Button>
|
|
||||||
<Button
|
<Button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
deleteAllAvailableJobs()
|
deleteAllAvailableJobs()
|
||||||
|
|||||||
@@ -96,10 +96,8 @@ export function JobsChangeStatus({ job, bodyshop, jobRO, insertAuditTrail, isPar
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Dropdown menu={statusMenu} trigger={["click"]} key="changestatus" disabled={jobRO || !job.converted}>
|
<Dropdown menu={statusMenu} trigger={["click"]} key="changestatus" disabled={jobRO || !job.converted}>
|
||||||
<Button shape="round">
|
<Button shape="round" icon={<DownCircleFilled />} iconPlacement="end">
|
||||||
<span>{job.status}</span>
|
<span>{job.status}</span>
|
||||||
|
|
||||||
<DownCircleFilled />
|
|
||||||
</Button>
|
</Button>
|
||||||
</Dropdown>
|
</Dropdown>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -56,9 +56,8 @@ export default function JobsCreateVehicleInfoPredefined({ disabled, form }) {
|
|||||||
setOpen(false);
|
setOpen(false);
|
||||||
setSearch("");
|
setSearch("");
|
||||||
}}
|
}}
|
||||||
>
|
icon={<PlusOutlined />}
|
||||||
<PlusOutlined />
|
/>
|
||||||
</Button>
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
]}
|
]}
|
||||||
|
|||||||
@@ -1286,9 +1286,8 @@ export function JobsDetailHeaderActions({
|
|||||||
open={dropdownOpen}
|
open={dropdownOpen}
|
||||||
onOpenChange={handleDropdownOpenChange}
|
onOpenChange={handleDropdownOpenChange}
|
||||||
>
|
>
|
||||||
<Button>
|
<Button icon={<DownCircleFilled />} iconPlacement="end">
|
||||||
<span>{t("general.labels.actions")}</span>
|
<span>{t("general.labels.actions")}</span>
|
||||||
<DownCircleFilled />
|
|
||||||
</Button>
|
</Button>
|
||||||
</Dropdown>
|
</Dropdown>
|
||||||
|
|
||||||
|
|||||||
@@ -128,9 +128,7 @@ function JobsDocumentsComponent({
|
|||||||
<Row gutter={[16, 16]}>
|
<Row gutter={[16, 16]}>
|
||||||
<Col span={24}>
|
<Col span={24}>
|
||||||
<Space wrap>
|
<Space wrap>
|
||||||
<Button onClick={() => refetch && refetch()}>
|
<Button onClick={() => refetch && refetch()} icon={<SyncOutlined />} />
|
||||||
<SyncOutlined />
|
|
||||||
</Button>
|
|
||||||
<JobsDocumentsGallerySelectAllComponent galleryImages={galleryImages} setGalleryImages={setgalleryImages} />
|
<JobsDocumentsGallerySelectAllComponent galleryImages={galleryImages} setGalleryImages={setgalleryImages} />
|
||||||
<JobsDocumentsDownloadButton galleryImages={galleryImages} identifier={downloadIdentifier} />
|
<JobsDocumentsDownloadButton galleryImages={galleryImages} identifier={downloadIdentifier} />
|
||||||
<JobsDocumentsDeleteButton galleryImages={galleryImages} deletionCallback={billsCallback || refetch} />
|
<JobsDocumentsDeleteButton galleryImages={galleryImages} deletionCallback={billsCallback || refetch} />
|
||||||
|
|||||||
@@ -65,9 +65,8 @@ function JobsDocumentsImgproxyComponent({
|
|||||||
//Do the imgproxy refresh too
|
//Do the imgproxy refresh too
|
||||||
fetchThumbnails();
|
fetchThumbnails();
|
||||||
}}
|
}}
|
||||||
>
|
icon={<SyncOutlined />}
|
||||||
<SyncOutlined />
|
/>
|
||||||
</Button>
|
|
||||||
<JobsDocumentsGallerySelectAllComponent galleryImages={galleryImages} setGalleryImages={setGalleryImages} />
|
<JobsDocumentsGallerySelectAllComponent galleryImages={galleryImages} setGalleryImages={setGalleryImages} />
|
||||||
{!billId && (
|
{!billId && (
|
||||||
<JobsDocumentsGalleryReassign galleryImages={galleryImages} callback={fetchThumbnails || refetch} />
|
<JobsDocumentsGalleryReassign galleryImages={galleryImages} callback={fetchThumbnails || refetch} />
|
||||||
|
|||||||
@@ -102,9 +102,8 @@ export function JobsDocumentsLocalGallery({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
icon={<SyncOutlined />}
|
||||||
<SyncOutlined />
|
/>
|
||||||
</Button>
|
|
||||||
<a href={CreateExplorerLinkForJob({ jobid: job.id })}>
|
<a href={CreateExplorerLinkForJob({ jobid: job.id })}>
|
||||||
<Button>{t("documents.labels.openinexplorer")}</Button>
|
<Button>{t("documents.labels.openinexplorer")}</Button>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -179,9 +179,8 @@ export default function JobsFindModalComponent({
|
|||||||
onClick={() => {
|
onClick={() => {
|
||||||
jobsListRefetch();
|
jobsListRefetch();
|
||||||
}}
|
}}
|
||||||
>
|
icon={<SyncOutlined />}
|
||||||
<SyncOutlined />
|
/>
|
||||||
</Button>
|
|
||||||
<Input
|
<Input
|
||||||
value={modalSearch}
|
value={modalSearch}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
|
|||||||
@@ -224,9 +224,7 @@ export function JobsList({ bodyshop, refetch, loading, jobs, total }) {
|
|||||||
</Button>
|
</Button>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
<Button onClick={() => refetch()}>
|
<Button onClick={() => refetch()} icon={<SyncOutlined />} />
|
||||||
<SyncOutlined />
|
|
||||||
</Button>
|
|
||||||
<Input.Search
|
<Input.Search
|
||||||
placeholder={search.search || t("general.labels.search")}
|
placeholder={search.search || t("general.labels.search")}
|
||||||
onSearch={(value) => {
|
onSearch={(value) => {
|
||||||
|
|||||||
@@ -313,9 +313,7 @@ export function JobsList({ bodyshop }) {
|
|||||||
title={t("titles.bc.jobs-active")}
|
title={t("titles.bc.jobs-active")}
|
||||||
extra={
|
extra={
|
||||||
<Space wrap>
|
<Space wrap>
|
||||||
<Button onClick={() => refetch()}>
|
<Button onClick={() => refetch()} icon={<SyncOutlined />} />
|
||||||
<SyncOutlined />
|
|
||||||
</Button>
|
|
||||||
<Input.Search
|
<Input.Search
|
||||||
placeholder={t("general.labels.search")}
|
placeholder={t("general.labels.search")}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
|
|||||||
@@ -121,9 +121,12 @@ export function JobNotesComponent({
|
|||||||
width: 200,
|
width: 200,
|
||||||
render: (text, record) => (
|
render: (text, record) => (
|
||||||
<Space wrap>
|
<Space wrap>
|
||||||
<Button loading={deleteLoading} disabled={record.audit || jobRO} onClick={() => handleNoteDelete(record.id)}>
|
<Button
|
||||||
<DeleteFilled />
|
loading={deleteLoading}
|
||||||
</Button>
|
disabled={record.audit || jobRO}
|
||||||
|
onClick={() => handleNoteDelete(record.id)}
|
||||||
|
icon={<DeleteFilled />}
|
||||||
|
/>
|
||||||
<Button
|
<Button
|
||||||
disabled={record.audit || jobRO}
|
disabled={record.audit || jobRO}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
@@ -135,9 +138,8 @@ export function JobNotesComponent({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
>
|
icon={<EditFilled />}
|
||||||
<EditFilled />
|
/>
|
||||||
</Button>
|
|
||||||
<PrintWrapperComponent
|
<PrintWrapperComponent
|
||||||
templateObject={{
|
templateObject={{
|
||||||
name: Templates.individual_job_note.key,
|
name: Templates.individual_job_note.key,
|
||||||
|
|||||||
@@ -297,9 +297,7 @@ export function JobsReadyList({ bodyshop }) {
|
|||||||
extra={
|
extra={
|
||||||
<Space wrap>
|
<Space wrap>
|
||||||
<span>({readyStatuses && readyStatuses.join(", ")})</span>
|
<span>({readyStatuses && readyStatuses.join(", ")})</span>
|
||||||
<Button onClick={() => refetch()}>
|
<Button onClick={() => refetch()} icon={<SyncOutlined />} />
|
||||||
<SyncOutlined />
|
|
||||||
</Button>
|
|
||||||
<Input.Search
|
<Input.Search
|
||||||
placeholder={t("general.labels.search")}
|
placeholder={t("general.labels.search")}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
|
|||||||
@@ -246,9 +246,8 @@ export function PayrollLaborAllocationsTable({
|
|||||||
setTotals(data);
|
setTotals(data);
|
||||||
refetch();
|
refetch();
|
||||||
}}
|
}}
|
||||||
>
|
icon={<SyncOutlined />}
|
||||||
<SyncOutlined />
|
/>
|
||||||
</Button>
|
|
||||||
</Space>
|
</Space>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -99,9 +99,7 @@ export default function OwnersListComponent({ loading, owners, total, refetch })
|
|||||||
</Button>
|
</Button>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
<Button onClick={() => refetch()}>
|
<Button onClick={() => refetch()} icon={<SyncOutlined />} />
|
||||||
<SyncOutlined />
|
|
||||||
</Button>
|
|
||||||
<Input.Search
|
<Input.Search
|
||||||
placeholder={search.search || t("general.labels.search")}
|
placeholder={search.search || t("general.labels.search")}
|
||||||
onSearch={(value) => {
|
onSearch={(value) => {
|
||||||
|
|||||||
@@ -93,10 +93,7 @@ export function PartDispatchTableComponent({ bodyshop, job, billsQuery }) {
|
|||||||
title={t("parts_dispatch.labels.parts_dispatch")}
|
title={t("parts_dispatch.labels.parts_dispatch")}
|
||||||
extra={
|
extra={
|
||||||
<Space wrap>
|
<Space wrap>
|
||||||
<Button onClick={() => refetch()}>
|
<Button onClick={() => refetch()} icon={<SyncOutlined />} />
|
||||||
<SyncOutlined />
|
|
||||||
</Button>
|
|
||||||
|
|
||||||
<Input.Search
|
<Input.Search
|
||||||
placeholder={t("general.labels.search")}
|
placeholder={t("general.labels.search")}
|
||||||
value={searchText}
|
value={searchText}
|
||||||
|
|||||||
@@ -34,9 +34,7 @@ export default function PartsOrderDeleteLine({ disabled, partsLineId, partsOrder
|
|||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Button disabled={disabled}>
|
<Button disabled={disabled} icon={<DeleteFilled />} />
|
||||||
<DeleteFilled />
|
|
||||||
</Button>
|
|
||||||
</Popconfirm>
|
</Popconfirm>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -150,9 +150,8 @@ export function PartsOrderListTableDrawerComponent({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
>
|
icon={<FaTasks />}
|
||||||
<FaTasks />
|
/>
|
||||||
</Button>
|
|
||||||
)}
|
)}
|
||||||
<Popconfirm
|
<Popconfirm
|
||||||
title={t("parts_orders.labels.confirmdelete")}
|
title={t("parts_orders.labels.confirmdelete")}
|
||||||
@@ -173,9 +172,7 @@ export function PartsOrderListTableDrawerComponent({
|
|||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Button disabled={jobRO}>
|
<Button disabled={jobRO} icon={<DeleteFilled />} />
|
||||||
<DeleteFilled />
|
|
||||||
</Button>
|
|
||||||
</Popconfirm>
|
</Popconfirm>
|
||||||
{!isPartsEntry && (
|
{!isPartsEntry && (
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
@@ -144,6 +144,7 @@ export function PaymentsListPaginated({
|
|||||||
render: (text, record) => (
|
render: (text, record) => (
|
||||||
<Space>
|
<Space>
|
||||||
<Button
|
<Button
|
||||||
|
icon={<EditFilled />}
|
||||||
// disabled={record.exportedat}
|
// disabled={record.exportedat}
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
let apolloResults;
|
let apolloResults;
|
||||||
@@ -174,9 +175,7 @@ export function PaymentsListPaginated({
|
|||||||
context: { ...(apolloResults ? apolloResults : record), refetchRequiresContext: true }
|
context: { ...(apolloResults ? apolloResults : record), refetchRequiresContext: true }
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
>
|
/>
|
||||||
<EditFilled />
|
|
||||||
</Button>
|
|
||||||
<PrintWrapperComponent
|
<PrintWrapperComponent
|
||||||
templateObject={{
|
templateObject={{
|
||||||
name: Templates.payment_receipt.key,
|
name: Templates.payment_receipt.key,
|
||||||
@@ -245,9 +244,7 @@ export function PaymentsListPaginated({
|
|||||||
<Button onClick={() => setCaBcEtfTableContext()}>{t("payments.labels.ca_bc_etf_table")}</Button>
|
<Button onClick={() => setCaBcEtfTableContext()}>{t("payments.labels.ca_bc_etf_table")}</Button>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
<Button onClick={() => refetch()}>
|
<Button onClick={() => refetch()} icon={<SyncOutlined />} />
|
||||||
<SyncOutlined />
|
|
||||||
</Button>
|
|
||||||
<Input.Search
|
<Input.Search
|
||||||
placeholder={search.search || t("general.labels.search")}
|
placeholder={search.search || t("general.labels.search")}
|
||||||
onSearch={(value) => {
|
onSearch={(value) => {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { MailFilled, PrinterFilled } from "@ant-design/icons";
|
import { MailFilled, PrinterFilled } from "@ant-design/icons";
|
||||||
import { Space, Spin } from "antd";
|
import { Button, Space, Spin } from "antd";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { GenerateDocument } from "../../utils/RenderTemplate";
|
import { GenerateDocument } from "../../utils/RenderTemplate";
|
||||||
import { useNotification } from "../../contexts/Notifications/notificationContext.jsx";
|
import { useNotification } from "../../contexts/Notifications/notificationContext.jsx";
|
||||||
@@ -26,16 +26,18 @@ export default function PrintWrapperComponent({
|
|||||||
<Space>
|
<Space>
|
||||||
{children || null}
|
{children || null}
|
||||||
{!emailOnly && (
|
{!emailOnly && (
|
||||||
<PrinterFilled
|
<Button
|
||||||
|
style={{ cursor: disabled ? "not-allowed" : null }}
|
||||||
|
icon={<PrinterFilled />}
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
onClick={() => handlePrint("p")}
|
onClick={() => handlePrint("p")}
|
||||||
style={{ cursor: disabled ? "not-allowed" : null }}
|
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<MailFilled
|
<Button
|
||||||
|
style={{ cursor: disabled ? "not-allowed" : null }}
|
||||||
|
icon={<MailFilled />}
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
onClick={() => handlePrint("e")}
|
onClick={() => handlePrint("e")}
|
||||||
style={{ cursor: disabled ? "not-allowed" : null }}
|
|
||||||
/>
|
/>
|
||||||
{loading && <Spin />}
|
{loading && <Spin />}
|
||||||
</Space>
|
</Space>
|
||||||
|
|||||||
@@ -191,9 +191,7 @@ function ProductionBoardKanbanComponent({ data, bodyshop, refetch, insertAuditTr
|
|||||||
style={{ paddingInline: 0, paddingBlock: 0 }}
|
style={{ paddingInline: 0, paddingBlock: 0 }}
|
||||||
extra={
|
extra={
|
||||||
<Space wrap>
|
<Space wrap>
|
||||||
<Button onClick={() => refetch && refetch()}>
|
<Button onClick={() => refetch && refetch()} icon={<SyncOutlined />} />
|
||||||
<SyncOutlined />
|
|
||||||
</Button>
|
|
||||||
<ProductionBoardFilters filter={filter} setFilter={setFilter} loading={isMoving} />
|
<ProductionBoardFilters filter={filter} setFilter={setFilter} loading={isMoving} />
|
||||||
<ProductionBoardKanbanSettings
|
<ProductionBoardKanbanSettings
|
||||||
parentLoading={setLoading}
|
parentLoading={setLoading}
|
||||||
|
|||||||
@@ -251,9 +251,8 @@ export function ProductionListTable({ loading, data, refetch, bodyshop, technici
|
|||||||
onClick={() => {
|
onClick={() => {
|
||||||
refetch && refetch();
|
refetch && refetch();
|
||||||
}}
|
}}
|
||||||
>
|
icon={<SyncOutlined />}
|
||||||
<SyncOutlined />
|
/>
|
||||||
</Button>
|
|
||||||
<ProductionListColumnsAdd
|
<ProductionListColumnsAdd
|
||||||
columnState={[columns, setColumns]}
|
columnState={[columns, setColumns]}
|
||||||
tableState={state}
|
tableState={state}
|
||||||
|
|||||||
@@ -69,9 +69,8 @@ export default function ProductionSubletsManageComponent({ subletJobLines }) {
|
|||||||
handleSubletMark(s, "complete");
|
handleSubletMark(s, "complete");
|
||||||
}}
|
}}
|
||||||
type={s.sublet_completed ? "primary" : "ghost"}
|
type={s.sublet_completed ? "primary" : "ghost"}
|
||||||
>
|
icon={<CheckCircleFilled style={{ color: s.sublet_completed ? "green" : undefined }} />}
|
||||||
<CheckCircleFilled style={{ color: s.sublet_completed ? "green" : undefined }} />
|
/>,
|
||||||
</Button>,
|
|
||||||
<Button
|
<Button
|
||||||
key="sublet"
|
key="sublet"
|
||||||
loading={loading}
|
loading={loading}
|
||||||
@@ -80,9 +79,8 @@ export default function ProductionSubletsManageComponent({ subletJobLines }) {
|
|||||||
handleSubletMark(s, "ignore");
|
handleSubletMark(s, "ignore");
|
||||||
}}
|
}}
|
||||||
type={s.sublet_ignored ? "primary" : "ghost"}
|
type={s.sublet_ignored ? "primary" : "ghost"}
|
||||||
>
|
icon={<EyeInvisibleFilled style={{ color: s.sublet_ignored ? "tomato" : undefined }} />}
|
||||||
<EyeInvisibleFilled style={{ color: s.sublet_ignored ? "tomato" : undefined }} />
|
/>
|
||||||
</Button>
|
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
<List.Item.Meta title={s.line_desc} />
|
<List.Item.Meta title={s.line_desc} />
|
||||||
|
|||||||
@@ -61,9 +61,8 @@ export default function ScheduleProductionList() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Popover content={content} trigger="click" placement="bottomRight">
|
<Popover content={content} trigger="click" placement="bottomRight">
|
||||||
<Button onClick={() => callQuery({ variables: {} })}>
|
<Button onClick={() => callQuery({ variables: {} })} icon={<DownOutlined />} iconPlacement="end">
|
||||||
{t("appointments.labels.inproduction")}
|
{t("appointments.labels.inproduction")}
|
||||||
<DownOutlined />
|
|
||||||
</Button>
|
</Button>
|
||||||
</Popover>
|
</Popover>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -123,9 +123,8 @@ export default function ScoreboardJobsList() {
|
|||||||
<Card
|
<Card
|
||||||
extra={
|
extra={
|
||||||
<Space align="middle" wrap>
|
<Space align="middle" wrap>
|
||||||
<Button onClick={() => refetch()}>
|
<Button onClick={() => refetch()} icon={<SyncOutlined />} />
|
||||||
<SyncOutlined />
|
|
||||||
</Button>
|
|
||||||
<Typography.Title level={4}>
|
<Typography.Title level={4}>
|
||||||
{t("general.labels.searchresults", { search: state.search })}
|
{t("general.labels.searchresults", { search: state.search })}
|
||||||
</Typography.Title>
|
</Typography.Title>
|
||||||
|
|||||||
@@ -37,9 +37,5 @@ export default function ScoreboardRemoveButton({ scoreboardId }) {
|
|||||||
}
|
}
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
};
|
};
|
||||||
return (
|
return <Button onClick={handleDelete} loading={loading} icon={<DeleteFilled />} />;
|
||||||
<Button onClick={handleDelete} loading={loading}>
|
|
||||||
<DeleteFilled />
|
|
||||||
</Button>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -159,9 +159,8 @@ export function ShopEmployeesFormComponent({ bodyshop }) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
>
|
icon={<DeleteFilled />}
|
||||||
<DeleteFilled />
|
/>
|
||||||
</Button>
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -228,9 +228,8 @@ export function SimplifiedPartsJobsListComponent({
|
|||||||
</Button>
|
</Button>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
<Button onClick={() => refetch()}>
|
<Button onClick={() => refetch()} icon={<SyncOutlined />} />
|
||||||
<SyncOutlined />
|
|
||||||
</Button>
|
|
||||||
<Input.Search
|
<Input.Search
|
||||||
placeholder={search.search || t("general.labels.search")}
|
placeholder={search.search || t("general.labels.search")}
|
||||||
onSearch={(value) => {
|
onSearch={(value) => {
|
||||||
|
|||||||
@@ -334,11 +334,9 @@ function TaskListComponent({
|
|||||||
checked={deleted === "true"}
|
checked={deleted === "true"}
|
||||||
onChange={(value) => handleSwitchChange("deleted", value)}
|
onChange={(value) => handleSwitchChange("deleted", value)}
|
||||||
/>
|
/>
|
||||||
<Button title={t("tasks.buttons.refresh")} onClick={() => refetch()}>
|
<Button title={t("tasks.buttons.refresh")} onClick={() => refetch()} icon={<SyncOutlined />} />
|
||||||
<SyncOutlined />
|
|
||||||
</Button>
|
<Button title={t("tasks.buttons.create")} onClick={handleCreateTask} icon={<PlusCircleFilled />}>
|
||||||
<Button title={t("tasks.buttons.create")} onClick={handleCreateTask}>
|
|
||||||
<PlusCircleFilled />
|
|
||||||
{t("tasks.buttons.create")}
|
{t("tasks.buttons.create")}
|
||||||
</Button>
|
</Button>
|
||||||
</Space>
|
</Space>
|
||||||
|
|||||||
@@ -76,6 +76,7 @@ export function TechLookupJobsDrawer({ bodyshop, setPrintCenterContext }) {
|
|||||||
title={data.jobs_by_pk.ro_number || t("general.labels.na")}
|
title={data.jobs_by_pk.ro_number || t("general.labels.na")}
|
||||||
extra={
|
extra={
|
||||||
<Button
|
<Button
|
||||||
|
icon={<PrinterFilled />}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setPrintCenterContext({
|
setPrintCenterContext({
|
||||||
actions: { refetch: refetch },
|
actions: { refetch: refetch },
|
||||||
@@ -87,7 +88,6 @@ export function TechLookupJobsDrawer({ bodyshop, setPrintCenterContext }) {
|
|||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<PrinterFilled />
|
|
||||||
{t("jobs.actions.printCenter")}
|
{t("jobs.actions.printCenter")}
|
||||||
</Button>
|
</Button>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -158,9 +158,7 @@ export function TechLookupJobsList({ bodyshop }) {
|
|||||||
<Card
|
<Card
|
||||||
extra={
|
extra={
|
||||||
<Space wrap>
|
<Space wrap>
|
||||||
<Button onClick={() => refetch()}>
|
<Button onClick={() => refetch()} icon={<SyncOutlined />} />
|
||||||
<SyncOutlined />
|
|
||||||
</Button>
|
|
||||||
<Input.Search
|
<Input.Search
|
||||||
placeholder={t("general.labels.search")}
|
placeholder={t("general.labels.search")}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
|
|||||||
@@ -95,7 +95,18 @@ export default function TimeTicketCalculatorComponent({
|
|||||||
<Form.Item name="percent">
|
<Form.Item name="percent">
|
||||||
<Space.Compact>
|
<Space.Compact>
|
||||||
<InputNumber min={0} max={100} precision={1} />
|
<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>
|
<span
|
||||||
|
style={{
|
||||||
|
padding: "0 11px",
|
||||||
|
backgroundColor: "#fafafa",
|
||||||
|
border: "1px solid #d9d9d9",
|
||||||
|
borderLeft: 0,
|
||||||
|
display: "flex",
|
||||||
|
alignItems: "center"
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
%
|
||||||
|
</span>
|
||||||
</Space.Compact>
|
</Space.Compact>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Button htmlType="submit">Calculate</Button>
|
<Button htmlType="submit">Calculate</Button>
|
||||||
@@ -112,11 +123,8 @@ export default function TimeTicketCalculatorComponent({
|
|||||||
placement="right"
|
placement="right"
|
||||||
destroyOnHidden
|
destroyOnHidden
|
||||||
>
|
>
|
||||||
<Button onClick={(e) => e.preventDefault()}>
|
<Button onClick={(e) => e.preventDefault()} icon={<DownOutlined />} iconPlacement="end">
|
||||||
<Space>
|
Draw Calculator
|
||||||
Draw Calculator
|
|
||||||
<DownOutlined />
|
|
||||||
</Space>
|
|
||||||
</Button>
|
</Button>
|
||||||
</Popover>
|
</Popover>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -322,9 +322,8 @@ export function TimeTicketList({
|
|||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
refetch();
|
refetch();
|
||||||
}}
|
}}
|
||||||
>
|
icon={<SyncOutlined />}
|
||||||
<SyncOutlined />
|
/>
|
||||||
</Button>
|
|
||||||
</Space>
|
</Space>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -176,9 +176,7 @@ export function TtApprovalsListComponent({
|
|||||||
completedCallback={setSelectedTickets}
|
completedCallback={setSelectedTickets}
|
||||||
refetch={refetch}
|
refetch={refetch}
|
||||||
/>
|
/>
|
||||||
<Button onClick={() => refetch()}>
|
<Button onClick={() => refetch()} icon={<SyncOutlined />} />
|
||||||
<SyncOutlined />
|
|
||||||
</Button>
|
|
||||||
</Space>
|
</Space>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -91,9 +91,7 @@ export default function VehiclesListComponent({ loading, vehicles, total, refetc
|
|||||||
</Button>
|
</Button>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
<Button onClick={() => refetch()}>
|
<Button onClick={() => refetch()} icon={<SyncOutlined />} />
|
||||||
<SyncOutlined />
|
|
||||||
</Button>
|
|
||||||
<Input.Search
|
<Input.Search
|
||||||
placeholder={search.search || t("general.labels.search")}
|
placeholder={search.search || t("general.labels.search")}
|
||||||
onSearch={(value) => {
|
onSearch={(value) => {
|
||||||
|
|||||||
@@ -73,9 +73,7 @@ export default function VendorsListComponent({ handleNewVendor, loading, handleO
|
|||||||
extra={
|
extra={
|
||||||
<Space wrap>
|
<Space wrap>
|
||||||
<Button onClick={handleNewVendor}>{t("vendors.actions.new")}</Button>
|
<Button onClick={handleNewVendor}>{t("vendors.actions.new")}</Button>
|
||||||
<Button onClick={() => refetch()}>
|
<Button onClick={() => refetch()} icon={<SyncOutlined />} />
|
||||||
<SyncOutlined />
|
|
||||||
</Button>
|
|
||||||
<Input.Search
|
<Input.Search
|
||||||
placeholder={t("general.labels.search")}
|
placeholder={t("general.labels.search")}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
|
|||||||
@@ -105,9 +105,7 @@ export function BillsListPage({ loading, data, refetch, total, setBillEnterConte
|
|||||||
render: (text, record) => (
|
render: (text, record) => (
|
||||||
<Space wrap>
|
<Space wrap>
|
||||||
<Link to={`/manage/bills?billid=${record.id}`}>
|
<Link to={`/manage/bills?billid=${record.id}`}>
|
||||||
<Button>
|
<Button icon={<EditFilled />} />
|
||||||
<EditFilled />
|
|
||||||
</Button>
|
|
||||||
</Link>
|
</Link>
|
||||||
{
|
{
|
||||||
// <Button
|
// <Button
|
||||||
@@ -204,9 +202,7 @@ export function BillsListPage({ loading, data, refetch, total, setBillEnterConte
|
|||||||
</Button>
|
</Button>
|
||||||
</Space>
|
</Space>
|
||||||
)}
|
)}
|
||||||
<Button onClick={() => refetch()}>
|
<Button onClick={() => refetch()} icon={<SyncOutlined />} />
|
||||||
<SyncOutlined />
|
|
||||||
</Button>
|
|
||||||
<Button
|
<Button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setBillEnterContext({
|
setBillEnterContext({
|
||||||
|
|||||||
@@ -174,9 +174,7 @@ export function ExportLogsPageComponent() {
|
|||||||
</Button>
|
</Button>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
<Button onClick={() => refetch()}>
|
<Button onClick={() => refetch()} icon={<SyncOutlined />} />
|
||||||
<SyncOutlined />
|
|
||||||
</Button>
|
|
||||||
<Input.Search
|
<Input.Search
|
||||||
placeholder={searchParams.search || t("general.labels.search")}
|
placeholder={searchParams.search || t("general.labels.search")}
|
||||||
onSearch={(value) => {
|
onSearch={(value) => {
|
||||||
|
|||||||
@@ -271,17 +271,18 @@ export function JobsDetailPage({
|
|||||||
const menuExtra = (
|
const menuExtra = (
|
||||||
<Space wrap>
|
<Space wrap>
|
||||||
<Button
|
<Button
|
||||||
|
icon={<SyncOutlined />}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
refetch();
|
refetch();
|
||||||
}}
|
}}
|
||||||
key="refresh"
|
key="refresh"
|
||||||
>
|
>
|
||||||
<SyncOutlined />
|
|
||||||
{t("general.labels.refresh")}
|
{t("general.labels.refresh")}
|
||||||
</Button>
|
</Button>
|
||||||
<JobsChangeStatus job={job} />
|
<JobsChangeStatus job={job} />
|
||||||
<JobSyncButton job={job} />
|
<JobSyncButton job={job} />
|
||||||
<Button
|
<Button
|
||||||
|
icon={<PrinterFilled />}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setPrintCenterContext({
|
setPrintCenterContext({
|
||||||
actions: { refetch: refetch },
|
actions: { refetch: refetch },
|
||||||
@@ -294,7 +295,6 @@ export function JobsDetailPage({
|
|||||||
}}
|
}}
|
||||||
key="printing"
|
key="printing"
|
||||||
>
|
>
|
||||||
<PrinterFilled />
|
|
||||||
{t("jobs.actions.printCenter")}
|
{t("jobs.actions.printCenter")}
|
||||||
</Button>
|
</Button>
|
||||||
<JobsConvertButton job={job} refetch={refetch} parentFormIsFieldsTouched={form.isFieldsTouched} />
|
<JobsConvertButton job={job} refetch={refetch} parentFormIsFieldsTouched={form.isFieldsTouched} />
|
||||||
|
|||||||
@@ -159,9 +159,7 @@ export function PhonebookPageComponent({ bodyshop, authLevel }) {
|
|||||||
<Button disabled={hasNoAccess} onClick={handleNewPhonebook}>
|
<Button disabled={hasNoAccess} onClick={handleNewPhonebook}>
|
||||||
{t("phonebook.actions.new")}
|
{t("phonebook.actions.new")}
|
||||||
</Button>
|
</Button>
|
||||||
<Button onClick={() => refetch()}>
|
<Button onClick={() => refetch()} icon={<SyncOutlined />} />
|
||||||
<SyncOutlined />
|
|
||||||
</Button>
|
|
||||||
<Input.Search
|
<Input.Search
|
||||||
placeholder={searchParams.search || t("general.labels.search")}
|
placeholder={searchParams.search || t("general.labels.search")}
|
||||||
onSearch={(value) => {
|
onSearch={(value) => {
|
||||||
|
|||||||
@@ -94,18 +94,19 @@ export function SimplifiedPartsJobDetailComponent({ setPrintCenterContext, jobRO
|
|||||||
const menuExtra = (
|
const menuExtra = (
|
||||||
<Space wrap>
|
<Space wrap>
|
||||||
<Button
|
<Button
|
||||||
|
icon={<SyncOutlined />}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
refetch();
|
refetch();
|
||||||
}}
|
}}
|
||||||
key="refresh"
|
key="refresh"
|
||||||
>
|
>
|
||||||
<SyncOutlined />
|
|
||||||
{t("general.labels.refresh")}
|
{t("general.labels.refresh")}
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<JobsChangeStatus job={job} />
|
<JobsChangeStatus job={job} />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
|
icon={<PrinterFilled />}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setPrintCenterContext({
|
setPrintCenterContext({
|
||||||
actions: { refetch: refetch },
|
actions: { refetch: refetch },
|
||||||
@@ -118,7 +119,6 @@ export function SimplifiedPartsJobDetailComponent({ setPrintCenterContext, jobRO
|
|||||||
}}
|
}}
|
||||||
key="printing"
|
key="printing"
|
||||||
>
|
>
|
||||||
<PrinterFilled />
|
|
||||||
{t("jobs.actions.printCenter")}
|
{t("jobs.actions.printCenter")}
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
|
|||||||
@@ -176,9 +176,7 @@ export function TechAssignedProdJobs({ setTimeTicketTaskContext, technician, bod
|
|||||||
<Card
|
<Card
|
||||||
extra={
|
extra={
|
||||||
<Space wrap>
|
<Space wrap>
|
||||||
<Button onClick={() => refetch()}>
|
<Button onClick={() => refetch()} icon={<SyncOutlined />} />
|
||||||
<SyncOutlined />
|
|
||||||
</Button>
|
|
||||||
<Input.Search
|
<Input.Search
|
||||||
placeholder={t("general.labels.search")}
|
placeholder={t("general.labels.search")}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
|
|||||||
@@ -104,9 +104,7 @@ export function TechDispatchedParts({ technician, bodyshop }) {
|
|||||||
<Card
|
<Card
|
||||||
extra={
|
extra={
|
||||||
<Space wrap>
|
<Space wrap>
|
||||||
<Button onClick={() => refetch()}>
|
<Button onClick={() => refetch()} icon={<SyncOutlined />} />
|
||||||
<SyncOutlined />
|
|
||||||
</Button>
|
|
||||||
</Space>
|
</Space>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user