Add Didar gap features: lost-reason reports, audit logs, tags, card assignees, and saved-views API.
Ignore Graphify local artifacts and expose new modules in superadmin.
This commit is contained in:
@@ -45,8 +45,20 @@ const email = ref('');
|
||||
const website = ref('');
|
||||
const address = ref('');
|
||||
const notes = ref('');
|
||||
const tagsRaw = ref('');
|
||||
const customFields = ref<Record<string, unknown>>({});
|
||||
|
||||
function parseTags(raw: string): string[] {
|
||||
return [
|
||||
...new Set(
|
||||
raw
|
||||
.split(/[,،#\n]/)
|
||||
.map((t) => t.trim())
|
||||
.filter(Boolean),
|
||||
),
|
||||
].slice(0, 40);
|
||||
}
|
||||
|
||||
function fill(c: CompanyDto) {
|
||||
name.value = c.name;
|
||||
nationalId.value = c.nationalId ?? '';
|
||||
@@ -55,6 +67,7 @@ function fill(c: CompanyDto) {
|
||||
website.value = c.website ?? '';
|
||||
address.value = c.address ?? '';
|
||||
notes.value = c.notes ?? '';
|
||||
tagsRaw.value = (c.tags ?? []).join('، ');
|
||||
customFields.value = { ...(c.customFields ?? {}) };
|
||||
}
|
||||
|
||||
@@ -81,6 +94,7 @@ function payload(): CreateCompanyRequest {
|
||||
website: website.value || undefined,
|
||||
address: address.value || undefined,
|
||||
notes: notes.value || undefined,
|
||||
tags: parseTags(tagsRaw.value),
|
||||
customFields: customFields.value,
|
||||
};
|
||||
}
|
||||
@@ -236,6 +250,14 @@ onMounted(load);
|
||||
/>
|
||||
</UiField>
|
||||
|
||||
<UiField label="برچسبها" class="col-span-2">
|
||||
<UiInput
|
||||
id="company-tags"
|
||||
v-model="tagsRaw"
|
||||
placeholder="شرکتی، VIP (با کاما جدا کنید)"
|
||||
/>
|
||||
</UiField>
|
||||
|
||||
<UiField label="یادداشت و توضیحات تکمیلی" class="col-span-2">
|
||||
<UiTextarea
|
||||
id="notes"
|
||||
|
||||
Reference in New Issue
Block a user