fix some bugs

This commit is contained in:
2026-06-23 22:31:07 +03:30
parent 4e7d6bca00
commit 71764f7e9a
68 changed files with 1941 additions and 1288 deletions
@@ -2,6 +2,7 @@ import type { BaseTableColumn } from '@core/type/baseTable'
import { toJalaliNoTime, toTime } from '@core/utils/useDataTime'
import CustomTag from '@/components/CustomTag.vue'
import { usePrice } from '@core/utils/usePrice'
import { metalLabel } from '@/utils/adminMetalLabels'
/*import BudgetSelect from '@/components/BudgetSelect.vue'
import { useStaticApiListsStore } from '@/store/staticApisStore'
import type { FilterSelect } from '@/model/filterSelect'
@@ -21,7 +22,8 @@ const filteredDocTypes: FilterSelect = docTypes?.map((x: DocItem) => {
}
})*/
export const cols: BaseTableColumn[] = [
export function getPriceColumns(): BaseTableColumn[] {
return [
{
title: 'ردیف',
dataIndex: 'id',
@@ -53,7 +55,7 @@ export const cols: BaseTableColumn[] = [
type: 'Text'
},
{
title: 'قیمت هر گرم طلا برای مشتری (ریال)',
title: metalLabel.goldGramPriceCustomer(),
dataIndex: 'price',
key: 'price',
type: 'Text',
@@ -157,4 +159,5 @@ export const cols: BaseTableColumn[] = [
fixed: 'right',
filterable: false
}*/
]
]
}