mirror of
https://github.com/Sea-Haven-Industries/proposal-system.git
synced 2026-10-05 08:22:02 +00:00
- Structured manual site entry with 5 separate address fields - Site search via Autocomplete with server-side filtering - Added PO number field to proposal form and AddPoNumber migration - Added Other to ServiceCategory enum with custom category text input - Label consistency: "Work Order #" → "Work Order Number", "PO Number" - Top row reflow to 3-column layout (4/4/4) - Dev PDF generation script for local testing
17 lines
398 B
TypeScript
17 lines
398 B
TypeScript
import apiClient from './client';
|
|
|
|
export interface Site {
|
|
siteCode: string;
|
|
fullAddress: string | null;
|
|
address: string | null;
|
|
city: string | null;
|
|
state: string | null;
|
|
zip: string | null;
|
|
}
|
|
|
|
export const sitesApi = {
|
|
search: async (query: string): Promise<Site[]> => {
|
|
const res = await apiClient.get(`/sites?query=${encodeURIComponent(query)}`);
|
|
return res.data;
|
|
},
|
|
};
|