Small ui fixes
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
<!-- Modal Header -->
|
||||
<div class="flex justify-between items-center border-b border-gray-700 pb-3 mb-4">
|
||||
<h3 class="text-2xl font-bold">Edit Service Call</h3>
|
||||
<h3 class="text-2xl font-bold">Service Call</h3>
|
||||
<span class="font-bold text-white px-3 py-1 mr-10 rounded" :style="{ backgroundColor: getServiceTypeColor(editableService.type_service_call) }">
|
||||
{{ getServiceTypeName(editableService.type_service_call) }}
|
||||
</span>
|
||||
@@ -24,7 +24,7 @@
|
||||
<div class="font-bold text-lg">{{ customer.account_number }}</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 }}, {{ customer.customer_state }} {{ customer.customer_zip }}</div>
|
||||
<div class="text-sm">{{ customer.customer_town }}, {{ getStateAbbrev(customer.customer_state) }} {{ customer.customer_zip }}</div>
|
||||
<div class="text-sm mt-1">{{ customer.customer_phone_number }}</div>
|
||||
</div>
|
||||
<div v-else class="p-4 bg-base-200 rounded-md text-center"><p>Loading customer details...</p></div>
|
||||
@@ -184,7 +184,12 @@ export default defineComponent({
|
||||
if (typeId === undefined || typeId === null) return 'gray';
|
||||
const colorMap: { [key: number]: string } = { 0: 'blue', 1: 'red', 2: 'green', 3: '#B58900', 4: 'black' };
|
||||
return colorMap[typeId] || 'gray';
|
||||
},
|
||||
getStateAbbrev(stateId: number | undefined | null): string {
|
||||
if (stateId === undefined || stateId === null) return 'Unknown';
|
||||
const stateMap: { [key: number]: string } = { 0: 'MA', 1: 'RI', 2: 'NH', 3: 'ME', 4: 'VT', 5: 'CT', 6: 'NY' };
|
||||
return stateMap[stateId] || 'Unknown';
|
||||
}
|
||||
},
|
||||
});
|
||||
</script>
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user