feat: add invoice builder with line detail, address, and person picker.
Enrich invoice line items and previews, migrate several CRM surfaces to Ant, and wire shared money/picker helpers.
This commit is contained in:
@@ -31,7 +31,7 @@ import {
|
||||
import { refreshUnreadTotal, useOrgChat } from '@/lib/useOrgChat';
|
||||
import { useWorkspaceTabs } from '@/lib/workspace-tabs';
|
||||
import { TabPane, Tabs } from 'ant-design-vue';
|
||||
import { EllipsisOutlined } from '@ant-design/icons-vue';
|
||||
import { EllipsisOutlined } from '@/icons/ant-bridge';
|
||||
|
||||
const auth = useAuthStore();
|
||||
const router = useRouter();
|
||||
@@ -812,13 +812,13 @@ onUnmounted(() => {
|
||||
<button
|
||||
class="nav-item nav-fold-btn"
|
||||
type="button"
|
||||
title="کارها"
|
||||
title="فعالیتها"
|
||||
:class="{ 'router-link-active': activitiesActive || openHubKey === 'activities', 'hub-on': openHubKey === 'activities' }"
|
||||
:aria-expanded="openHubKey === 'activities'"
|
||||
@click="onHubClick('activities')"
|
||||
>
|
||||
<UiIcon name="check" :size="collapsed ? 20 : 18" />
|
||||
<span>کارها</span>
|
||||
<span>فعالیتها</span>
|
||||
<span v-if="activityBadge" class="nav-badge">{{ toFaDigits(activityBadge) }}</span>
|
||||
<i class="chev" aria-hidden="true" />
|
||||
</button>
|
||||
@@ -1498,6 +1498,8 @@ onUnmounted(() => {
|
||||
}
|
||||
|
||||
.workspace {
|
||||
--mobile-app-topbar-h: 0px;
|
||||
--mobile-page-header-offset: 0px;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
height: 100%;
|
||||
@@ -2226,8 +2228,10 @@ onUnmounted(() => {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.35rem;
|
||||
padding: 0.35rem 0.7rem;
|
||||
border-radius: 999px;
|
||||
height: var(--control-h);
|
||||
box-sizing: border-box;
|
||||
padding: 0 0.75rem;
|
||||
border-radius: 10px;
|
||||
background: var(--accent-subtle);
|
||||
color: var(--accent-deep);
|
||||
font-size: 0.78rem;
|
||||
@@ -2276,7 +2280,7 @@ onUnmounted(() => {
|
||||
.notif-layer {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 40;
|
||||
z-index: 70;
|
||||
display: grid;
|
||||
place-items: start end;
|
||||
padding: 5rem 1rem 1rem;
|
||||
@@ -2363,6 +2367,11 @@ onUnmounted(() => {
|
||||
}
|
||||
|
||||
.content {
|
||||
/* .content زیر تاپبار موبایل و خودش scroll container است؛ آفست تاپبار هدر را روی محتوا هل میداد */
|
||||
--page-header-sticky-top: 0px;
|
||||
/* هماندازهٔ padding بالای .content (بلوک موبایل پایینتر override میکند) */
|
||||
--page-header-bleed: 16px;
|
||||
--page-header-bg: var(--bg);
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
min-width: 0;
|
||||
@@ -2438,11 +2447,12 @@ onUnmounted(() => {
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
padding: 0.75rem 0.9rem;
|
||||
min-height: var(--mobile-app-topbar-h);
|
||||
background: #fff;
|
||||
border-bottom: 1px solid #e8eef3;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 30;
|
||||
z-index: 50;
|
||||
}
|
||||
|
||||
.top-brand {
|
||||
@@ -2477,6 +2487,11 @@ onUnmounted(() => {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.workspace {
|
||||
--mobile-app-topbar-h: calc(60px + env(safe-area-inset-top, 0px));
|
||||
--mobile-page-header-offset: var(--mobile-app-topbar-h);
|
||||
}
|
||||
|
||||
.desktop-only {
|
||||
display: none !important;
|
||||
}
|
||||
@@ -2520,7 +2535,7 @@ onUnmounted(() => {
|
||||
}
|
||||
|
||||
.notif-layer {
|
||||
padding: 4.25rem 0.65rem calc(1rem + var(--mobile-tabbar-h));
|
||||
padding: calc(var(--mobile-app-topbar-h) + 0.5rem) 0.65rem calc(1rem + var(--mobile-tabbar-h));
|
||||
place-items: start stretch;
|
||||
}
|
||||
|
||||
@@ -2616,7 +2631,7 @@ onUnmounted(() => {
|
||||
.more-layer {
|
||||
position: fixed;
|
||||
inset: 0 0 var(--mobile-tabbar-h) 0;
|
||||
z-index: 40;
|
||||
z-index: 75;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: #fff;
|
||||
|
||||
Reference in New Issue
Block a user