ui(admin-panel): responsive users, offers, reports, finance, sms, config, notify and branch menus

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
s.esmaeili
2026-10-13 10:30:25 +03:30
co-authored by Cursor
parent c1b3e90b9b
commit 5a30024548
35 changed files with 260 additions and 81 deletions
@@ -10,7 +10,7 @@
The card title in legacy is "تعریف تخفیف" (the same string the promotion form
uses) even though this screen defines EXCLUSIONS — preserved, not corrected.
-->
<div id="page-user-view">
<div id="page-user-view" class="page-card">
<div id="user-data">
<a-spin :spinning="loading">
<a-form layout="vertical">
@@ -27,7 +27,7 @@
<template v-if="type === 1">
<h6>تعداد {{ selectedRow.length }} محصول انتخاب شده است</h6>
<XTable ref="tblProducts" v-model="selectedRow" :model="productCols" :has-selection="true">
<XTable ref="tblProducts" v-model="selectedRow" :model="productCols" :has-selection="true" mobile-cards>
<template #image="{ record }">
<img
width="90px"
@@ -42,24 +42,24 @@
<template v-if="type === 2">
<h6>تعداد {{ selectedRow.length }} دسته بندی انتخاب شده است</h6>
<XTable ref="tblCategory" v-model="selectedRow" :model="categoryCols" :has-selection="true" />
<XTable ref="tblCategory" v-model="selectedRow" :model="categoryCols" :has-selection="true" mobile-cards />
<h6>تعداد {{ selectedRow.length }} دسته بندی انتخاب شده است</h6>
</template>
<template v-if="type === 3">
<h6>تعداد {{ selectedRow.length }} مشتری انتخاب شده است</h6>
<XTable ref="tblCustomer" v-model="selectedRow" :model="customerCols" :has-selection="true" />
<XTable ref="tblCustomer" v-model="selectedRow" :model="customerCols" :has-selection="true" mobile-cards />
<h6>تعداد {{ selectedRow.length }} مشتری انتخاب شده است</h6>
</template>
<template v-if="type === 4">
<h6>تعداد {{ selectedRow.length }} برند انتخاب شده است</h6>
<XTable ref="tblBrand" v-model="selectedRow" :model="brandCols" :has-selection="true" />
<XTable ref="tblBrand" v-model="selectedRow" :model="brandCols" :has-selection="true" mobile-cards />
<h6>تعداد {{ selectedRow.length }} برند انتخاب شده است</h6>
</template>
<div class="mt-5">
<a-button type="primary" class="mr-4" @click="handleSubmit">ثبت</a-button>
<a-button type="primary" class="mr-4 form-submit" @click="handleSubmit">ثبت</a-button>
</div>
</a-card>
</a-form>
@@ -221,4 +221,17 @@ onMounted(getData);
.mt-5 {
margin-top: 1.25rem;
}
@media (max-width: 575px) {
.mb-10 {
margin-bottom: 12px;
}
.mt-5 {
margin-top: 12px;
}
h6 {
font-size: 12px;
margin-bottom: 8px;
}
}
</style>