Display and accept SuperAdmin money amounts in tomans.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-08 13:27:31 +03:30
co-authored by Cursor
parent 68de9a2337
commit 8e696bb591
7 changed files with 55 additions and 27 deletions
+6 -6
View File
@@ -351,8 +351,8 @@ onMounted(loadDetail)
</a-form-item>
</a-col>
<a-col :xs="24" :md="8">
<a-form-item label="قیمت دوره (ریال)">
<MoneyInput v-model:value="form.priceRials" placeholder="مثلاً 1,500,000" />
<a-form-item label="قیمت دوره (تومان)">
<MoneyInput v-model:value="form.priceRials" placeholder="مثلاً 150,000" />
</a-form-item>
</a-col>
</a-row>
@@ -397,8 +397,8 @@ onMounted(loadDetail)
</a-form-item>
</a-col>
<a-col :xs="24" :md="8">
<a-form-item label="مبلغ (ریال)">
<MoneyInput v-model:value="renewForm.priceRials" placeholder="مثلاً 1,500,000" />
<a-form-item label="مبلغ (تومان)">
<MoneyInput v-model:value="renewForm.priceRials" placeholder="مثلاً 150,000" />
</a-form-item>
</a-col>
</a-row>
@@ -466,8 +466,8 @@ onMounted(loadDetail)
</a-form-item>
</a-col>
</a-row>
<a-form-item label="قیمت دوره (ریال)">
<MoneyInput v-model:value="createForm.priceRials" placeholder="مثلاً 1,500,000" />
<a-form-item label="قیمت دوره (تومان)">
<MoneyInput v-model:value="createForm.priceRials" placeholder="مثلاً 150,000" />
</a-form-item>
</a-form>
</a-modal>
+4 -4
View File
@@ -377,8 +377,8 @@ onMounted(loadDetail)
</a-form-item>
</a-col>
<a-col :xs="24" :md="8">
<a-form-item label="قیمت دوره (ریال)">
<MoneyInput v-model:value="form.priceRials" placeholder="مثلاً 1,500,000" />
<a-form-item label="قیمت دوره (تومان)">
<MoneyInput v-model:value="form.priceRials" placeholder="مثلاً 150,000" />
</a-form-item>
</a-col>
</a-row>
@@ -426,8 +426,8 @@ onMounted(loadDetail)
</a-form-item>
</a-col>
<a-col :xs="24" :md="8">
<a-form-item label="مبلغ (ریال)">
<MoneyInput v-model:value="renewForm.priceRials" placeholder="مثلاً 1,500,000" />
<a-form-item label="مبلغ (تومان)">
<MoneyInput v-model:value="renewForm.priceRials" placeholder="مثلاً 150,000" />
</a-form-item>
</a-col>
</a-row>
+3 -3
View File
@@ -122,7 +122,7 @@ onMounted(loadTenants)
:class="{ active: toneFilter === 'healthy' }"
@click="toggleToneFilter('healthy')"
>
بالای ۱۰۰٬۰۰۰ — سبز
بالای ۱۰٬۰۰۰ — سبز
</button>
<button
type="button"
@@ -130,7 +130,7 @@ onMounted(loadTenants)
:class="{ active: toneFilter === 'warning' }"
@click="toggleToneFilter('warning')"
>
۱۰٬۰۰۰ تا ۱۰۰٬۰۰۰ — زرد
۱٬۰۰۰ تا ۱۰٬۰۰۰ — زرد
</button>
<button
type="button"
@@ -138,7 +138,7 @@ onMounted(loadTenants)
:class="{ active: toneFilter === 'critical' }"
@click="toggleToneFilter('critical')"
>
زیر ۱۰٬۰۰۰ — قرمز
زیر ۱٬۰۰۰ — قرمز
</button>
</div>
+3 -3
View File
@@ -422,11 +422,11 @@ onMounted(async () => {
<span>موجودی کیف پول</span>
<a-tag v-if="form.isBlocked" color="error">ارسال مسدود</a-tag>
</div>
<strong>{{ formatNumber(summary.balanceRials) }} <small>ریال</small></strong>
<strong>{{ formatMoney(summary.balanceRials) }}</strong>
</div>
<div class="stat-card sky">
<span>قیمت هر پارت</span>
<strong>{{ formatNumber(summary.perPartRials) }} <small>ریال</small></strong>
<strong>{{ formatMoney(summary.perPartRials) }}</strong>
</div>
<div class="stat-card emerald">
<span>امروز</span>
@@ -458,7 +458,7 @@ onMounted(async () => {
<MoneyInput
v-model:value="chargeForm.amountRials"
allow-negative
placeholder="مبلغ (ریال)"
placeholder="مبلغ (تومان)"
/>
<a-input v-model:value="chargeForm.note" size="large" placeholder="توضیح (اختیاری)" />
<a-button type="primary" size="large" :loading="charging" @click="openChargeConfirm">
+6 -6
View File
@@ -396,8 +396,8 @@ onMounted(loadDetail)
</a-form-item>
</a-col>
</a-row>
<a-form-item v-if="!form.isFree" label="قیمت دوره (ریال)">
<MoneyInput v-model:value="form.priceRials" placeholder="مثلاً 1,500,000" />
<a-form-item v-if="!form.isFree" label="قیمت دوره (تومان)">
<MoneyInput v-model:value="form.priceRials" placeholder="مثلاً 150,000" />
</a-form-item>
<p v-else class="field-hint">
دوره رایگان فعال است — مبلغ صفر می‌شود. مدت ۱ / ۳ / ۶ / ۱۲ ماه می‌تواند رایگان باشد.
@@ -448,8 +448,8 @@ onMounted(loadDetail)
</a-form-item>
</a-col>
</a-row>
<a-form-item v-if="!renewForm.isFree" label="مبلغ (ریال)">
<MoneyInput v-model:value="renewForm.priceRials" placeholder="مثلاً 1,500,000" />
<a-form-item v-if="!renewForm.isFree" label="مبلغ (تومان)">
<MoneyInput v-model:value="renewForm.priceRials" placeholder="مثلاً 150,000" />
</a-form-item>
<p v-else class="field-hint">
دوره رایگان — مبلغ صفر. مدت ۱ / ۳ / ۶ / ۱۲ ماه می‌تواند رایگان باشد.
@@ -523,8 +523,8 @@ onMounted(loadDetail)
<a-form-item label="دوره رایگان">
<a-switch v-model:checked="createForm.isFree" />
</a-form-item>
<a-form-item v-if="!createForm.isFree" label="قیمت دوره (ریال)">
<MoneyInput v-model:value="createForm.priceRials" placeholder="مثلاً 1,500,000" />
<a-form-item v-if="!createForm.isFree" label="قیمت دوره (تومان)">
<MoneyInput v-model:value="createForm.priceRials" placeholder="مثلاً 150,000" />
</a-form-item>
<p v-else class="field-hint">
دوره رایگان — مبلغ صفر. مدت ۱ / ۳ / ۶ / ۱۲ ماه می‌تواند رایگان باشد.