mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-09-30 06:53:12 +00:00
Remove estimated hours and sync priority options to Sev 1-5
- Remove estimatedHours from form state, API mapping, and form UI - Replace Low/Medium/High/Urgent priority options with Sev 1 through Sev 5 - Adjust date row from 3 columns to 2 columns
This commit is contained in:
parent
a7391cb02b
commit
9c2c8321de
2 changed files with 9 additions and 25 deletions
|
|
@ -26,7 +26,6 @@ export const getWorkOrderById = async (id) => {
|
|||
description: wo.description ?? "",
|
||||
priority: wo.priority ?? "",
|
||||
status: wo.status ?? "Open",
|
||||
estimatedHours: wo.estimatedHours ?? "",
|
||||
po: wo.po ?? "",
|
||||
tt: wo.tt ?? "",
|
||||
comments: wo.comments ?? [],
|
||||
|
|
|
|||
|
|
@ -15,13 +15,12 @@ export default function WorkOrderFormPage() {
|
|||
workOrderNumber: "",
|
||||
title: "",
|
||||
locationId: "",
|
||||
priority: "Medium",
|
||||
priority: "",
|
||||
status: "Open",
|
||||
createdDate: new Date().toISOString().split("T")[0],
|
||||
dueDate: "",
|
||||
assignedTo: "",
|
||||
description: "",
|
||||
estimatedHours: 1,
|
||||
});
|
||||
|
||||
const [loading, setLoading] = useState(false);
|
||||
|
|
@ -204,7 +203,7 @@ export default function WorkOrderFormPage() {
|
|||
</h5>
|
||||
</div>
|
||||
<div className="row">
|
||||
<div className="col-sm-4">
|
||||
<div className="col-sm-6">
|
||||
<div className="form-group">
|
||||
<label className="required-field" htmlFor="createdDate">Created Date</label>
|
||||
<input
|
||||
|
|
@ -218,7 +217,7 @@ export default function WorkOrderFormPage() {
|
|||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div className="col-sm-4">
|
||||
<div className="col-sm-6">
|
||||
<div className="form-group">
|
||||
<label className="required-field" htmlFor="dueDate">Due Date</label>
|
||||
<input
|
||||
|
|
@ -232,22 +231,6 @@ export default function WorkOrderFormPage() {
|
|||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div className="col-sm-4">
|
||||
<div className="form-group">
|
||||
<label className="required-field" htmlFor="estimatedHours">Estimated Hours</label>
|
||||
<input
|
||||
className="form-control"
|
||||
type="number"
|
||||
id="estimatedHours"
|
||||
name="estimatedHours"
|
||||
value={formData.estimatedHours}
|
||||
onChange={handleChange}
|
||||
required
|
||||
min="0.5"
|
||||
step="0.5"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="row">
|
||||
|
|
@ -262,10 +245,12 @@ export default function WorkOrderFormPage() {
|
|||
onChange={handleChange}
|
||||
required
|
||||
>
|
||||
<option value="Low">Low</option>
|
||||
<option value="Medium">Medium</option>
|
||||
<option value="High">High</option>
|
||||
<option value="Urgent">Urgent</option>
|
||||
<option value="">Select Priority</option>
|
||||
<option value="Sev 1">Sev 1</option>
|
||||
<option value="Sev 2">Sev 2</option>
|
||||
<option value="Sev 3">Sev 3</option>
|
||||
<option value="Sev 4">Sev 4</option>
|
||||
<option value="Sev 5">Sev 5</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue