fix pargar mande
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
<span v-if="order.id" class="order-detail__dot">·</span>
|
||||
<span v-if="order.id">کد {{ order.id }}</span>
|
||||
<span class="order-detail__dot">·</span>
|
||||
<span class="order-detail__muted">{{ dateLabel }} {{ timeLabel }}</span>
|
||||
<span class="order-detail__muted">{{ dateLabel }}</span>
|
||||
</p>
|
||||
<p class="order-detail__product-line m-0">
|
||||
<span class="order-detail__field-label">محصول</span>
|
||||
@@ -193,7 +193,7 @@
|
||||
<script setup lang="ts">
|
||||
import type { Order } from '@/model/order'
|
||||
import { isMobile } from '@core/utils/is'
|
||||
import { toJalaliNoTime, toTime } from '@core/utils/useDataTime'
|
||||
import { toJalali } from '@core/utils/useDataTime'
|
||||
import { formatAmountWithUnit } from '@/utils/weightUnit'
|
||||
import {
|
||||
formatOrderRial,
|
||||
@@ -241,10 +241,8 @@ const directionClass = computed(() =>
|
||||
)
|
||||
|
||||
const dateLabel = computed(() =>
|
||||
order.value?.created_at ? toJalaliNoTime(order.value.created_at) : '—'
|
||||
order.value?.created_at ? toJalali(order.value.created_at) : '—'
|
||||
)
|
||||
const timeLabel = computed(() => (order.value?.created_at ? toTime(order.value.created_at) : ''))
|
||||
|
||||
const paymentLabel = computed(() =>
|
||||
order.value?.direction === 2 ? 'مبلغ دریافتی مشتری' : 'مبلغ پرداختی مشتری'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user