merge: take origin/main for conflicting Vue files (main priority)
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Haiku 5.5
parent
5cf721f91e
commit
387c5c1676
@@ -9,43 +9,16 @@ import type {
|
||||
VoipCallLogDto,
|
||||
VoipConnectionDto,
|
||||
} from '@mento/shared';
|
||||
import { formatJalaliNumeric, rewriteGregorianDates, toFaDigits } from '@/lib/jalali';
|
||||
import { registerTableColumns, useTableColumns } from '@/lib/tableColumns';
|
||||
import {
|
||||
Alert as AAlert,
|
||||
Button as AButton,
|
||||
Card as ACard,
|
||||
Col as ACol,
|
||||
Empty as AEmpty,
|
||||
Flex as AFlex,
|
||||
Form as AForm,
|
||||
FormItem as AFormItem,
|
||||
Input as AInput,
|
||||
InputPassword as AInputPassword,
|
||||
Row as ARow,
|
||||
Table as ATable,
|
||||
Tag as ATag,
|
||||
Typography,
|
||||
} from 'ant-design-vue';
|
||||
import { CrmSkeleton, CrmSkeletonCard } from '@/components/skeleton';
|
||||
import type { TableColumnsType } from 'ant-design-vue';
|
||||
import { CopyOutlined, ReloadOutlined } from '@/icons/ant-bridge';
|
||||
|
||||
const { Title: ATypographyTitle, Text: ATypographyText, Paragraph: ATypographyParagraph } =
|
||||
Typography;
|
||||
|
||||
const CALL_COL_LABELS = [
|
||||
'جهت',
|
||||
'وضعیت',
|
||||
'از / به',
|
||||
'مشتری',
|
||||
'مدت',
|
||||
'خلاصه',
|
||||
'زمان',
|
||||
] as const;
|
||||
|
||||
registerTableColumns('voip.calls', [...CALL_COL_LABELS]);
|
||||
const callTableCols = useTableColumns(() => 'voip.calls');
|
||||
UiButton,
|
||||
UiCard,
|
||||
UiEmptyState,
|
||||
UiField,
|
||||
UiInput,
|
||||
UiPageHeader,
|
||||
} from '@/components/ui';
|
||||
import UiIcon from '@/components/UiIcon.vue';
|
||||
import { formatJalaliNumeric, rewriteGregorianDates, toFaDigits } from '@/lib/jalali';
|
||||
|
||||
type TabKey = 'generic' | 'daftareshoma';
|
||||
|
||||
@@ -124,19 +97,6 @@ const summaryLabel: Record<string, string> = {
|
||||
skipped: 'رد شده',
|
||||
};
|
||||
|
||||
const callColumns = computed<TableColumnsType<VoipCallLogDto>>(() => {
|
||||
const all: TableColumnsType<VoipCallLogDto> = [
|
||||
{ title: 'جهت', key: 'جهت' },
|
||||
{ title: 'وضعیت', key: 'وضعیت' },
|
||||
{ title: 'از / به', key: 'از / به' },
|
||||
{ title: 'مشتری', key: 'مشتری' },
|
||||
{ title: 'مدت', key: 'مدت' },
|
||||
{ title: 'خلاصه', key: 'خلاصه' },
|
||||
{ title: 'زمان', key: 'زمان' },
|
||||
];
|
||||
return all.filter((col) => callTableCols.isVisible(String(col.key ?? '')));
|
||||
});
|
||||
|
||||
function noteLink(c: VoipCallLogDto): string | null {
|
||||
if (!c.summaryNoteId) return null;
|
||||
if (c.personId) return `/contacts/people/${c.personId}`;
|
||||
@@ -307,14 +267,18 @@ onMounted(async () => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<a-flex vertical :gap="16">
|
||||
<a-flex justify="space-between" align="flex-start" wrap="wrap" :gap="12">
|
||||
<a-typography-title :level="3" :style="{ margin: 0 }">تلفن سازمانی</a-typography-title>
|
||||
<a-button :disabled="loading" @click="load">
|
||||
<template #icon><ReloadOutlined /></template>
|
||||
بروزرسانی
|
||||
</a-button>
|
||||
</a-flex>
|
||||
<div class="page">
|
||||
<UiPageHeader
|
||||
title="تلفن سازمانی"
|
||||
description="ثبت خودکار تماس، خلاصه گفتگو و اعلان تماس ورودی"
|
||||
>
|
||||
<template #actions>
|
||||
<UiButton variant="secondary" :disabled="loading" @click="load">
|
||||
<UiIcon name="refresh" />
|
||||
بروزرسانی
|
||||
</UiButton>
|
||||
</template>
|
||||
</UiPageHeader>
|
||||
|
||||
<nav class="tabs" aria-label="نوع اتصال تلفن">
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user