From 0a0d1d86803d91dcc0af87fcc9ad44df5357d356 Mon Sep 17 00:00:00 2001 From: adonis Date: Wed, 19 Aug 2026 12:23:52 +0330 Subject: [PATCH] ui(product): restructure product specs tab with sections and fix pricing tab gap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Product specs tab: group fields into bordered sections (اطلاعات پایه, وزن و واحد, تنظیمات نمایش) - Visibility switches in a compact panel with divider lines - Weight/unit/inventory fields in same grid row - Pricing tab: wrap all content in flex-col gap-4 - Remove unnecessary product-editor-panel border from non-melted pricing block Co-authored-by: Cursor --- .../base/components/ProductEditorFormBody.vue | 273 +++++++++--------- 1 file changed, 142 insertions(+), 131 deletions(-) diff --git a/src/pages/menuPages/products/base/components/ProductEditorFormBody.vue b/src/pages/menuPages/products/base/components/ProductEditorFormBody.vue index ca71f09..0d1616d 100644 --- a/src/pages/menuPages/products/base/components/ProductEditorFormBody.vue +++ b/src/pages/menuPages/products/base/components/ProductEditorFormBody.vue @@ -14,6 +14,7 @@ @update:activeKey="$emit('update:activeKey', $event)" > +
-
+
@@ -265,91 +266,128 @@
+
-
-
- +
+ +
+
اطلاعات پایه
+
+ + + + + + + + + + + + +
+ - - - - - - - - - +
- - - - - -
-
-
- + +
+
وزن و واحد
+
+
+
+ + + تعدادی + مقداری + + + {{ resolveProductTradeTypeLabel(form.trade_by_quantity) }} + +
+
+ + + دارد + ندارد + +
- - معامله تعدادی - معامله مقداری - - - {{ resolveProductTradeTypeLabel(form.trade_by_quantity) }} - -
-
- معامله مقداری: مشتری بر اساس مقدار (گرم/کیلوگرم) خرید می‌کند. قیمت‌گذاری این محصول در تب «قیمت‌گذاری» به‌صورت مقداری تنظیم می‌شود. -
- -
-
- + مشتری بر اساس مقدار (گرم/کیلوگرم) خرید می‌کند.
- - دارد - ندارد -
- -
- +
+ + + + + + + + + + + + +
معادل {{ form.amount * 1000 }} سوت @@ -357,73 +395,31 @@
-
- - - - - - - - - - - - -
- -
-
- - + +
+
تنظیمات نمایش
+
+
+ نمایش در لیست محصولات - -
-
- - +
+
+ نمایش در دارایی‌ها - -
-
- - +
+
+ نمایش در تابلو TV - +
+
- -
@@ -980,8 +976,23 @@ defineExpose({ @apply flex flex-col items-stretch gap-2; } +.product-section { + @apply flex flex-col gap-4 rounded-lg p-4; + border: 1px solid var(--ant-color-border-secondary, rgba(0, 0, 0, 0.06)); +} + +.product-section__title { + @apply text-sm font-bold; + color: var(--ant-color-text-secondary, rgba(0, 0, 0, 0.45)); +} + +.product-visibility-panel { + @apply flex flex-col rounded-md overflow-hidden; + border: 1px solid var(--ant-color-border-secondary, rgba(0, 0, 0, 0.06)); +} + .product-visibility-row { - @apply flex items-center justify-between gap-3 px-3 py-2; + @apply flex items-center justify-between gap-3 px-3 py-2.5; border-bottom: 1px solid var(--ant-color-border-secondary, rgba(0, 0, 0, 0.06)); } .product-visibility-row:last-child {