IO-3637 DMS ID Production Board Column
Signed-off-by: Allan Carr <allan@imexsystems.ca>
This commit is contained in:
@@ -58,6 +58,7 @@ export function ProductionColumnsComponent({
|
|||||||
|
|
||||||
const columnKeys = columns.map((i) => i.key);
|
const columnKeys = columns.map((i) => i.key);
|
||||||
const cols = dataSource({
|
const cols = dataSource({
|
||||||
|
bodyshop,
|
||||||
technician,
|
technician,
|
||||||
data,
|
data,
|
||||||
state: tableState,
|
state: tableState,
|
||||||
|
|||||||
@@ -609,7 +609,19 @@ const productionListColumnsData = ({ technician, state, activeStatuses, data, bo
|
|||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
|
|
||||||
render: (text, record) => <TimeFormatter>{record.date_repairstarted}</TimeFormatter>
|
render: (text, record) => <TimeFormatter>{record.date_repairstarted}</TimeFormatter>
|
||||||
}
|
},
|
||||||
|
...(bodyshop && bodyshop.rr_dealerid
|
||||||
|
? [
|
||||||
|
{
|
||||||
|
title: i18n.t("jobs.fields.dms.id"),
|
||||||
|
dataIndex: "dms_id",
|
||||||
|
key: "dms_id",
|
||||||
|
ellipsis: true,
|
||||||
|
sorter: (a, b) => alphaSort(a.dms_id, b.dms_id),
|
||||||
|
sortOrder: state.sortedInfo.columnKey === "dms_id" && state.sortedInfo.order
|
||||||
|
}
|
||||||
|
]
|
||||||
|
: []),
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
export default productionListColumnsData;
|
export default productionListColumnsData;
|
||||||
|
|||||||
@@ -244,6 +244,7 @@ export function ProductionListConfigManager({
|
|||||||
nextConfig.columns.columnKeys.map((k) => {
|
nextConfig.columns.columnKeys.map((k) => {
|
||||||
return {
|
return {
|
||||||
...ProductionListColumns({
|
...ProductionListColumns({
|
||||||
|
bodyshop,
|
||||||
technician,
|
technician,
|
||||||
state: ensureDefaultState(state),
|
state: ensureDefaultState(state),
|
||||||
refetch,
|
refetch,
|
||||||
@@ -270,6 +271,7 @@ export function ProductionListConfigManager({
|
|||||||
activeConfig.columns.columnKeys.map((k) => {
|
activeConfig.columns.columnKeys.map((k) => {
|
||||||
return {
|
return {
|
||||||
...ProductionListColumns({
|
...ProductionListColumns({
|
||||||
|
bodyshop,
|
||||||
technician,
|
technician,
|
||||||
state: ensureDefaultState(state),
|
state: ensureDefaultState(state),
|
||||||
refetch,
|
refetch,
|
||||||
|
|||||||
@@ -197,6 +197,7 @@ export const QUERY_EXACT_JOB_IN_PRODUCTION = gql`
|
|||||||
employee_prep
|
employee_prep
|
||||||
employee_csr
|
employee_csr
|
||||||
date_repairstarted
|
date_repairstarted
|
||||||
|
dms_id
|
||||||
joblines_status {
|
joblines_status {
|
||||||
part_type
|
part_type
|
||||||
status
|
status
|
||||||
@@ -269,6 +270,7 @@ export const QUERY_EXACT_JOBS_IN_PRODUCTION = gql`
|
|||||||
employee_prep
|
employee_prep
|
||||||
employee_csr
|
employee_csr
|
||||||
date_repairstarted
|
date_repairstarted
|
||||||
|
dms_id
|
||||||
joblines_status {
|
joblines_status {
|
||||||
part_type
|
part_type
|
||||||
status
|
status
|
||||||
@@ -2671,6 +2673,7 @@ export const QUERY_JOBS_IN_PRODUCTION = gql`
|
|||||||
suspended
|
suspended
|
||||||
job_totals
|
job_totals
|
||||||
date_repairstarted
|
date_repairstarted
|
||||||
|
dms_id
|
||||||
joblines_status {
|
joblines_status {
|
||||||
part_type
|
part_type
|
||||||
status
|
status
|
||||||
|
|||||||
Reference in New Issue
Block a user