import type { BaseTableColumn } from '@core/type/baseTable' import { toJalaliNoTime, toTime } from '@core/utils/useDataTime' import CustomTag from '@/components/CustomTag.vue' /*import BudgetSelect from '@/components/BudgetSelect.vue' import { useStaticApiListsStore } from '@/store/staticApisStore' import type { FilterSelect } from '@/model/filterSelect' import type { DocItem } from '@/model/docType'*/ //define store //const store = useStaticApiListsStore() //document types /*let docTypes: DocItem[]*/ /*onMounted(async () => { docTypes = await store.readyDocTypeList() }) const filteredDocTypes: FilterSelect = docTypes?.map((x: DocItem) => { return { label: x.title, value: x.id } })*/ export const cols: BaseTableColumn[] = [ { title: 'ردیف', dataIndex: 'id', key: 'id', filterable: false, sortable: false, customRender: (record: any) => { return record.index + 1 } }, { title: 'کد حساب', dataIndex: 'id', key: 'id', type: 'Number' // className: 'column-money' }, { title: 'کد کاربر', dataIndex: 'customer_id', key: 'customer_id', type: 'Number' }, { title: 'نام و نام خانوادگی', dataIndex: 'customer.name', key: 'customer.name', type: 'Text' }, { title: 'نام بانک', dataIndex: 'bank_name', key: 'bank_name', type: 'Text' }, { title: 'شماره حساب', dataIndex: 'account_number', key: 'account_number', type: 'Number' }, { title: 'شماره کارت', dataIndex: 'cart_number', key: 'cart_number', type: 'Number' }, { title: 'شماره شبا', dataIndex: 'shaba_number', key: 'shaba_number', type: 'Number' }, { title: 'وضعیت', dataIndex: 'sts', key: 'sts', filterable: false, customRender: ({ record }) => { switch (record.sts) { case 1: return (