feat(签署方式): 扩展为手写板/短信/Pad/公众号四种并集中口径

This commit is contained in:
yelan
2026-09-25 12:09:58 +08:00
parent bd89a4d31a
commit 8ec55e48c9
26 changed files with 1864 additions and 688 deletions
@@ -22,6 +22,11 @@ import type {
ReportTasksQueryDto,
} from '@/api/management/types'
import { useLoginStore } from '@/stores/login'
import {
formatSigningMethodTitle,
REPORT_METHOD_FILTERS,
toBackendSigningMethod,
} from '@/utils/signing-method'
import DepartmentDistributionChart from './components/DepartmentDistributionChart.vue'
import ReportDetailTable from './components/ReportDetailTable.vue'
@@ -102,8 +107,7 @@ const filters = reactive<ReportFilterForm>({
const methodOptions: ReportSelectOption<ReportMethodFilter>[] = [
{ value: 'all', label: '全部方式' },
{ value: 'pad', label: '手写板' },
{ value: 'sms', label: '短信' },
...REPORT_METHOD_FILTERS.map((option) => ({ value: option.value, label: option.label })),
]
interface ReportDateRange {
@@ -571,7 +575,7 @@ function getScopeFilter(): ReportFilterDto {
}
if (filters.method !== 'all') {
filter.signMethod = filters.method === 'sms' ? 'SMS' : 'PAD'
filter.signMethod = toBackendSigningMethod(filters.method)
}
const keyword = filters.keyword.trim()
@@ -994,7 +998,7 @@ function downloadMockReport() {
task.documentName,
task.department,
task.campus,
task.method === 'pad' ? '手写板' : '短信',
formatSigningMethodTitle(task.method),
getReportStatusLabel(task.status),
formatExportDate(task.createdAt),
formatExportDate(task.signedAt),