From 5a3002454819238b09cc3b66d82f74b62d13542e Mon Sep 17 00:00:00 2001 From: "s.esmaeili" Date: Tue, 13 Oct 2026 10:30:25 +0330 Subject: [PATCH] ui(admin-panel): responsive users, offers, reports, finance, sms, config, notify and branch menus Co-authored-by: Cursor --- .../src/assets/styles/utilities.less | 18 +++++++++-- .../src/views/apps/category/Add.vue | 4 +-- .../src/views/apps/category/List.vue | 4 +-- .../src/views/branch/addCustomer.vue | 2 +- apps/admin-panel/src/views/branch/buyList.vue | 8 ++--- .../src/views/branch/dashboard.vue | 8 ++++- .../src/views/branch/order/create.vue | 24 ++++++++++++--- apps/admin-panel/src/views/city/cityList.vue | 4 +-- .../admin-panel/src/views/city/createCity.vue | 4 +-- .../src/views/customer/Comments/Comments.vue | 22 ++++++++++++-- .../src/views/finical/addFinDoc.vue | 4 +-- apps/admin-panel/src/views/finical/list.vue | 4 +-- .../src/views/invoice/AddInvoice.vue | 12 ++++---- .../src/views/invoice/ListInvoice.vue | 8 ++--- apps/admin-panel/src/views/manage/Const.vue | 19 +++++++++++- .../src/views/manage/accounting.vue | 30 ++++++++++++++++++- apps/admin-panel/src/views/manage/report.vue | 14 ++++++++- apps/admin-panel/src/views/manage/wage.vue | 16 +++++++++- apps/admin-panel/src/views/manage/wallet.vue | 6 ++-- .../src/views/newsletters/newsletters.vue | 4 +-- apps/admin-panel/src/views/notify/create.vue | 4 +-- apps/admin-panel/src/views/notify/user.vue | 6 ++-- .../offersIgnore/offersIgnore-add-edit.vue | 25 ++++++++++++---- .../src/views/promotion/PromotionForm.vue | 4 +-- .../src/views/promotion/autopromotion.vue | 4 +-- .../src/views/promotion/promotion_list.vue | 11 +++++-- .../src/views/report/order_item.vue | 15 ++++++++-- apps/admin-panel/src/views/report/product.vue | 15 ++++++++-- apps/admin-panel/src/views/sms/create.vue | 10 +++++-- apps/admin-panel/src/views/statics/index.vue | 2 +- apps/admin-panel/src/views/user/ListUser.vue | 4 +-- .../admin-panel/src/views/user/Permission.vue | 14 ++++++++- .../admin-panel/src/views/user/UserCreate.vue | 4 +-- apps/admin-panel/src/views/user/myData.vue | 4 +-- apps/admin-panel/src/views/wallet/wallet.vue | 4 +-- 35 files changed, 260 insertions(+), 81 deletions(-) diff --git a/apps/admin-panel/src/assets/styles/utilities.less b/apps/admin-panel/src/assets/styles/utilities.less index 866e02d..9b4a159 100644 --- a/apps/admin-panel/src/assets/styles/utilities.less +++ b/apps/admin-panel/src/assets/styles/utilities.less @@ -166,17 +166,29 @@ body #app .ant-menu-item-selected { margin: 0; } } + // date-range filter rows on report pages: the two dates side by side, the + // action buttons on their own row without the blank spacer label + .filter-grid { + grid-template-columns: 1fr 1fr; + .ant-form-item:last-child { + grid-column: 1 / -1; + .ant-form-item-label { + display: none; + } + } + } // a nested section card inside the page card: drop the double frame .page-card .ant-card .ant-card, .page-card > .ant-card-body .ant-card { box-shadow: none; } - // a horizontally scrollable plain inside a page card - .page-card .table-scroll .ant-table-content, + // a horizontally scrollable plain (class="table-scroll" on it or + // on any ancestor) + .table-scroll .ant-table-content, .detail-modal .ant-table-content { overflow-x: auto; } - .page-card .table-scroll .ant-table-content > table, + .table-scroll .ant-table-content > table, .detail-modal .ant-table-content > table { min-width: max-content; } diff --git a/apps/admin-panel/src/views/apps/category/Add.vue b/apps/admin-panel/src/views/apps/category/Add.vue index 63f94c1..c0ad617 100644 --- a/apps/admin-panel/src/views/apps/category/Add.vue +++ b/apps/admin-panel/src/views/apps/category/Add.vue @@ -77,7 +77,7 @@ - + - ثبت اطلاعات + ثبت اطلاعات diff --git a/apps/admin-panel/src/views/apps/category/List.vue b/apps/admin-panel/src/views/apps/category/List.vue index 98c4d39..5f677af 100644 --- a/apps/admin-panel/src/views/apps/category/List.vue +++ b/apps/admin-panel/src/views/apps/category/List.vue @@ -5,8 +5,8 @@ slot in legacy stays absent. -->
- - + + diff --git a/apps/admin-panel/src/views/branch/addCustomer.vue b/apps/admin-panel/src/views/branch/addCustomer.vue index aeb6c88..a6fbb59 100644 --- a/apps/admin-panel/src/views/branch/addCustomer.vue +++ b/apps/admin-panel/src/views/branch/addCustomer.vue @@ -3,7 +3,7 @@ Ported from legacy henza_admin/src/views/branch/addCustomer.vue — a 19-line wrapper whose entire template is . Kept as a wrapper. --> -
+
diff --git a/apps/admin-panel/src/views/branch/buyList.vue b/apps/admin-panel/src/views/branch/buyList.vue index edae2fc..75acf94 100644 --- a/apps/admin-panel/src/views/branch/buyList.vue +++ b/apps/admin-panel/src/views/branch/buyList.vue @@ -7,8 +7,8 @@ only their own without the view having to filter. -->
- - + + - +
- + {{ tempRow.name }} {{ tempRow.allocator_user?.name ?? '-' }} diff --git a/apps/admin-panel/src/views/branch/dashboard.vue b/apps/admin-panel/src/views/branch/dashboard.vue index db80781..a23d7c5 100644 --- a/apps/admin-panel/src/views/branch/dashboard.vue +++ b/apps/admin-panel/src/views/branch/dashboard.vue @@ -9,7 +9,7 @@ endpoints here, because a dashboard showing placeholder rows is worse than one showing nothing. Recorded in docs/ADMIN-PORT-PLAN.md. --> - + { .mt-4 { margin-top: 1rem; } + +@media (max-width: 575px) { + .mt-4 { + margin-top: 12px; + } +} diff --git a/apps/admin-panel/src/views/branch/order/create.vue b/apps/admin-panel/src/views/branch/order/create.vue index 05d57be..636f1a6 100644 --- a/apps/admin-panel/src/views/branch/order/create.vue +++ b/apps/admin-panel/src/views/branch/order/create.vue @@ -11,7 +11,7 @@ branch mode gates the whole route instead. Preserved. --> - + جهت ثبت سفارش مشتری را انتخاب نمایید @@ -37,7 +37,7 @@
تعداد {{ items.length }} محصول انتخاب شده است.
- +