This commit is contained in:
qiuyuan 2025-12-22 14:37:13 +08:00
commit e4dca18e39
3 changed files with 31 additions and 33 deletions

View File

@ -12,8 +12,8 @@ VITE_ROUTER_BASE=/
VITE_ROUTER_HISTORY=hash VITE_ROUTER_HISTORY=hash
# api # api
VITE_API_BASIC=https://jinshan.nantong.info # VITE_API_BASIC=https://jinshan.nantong.info
# VITE_API_BASIC=http://10.10.1.6:8071 VITE_API_BASIC=http://10.10.1.6:8071
VITE_API_HTTP=/api/v1/ VITE_API_HTTP=/api/v1/
# storage # storage
VITE_STORAGE_NAMESPACE = gin-admin_local_ VITE_STORAGE_NAMESPACE = gin-admin_local_

View File

@ -203,11 +203,7 @@ function handleOk() {
cover: formData.value.cover ? spliceUrl(formData.value.cover[0]) : '', cover: formData.value.cover ? spliceUrl(formData.value.cover[0]) : '',
images: formData.value.images ? formData.value.images.map(item => spliceUrl(item)) : [], images: formData.value.images ? formData.value.images.map(item => spliceUrl(item)) : [],
signupNum: formData.value.signupNum || 0, signupNum: formData.value.signupNum || 0,
status: 1, status: 1
// 使
endSignupAt: formatTime(values.endSignupAt),
startAt: formatTime(values.startAt),
endAt: formatTime(values.endAt)
} }
let result = null let result = null

View File

@ -1,13 +1,14 @@
<template> <template>
<x-search-bar class="mb-8-2"> <x-search-bar class="mb-8-2">
<template #default="{ gutter, colSpan }"> <template #default="{ gutter, colSpan }">
<a-form :label-col="{ style: { width: '40px' } }" :model="searchFormData" layout="inline"> <a-form :label-col="{ style: { width: '40px' } }" :model="searchFormData" layout="inline">
<a-row :gutter="gutter"> <a-row :gutter="gutter">
<a-col v-bind="colSpan"> <a-col v-bind="colSpan">
<a-form-item label="状态" name="status"> <a-form-item label="状态" name="status">
<a-select v-model:value="searchFormData.applyType" allowClear> <a-select v-model:value="searchFormData.applyType" allowClear>
<a-select-option :value="1">个人申请</a-select-option> <a-select-option :value="''">全部</a-select-option>
<a-select-option :value="2">企业申请</a-select-option> <a-select-option :value="2">个人申请</a-select-option>
<a-select-option :value="1">企业申请</a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>
</a-col> </a-col>
@ -22,7 +23,7 @@
</a-row> </a-row>
</a-form> </a-form>
</template> </template>
</x-search-bar> </x-search-bar>
<a-row :gutter="8" :wrap="false"> <a-row :gutter="8" :wrap="false">
<a-col flex="auto"> <a-col flex="auto">
<a-card type="flex"> <a-card type="flex">
@ -36,15 +37,15 @@
<template v-if="'startTime' === column.dataIndex"> <template v-if="'startTime' === column.dataIndex">
<span>{{ record.startTime + ' - ' + record.endTime }}</span> <span>{{ record.startTime + ' - ' + record.endTime }}</span>
</template> </template>
<template v-if="'applyType' === column.dataIndex"> <template v-if="'applyType' === column.dataIndex">
<span v-if="record.applyType === 1">个人申请</span> <span v-if="record.applyType === 2">个人申请</span>
<span v-if="record.applyType === 2">企业申请</span> <span v-if="record.applyType === 1">企业申请</span>
</template> </template>
<template v-if="'status' === column.dataIndex"> <template v-if="'status' === column.dataIndex">
<a-tag color="#87d068" v-if="record.status === 3">审核通过</a-tag> <a-tag color="#87d068" v-if="record.status === 3">审核通过</a-tag>
<a-tag color="#666666" v-if="record.status === 2">待审核</a-tag> <a-tag color="#666666" v-if="record.status === 2">待审核</a-tag>
<a-tag color="#f50" v-if="record.status === 99">审核不通过</a-tag> <a-tag color="#f50" v-if="record.status === 99">审核不通过</a-tag>
<!-- <a-tag color="#87d068" v-if="record.status === 3">审核通过</a-tag> --> <!-- <a-tag color="#87d068" v-if="record.status === 3">审核通过</a-tag> -->
</template> </template>
<template v-if="'applyTheme' === column.dataIndex"> <template v-if="'applyTheme' === column.dataIndex">
<span>{{ applyThemeMap[record.applyTheme] || '未知' }}</span> <span>{{ applyThemeMap[record.applyTheme] || '未知' }}</span>
@ -54,17 +55,16 @@
<a-image :width="60" <a-image :width="60"
:src="record.applySign ? config('http.apiBasic') + record.applySign : errImg" /> :src="record.applySign ? config('http.apiBasic') + record.applySign : errImg" />
</template> </template>
<template v-if="column.dataIndex === 'rebackApplyPdf'"> <template v-if="column.dataIndex === 'covenantPdf'">
<a v-if="record.rebackApplyPdf" :href="config('http.apiBasic') + record.rebackApplyPdf" <a v-if="record.covenantPdf" target="_blank"
rel="noopener noreferrer"> :href="config('http.apiBasic') + record.covenantPdf" rel="noopener noreferrer">
查看承诺报表 查看承诺报表
</a> </a>
<span v-else></span> <span v-else></span>
</template> </template>
<template v-if="column.dataIndex === 'rebackCovenantPdf'"> <template v-if="column.dataIndex === 'applyPdf'">
<a v-if="record.rebackCovenantPdf" <a v-if="record.applyPdf" target="_blank"
:href="config('http.apiBasic') + record.rebackCovenantPdf" :href="config('http.apiBasic') + record.applyPdf" rel="noopener noreferrer">
rel="noopener noreferrer">
查看申请报表 查看申请报表
</a> </a>
<span v-else></span> <span v-else></span>
@ -108,6 +108,7 @@ 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'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import axios from 'axios'
defineOptions({ defineOptions({
name: 'mettingYuYue', name: 'mettingYuYue',
}) })
@ -118,8 +119,8 @@ const columns = [
// { title: '', dataIndex: 'concatName' }, // { title: '', dataIndex: 'concatName' },
// { title: '', dataIndex: 'concatPhone' }, // { title: '', dataIndex: 'concatPhone' },
{ title: '申请类型', dataIndex: 'applyType', width: 100 }, { title: '申请类型', dataIndex: 'applyType', width: 100 },
{ title: '申请主题', dataIndex: 'applyTheme', width: 100 }, { title: '申请主题', dataIndex: 'applyTheme', width: 100 },
{ title: '申请人', dataIndex: 'userName', width: 100 }, { title: '申请人', dataIndex: 'userName', width: 100 },
// { title: '', dataIndex: 'userPhone' }, // { title: '', dataIndex: 'userPhone' },
// { title: '', dataIndex: 'userCardId', width: 120 }, // { title: '', dataIndex: 'userCardId', width: 120 },
{ title: '申请人地址', dataIndex: 'userAddress' }, { title: '申请人地址', dataIndex: 'userAddress' },
@ -131,13 +132,13 @@ const columns = [
// { title: '', dataIndex: 'endTime' }, // { title: '', dataIndex: 'endTime' },
{ title: '申请签名', dataIndex: 'applySign' }, { title: '申请签名', dataIndex: 'applySign' },
// { title: '', dataIndex: 'remark' }, // { title: '', dataIndex: 'remark' },
{ title: '申请报表', dataIndex: 'rebackCovenantPdf' }, { title: '申请报表', dataIndex: 'applyPdf' },
{ title: '承诺报表', dataIndex: 'rebackApplyPdf' }, { title: '承诺报表', dataIndex: 'covenantPdf' },
{ title: t('button.action'), key: 'action', fixed: 'right', width: 80, align: 'center' }, { title: t('button.action'), key: 'action', fixed: 'right', width: 80, align: 'center' },
] ]
const { listData, loading, showLoading, hideLoading, paginationState, resetPagination, searchFormData } = usePagination() const { listData, loading, showLoading, hideLoading, paginationState, resetPagination, searchFormData } = usePagination()
searchFormData.value = { searchFormData.value = {
applyType: 1, applyType: '',
} }
const remark = ref('') const remark = ref('')
const currentInfo = ref({}) const currentInfo = ref({})
@ -184,7 +185,7 @@ async function getPageList() {
const auditHandleEdit = (obj = {}) => { const auditHandleEdit = (obj = {}) => {
currentForm.value = obj currentForm.value = obj
open.value = true open.value = true
} }
const handleClick = async () => { const handleClick = async () => {
try { try {
@ -259,6 +260,7 @@ function handleResetSearch() {
async function onOk() { async function onOk() {
await getPageList() await getPageList()
} }
</script> </script>
<style lang="less" scoped></style> <style lang="less" scoped></style>