fixed auto query profile
This commit is contained in:
@@ -21,7 +21,10 @@
|
||||
<!-- Customer & Parts Info Section (Remains the same) -->
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
|
||||
<div v-if="customer" class="p-4 bg-base-200 rounded-md">
|
||||
<div class="font-bold text-lg">{{ customer.account_number }}</div>
|
||||
<div class="flex justify-between items-center font-bold text-lg">
|
||||
<div>{{ customer.account_number }}</div>
|
||||
<router-link :to="{ name: 'customerProfile', params: { id: customer.id } }" class="btn btn-sm btn-primary">Profile</router-link>
|
||||
</div>
|
||||
<div class="text-sm">{{ customer.customer_first_name }} {{ customer.customer_last_name }}</div>
|
||||
<div class="text-sm">{{ customer.customer_address }}</div>
|
||||
<div class="text-sm">{{ customer.customer_town }}, {{ getStateAbbrev(customer.customer_state) }} {{ customer.customer_zip }}</div>
|
||||
@@ -105,7 +108,7 @@ import authHeader from '../../services/auth.header';
|
||||
// --- Interfaces ---
|
||||
interface ServiceCall { id: number; scheduled_date: string; customer_id: number; customer_name: string; customer_address: string; customer_town: string; type_service_call: number; description: string; service_cost: string }
|
||||
interface EditableService extends Omit<ServiceCall, 'scheduled_date'> { date: string; time: number; }
|
||||
interface Customer { account_number: string; customer_first_name: string; customer_last_name: string; customer_address: string; customer_town: string; customer_state: number; customer_zip: string; customer_phone_number: string; }
|
||||
interface Customer { id: number; account_number: string; customer_first_name: string; customer_last_name: string; customer_address: string; customer_town: string; customer_state: number; customer_zip: string; customer_phone_number: string; }
|
||||
interface ServiceParts { customer_id: number; oil_filter: string; oil_filter_2: string; oil_nozzle: string; oil_nozzle_2: string; }
|
||||
|
||||
export default defineComponent({
|
||||
|
||||
Reference in New Issue
Block a user