diff --git a/apps/web/src/views/treasury/TreasuryPayrollView.vue b/apps/web/src/views/treasury/TreasuryPayrollView.vue index a29faf4..92dfc34 100644 --- a/apps/web/src/views/treasury/TreasuryPayrollView.vue +++ b/apps/web/src/views/treasury/TreasuryPayrollView.vue @@ -12,6 +12,7 @@ import { Flex as AFlex, Form as AForm, FormItem as AFormItem, + Grid, Modal as AModal, Row as ARow, Select as ASelect, @@ -46,6 +47,8 @@ import { parseMoneyNumber } from '@/lib/money'; const { Text: ATypographyText } = Typography; const { useToken } = theme; const { token } = useToken(); +const screens = Grid.useBreakpoint(); +const isMobile = computed(() => !screens.value.md); type PayrollPayment = { id: string; @@ -207,12 +210,6 @@ const paymentColumns: TableColumnsType = [ { title: 'عملیات', key: 'action' }, ]; -const detailPaymentColumns: TableColumnsType = [ - { title: 'تاریخ', key: 'occurredAt' }, - { title: 'حساب', dataIndex: 'accountName', key: 'accountName' }, - { title: 'مبلغ', key: 'amount' }, -]; - function moneyFilled(value: string) { return (parseMoneyNumber(String(value ?? ''), 0) ?? 0) > 0; } @@ -745,6 +742,95 @@ onMounted(() => { + + + + + + + + {{ row.fullName }} + {{ statusLabel[row.status] ?? row.status }} + + {{ formatPeriod(row.period) }} + + + + پایه + {{ toman(row.baseAmount) }} + + + + + مزایا + {{ toman(row.benefits) }} + + + + + پاداش + {{ toman(row.bonus) }} + + + + + کسورات + {{ toman(row.deductions) }} + + + + + قابل پرداخت + {{ toman(row.payable) }} + + + + + پرداخت‌شده + {{ toman(row.paidAmount) }} + + + + + + مانده + {{ toman(row.remaining) }} + + + + + + + + + + + + + + + + + + + + + { + + - - - {{ detail.fullName }} - {{ formatPeriod(detail.period) }} + + + {{ statusLabel[detail.status] ?? detail.status }} {{ toman(detail.baseAmount) }} {{ toman(detail.benefits) }} @@ -834,25 +933,22 @@ onMounted(() => { پرداخت‌ها - - - + + + + {{ formatJalaliNumeric(new Date(payment.occurredAt)) }} + {{ payment.accountName }} + + {{ toman(payment.amount) }} + +