Add activity detail, Jalali pickers, and customer/user profiles.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -4,6 +4,7 @@ import { RouterLink, useRoute, useRouter } from 'vue-router';
|
||||
import axios from 'axios';
|
||||
import { api } from '@/lib/api';
|
||||
import CustomFieldsSection from '@/components/CustomFieldsSection.vue';
|
||||
import JalaliDateInput from '@/components/JalaliDateInput.vue';
|
||||
import EntityTimeline from '@/components/EntityTimeline.vue';
|
||||
import { formatMoney } from '@/lib/money';
|
||||
import type {
|
||||
@@ -167,6 +168,14 @@ async function load() {
|
||||
} else {
|
||||
const firstOpen = stages.value.find((s) => !s.isWon && !s.isLost);
|
||||
stageId.value = firstOpen?.id ?? stages.value[0]?.id ?? '';
|
||||
if (typeof route.query.personId === 'string' && route.query.personId) {
|
||||
personId.value = route.query.personId;
|
||||
const person = people.value.find((p) => p.id === personId.value);
|
||||
if (person?.company?.id) companyId.value = person.company.id;
|
||||
}
|
||||
if (typeof route.query.companyId === 'string' && route.query.companyId) {
|
||||
companyId.value = route.query.companyId;
|
||||
}
|
||||
}
|
||||
} catch {
|
||||
error.value = 'بارگذاری فرم معامله ناموفق بود.';
|
||||
@@ -310,7 +319,7 @@ onMounted(load);
|
||||
</div>
|
||||
<div class="field">
|
||||
<label for="expectedCloseAt">تاریخ بستهشدن مورد انتظار</label>
|
||||
<input id="expectedCloseAt" v-model="expectedCloseAt" type="date" />
|
||||
<JalaliDateInput id="expectedCloseAt" v-model="expectedCloseAt" />
|
||||
</div>
|
||||
<div class="field wide">
|
||||
<label for="tags">برچسبها (با کاما جدا کنید)</label>
|
||||
|
||||
Reference in New Issue
Block a user