handlers.setFlag(row.id, c)} />
+ | e.stopPropagation()}
+ >
+ handlers.setFlag(row.id, c)}
+ />
|
- e.stopPropagation()}>
+ | e.stopPropagation()}
+ >
- handlers.onPatch(row.id, {
+ patchRow({
site: p.site,
location: p.location,
locationId: p.locationId,
@@ -169,7 +193,7 @@ export function WoTableRow({
}
/>
|
-
+ |
handlers.onPatch(row.id, { woNumber: v })}
+ onSave={(v) => patchRow({ woNumber: v })}
onDuplicateFound={handlers.onDuplicateFound}
/>
|
- e.stopPropagation()}>
- handlers.onPatch(row.id, { type: t })}
- />
+ | e.stopPropagation()}
+ >
+ patchRow({ type: t })} />
|
- e.stopPropagation()}>
+ | e.stopPropagation()}
+ >
patchAndMaybeAuto({ dispatcherId: id, dispatcherName: name })}
/>
|
- e.stopPropagation()}>
+ | e.stopPropagation()}
+ >
|
- e.stopPropagation()}>
- handlers.onPatch(row.id, { dueDate: date })}
- />
+ | e.stopPropagation()}
+ >
+ patchRow({ dueDate: date })} />
|
- e.stopPropagation()}>
- handlers.onPatch(row.id, { pm })}
- />
+ | e.stopPropagation()}
+ >
+ patchRow({ pm })} />
|
- e.stopPropagation()}>
+ | e.stopPropagation()}
+ >
- handlers.onPatch(row.id, {
+ patchRow({
company: p.company,
tech: p.tech,
techPhone: p.techPhone,
@@ -246,16 +281,21 @@ export function WoTableRow({
}
/>
|
- e.stopPropagation()}>
- handlers.onPatch(row.id, { apptTime: v })}
- />
+ | e.stopPropagation()}
+ >
+ patchRow({ apptTime: v })} />
|
- e.stopPropagation()}>
+ | e.stopPropagation()}
+ >
handlers.onPatch(row.id, { status })}
+ onChangeStatus={(status) => patchRow({ status })}
onOpenSlideOver={() => handlers.onOpenSlideOver(row)}
onPastDueAttempt={() => handlers.onPastDueAttempt?.(row.id)}
/>
@@ -272,7 +312,7 @@ export function WoTableRow({
| e.stopPropagation()}>
handlers.onView(row)}
- onEdit={() => handlers.onEdit(row)}
+ onEdit={isCanceled ? undefined : () => handlers.onEdit(row)}
/>
|
| | | | |