提交
This commit is contained in:
1 parent
42ad896456
commit
6b2147aa46
66 files changed
+617071
-28046
No files matched your search
@@ -107,16 +107,15 @@
|
||||
</div>
|
||||
|
||||
<div class="list-body list-wrap">
|
||||
<div class="table-scroll table-page-summary">
|
||||
<div ref="advanceApplyTableWrapRef" class="table-scroll bx-list-table-wrap">
|
||||
<ListTable table-key="bx-advance-apply"
|
||||
class="list-table"
|
||||
:data="rows"
|
||||
v-loading="loading"
|
||||
stripe
|
||||
show-summary
|
||||
:summary-method="summaryMethod"
|
||||
@selection-change="onSelectionChange"
|
||||
@row-dblclick="openView"
|
||||
@header-dragend="onAdvanceApplyHeaderDragEnd"
|
||||
>
|
||||
<el-table-column type="selection" min-width="48" align="center" header-align="center" />
|
||||
<el-table-column type="index" label="序号" min-width="68" align="center" header-align="center" />
|
||||
@@ -233,6 +232,13 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
</ListTable>
|
||||
<ListColumnStatsRow
|
||||
ref="advanceApplyStatsRowRef"
|
||||
storage-key="bx-advance-apply-column-stats"
|
||||
:columns="advanceApplyStatsRowColumns"
|
||||
:data="rows"
|
||||
:table-wrap-el="advanceApplyTableWrapRef"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="pagination list-pager-bar">
|
||||
@@ -412,6 +418,7 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import ListToolbarEndActions from '@/components/business/list-toolbar-end-actions/index.vue'
|
||||
import ListColumnStatsRow from '@/components/business/list-column-stats-row/index.vue'
|
||||
import { useDbInstantSearch } from '@/composables/useDbInstantSearch'
|
||||
import { usePersistedListColumns } from '@/composables/usePersistedListColumns'
|
||||
import ListQuickSearchInput from '@/components/business/list-quick-search-input/index.vue'
|
||||
@@ -449,7 +456,7 @@ import BaseDetailTableSection from '@/components/bx/base/BaseDetailTableSection.
|
||||
import type { ViewField } from '@/components/business/system-view-dialog/types'
|
||||
import { bxViewKv, bxViewKvMoney } from '@/utils/bx/view-kv'
|
||||
import { buildApplyDateRangeQuery, type ApplyDateRange } from '@/utils/bx/apply-date-filter'
|
||||
import { buildPageSummaryMethod, sumField } from '@/utils/bx/table-summary'
|
||||
import type { StatsRowColumn } from '@/utils/list-column-stats'
|
||||
|
||||
type DialogKey = 'add' | 'view' | 'viewFlow'
|
||||
|
||||
@@ -487,6 +494,39 @@ const {
|
||||
resetToDefault
|
||||
} = usePersistedListColumns('bx-advance-apply-list-columns', listColumnDefs)
|
||||
|
||||
const ADVANCE_APPLY_MONEY_PROPS = new Set(['amount', 'actualAmount', 'offsetAmount'])
|
||||
|
||||
const advanceApplyTableWrapRef = ref<HTMLElement | null>(null)
|
||||
const advanceApplyStatsRowRef = ref<{ resync?: () => void } | null>(null)
|
||||
|
||||
/** 列顺序与表头一致:selection、index、可选 applyTime、固定 applyCode、其余可选列 */
|
||||
const advanceApplyStatsRowColumns = computed((): StatsRowColumn[] => {
|
||||
const cols: StatsRowColumn[] = [
|
||||
{ key: '__selection', interactive: false },
|
||||
{ key: '__index', interactive: false }
|
||||
]
|
||||
if (isColumnVisible('applyTime')) {
|
||||
cols.push({ key: 'applyTime', interactive: true, prop: 'applyTime' })
|
||||
}
|
||||
cols.push({ key: 'applyCode', interactive: true, prop: 'applyCode' })
|
||||
for (const def of listColumnDefs) {
|
||||
if (def.prop === 'applyTime') continue
|
||||
if (!isColumnVisible(def.prop)) continue
|
||||
cols.push({
|
||||
key: def.prop,
|
||||
interactive: true,
|
||||
prop: def.prop,
|
||||
money: ADVANCE_APPLY_MONEY_PROPS.has(def.prop),
|
||||
...(ADVANCE_APPLY_MONEY_PROPS.has(def.prop) ? { align: 'right' as const } : {})
|
||||
})
|
||||
}
|
||||
return cols
|
||||
})
|
||||
|
||||
function onAdvanceApplyHeaderDragEnd() {
|
||||
advanceApplyStatsRowRef.value?.resync?.()
|
||||
}
|
||||
|
||||
const filterForm = reactive({
|
||||
keyword: '',
|
||||
status: '',
|
||||
@@ -845,11 +885,10 @@ async function handleDelete(row: any) {
|
||||
}
|
||||
}
|
||||
|
||||
const summaryMethod = buildPageSummaryMethod({
|
||||
sumByProp: {
|
||||
amount: (data) => sumField(data, 'amount'),
|
||||
actualAmount: (data) => sumField(data, 'actualAmount', true),
|
||||
offsetAmount: (data) => sumField(data, 'offsetAmount')
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.bx-list-table-wrap {
|
||||
min-width: 0;
|
||||
}
|
||||
</style>
|
||||
@@ -81,16 +81,15 @@
|
||||
</div>
|
||||
|
||||
<div class="list-body list-wrap">
|
||||
<div class="table-scroll table-page-summary">
|
||||
<div ref="pendingTableWrapRef" class="table-scroll bx-list-table-wrap">
|
||||
<ListTable table-key="bx-advance-approve"
|
||||
class="list-table"
|
||||
:data="pendingRows"
|
||||
v-loading="pendingLoading"
|
||||
stripe
|
||||
show-summary
|
||||
:summary-method="pendingSummaryMethod"
|
||||
@selection-change="onSelectionChange"
|
||||
@row-dblclick="openView"
|
||||
@header-dragend="() => pendingStatsRowRef?.resync?.()"
|
||||
>
|
||||
<el-table-column type="selection" min-width="48" align="center" header-align="center" />
|
||||
<el-table-column type="index" label="序号" min-width="68" align="center" header-align="center" />
|
||||
@@ -163,6 +162,13 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
</ListTable>
|
||||
<ListColumnStatsRow
|
||||
ref="pendingStatsRowRef"
|
||||
storage-key="bx-advance-approve-pending-column-stats"
|
||||
:columns="pendingStatsRowColumns"
|
||||
:data="pendingRows"
|
||||
:table-wrap-el="pendingTableWrapRef"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="pagination list-pager-bar">
|
||||
@@ -249,15 +255,14 @@
|
||||
</div>
|
||||
|
||||
<div class="list-body list-wrap">
|
||||
<div class="table-scroll table-page-summary">
|
||||
<div ref="approvedTableWrapRef" class="table-scroll bx-list-table-wrap">
|
||||
<ListTable table-key="bx-advance-approve-2"
|
||||
class="list-table"
|
||||
:data="approvedRows"
|
||||
v-loading="approvedLoading"
|
||||
stripe
|
||||
show-summary
|
||||
:summary-method="approvedSummaryMethod"
|
||||
@row-dblclick="openView"
|
||||
@header-dragend="() => approvedStatsRowRef?.resync?.()"
|
||||
>
|
||||
<el-table-column type="index" label="序号" min-width="68" align="center" header-align="center" />
|
||||
<el-table-column
|
||||
@@ -343,6 +348,13 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
</ListTable>
|
||||
<ListColumnStatsRow
|
||||
ref="approvedStatsRowRef"
|
||||
storage-key="bx-advance-approve-approved-column-stats"
|
||||
:columns="approvedStatsRowColumns"
|
||||
:data="approvedRows"
|
||||
:table-wrap-el="approvedTableWrapRef"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="pagination list-pager-bar">
|
||||
@@ -466,6 +478,7 @@
|
||||
<script setup lang="ts">
|
||||
import { reactive, ref, computed, onMounted } from 'vue'
|
||||
import ListToolbarEndActions from '@/components/business/list-toolbar-end-actions/index.vue'
|
||||
import ListColumnStatsRow from '@/components/business/list-column-stats-row/index.vue'
|
||||
import ListQuickSearchInput from '@/components/business/list-quick-search-input/index.vue'
|
||||
import { useDbInstantSearch } from '@/composables/useDbInstantSearch'
|
||||
import { usePersistedListColumns } from '@/composables/usePersistedListColumns'
|
||||
@@ -491,7 +504,7 @@ import BxViewKvTable from '@/components/bx/base/BxViewKvTable.vue'
|
||||
import type { ViewField } from '@/components/business/system-view-dialog/types'
|
||||
import { bxViewKv, bxViewKvLong, bxViewKvMoney } from '@/utils/bx/view-kv'
|
||||
import { buildApplyDateRangeQuery, type ApplyDateRange } from '@/utils/bx/apply-date-filter'
|
||||
import { buildPageSummaryMethod, sumField } from '@/utils/bx/table-summary'
|
||||
import type { StatsRowColumn } from '@/utils/list-column-stats'
|
||||
|
||||
type DialogKey = 'view' | 'approve'
|
||||
|
||||
@@ -512,6 +525,43 @@ const {
|
||||
resetToDefault
|
||||
} = usePersistedListColumns('bx-advance-approve-list-columns', listColumnDefs)
|
||||
|
||||
const pendingTableWrapRef = ref<HTMLElement | null>(null)
|
||||
const approvedTableWrapRef = ref<HTMLElement | null>(null)
|
||||
const pendingStatsRowRef = ref<{ resync?: () => void } | null>(null)
|
||||
const approvedStatsRowRef = ref<{ resync?: () => void } | null>(null)
|
||||
|
||||
function buildAdvanceApproveStatsColumns(opts: {
|
||||
withSelection: boolean
|
||||
includeStatus: boolean
|
||||
}): StatsRowColumn[] {
|
||||
const cols: StatsRowColumn[] = []
|
||||
if (opts.withSelection) cols.push({ key: '__selection', interactive: false })
|
||||
cols.push({ key: '__index', interactive: false })
|
||||
if (isColumnVisible('applyTime')) {
|
||||
cols.push({ key: 'applyTime', interactive: true, prop: 'applyTime' })
|
||||
}
|
||||
cols.push({ key: 'applyCode', interactive: true, prop: 'applyCode' })
|
||||
for (const def of listColumnDefs) {
|
||||
if (def.prop === 'applyTime') continue
|
||||
if (def.prop === 'status' && !opts.includeStatus) continue
|
||||
if (!isColumnVisible(def.prop)) continue
|
||||
cols.push({
|
||||
key: def.prop,
|
||||
interactive: true,
|
||||
prop: def.prop,
|
||||
money: def.prop === 'amount'
|
||||
})
|
||||
}
|
||||
return cols
|
||||
}
|
||||
|
||||
const pendingStatsRowColumns = computed(() =>
|
||||
buildAdvanceApproveStatsColumns({ withSelection: true, includeStatus: false })
|
||||
)
|
||||
const approvedStatsRowColumns = computed(() =>
|
||||
buildAdvanceApproveStatsColumns({ withSelection: false, includeStatus: true })
|
||||
)
|
||||
|
||||
const loadingMap = reactive<Record<string, boolean>>({})
|
||||
const dialogs = reactive<Record<DialogKey, boolean>>({
|
||||
view: false,
|
||||
@@ -769,14 +819,6 @@ async function openView(row: any) {
|
||||
}
|
||||
}
|
||||
|
||||
const amountSummary = buildPageSummaryMethod({
|
||||
sumByProp: {
|
||||
amount: (data) => sumField(data, 'amount')
|
||||
}
|
||||
})
|
||||
const pendingSummaryMethod = amountSummary
|
||||
const approvedSummaryMethod = amountSummary
|
||||
|
||||
async function handleConfirmApprove() {
|
||||
if (!approveRows.value.length) {
|
||||
ElMessage.warning('没有可审批的申请')
|
||||
@@ -818,6 +860,10 @@ async function handleConfirmApprove() {
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.bx-list-table-wrap {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.batch-action-alert {
|
||||
margin-bottom: 12px;
|
||||
|
||||
|
||||
@@ -80,16 +80,15 @@
|
||||
</div>
|
||||
|
||||
<div class="list-body list-wrap">
|
||||
<div class="table-scroll table-page-summary">
|
||||
<div ref="pendingIssueTableWrapRef" class="table-scroll bx-list-table-wrap">
|
||||
<ListTable table-key="bx-advance-issue"
|
||||
class="list-table"
|
||||
:data="rows"
|
||||
v-loading="loading"
|
||||
stripe
|
||||
show-summary
|
||||
:summary-method="advanceIssueSummary"
|
||||
@selection-change="onSelectionChange"
|
||||
@row-dblclick="openView"
|
||||
@header-dragend="() => pendingIssueStatsRowRef?.resync?.()"
|
||||
>
|
||||
<el-table-column type="selection" min-width="48" align="center" header-align="center" />
|
||||
<el-table-column type="index" label="序号" min-width="68" align="center" header-align="center" />
|
||||
@@ -182,6 +181,13 @@
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
</ListTable>
|
||||
<ListColumnStatsRow
|
||||
ref="pendingIssueStatsRowRef"
|
||||
storage-key="bx-advance-issue-pending-column-stats"
|
||||
:columns="pendingIssueStatsRowColumns"
|
||||
:data="rows"
|
||||
:table-wrap-el="pendingIssueTableWrapRef"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="pagination list-pager-bar">
|
||||
@@ -271,15 +277,14 @@
|
||||
</div>
|
||||
|
||||
<div class="list-body list-wrap">
|
||||
<div class="table-scroll table-page-summary">
|
||||
<div ref="issuedTableWrapRef" class="table-scroll bx-list-table-wrap">
|
||||
<ListTable table-key="bx-advance-issue-2"
|
||||
class="list-table"
|
||||
:data="rows"
|
||||
v-loading="loading"
|
||||
stripe
|
||||
show-summary
|
||||
:summary-method="advanceIssueSummary"
|
||||
@row-dblclick="openView"
|
||||
@header-dragend="() => issuedStatsRowRef?.resync?.()"
|
||||
>
|
||||
<el-table-column type="index" label="序号" min-width="68" align="center" header-align="center" />
|
||||
<el-table-column
|
||||
@@ -378,6 +383,13 @@
|
||||
header-align="center"
|
||||
/>
|
||||
</ListTable>
|
||||
<ListColumnStatsRow
|
||||
ref="issuedStatsRowRef"
|
||||
storage-key="bx-advance-issue-issued-column-stats"
|
||||
:columns="issuedStatsRowColumns"
|
||||
:data="rows"
|
||||
:table-wrap-el="issuedTableWrapRef"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="pagination list-pager-bar">
|
||||
@@ -516,6 +528,7 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import ListToolbarEndActions from '@/components/business/list-toolbar-end-actions/index.vue'
|
||||
import ListColumnStatsRow from '@/components/business/list-column-stats-row/index.vue'
|
||||
import { useDbInstantSearch } from '@/composables/useDbInstantSearch'
|
||||
import { usePersistedListColumns } from '@/composables/usePersistedListColumns'
|
||||
import ListQuickSearchInput from '@/components/business/list-quick-search-input/index.vue'
|
||||
@@ -535,7 +548,7 @@ import BxAttachmentReadonly from '@/components/bx/base/BxAttachmentReadonly.vue'
|
||||
import type { ViewField } from '@/components/business/system-view-dialog/types'
|
||||
import { bxViewKv } from '@/utils/bx/view-kv'
|
||||
import { buildApplyDateRangeQuery, type ApplyDateRange } from '@/utils/bx/apply-date-filter'
|
||||
import { buildPageSummaryMethod, sumField } from '@/utils/bx/table-summary'
|
||||
import type { StatsRowColumn } from '@/utils/list-column-stats'
|
||||
|
||||
type DialogKey = 'issue' | 'view'
|
||||
|
||||
@@ -559,6 +572,46 @@ const {
|
||||
resetToDefault
|
||||
} = usePersistedListColumns('bx-advance-issue-list-columns', listColumnDefs)
|
||||
|
||||
const ISSUE_MONEY_PROPS = new Set(['amount', 'actualAmount', 'offsetAmount'])
|
||||
|
||||
const pendingIssueTableWrapRef = ref<HTMLElement | null>(null)
|
||||
const issuedTableWrapRef = ref<HTMLElement | null>(null)
|
||||
const pendingIssueStatsRowRef = ref<{ resync?: () => void } | null>(null)
|
||||
const issuedStatsRowRef = ref<{ resync?: () => void } | null>(null)
|
||||
|
||||
function buildIssueStatsColumns(opts: {
|
||||
withSelection: boolean
|
||||
mode: 'pending' | 'issued'
|
||||
}): StatsRowColumn[] {
|
||||
const cols: StatsRowColumn[] = []
|
||||
if (opts.withSelection) cols.push({ key: '__selection', interactive: false })
|
||||
cols.push({ key: '__index', interactive: false })
|
||||
if (isColumnVisible('applyTime')) {
|
||||
cols.push({ key: 'applyTime', interactive: true, prop: 'applyTime' })
|
||||
}
|
||||
cols.push({ key: 'applyCode', interactive: true, prop: 'applyCode' })
|
||||
for (const def of listColumnDefs) {
|
||||
if (def.prop === 'applyTime') continue
|
||||
if (opts.mode === 'pending' && (def.prop === 'issueTime' || def.prop === 'issueUserName')) continue
|
||||
if (opts.mode === 'issued' && def.prop === 'approveTime') continue
|
||||
if (!isColumnVisible(def.prop)) continue
|
||||
cols.push({
|
||||
key: def.prop,
|
||||
interactive: true,
|
||||
prop: def.prop,
|
||||
money: ISSUE_MONEY_PROPS.has(def.prop)
|
||||
})
|
||||
}
|
||||
return cols
|
||||
}
|
||||
|
||||
const pendingIssueStatsRowColumns = computed(() =>
|
||||
buildIssueStatsColumns({ withSelection: true, mode: 'pending' })
|
||||
)
|
||||
const issuedStatsRowColumns = computed(() =>
|
||||
buildIssueStatsColumns({ withSelection: false, mode: 'issued' })
|
||||
)
|
||||
|
||||
const loadingMap = reactive<Record<string, boolean>>({})
|
||||
const dialogs = reactive<Record<DialogKey, boolean>>({
|
||||
issue: false,
|
||||
@@ -629,14 +682,6 @@ function issueStatusTagType(status: string): 'success' | 'warning' {
|
||||
return status === 'issued' ? 'success' : 'warning'
|
||||
}
|
||||
|
||||
const advanceIssueSummary = buildPageSummaryMethod({
|
||||
sumByProp: {
|
||||
amount: (data) => sumField(data, 'amount'),
|
||||
actualAmount: (data) => sumField(data, 'actualAmount'),
|
||||
offsetAmount: (data) => sumField(data, 'offsetAmount')
|
||||
}
|
||||
})
|
||||
|
||||
onMounted(() => {
|
||||
loadApplicantOptions()
|
||||
refresh()
|
||||
@@ -798,3 +843,9 @@ async function openView(row: any) {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.bx-list-table-wrap {
|
||||
min-width: 0;
|
||||
}
|
||||
</style>
|
||||
@@ -44,40 +44,50 @@
|
||||
</div>
|
||||
|
||||
<div class="list-body list-wrap">
|
||||
<ListTable table-key="bx-invoice-wallet-admin"
|
||||
v-loading="loading"
|
||||
class="list-table"
|
||||
:data="rows"
|
||||
stripe
|
||||
@row-dblclick="openDetail"
|
||||
>
|
||||
<el-table-column type="index" label="序号" min-width="68" align="center" />
|
||||
<el-table-column prop="ownerUserName" label="员工" min-width="120">
|
||||
<template #default="{ row }">
|
||||
<el-link type="primary" @click="openDetail(row)">{{ row.ownerUserName || '-' }}</el-link>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="totalAmount" label="总额(元)" min-width="120" align="right">
|
||||
<template #default="{ row }">{{ formatMoneyYuan(row.totalAmount) }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="usedAmount" label="已报销占用(元)" min-width="140" align="right">
|
||||
<template #default="{ row }">{{ formatMoneyYuan(row.usedAmount) }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="balance" label="余额(元)" min-width="120" align="right">
|
||||
<template #default="{ row }">{{ formatMoneyYuan(row.balance) }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="invoiceCount" label="发票张数" min-width="100" align="center" />
|
||||
<el-table-column label="操作" fixed="right" min-width="200">
|
||||
<template #default="{ row }">
|
||||
<el-button type="primary" link @click="openDetail(row)">
|
||||
<el-icon><View /></el-icon>管理发票
|
||||
</el-button>
|
||||
<el-button type="primary" link @click="openProxyUpload(row)">
|
||||
<el-icon><Upload /></el-icon>代传
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</ListTable>
|
||||
<div ref="walletAdminTableWrapRef" class="bx-list-table-wrap">
|
||||
<ListTable table-key="bx-invoice-wallet-admin"
|
||||
v-loading="loading"
|
||||
class="list-table"
|
||||
:data="rows"
|
||||
stripe
|
||||
@row-dblclick="openDetail"
|
||||
@header-dragend="() => walletAdminStatsRowRef?.resync?.()"
|
||||
>
|
||||
<el-table-column type="index" label="序号" min-width="68" align="center" />
|
||||
<el-table-column prop="ownerUserName" label="员工" min-width="120">
|
||||
<template #default="{ row }">
|
||||
<el-link type="primary" @click="openDetail(row)">{{ row.ownerUserName || '-' }}</el-link>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="totalAmount" label="总额(元)" min-width="120" align="right">
|
||||
<template #default="{ row }">{{ formatMoneyYuan(row.totalAmount) }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="usedAmount" label="已报销占用(元)" min-width="140" align="right">
|
||||
<template #default="{ row }">{{ formatMoneyYuan(row.usedAmount) }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="balance" label="余额(元)" min-width="120" align="right">
|
||||
<template #default="{ row }">{{ formatMoneyYuan(row.balance) }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="invoiceCount" label="发票张数" min-width="100" align="center" />
|
||||
<el-table-column label="操作" fixed="right" min-width="200">
|
||||
<template #default="{ row }">
|
||||
<el-button type="primary" link @click="openDetail(row)">
|
||||
<el-icon><View /></el-icon>管理发票
|
||||
</el-button>
|
||||
<el-button type="primary" link @click="openProxyUpload(row)">
|
||||
<el-icon><Upload /></el-icon>代传
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</ListTable>
|
||||
<ListColumnStatsRow
|
||||
ref="walletAdminStatsRowRef"
|
||||
storage-key="bx-invoice-wallet-admin-column-stats"
|
||||
:columns="walletAdminStatsRowColumns"
|
||||
:data="rows"
|
||||
:table-wrap-el="walletAdminTableWrapRef"
|
||||
/>
|
||||
</div>
|
||||
<div class="pagination list-pager-bar">
|
||||
<el-pagination
|
||||
v-model:current-page="page"
|
||||
@@ -264,7 +274,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { onMounted, reactive, ref } from 'vue'
|
||||
import { computed, onMounted, reactive, ref } from 'vue'
|
||||
import {
|
||||
Search,
|
||||
RefreshLeft,
|
||||
@@ -277,6 +287,8 @@
|
||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
import ListQuickSearchInput from '@/components/business/list-quick-search-input/index.vue'
|
||||
import ListToolbarEndActions from '@/components/business/list-toolbar-end-actions/index.vue'
|
||||
import ListColumnStatsRow from '@/components/business/list-column-stats-row/index.vue'
|
||||
import type { StatsRowColumn } from '@/utils/list-column-stats'
|
||||
import BxInvoiceFileSelect from '@/components/bx/base/BxInvoiceFileSelect.vue'
|
||||
import BxAttachmentReadonly from '@/components/bx/base/BxAttachmentReadonly.vue'
|
||||
import { useApplicantOptions } from '@/hooks/bx/useApplicantOptions'
|
||||
@@ -294,6 +306,20 @@
|
||||
const total = ref(0)
|
||||
const page = ref(1)
|
||||
const pageSize = ref(10)
|
||||
|
||||
const walletAdminTableWrapRef = ref<HTMLElement | null>(null)
|
||||
const walletAdminStatsRowRef = ref<{ resync?: () => void } | null>(null)
|
||||
|
||||
const walletAdminStatsRowColumns = computed((): StatsRowColumn[] => [
|
||||
{ key: '__index', interactive: false },
|
||||
{ key: 'ownerUserName', interactive: true, prop: 'ownerUserName' },
|
||||
{ key: 'totalAmount', interactive: true, prop: 'totalAmount', money: true },
|
||||
{ key: 'usedAmount', interactive: true, prop: 'usedAmount', money: true },
|
||||
{ key: 'balance', interactive: true, prop: 'balance', money: true },
|
||||
{ key: 'invoiceCount', interactive: true, prop: 'invoiceCount' },
|
||||
{ key: '__ops', interactive: false }
|
||||
])
|
||||
|
||||
const filterForm = reactive({ keyword: '' })
|
||||
const quickSearchKeyword = ref('')
|
||||
const detailVisible = ref(false)
|
||||
@@ -537,6 +563,10 @@
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.bx-list-table-wrap {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.detail-empty-hint {
|
||||
margin: 8px 0 0;
|
||||
font-size: 13px;
|
||||
|
||||
@@ -72,60 +72,86 @@
|
||||
<el-tabs v-model="activeTab" class="wallet-tabs">
|
||||
<el-tab-pane label="发票列表" name="invoices">
|
||||
<div class="list-body list-wrap">
|
||||
<ListTable table-key="bx-invoice-wallet-mine"
|
||||
v-loading="loading"
|
||||
class="list-table"
|
||||
:data="filteredInvoiceRows"
|
||||
stripe
|
||||
@row-dblclick="openInvoiceView"
|
||||
>
|
||||
<el-table-column type="index" label="序号" min-width="52" align="center" />
|
||||
<el-table-column prop="amount" label="金额(元)" min-width="88" align="right">
|
||||
<template #default="{ row }">
|
||||
<el-link type="primary" @click="openInvoiceView(row)">
|
||||
{{ formatMoneyYuan(row.amount) }}
|
||||
</el-link>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="附件" min-width="420">
|
||||
<template #default="{ row }">
|
||||
<BxAttachmentReadonly
|
||||
v-if="invoiceThumbFiles(row).length"
|
||||
class="invoice-att-thumbs"
|
||||
:files="invoiceThumbFiles(row)"
|
||||
/>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="remark" label="备注" min-width="100" show-overflow-tooltip>
|
||||
<template #default="{ row }">{{ row.remark || '-' }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="uploadByName" label="上传人" min-width="80">
|
||||
<template #default="{ row }">{{ row.uploadByName || '-' }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="createTime" label="上传时间" min-width="140" />
|
||||
</ListTable>
|
||||
<div ref="invoiceTableWrapRef" class="bx-list-table-wrap">
|
||||
<ListTable table-key="bx-invoice-wallet-mine"
|
||||
v-loading="loading"
|
||||
class="list-table"
|
||||
:data="filteredInvoiceRows"
|
||||
stripe
|
||||
@row-dblclick="openInvoiceView"
|
||||
@header-dragend="() => invoiceStatsRowRef?.resync?.()"
|
||||
>
|
||||
<el-table-column type="index" label="序号" min-width="52" align="center" />
|
||||
<el-table-column prop="amount" label="金额(元)" min-width="88" align="right">
|
||||
<template #default="{ row }">
|
||||
<el-link type="primary" @click="openInvoiceView(row)">
|
||||
{{ formatMoneyYuan(row.amount) }}
|
||||
</el-link>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="附件" min-width="420">
|
||||
<template #default="{ row }">
|
||||
<BxAttachmentReadonly
|
||||
v-if="invoiceThumbFiles(row).length"
|
||||
class="invoice-att-thumbs"
|
||||
:files="invoiceThumbFiles(row)"
|
||||
/>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="remark" label="备注" min-width="100" show-overflow-tooltip>
|
||||
<template #default="{ row }">{{ row.remark || '-' }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="uploadByName" label="上传人" min-width="80">
|
||||
<template #default="{ row }">{{ row.uploadByName || '-' }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="createTime" label="上传时间" min-width="140" />
|
||||
</ListTable>
|
||||
<ListColumnStatsRow
|
||||
ref="invoiceStatsRowRef"
|
||||
storage-key="bx-invoice-wallet-mine-invoices-column-stats"
|
||||
:columns="invoiceStatsRowColumns"
|
||||
:data="filteredInvoiceRows"
|
||||
:table-wrap-el="invoiceTableWrapRef"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="额度流水" name="ledgers">
|
||||
<div class="list-body list-wrap">
|
||||
<ListTable table-key="bx-invoice-wallet-mine-2" v-loading="ledgerLoading" class="list-table" :data="filteredLedgerRows" stripe>
|
||||
<el-table-column type="index" label="序号" min-width="68" align="center" />
|
||||
<el-table-column prop="createTime" label="时间" min-width="170" />
|
||||
<el-table-column prop="entryType" label="类型" min-width="140">
|
||||
<template #default="{ row }">
|
||||
<el-tag size="small" :type="ledgerTagType(row.entryType)">
|
||||
{{ ledgerTypeLabel(row.entryType) }}
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="amount" label="金额(元)" min-width="120" align="right">
|
||||
<template #default="{ row }">{{ formatMoneyYuan(row.amount) }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="remark" label="备注" min-width="180" show-overflow-tooltip>
|
||||
<template #default="{ row }">{{ row.remark || '-' }}</template>
|
||||
</el-table-column>
|
||||
</ListTable>
|
||||
<div ref="ledgerTableWrapRef" class="bx-list-table-wrap">
|
||||
<ListTable
|
||||
table-key="bx-invoice-wallet-mine-2"
|
||||
v-loading="ledgerLoading"
|
||||
class="list-table"
|
||||
:data="filteredLedgerRows"
|
||||
stripe
|
||||
@header-dragend="() => ledgerStatsRowRef?.resync?.()"
|
||||
>
|
||||
<el-table-column type="index" label="序号" min-width="68" align="center" />
|
||||
<el-table-column prop="createTime" label="时间" min-width="170" />
|
||||
<el-table-column prop="entryType" label="类型" min-width="140">
|
||||
<template #default="{ row }">
|
||||
<el-tag size="small" :type="ledgerTagType(row.entryType)">
|
||||
{{ ledgerTypeLabel(row.entryType) }}
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="amount" label="金额(元)" min-width="120" align="right">
|
||||
<template #default="{ row }">{{ formatMoneyYuan(row.amount) }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="remark" label="备注" min-width="180" show-overflow-tooltip>
|
||||
<template #default="{ row }">{{ row.remark || '-' }}</template>
|
||||
</el-table-column>
|
||||
</ListTable>
|
||||
<ListColumnStatsRow
|
||||
ref="ledgerStatsRowRef"
|
||||
storage-key="bx-invoice-wallet-mine-ledgers-column-stats"
|
||||
:columns="ledgerStatsRowColumns"
|
||||
:data="filteredLedgerRows"
|
||||
:table-wrap-el="ledgerTableWrapRef"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
@@ -236,6 +262,8 @@
|
||||
import { ElMessage } from 'element-plus'
|
||||
import ListQuickSearchInput from '@/components/business/list-quick-search-input/index.vue'
|
||||
import ListToolbarEndActions from '@/components/business/list-toolbar-end-actions/index.vue'
|
||||
import ListColumnStatsRow from '@/components/business/list-column-stats-row/index.vue'
|
||||
import type { StatsRowColumn } from '@/utils/list-column-stats'
|
||||
import BxInvoiceFileSelect from '@/components/bx/base/BxInvoiceFileSelect.vue'
|
||||
import BxAttachmentReadonly from '@/components/bx/base/BxAttachmentReadonly.vue'
|
||||
import BxViewKvTable from '@/components/bx/base/BxViewKvTable.vue'
|
||||
@@ -259,6 +287,28 @@
|
||||
const invoiceRows = ref<any[]>([])
|
||||
const ledgerRows = ref<any[]>([])
|
||||
const summary = ref<any>(null)
|
||||
|
||||
const invoiceTableWrapRef = ref<HTMLElement | null>(null)
|
||||
const invoiceStatsRowRef = ref<{ resync?: () => void } | null>(null)
|
||||
const ledgerTableWrapRef = ref<HTMLElement | null>(null)
|
||||
const ledgerStatsRowRef = ref<{ resync?: () => void } | null>(null)
|
||||
|
||||
const invoiceStatsRowColumns = computed((): StatsRowColumn[] => [
|
||||
{ key: '__index', interactive: false },
|
||||
{ key: 'amount', interactive: true, prop: 'amount', money: true },
|
||||
{ key: '__attachments', interactive: true, prop: '__attachments' },
|
||||
{ key: 'remark', interactive: true, prop: 'remark' },
|
||||
{ key: 'uploadByName', interactive: true, prop: 'uploadByName' },
|
||||
{ key: 'createTime', interactive: true, prop: 'createTime' }
|
||||
])
|
||||
|
||||
const ledgerStatsRowColumns = computed((): StatsRowColumn[] => [
|
||||
{ key: '__index', interactive: false },
|
||||
{ key: 'createTime', interactive: true, prop: 'createTime' },
|
||||
{ key: 'entryType', interactive: true, prop: 'entryType' },
|
||||
{ key: 'amount', interactive: true, prop: 'amount', money: true },
|
||||
{ key: 'remark', interactive: true, prop: 'remark' }
|
||||
])
|
||||
const uploadVisible = ref(false)
|
||||
const viewVisible = ref(false)
|
||||
const viewRow = ref<any>(null)
|
||||
@@ -500,6 +550,10 @@
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.bx-list-table-wrap {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.panel-top-meta {
|
||||
margin: 6px 0 0;
|
||||
font-size: 13px;
|
||||
|
||||
@@ -81,16 +81,15 @@
|
||||
</div>
|
||||
|
||||
<div class="list-body list-wrap">
|
||||
<div class="table-scroll table-page-summary">
|
||||
<div ref="pendingPaymentTableWrapRef" class="table-scroll bx-list-table-wrap">
|
||||
<ListTable table-key="bx-payment"
|
||||
class="list-table"
|
||||
:data="rows"
|
||||
v-loading="loading"
|
||||
stripe
|
||||
show-summary
|
||||
:summary-method="summaryMethod"
|
||||
@selection-change="onSelectionChange"
|
||||
@row-dblclick="openView"
|
||||
@header-dragend="() => pendingPaymentStatsRowRef?.resync?.()"
|
||||
>
|
||||
<el-table-column type="selection" min-width="48" align="center" header-align="center" />
|
||||
<el-table-column type="index" label="序号" min-width="68" align="center" header-align="center" />
|
||||
@@ -174,6 +173,14 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
</ListTable>
|
||||
<ListColumnStatsRow
|
||||
ref="pendingPaymentStatsRowRef"
|
||||
storage-key="bx-payment-pending-column-stats"
|
||||
:columns="pendingPaymentStatsRowColumns"
|
||||
:data="rows"
|
||||
:table-wrap-el="pendingPaymentTableWrapRef"
|
||||
:get-cell-value="getPaymentStatCellValue"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="pagination list-pager-bar">
|
||||
@@ -270,15 +277,14 @@
|
||||
</div>
|
||||
|
||||
<div class="list-body list-wrap">
|
||||
<div class="table-scroll table-page-summary">
|
||||
<div ref="processedPaymentTableWrapRef" class="table-scroll bx-list-table-wrap">
|
||||
<ListTable table-key="bx-payment-2"
|
||||
class="list-table"
|
||||
:data="processedRows"
|
||||
v-loading="processedLoading"
|
||||
stripe
|
||||
show-summary
|
||||
:summary-method="processedSummaryMethod"
|
||||
@row-dblclick="openProcessedView"
|
||||
@header-dragend="() => processedPaymentStatsRowRef?.resync?.()"
|
||||
>
|
||||
<el-table-column type="index" label="序号" min-width="68" align="center" header-align="center" />
|
||||
<el-table-column
|
||||
@@ -386,6 +392,14 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
</ListTable>
|
||||
<ListColumnStatsRow
|
||||
ref="processedPaymentStatsRowRef"
|
||||
storage-key="bx-payment-processed-column-stats"
|
||||
:columns="processedPaymentStatsRowColumns"
|
||||
:data="processedRows"
|
||||
:table-wrap-el="processedPaymentTableWrapRef"
|
||||
:get-cell-value="getPaymentStatCellValue"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="pagination list-pager-bar">
|
||||
@@ -677,6 +691,7 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import ListToolbarEndActions from '@/components/business/list-toolbar-end-actions/index.vue'
|
||||
import ListColumnStatsRow from '@/components/business/list-column-stats-row/index.vue'
|
||||
import { useDbInstantSearch } from '@/composables/useDbInstantSearch'
|
||||
import { usePersistedListColumns } from '@/composables/usePersistedListColumns'
|
||||
import ListQuickSearchInput from '@/components/business/list-quick-search-input/index.vue'
|
||||
@@ -705,7 +720,7 @@ import BxAttachmentReadonly from '@/components/bx/base/BxAttachmentReadonly.vue'
|
||||
import type { ViewField } from '@/components/business/system-view-dialog/types'
|
||||
import { bxViewKv, bxViewKvMoney } from '@/utils/bx/view-kv'
|
||||
import { buildApplyDateRangeQuery, type ApplyDateRange } from '@/utils/bx/apply-date-filter'
|
||||
import { buildPageSummaryMethod, sumField } from '@/utils/bx/table-summary'
|
||||
import type { StatsRowColumn } from '@/utils/list-column-stats'
|
||||
|
||||
type DialogKey = 'viewDetail' | 'issue' | 'offset' | 'processedDetail'
|
||||
|
||||
@@ -728,6 +743,51 @@ const {
|
||||
resetToDefault
|
||||
} = usePersistedListColumns('bx-payment-list-columns', listColumnDefs)
|
||||
|
||||
const PAYMENT_MONEY_PROPS = new Set(['amount', 'offsetAmount', 'payAmount'])
|
||||
|
||||
const pendingPaymentTableWrapRef = ref<HTMLElement | null>(null)
|
||||
const processedPaymentTableWrapRef = ref<HTMLElement | null>(null)
|
||||
const pendingPaymentStatsRowRef = ref<{ resync?: () => void } | null>(null)
|
||||
const processedPaymentStatsRowRef = ref<{ resync?: () => void } | null>(null)
|
||||
|
||||
function buildPaymentStatsColumns(opts: {
|
||||
withSelection: boolean
|
||||
mode: 'pending' | 'processed'
|
||||
}): StatsRowColumn[] {
|
||||
const cols: StatsRowColumn[] = []
|
||||
if (opts.withSelection) cols.push({ key: '__selection', interactive: false })
|
||||
cols.push({ key: '__index', interactive: false })
|
||||
if (isColumnVisible('applyTime')) {
|
||||
cols.push({ key: 'applyTime', interactive: true, prop: 'applyTime' })
|
||||
}
|
||||
cols.push({ key: 'applyCode', interactive: true, prop: 'applyCode' })
|
||||
for (const def of listColumnDefs) {
|
||||
if (def.prop === 'applyTime') continue
|
||||
if (opts.mode === 'pending' && (def.prop === 'processStatus' || def.prop === 'payTime')) continue
|
||||
if (!isColumnVisible(def.prop)) continue
|
||||
cols.push({
|
||||
key: def.prop,
|
||||
interactive: true,
|
||||
prop: def.prop,
|
||||
money: PAYMENT_MONEY_PROPS.has(def.prop)
|
||||
})
|
||||
}
|
||||
return cols
|
||||
}
|
||||
|
||||
const pendingPaymentStatsRowColumns = computed(() =>
|
||||
buildPaymentStatsColumns({ withSelection: true, mode: 'pending' })
|
||||
)
|
||||
const processedPaymentStatsRowColumns = computed(() =>
|
||||
buildPaymentStatsColumns({ withSelection: false, mode: 'processed' })
|
||||
)
|
||||
|
||||
function getPaymentStatCellValue(row: any, prop: string): unknown {
|
||||
if (prop === 'payAmount') return row?.actualAmount
|
||||
if (prop === 'processStatus') return processedStatusLabel(row?.status, row?.payStatus)
|
||||
return row?.[prop]
|
||||
}
|
||||
|
||||
const { applicantOptions, loadApplicantOptions } = useApplicantOptions()
|
||||
const loadingMap = reactive<Record<string, boolean>>({})
|
||||
const dialogs = reactive<Record<DialogKey, boolean>>({
|
||||
@@ -1209,16 +1269,6 @@ async function submitOffset() {
|
||||
}
|
||||
}
|
||||
|
||||
const paymentSummary = buildPageSummaryMethod({
|
||||
sumByProp: {
|
||||
amount: (data) => sumField(data, 'amount'),
|
||||
offsetAmount: (data) => sumField(data, 'offsetAmount'),
|
||||
actualAmount: (data) => sumField(data, 'actualAmount')
|
||||
}
|
||||
})
|
||||
const summaryMethod = paymentSummary
|
||||
const processedSummaryMethod = paymentSummary
|
||||
|
||||
async function openProcessedView(row: any) {
|
||||
processedViewData.value = row
|
||||
processedApprovals.value = []
|
||||
@@ -1297,3 +1347,9 @@ function processedStatusTagType(
|
||||
return 'info'
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.bx-list-table-wrap {
|
||||
min-width: 0;
|
||||
}
|
||||
</style>
|
||||
@@ -97,16 +97,15 @@
|
||||
</div>
|
||||
|
||||
<div class="list-body list-wrap">
|
||||
<div class="table-scroll table-page-summary">
|
||||
<div ref="reimburseApplyTableWrapRef" class="table-scroll bx-list-table-wrap">
|
||||
<ListTable table-key="bx-reimburse-apply"
|
||||
class="list-table"
|
||||
:data="rows"
|
||||
v-loading="loading"
|
||||
stripe
|
||||
show-summary
|
||||
:summary-method="summaryMethod"
|
||||
@selection-change="onSelectionChange"
|
||||
@row-dblclick="openView"
|
||||
@header-dragend="onReimburseApplyHeaderDragEnd"
|
||||
>
|
||||
<el-table-column type="selection" min-width="48" align="center" header-align="center" />
|
||||
<el-table-column type="index" label="序号" min-width="68" align="center" header-align="center" />
|
||||
@@ -206,6 +205,14 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
</ListTable>
|
||||
<ListColumnStatsRow
|
||||
ref="reimburseApplyStatsRowRef"
|
||||
storage-key="bx-reimburse-apply-column-stats"
|
||||
:columns="reimburseApplyStatsRowColumns"
|
||||
:data="rows"
|
||||
:table-wrap-el="reimburseApplyTableWrapRef"
|
||||
:get-cell-value="getReimburseApplyStatCellValue"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="pagination list-pager-bar">
|
||||
@@ -564,6 +571,7 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import ListToolbarEndActions from '@/components/business/list-toolbar-end-actions/index.vue'
|
||||
import ListColumnStatsRow from '@/components/business/list-column-stats-row/index.vue'
|
||||
import { useDbInstantSearch } from '@/composables/useDbInstantSearch'
|
||||
import { usePersistedListColumns } from '@/composables/usePersistedListColumns'
|
||||
import ListQuickSearchInput from '@/components/business/list-quick-search-input/index.vue'
|
||||
@@ -609,7 +617,7 @@ import BxAttachmentReadonly from '@/components/bx/base/BxAttachmentReadonly.vue'
|
||||
import BxInvoiceSelectDialog from '@/components/bx/base/BxInvoiceSelectDialog.vue'
|
||||
import type { ViewField } from '@/components/business/system-view-dialog/types'
|
||||
import { bxViewKv, bxViewKvLong, bxViewKvMoney } from '@/utils/bx/view-kv'
|
||||
import { buildPageSummaryMethod, sumField } from '@/utils/bx/table-summary'
|
||||
import type { StatsRowColumn } from '@/utils/list-column-stats'
|
||||
import {
|
||||
type BxAttachmentItem,
|
||||
loadBxAttachments,
|
||||
@@ -679,6 +687,43 @@ const {
|
||||
resetToDefault
|
||||
} = usePersistedListColumns('bx-reimburse-apply-list-columns', listColumnDefs)
|
||||
|
||||
const reimburseApplyTableWrapRef = ref<HTMLElement | null>(null)
|
||||
const reimburseApplyStatsRowRef = ref<{ resync?: () => void } | null>(null)
|
||||
|
||||
const reimburseApplyStatsRowColumns = computed((): StatsRowColumn[] => {
|
||||
const cols: StatsRowColumn[] = [
|
||||
{ key: '__selection', interactive: false },
|
||||
{ key: '__index', interactive: false }
|
||||
]
|
||||
if (isColumnVisible('applyTime')) {
|
||||
cols.push({ key: 'applyTime', interactive: true, prop: 'applyTime' })
|
||||
}
|
||||
cols.push({ key: 'applyCode', interactive: true, prop: 'applyCode' })
|
||||
for (const def of listColumnDefs) {
|
||||
if (def.prop === 'applyTime') continue
|
||||
if (!isColumnVisible(def.prop)) continue
|
||||
cols.push({
|
||||
key: def.prop,
|
||||
interactive: true,
|
||||
prop: def.prop,
|
||||
money: def.prop === 'amount'
|
||||
})
|
||||
}
|
||||
return cols
|
||||
})
|
||||
|
||||
function getReimburseApplyStatCellValue(row: any, prop: string): unknown {
|
||||
if (prop === 'expenseName') {
|
||||
const lines = getReimburseExpenseItemLines(row.details, row)
|
||||
return lines?.length ? lines.join('\n') : row.expenseName
|
||||
}
|
||||
return row?.[prop]
|
||||
}
|
||||
|
||||
function onReimburseApplyHeaderDragEnd() {
|
||||
reimburseApplyStatsRowRef.value?.resync?.()
|
||||
}
|
||||
|
||||
const filterForm = reactive({
|
||||
keyword: '',
|
||||
status: '',
|
||||
@@ -1329,12 +1374,6 @@ async function handleDelete(row: any) {
|
||||
}
|
||||
}
|
||||
|
||||
const summaryMethod = buildPageSummaryMethod({
|
||||
sumByProp: {
|
||||
amount: (data) => sumField(data, 'amount')
|
||||
}
|
||||
})
|
||||
|
||||
function viewDetailSummary({ columns, data }: { columns: any[]; data: any[] }) {
|
||||
const sums: string[] = []
|
||||
columns.forEach((_: any, index: number) => {
|
||||
@@ -1489,4 +1528,8 @@ function viewDetailSummary({ columns, data }: { columns: any[]; data: any[] }) {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
.bx-list-table-wrap {
|
||||
min-width: 0;
|
||||
}
|
||||
</style>
|
||||
@@ -108,16 +108,15 @@
|
||||
</div>
|
||||
|
||||
<div class="list-body list-wrap">
|
||||
<div class="table-scroll table-page-summary">
|
||||
<div ref="pendingTableWrapRef" class="table-scroll bx-list-table-wrap">
|
||||
<ListTable table-key="bx-reimburse-approve"
|
||||
class="list-table"
|
||||
:data="pendingRows"
|
||||
v-loading="pendingLoading"
|
||||
stripe
|
||||
show-summary
|
||||
:summary-method="pendingSummaryMethod"
|
||||
@selection-change="onSelectionChange"
|
||||
@row-dblclick="openView"
|
||||
@header-dragend="() => pendingStatsRowRef?.resync?.()"
|
||||
>
|
||||
<el-table-column type="selection" min-width="48" align="center" header-align="center" />
|
||||
<el-table-column type="index" label="序号" min-width="68" align="center" header-align="center" />
|
||||
@@ -211,6 +210,14 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
</ListTable>
|
||||
<ListColumnStatsRow
|
||||
ref="pendingStatsRowRef"
|
||||
storage-key="bx-reimburse-approve-pending-column-stats"
|
||||
:columns="pendingStatsRowColumns"
|
||||
:data="pendingRows"
|
||||
:table-wrap-el="pendingTableWrapRef"
|
||||
:get-cell-value="getReimburseApproveStatCellValue"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="pagination list-pager-bar">
|
||||
@@ -324,15 +331,14 @@
|
||||
</div>
|
||||
|
||||
<div class="list-body list-wrap">
|
||||
<div class="table-scroll table-page-summary">
|
||||
<div ref="approvedTableWrapRef" class="table-scroll bx-list-table-wrap">
|
||||
<ListTable table-key="bx-reimburse-approve-2"
|
||||
class="list-table"
|
||||
:data="approvedRows"
|
||||
v-loading="approvedLoading"
|
||||
stripe
|
||||
show-summary
|
||||
:summary-method="approvedSummaryMethod"
|
||||
@row-dblclick="openView"
|
||||
@header-dragend="() => approvedStatsRowRef?.resync?.()"
|
||||
>
|
||||
<el-table-column type="index" label="序号" min-width="68" align="center" header-align="center" />
|
||||
<el-table-column
|
||||
@@ -439,6 +445,14 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
</ListTable>
|
||||
<ListColumnStatsRow
|
||||
ref="approvedStatsRowRef"
|
||||
storage-key="bx-reimburse-approve-approved-column-stats"
|
||||
:columns="approvedStatsRowColumns"
|
||||
:data="approvedRows"
|
||||
:table-wrap-el="approvedTableWrapRef"
|
||||
:get-cell-value="getReimburseApproveStatCellValue"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="pagination list-pager-bar">
|
||||
@@ -597,6 +611,7 @@
|
||||
<script setup lang="ts">
|
||||
import { reactive, ref, computed, onMounted } from 'vue'
|
||||
import ListToolbarEndActions from '@/components/business/list-toolbar-end-actions/index.vue'
|
||||
import ListColumnStatsRow from '@/components/business/list-column-stats-row/index.vue'
|
||||
import { useDbInstantSearch } from '@/composables/useDbInstantSearch'
|
||||
import { usePersistedListColumns } from '@/composables/usePersistedListColumns'
|
||||
import ListQuickSearchInput from '@/components/business/list-quick-search-input/index.vue'
|
||||
@@ -632,7 +647,7 @@ import BxAttachmentReadonly from '@/components/bx/base/BxAttachmentReadonly.vue'
|
||||
import type { ViewField } from '@/components/business/system-view-dialog/types'
|
||||
import { bxViewKv, bxViewKvLong } from '@/utils/bx/view-kv'
|
||||
import { buildApplyDateRangeQuery, type ApplyDateRange } from '@/utils/bx/apply-date-filter'
|
||||
import { buildPageSummaryMethod, sumField } from '@/utils/bx/table-summary'
|
||||
import type { StatsRowColumn } from '@/utils/list-column-stats'
|
||||
|
||||
type DialogKey = 'viewDetail' | 'approve'
|
||||
|
||||
@@ -654,6 +669,51 @@ const {
|
||||
resetToDefault
|
||||
} = usePersistedListColumns('bx-reimburse-approve-list-columns', listColumnDefs)
|
||||
|
||||
const pendingTableWrapRef = ref<HTMLElement | null>(null)
|
||||
const approvedTableWrapRef = ref<HTMLElement | null>(null)
|
||||
const pendingStatsRowRef = ref<{ resync?: () => void } | null>(null)
|
||||
const approvedStatsRowRef = ref<{ resync?: () => void } | null>(null)
|
||||
|
||||
function buildReimburseApproveStatsColumns(opts: {
|
||||
withSelection: boolean
|
||||
includeStatus: boolean
|
||||
}): StatsRowColumn[] {
|
||||
const cols: StatsRowColumn[] = []
|
||||
if (opts.withSelection) cols.push({ key: '__selection', interactive: false })
|
||||
cols.push({ key: '__index', interactive: false })
|
||||
if (isColumnVisible('applyTime')) {
|
||||
cols.push({ key: 'applyTime', interactive: true, prop: 'applyTime' })
|
||||
}
|
||||
cols.push({ key: 'applyCode', interactive: true, prop: 'applyCode' })
|
||||
for (const def of listColumnDefs) {
|
||||
if (def.prop === 'applyTime') continue
|
||||
if (def.prop === 'status' && !opts.includeStatus) continue
|
||||
if (!isColumnVisible(def.prop)) continue
|
||||
cols.push({
|
||||
key: def.prop,
|
||||
interactive: true,
|
||||
prop: def.prop,
|
||||
money: def.prop === 'amount'
|
||||
})
|
||||
}
|
||||
return cols
|
||||
}
|
||||
|
||||
const pendingStatsRowColumns = computed(() =>
|
||||
buildReimburseApproveStatsColumns({ withSelection: true, includeStatus: false })
|
||||
)
|
||||
const approvedStatsRowColumns = computed(() =>
|
||||
buildReimburseApproveStatsColumns({ withSelection: false, includeStatus: true })
|
||||
)
|
||||
|
||||
function getReimburseApproveStatCellValue(row: any, prop: string): unknown {
|
||||
if (prop === 'expenseName') {
|
||||
const lines = getReimburseExpenseItemLines(row.details, row)
|
||||
return lines?.length ? lines.join('\n') : row.expenseName
|
||||
}
|
||||
return row?.[prop]
|
||||
}
|
||||
|
||||
const pendingQuickSearchKeyword = ref('')
|
||||
const approvedQuickSearchKeyword = ref('')
|
||||
|
||||
@@ -1021,14 +1081,6 @@ async function handleConfirmApprove() {
|
||||
}
|
||||
}
|
||||
|
||||
const amountSummary = buildPageSummaryMethod({
|
||||
sumByProp: {
|
||||
amount: (data) => sumField(data, 'amount')
|
||||
}
|
||||
})
|
||||
const pendingSummaryMethod = amountSummary
|
||||
const approvedSummaryMethod = amountSummary
|
||||
|
||||
function viewDetailSummary({ columns, data }: { columns: any[]; data: any[] }) {
|
||||
const sums: string[] = []
|
||||
columns.forEach((_: any, index: number) => {
|
||||
@@ -1048,6 +1100,10 @@ function viewDetailSummary({ columns, data }: { columns: any[]; data: any[] }) {
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.bx-list-table-wrap {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.batch-action-alert {
|
||||
margin-bottom: 12px;
|
||||
|
||||
|
||||
@@ -84,17 +84,17 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="list-body list-wrap table-page-summary table-page-summary-biz-split">
|
||||
<ListTable table-key="bx-view-all"
|
||||
class="list-table"
|
||||
:data="pager.pagedRows.value"
|
||||
v-loading="loading"
|
||||
stripe
|
||||
show-summary
|
||||
:summary-method="summaryMethod"
|
||||
@row-dblclick="openViewDetail"
|
||||
@selection-change="handleSelectionChange"
|
||||
>
|
||||
<div class="list-body list-wrap">
|
||||
<div ref="allTableWrapRef" class="table-scroll bx-list-table-wrap">
|
||||
<ListTable table-key="bx-view-all"
|
||||
class="list-table"
|
||||
:data="pager.pagedRows.value"
|
||||
v-loading="loading"
|
||||
stripe
|
||||
@row-dblclick="openViewDetail"
|
||||
@selection-change="handleSelectionChange"
|
||||
@header-dragend="() => allStatsRowRef?.resync?.()"
|
||||
>
|
||||
<el-table-column type="selection" min-width="55" align="center" header-align="center" />
|
||||
<el-table-column type="index" label="序号" min-width="68" align="center" header-align="center" />
|
||||
<el-table-column
|
||||
@@ -193,7 +193,15 @@
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</ListTable>
|
||||
</ListTable>
|
||||
<ListColumnStatsRow
|
||||
ref="allStatsRowRef"
|
||||
storage-key="bx-view-all-column-stats"
|
||||
:columns="allStatsRowColumns"
|
||||
:data="pager.pagedRows.value"
|
||||
:table-wrap-el="allTableWrapRef"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="pagination list-pager-bar">
|
||||
<span class="list-range">{{ pager.rangeText.value }}</span>
|
||||
@@ -280,6 +288,8 @@
|
||||
<script setup lang="ts">
|
||||
import ListToolbarEndActions from '@/components/business/list-toolbar-end-actions/index.vue'
|
||||
import ListQuickSearchInput from '@/components/business/list-quick-search-input/index.vue'
|
||||
import ListColumnStatsRow from '@/components/business/list-column-stats-row/index.vue'
|
||||
import type { StatsRowColumn } from '@/utils/list-column-stats'
|
||||
import { useDbInstantSearch } from '@/composables/useDbInstantSearch'
|
||||
import { usePersistedListColumns } from '@/composables/usePersistedListColumns'
|
||||
import { computed, onMounted, reactive, ref } from 'vue'
|
||||
@@ -307,7 +317,6 @@ import { invoicesToLinkedAttachmentFiles } from '@/utils/bx/invoice-link-files'
|
||||
import { matchesApplyDateRange, type ApplyDateRange } from '@/utils/bx/apply-date-filter'
|
||||
import { usePagedTable } from '@/hooks/bx/usePagedTable'
|
||||
import { useApplicantOptions } from '@/hooks/bx/useApplicantOptions'
|
||||
import { buildPageSummaryMethod, sumFieldByBizType } from '@/utils/bx/table-summary'
|
||||
|
||||
type DialogKey = 'viewDetail'
|
||||
|
||||
@@ -338,6 +347,31 @@ const {
|
||||
resetToDefault
|
||||
} = usePersistedListColumns('bx-view-all-list-columns', listColumnDefs)
|
||||
|
||||
const allTableWrapRef = ref<HTMLElement | null>(null)
|
||||
const allStatsRowRef = ref<{ resync?: () => void } | null>(null)
|
||||
|
||||
const allStatsRowColumns = computed((): StatsRowColumn[] => {
|
||||
const cols: StatsRowColumn[] = [
|
||||
{ key: '__selection', interactive: false },
|
||||
{ key: '__index', interactive: false }
|
||||
]
|
||||
if (isColumnVisible('applyTime')) {
|
||||
cols.push({ key: 'applyTime', interactive: true, prop: 'applyTime' })
|
||||
}
|
||||
cols.push({ key: 'applyCode', interactive: true, prop: 'applyCode' })
|
||||
for (const def of listColumnDefs) {
|
||||
if (def.prop === 'applyTime') continue
|
||||
if (!isColumnVisible(def.prop)) continue
|
||||
cols.push({
|
||||
key: def.prop,
|
||||
interactive: true,
|
||||
prop: def.prop,
|
||||
money: def.prop === 'amount'
|
||||
})
|
||||
}
|
||||
return cols
|
||||
})
|
||||
|
||||
const quickSearchKeyword = ref('')
|
||||
const appliedQuickSearch = ref('')
|
||||
|
||||
@@ -540,12 +574,6 @@ function handleQuickSearchClear() {
|
||||
pager.currentPage.value = 1
|
||||
}
|
||||
|
||||
const summaryMethod = buildPageSummaryMethod({
|
||||
sumByProp: {
|
||||
amount: (data) => sumFieldByBizType(data, 'amount')
|
||||
}
|
||||
})
|
||||
|
||||
function handleSelectionChange(rows: any[]) {
|
||||
selectedRows.value = rows
|
||||
}
|
||||
@@ -615,3 +643,9 @@ onMounted(() => {
|
||||
loadData()
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.bx-list-table-wrap {
|
||||
min-width: 0;
|
||||
}
|
||||
</style>
|
||||
@@ -77,16 +77,15 @@
|
||||
</div>
|
||||
|
||||
<div class="list-body list-wrap">
|
||||
<div class="table-scroll table-page-summary table-page-summary-biz-split">
|
||||
<div ref="mineTableWrapRef" class="table-scroll bx-list-table-wrap">
|
||||
<ListTable table-key="bx-view-mine"
|
||||
class="list-table"
|
||||
:data="pagedRows"
|
||||
v-loading="tableLoading"
|
||||
stripe
|
||||
show-summary
|
||||
:summary-method="summaryMethod"
|
||||
@row-dblclick="openViewDetail"
|
||||
@selection-change="handleSelectionChange"
|
||||
@header-dragend="() => mineStatsRowRef?.resync?.()"
|
||||
>
|
||||
<el-table-column type="selection" min-width="55" align="center" header-align="center" />
|
||||
<el-table-column type="index" label="序号" min-width="68" align="center" header-align="center" />
|
||||
@@ -178,6 +177,13 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
</ListTable>
|
||||
<ListColumnStatsRow
|
||||
ref="mineStatsRowRef"
|
||||
storage-key="bx-view-mine-column-stats"
|
||||
:columns="mineStatsRowColumns"
|
||||
:data="pagedRows"
|
||||
:table-wrap-el="mineTableWrapRef"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="pagination list-pager-bar">
|
||||
@@ -264,6 +270,8 @@
|
||||
<script setup lang="ts">
|
||||
import ListToolbarEndActions from '@/components/business/list-toolbar-end-actions/index.vue'
|
||||
import ListQuickSearchInput from '@/components/business/list-quick-search-input/index.vue'
|
||||
import ListColumnStatsRow from '@/components/business/list-column-stats-row/index.vue'
|
||||
import type { StatsRowColumn } from '@/utils/list-column-stats'
|
||||
import { useDbInstantSearch } from '@/composables/useDbInstantSearch'
|
||||
import { usePersistedListColumns } from '@/composables/usePersistedListColumns'
|
||||
import { computed, onActivated, onMounted, reactive, ref } from 'vue'
|
||||
@@ -290,7 +298,6 @@ import { type BxAttachmentItem, loadBxAttachments } from '@/utils/bx/attachment'
|
||||
import { invoicesToLinkedAttachmentFiles } from '@/utils/bx/invoice-link-files'
|
||||
import { buildApplyDateRangeQuery, matchesApplyDateRange, type ApplyDateRange } from '@/utils/bx/apply-date-filter'
|
||||
import { usePagedTable } from '@/hooks/bx/usePagedTable'
|
||||
import { buildPageSummaryMethod, sumFieldByBizType } from '@/utils/bx/table-summary'
|
||||
|
||||
type DialogKey = 'viewDetail'
|
||||
|
||||
@@ -320,6 +327,31 @@ const {
|
||||
resetToDefault
|
||||
} = usePersistedListColumns('bx-view-mine-list-columns', listColumnDefs)
|
||||
|
||||
const mineTableWrapRef = ref<HTMLElement | null>(null)
|
||||
const mineStatsRowRef = ref<{ resync?: () => void } | null>(null)
|
||||
|
||||
const mineStatsRowColumns = computed((): StatsRowColumn[] => {
|
||||
const cols: StatsRowColumn[] = [
|
||||
{ key: '__selection', interactive: false },
|
||||
{ key: '__index', interactive: false }
|
||||
]
|
||||
if (isColumnVisible('applyTime')) {
|
||||
cols.push({ key: 'applyTime', interactive: true, prop: 'applyTime' })
|
||||
}
|
||||
cols.push({ key: 'applyCode', interactive: true, prop: 'applyCode' })
|
||||
for (const def of listColumnDefs) {
|
||||
if (def.prop === 'applyTime') continue
|
||||
if (!isColumnVisible(def.prop)) continue
|
||||
cols.push({
|
||||
key: def.prop,
|
||||
interactive: true,
|
||||
prop: def.prop,
|
||||
money: def.prop === 'amount'
|
||||
})
|
||||
}
|
||||
return cols
|
||||
})
|
||||
|
||||
const quickSearchKeyword = ref('')
|
||||
|
||||
const filterForm = reactive({
|
||||
@@ -431,12 +463,6 @@ function sortMergedRows(rows: any[]) {
|
||||
return [...rows].sort((a, b) => String(b.applyTime || '').localeCompare(String(a.applyTime || '')))
|
||||
}
|
||||
|
||||
const summaryMethod = buildPageSummaryMethod({
|
||||
sumByProp: {
|
||||
amount: (data) => sumFieldByBizType(data, 'amount')
|
||||
}
|
||||
})
|
||||
|
||||
async function loadData(options: { buttonLoading?: boolean } = {}) {
|
||||
if (options.buttonLoading) searchLoading.value = true
|
||||
tableLoading.value = true
|
||||
@@ -576,3 +602,9 @@ onActivated(() => {
|
||||
loadData()
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.bx-list-table-wrap {
|
||||
min-width: 0;
|
||||
}
|
||||
</style>
|
||||
@@ -83,16 +83,15 @@
|
||||
</div>
|
||||
|
||||
<div class="list-body list-wrap">
|
||||
<div class="table-scroll table-page-summary">
|
||||
<div ref="todoTableWrapRef" class="table-scroll bx-list-table-wrap">
|
||||
<ListTable table-key="bx-view-todo"
|
||||
class="list-table"
|
||||
:data="pagedRows"
|
||||
v-loading="tableLoading"
|
||||
stripe
|
||||
show-summary
|
||||
:summary-method="summaryMethod"
|
||||
@selection-change="onSelectionChange"
|
||||
@row-dblclick="openViewDetailFromRow"
|
||||
@header-dragend="() => todoStatsRowRef?.resync?.()"
|
||||
>
|
||||
<el-table-column type="selection" min-width="48" align="center" header-align="center" />
|
||||
<el-table-column type="index" label="序号" min-width="68" align="center" header-align="center" />
|
||||
@@ -179,6 +178,13 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
</ListTable>
|
||||
<ListColumnStatsRow
|
||||
ref="todoStatsRowRef"
|
||||
storage-key="bx-view-todo-column-stats"
|
||||
:columns="todoStatsRowColumns"
|
||||
:data="pagedRows"
|
||||
:table-wrap-el="todoTableWrapRef"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="pagination list-pager-bar">
|
||||
@@ -285,6 +291,8 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import ListToolbarEndActions from '@/components/business/list-toolbar-end-actions/index.vue'
|
||||
import ListColumnStatsRow from '@/components/business/list-column-stats-row/index.vue'
|
||||
import type { StatsRowColumn } from '@/utils/list-column-stats'
|
||||
import { useDbInstantSearch } from '@/composables/useDbInstantSearch'
|
||||
import { usePersistedListColumns } from '@/composables/usePersistedListColumns'
|
||||
import ListQuickSearchInput from '@/components/business/list-quick-search-input/index.vue'
|
||||
@@ -315,7 +323,6 @@ import { usePagedTable } from '@/hooks/bx/usePagedTable'
|
||||
import { useApplicantOptions } from '@/hooks/bx/useApplicantOptions'
|
||||
import { refreshMenuBadges } from '@/utils/menu-badge-registry'
|
||||
import { useMenuStore } from '@/store/modules/menu'
|
||||
import { buildPageSummaryMethod, sumField } from '@/utils/bx/table-summary'
|
||||
|
||||
type DialogKey = 'viewDetail' | 'approve'
|
||||
|
||||
@@ -351,6 +358,31 @@ const {
|
||||
resetToDefault
|
||||
} = usePersistedListColumns('bx-view-todo-list-columns', listColumnDefs)
|
||||
|
||||
const todoTableWrapRef = ref<HTMLElement | null>(null)
|
||||
const todoStatsRowRef = ref<{ resync?: () => void } | null>(null)
|
||||
|
||||
const todoStatsRowColumns = computed((): StatsRowColumn[] => {
|
||||
const cols: StatsRowColumn[] = [
|
||||
{ key: '__selection', interactive: false },
|
||||
{ key: '__index', interactive: false }
|
||||
]
|
||||
if (isColumnVisible('applyTime')) {
|
||||
cols.push({ key: 'applyTime', interactive: true, prop: 'applyTime' })
|
||||
}
|
||||
cols.push({ key: 'applyCode', interactive: true, prop: 'applyCode' })
|
||||
for (const def of listColumnDefs) {
|
||||
if (def.prop === 'applyTime') continue
|
||||
if (!isColumnVisible(def.prop)) continue
|
||||
cols.push({
|
||||
key: def.prop,
|
||||
interactive: true,
|
||||
prop: def.prop,
|
||||
money: def.prop === 'amount'
|
||||
})
|
||||
}
|
||||
return cols
|
||||
})
|
||||
|
||||
const filterForm = reactive({
|
||||
code: '',
|
||||
bizType: '' as string,
|
||||
@@ -644,12 +676,6 @@ function handleQuickSearchClear() {
|
||||
loadData()
|
||||
}
|
||||
|
||||
const summaryMethod = buildPageSummaryMethod({
|
||||
sumByProp: {
|
||||
amount: (data) => sumField(data, 'amount')
|
||||
}
|
||||
})
|
||||
|
||||
function openViewDetailFromRow(row: any) {
|
||||
openViewDetail(row)
|
||||
}
|
||||
@@ -684,3 +710,9 @@ onActivated(() => {
|
||||
loadData()
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.bx-list-table-wrap {
|
||||
min-width: 0;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user