This commit is contained in:
qiuyuan 2025-08-06 19:57:26 +08:00
parent 9a17513b61
commit dbd9a06ee1

View File

@ -9,11 +9,24 @@
<span>{{ dayjs(record.startAt).format('YYYY-MM-DD HH:mm:ss') + ' - ' + <span>{{ dayjs(record.startAt).format('YYYY-MM-DD HH:mm:ss') + ' - ' +
dayjs(record.endAt).format('YYYY-MM-DD HH:mm:ss')}}</span> dayjs(record.endAt).format('YYYY-MM-DD HH:mm:ss')}}</span>
</template> </template>
<template v-if="column.dataIndex === 'applySign'">
<a-image :width="60"
:src="record.applySign ? config('http.apiBasic') + record.applySign : errImg" />
</template>
<template v-if="column.dataIndex === 'rebackApplyPdf'">
<a
:href="record.rebackApplyPdf ? config('http.apiBasic') + record.rebackApplyPdf : ''" />
</template>
<template v-if="column.dataIndex === 'rebackCovenantPdf'">
<a
:href="record.rebackCovenantPdf ? config('http.apiBasic') + record.rebackCovenantPdf : ''" />
</template>
<template v-if="'action' === column.key"> <template v-if="'action' === column.key">
<x-action-button @click="auditHandleEdit(record)" v-if="record.status === 1"> <x-action-button @click="auditHandleEdit(record)" v-if="record.status === 1">
<a-tooltip> <a-tooltip>
<template #title>审核</template> <template #title>下载</template>
<i class='iconfont icon-shenhe' style='font-size:14px;color:#faad14'></i> <DownloadOutlined />
<!-- <i class='iconfont icon-shenhe' style='font-size:14px;color:#faad14'></i> -->
</a-tooltip> </a-tooltip>
</x-action-button> </x-action-button>
</template> </template>
@ -43,7 +56,7 @@ import apis from '@/apis'
import { config } from '@/config' import { config } from '@/config'
import { usePagination } from '@/hooks' import { usePagination } from '@/hooks'
import EditDialog from './components/EditDialog.vue' import EditDialog from './components/EditDialog.vue'
import { PlusOutlined, EditOutlined, DeleteOutlined } from '@ant-design/icons-vue' import { PlusOutlined, EditOutlined, DownloadOutlined } from '@ant-design/icons-vue'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import { orderStatus } from '@/enums/index.js' import { orderStatus } from '@/enums/index.js'
import { status } from 'nprogress' import { status } from 'nprogress'
@ -53,12 +66,25 @@ defineOptions({
}) })
const { t } = useI18n() // t const { t } = useI18n() // t
const columns = [ const columns = [
{ title: '用户', dataIndex: 'concatName' }, { title: '负责人', dataIndex: 'concatName' },
{ title: '手机号', dataIndex: 'concatPhone' }, { title: '负责人手机号', dataIndex: 'concatPhone' },
{ title: '会客厅', dataIndex: 'roomName' }, { title: '申请类型', dataIndex: 'roomType' },
{ title: '时间段', dataIndex: 'startAt', width: 300, align: 'center' }, { title: '申请主题', dataIndex: 'applyTheme' },
{ title: '申请人', dataIndex: 'userName' },
{ title: '申请人手机号', dataIndex: 'userPhone' },
{ title: '申请人身份证', dataIndex: 'userCardId', width: 120 },
{ title: '申请人地址', dataIndex: 'userAddress' },
{ title: '公司名字', dataIndex: 'companyName' },
{ title: '申请理由', dataIndex: 'reason' },
{ title: '场次', dataIndex: 'counter' },
{ title: '人数', dataIndex: 'num' },
{ title: '开始时间', dataIndex: 'startTime' },
{ title: '结束时间', dataIndex: 'endTime' },
{ title: '申请签名', dataIndex: 'applySign' },
{ title: '备注', dataIndex: 'remark' }, { title: '备注', dataIndex: 'remark' },
{ title: t('button.action'), key: 'action', fixed: 'right', width: 100, align: 'center' }, { title: '回执申请报表', dataIndex: 'rebackApplyPdf' },
{ title: '回执承诺报表', dataIndex: 'rebackCovenantPdf' },
// { title: t('button.action'), key: 'action', fixed: 'right', width: 100, align: 'center' },
] ]
const { listData, loading, showLoading, hideLoading, paginationState, resetPagination, searchFormData } = usePagination() const { listData, loading, showLoading, hideLoading, paginationState, resetPagination, searchFormData } = usePagination()
const remark = ref('') const remark = ref('')