Minor Changes.
This commit is contained in:
@@ -431,7 +431,12 @@ export function JobLinesComponent({
|
|||||||
</Space>
|
</Space>
|
||||||
</Tag>
|
</Tag>
|
||||||
)}
|
)}
|
||||||
<JobLineDispatchButton selectedLines={selectedLines} setSelectedLines={setSelectedLines} job={job} />
|
<JobLineDispatchButton
|
||||||
|
selectedLines={selectedLines}
|
||||||
|
setSelectedLines={setSelectedLines}
|
||||||
|
job={job}
|
||||||
|
disabled={technician}
|
||||||
|
/>
|
||||||
{Enhanced_Payroll.treatment === "on" && (
|
{Enhanced_Payroll.treatment === "on" && (
|
||||||
<JobLineBulkAssignComponent selectedLines={selectedLines} setSelectedLines={setSelectedLines} job={job} />
|
<JobLineBulkAssignComponent selectedLines={selectedLines} setSelectedLines={setSelectedLines} job={job} />
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -224,7 +224,7 @@ export function JobLifecycleComponent({ job, statuses, ...rest }) {
|
|||||||
<span style={{ fontWeight: "bold" }}>
|
<span style={{ fontWeight: "bold" }}>
|
||||||
{t("job_lifecycle.content.current_status_accumulated_time")} (
|
{t("job_lifecycle.content.current_status_accumulated_time")} (
|
||||||
{lifecycleData.lifecycle[0].value}):
|
{lifecycleData.lifecycle[0].value}):
|
||||||
</span>{" "}
|
</span>
|
||||||
{lifecycleData.durations.totalCurrentStatusDuration.humanReadable}
|
{lifecycleData.durations.totalCurrentStatusDuration.humanReadable}
|
||||||
</li>
|
</li>
|
||||||
)}
|
)}
|
||||||
@@ -250,6 +250,7 @@ export function JobLifecycleComponent({ job, statuses, ...rest }) {
|
|||||||
}}
|
}}
|
||||||
columns={columns}
|
columns={columns}
|
||||||
dataSource={lifecycleData.lifecycle}
|
dataSource={lifecycleData.lifecycle}
|
||||||
|
rowKey="start"
|
||||||
/>
|
/>
|
||||||
</Card>
|
</Card>
|
||||||
</Space>
|
</Space>
|
||||||
|
|||||||
@@ -29,7 +29,8 @@ export function JobLineDispatchButton({
|
|||||||
bodyshop,
|
bodyshop,
|
||||||
jobRO,
|
jobRO,
|
||||||
job,
|
job,
|
||||||
currentUser
|
currentUser,
|
||||||
|
disabled
|
||||||
}) {
|
}) {
|
||||||
const [visible, setVisible] = useState(false);
|
const [visible, setVisible] = useState(false);
|
||||||
const [loading, setLoading] = useState(false);
|
const [loading, setLoading] = useState(false);
|
||||||
@@ -137,7 +138,7 @@ export function JobLineDispatchButton({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Popover open={visible} content={popMenu}>
|
<Popover open={visible} content={popMenu}>
|
||||||
<Button disabled={selectedLines.length === 0 || jobRO} loading={loading} onClick={() => setVisible(true)}>
|
<Button disabled={selectedLines.length === 0 || jobRO || disabled} loading={loading} onClick={() => setVisible(true)}>
|
||||||
{t("joblines.actions.dispatchparts", { count: selectedLines.length })}
|
{t("joblines.actions.dispatchparts", { count: selectedLines.length })}
|
||||||
</Button>
|
</Button>
|
||||||
</Popover>
|
</Popover>
|
||||||
|
|||||||
@@ -306,7 +306,7 @@ export function PartsQueueListComponent({ bodyshop }) {
|
|||||||
onRow={(record, rowIndex) => {
|
onRow={(record, rowIndex) => {
|
||||||
return {
|
return {
|
||||||
onClick: (event) => {
|
onClick: (event) => {
|
||||||
handleOnRowClick(record);
|
// handleOnRowClick(record);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user