fix price

This commit is contained in:
2026-07-29 16:02:41 +03:30
parent 2cf4ec1bd9
commit 96fa254abb
13 changed files with 313 additions and 43 deletions
@@ -92,6 +92,10 @@ import BasicModal from '@/components/BasicModal.vue'
import ZarinRetryModal from '@/components/ZarinRetryModal.vue'
import ZarinMobileCardList from '@/pages/menuPages/accounting/components/ZarinMobileCardList.vue'
import { zarinStatusLabel } from '@/pages/menuPages/accounting/utils/zarinStatus'
import {
metalAmountLabel,
rialAmountLabel,
} from '@/pages/menuPages/accounting/utils/accountingDocAmounts'
import { toJalali } from '@core/utils/useDataTime'
const [submit, reload] = useBaseTable()
@@ -112,7 +116,23 @@ const columns = [
},
{ title: 'مشتری', dataIndex: 'customer.name', key: 'customer.name', type: 'Text' },
{ title: 'نوع', dataIndex: 'type', key: 'type', type: 'Text' },
{ title: 'مقدار', dataIndex: 'amount', key: 'amount', type: 'Number' },
{
title: 'مقدار',
dataIndex: 'amount',
key: 'amount',
type: 'Number',
filterable: false,
customRender: (r: any) => metalAmountLabel(r.record),
},
{
title: 'مبلغ ریالی',
dataIndex: 'rial_amount',
key: 'rial_amount',
type: 'Text',
filterable: false,
sortable: false,
customRender: (r: any) => rialAmountLabel(r.record),
},
{ title: 'شرح', dataIndex: 'desc', key: 'desc', type: 'Text' },
{
title: 'وضعیت',
@@ -152,7 +172,8 @@ const infoItems = computed(() => {
{ label: 'مشتری', value: row.customer?.name },
{ label: 'موبایل', value: row.customer?.mobile },
{ label: 'نوع', value: row.type },
{ label: 'مقدار', value: row.amount },
{ label: 'مقدار', value: metalAmountLabel(row) },
{ label: 'مبلغ ریالی', value: rialAmountLabel(row) },
{ label: 'شرح', value: row.desc },
{ label: 'زمان ثبت', value: row.created_at ? toJalali(row.created_at) : '-' },
{ label: 'وضعیت', value: zarinStatusLabel(row.sync_status, row.zarin_id) },