mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-25 14:14:08 +00:00
Phase 4a: Feature modules — layouts, auth, admin, dashboard,
customers, items, invoices, estimates, shared document form 77 files, 14451 lines. Typed layouts (CompanyLayout, AuthLayout, header, sidebar, company switcher), auth views (login, register, forgot/reset password), admin feature (dashboard, companies, users, settings with typed store), company features (dashboard with chart/ stats, customers CRUD, items CRUD, invoices CRUD with full store, estimates CRUD with full store), and shared document form components (items table, item row, totals, notes, tax popup, template select, exchange rate converter, calculation composable). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,88 @@
|
||||
<template>
|
||||
<div class="md:grid-cols-12 grid-cols-1 md:gap-x-6 mt-6 mb-8 grid gap-y-5">
|
||||
<BaseCustomerSelectPopup
|
||||
v-model="estimateStore.newEstimate.customer"
|
||||
:valid="v.customer_id"
|
||||
:content-loading="isLoading"
|
||||
type="estimate"
|
||||
class="col-span-5 pr-0"
|
||||
/>
|
||||
|
||||
<BaseInputGrid
|
||||
class="col-span-7 rounded-xl shadow border border-line-light bg-surface p-5"
|
||||
>
|
||||
<BaseInputGroup
|
||||
:label="$t('reports.estimates.estimate_date')"
|
||||
:content-loading="isLoading"
|
||||
required
|
||||
:error="v.estimate_date.$error && v.estimate_date.$errors[0].$message"
|
||||
>
|
||||
<BaseDatePicker
|
||||
v-model="estimateStore.newEstimate.estimate_date"
|
||||
:content-loading="isLoading"
|
||||
:calendar-button="true"
|
||||
calendar-button-icon="calendar"
|
||||
/>
|
||||
</BaseInputGroup>
|
||||
|
||||
<BaseInputGroup
|
||||
:label="$t('estimates.expiry_date')"
|
||||
:content-loading="isLoading"
|
||||
>
|
||||
<BaseDatePicker
|
||||
v-model="estimateStore.newEstimate.expiry_date"
|
||||
:content-loading="isLoading"
|
||||
:calendar-button="true"
|
||||
calendar-button-icon="calendar"
|
||||
/>
|
||||
</BaseInputGroup>
|
||||
|
||||
<BaseInputGroup
|
||||
:label="$t('estimates.estimate_number')"
|
||||
:content-loading="isLoading"
|
||||
required
|
||||
:error="
|
||||
v.estimate_number.$error && v.estimate_number.$errors[0].$message
|
||||
"
|
||||
>
|
||||
<BaseInput
|
||||
v-model="estimateStore.newEstimate.estimate_number"
|
||||
:content-loading="isLoading"
|
||||
/>
|
||||
</BaseInputGroup>
|
||||
|
||||
<ExchangeRateConverter
|
||||
:store="estimateStore"
|
||||
store-prop="newEstimate"
|
||||
:v="v"
|
||||
:is-loading="isLoading"
|
||||
:is-edit="isEdit"
|
||||
:customer-currency="estimateStore.newEstimate.currency_id"
|
||||
/>
|
||||
</BaseInputGrid>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ExchangeRateConverter } from '../../../shared/document-form'
|
||||
import { useEstimateStore } from '../store'
|
||||
|
||||
interface ValidationField {
|
||||
$error: boolean
|
||||
$errors: Array<{ $message: string }>
|
||||
$touch: () => void
|
||||
}
|
||||
|
||||
interface Props {
|
||||
v: Record<string, ValidationField>
|
||||
isLoading?: boolean
|
||||
isEdit?: boolean
|
||||
}
|
||||
|
||||
withDefaults(defineProps<Props>(), {
|
||||
isLoading: false,
|
||||
isEdit: false,
|
||||
})
|
||||
|
||||
const estimateStore = useEstimateStore()
|
||||
</script>
|
||||
Reference in New Issue
Block a user