| | |
| | | search() |
| | | } |
| | | |
| | | function formatDateTime(value?: string) { |
| | | return value ? value.replace('T', ' ') : '' |
| | | } |
| | | |
| | | async function download() { |
| | | const result = await getServiceApplications({ page: 1, size: 1000, applicationType: 'MEDICAL_RESERVATION', talentKeyword: filters.talentKeyword || undefined, hospitalName: filters.hospitalName || undefined, cardLevel: filters.cardLevel || undefined, status: filters.status || undefined, submittedStart: filters.submittedTime?.[0], submittedEnd: filters.submittedTime?.[1] }) |
| | | downloadExcel('体检预约', [{ title: '预约单号', value: row => row.applicationNo }, { title: '持卡人', value: row => row.talentName }, { title: '手机号', value: row => row.talentMobile }, { title: '人才等级', value: row => row.talentLevel }, { title: '医院', value: row => row.hospitalName }, { title: '套餐', value: row => row.packageName }, { title: '预约时间', value: row => row.expectedTime }, { title: '提交时间', value: row => row.submittedAt }, { title: '状态', value: row => row.status }], result.records) |
| | | downloadExcel('体检预约', [{ title: '预约单号', value: row => row.applicationNo }, { title: '持卡人', value: row => row.talentName }, { title: '手机号', value: row => row.talentMobile }, { title: '人才等级', value: row => row.talentLevel }, { title: '医院', value: row => row.hospitalName }, { title: '套餐', value: row => row.packageName }, { title: '预约时间', value: row => row.expectedTime }, { title: '提交时间', value: row => formatDateTime(row.submittedAt) }, { title: '状态', value: row => row.status }], result.records) |
| | | ElMessage.success(`已导出 ${result.records.length} 条预约`) |
| | | } |
| | | |
| | |
| | | <el-table-column prop="applicantName" label="体检人姓名" min-width="96" align="center" /> |
| | | <el-table-column prop="applicantMobile" label="手机号" min-width="112" align="center" /> |
| | | <el-table-column prop="expectedTime" label="体检期望时间" min-width="118" align="center" /> |
| | | <el-table-column prop="submittedAt" label="提交时间" min-width="126" align="center" /> |
| | | <el-table-column label="提交时间" min-width="126" align="center"> |
| | | <template #default="{ row }">{{ formatDateTime(row.submittedAt) }}</template> |
| | | </el-table-column> |
| | | <el-table-column prop="status" label="状态" min-width="82" align="center" /> |
| | | <el-table-column label="操作" width="86" fixed="right" align="center"> |
| | | <template #default="{ row }"> |