IO-1477 Updated parts queue page.

This commit is contained in:
Patrick Fic
2022-04-18 13:53:21 -07:00
parent c08713bfbe
commit 988c3a9f22
8 changed files with 209 additions and 71 deletions

View File

@@ -50,25 +50,13 @@ export const QUERY_PARTS_QUEUE = gql`
$limit: Int
$order: [jobs_order_by!]
) {
jobs_aggregate(
where: {
_and: [
{ status: { _in: $statuses } }
{ queued_for_parts: { _eq: true } }
]
}
) {
jobs_aggregate(where: { _and: [{ status: { _in: $statuses } }] }) {
aggregate {
count(distinct: true)
}
}
jobs(
where: {
_and: [
{ status: { _in: $statuses } }
{ queued_for_parts: { _eq: true } }
]
}
where: { _and: [{ status: { _in: $statuses } }] }
offset: $offset
limit: $limit
order_by: $order
@@ -99,6 +87,12 @@ export const QUERY_PARTS_QUEUE = gql`
updated_at
vehicleid
ownerid
queued_for_parts
joblines_status {
count
part_type
status
}
}
}
`;
@@ -1050,6 +1044,7 @@ export const UPDATE_JOB = gql`
production_vars
lbr_adjustments
suspended
queued_for_parts
}
}
}