This commit is contained in:
2026-09-09 16:16:22 +08:00
parent ebffbab428
commit ba3a985c40
3749 changed files with 29 additions and 608551 deletions
@@ -1,198 +0,0 @@
<template>
<div>
<el-tabs tab-position="top" v-model="activeName" style="padding: 20px">
<!-- <el-tab-pane v-if="$.parseJSON(role) === true" label="当前场地使用情况" name="1">-->
<!-- <el-calendar v-model="reserve_time">-->
<!-- <template slot="dateCell" slot-scope="{date, data}">-->
<!-- <div class="div-Calendar">-->
<!-- <p :class="data.isSelected ? 'is-selected' : ''">-->
<!-- {{ data.day.split('-').slice(1).join('-') }} {{ data.isSelected ? '√' : '' }}-->
<!-- </p>-->
<!-- <div v-if="$.parseJSON(role) === true" v-for="item in viewData.site_info">-->
<!-- <div v-if="data.day.toString()==item.reserve_day"-->
<!-- :style="{backgroundColor:([0].includes(item.stateaudittype)?'#FAECD9':'#E0F4D9')}">-->
<!-- <el-row :gutter="20" style="line-height: 30px;margin-bottom: 10px;">-->
<!-- <el-col :span="4">-->
<!-- <el-button v-if="[0].includes(item.stateaudittype)" type="warning"-->
<!-- size="mini" circle>待-->
<!-- </el-button>-->
<!-- <el-button v-if="item.stateaudittype==3" type="success" size="mini" circle>通-->
<!-- </el-button>-->
<!-- </el-col>-->
<!-- <el-col :span="20" style="font-size: 10px">-->
<!-- <b>{{ item.reserve_person }}</b>{{ item.start_time }}-{{ item.end_time }}-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- </template>-->
<!-- </el-calendar>-->
<!-- </el-tab-pane>-->
<el-tab-pane label="预约基本信息" name="2">
<border-table>
<table style="margin-top: 20px">
<tr>
<th>预约人姓名</th>
<td>
{{ viewData.reserve_person_username }}
</td>
<th>预约人工号</th>
<td>
{{ viewData.loginname }}
</td>
<th>预约人性别</th>
<td>
{{ viewData.reserve_person_sex }}
</td>
</tr>
<tr>
<th>预约人电话</th>
<td>
{{ viewData.reserve_person_phone }}
</td>
<th>预约人工会</th>
<td>
{{ viewData.reserve_person_unitname }}
</td>
<th>预约人部门</th>
<td>
{{ viewData.reserve_person_unitname }}
</td>
</tr>
<tr>
<th>预约场地</th>
<td>
{{ viewData.site_name }}
</td>
<th>预约时间</th>
<td colspan="3">
{{ viewData.reserve_start_time }} - {{ viewData.reserve_end_time }}
</td>
<!-- <th>预约活动项目</th>-->
<!-- <td>-->
<!-- {{ viewData.reserve_activity }}-->
<!-- </td>-->
</tr>
<tr>
<th>参加人数</th>
<td>
{{ viewData.reserve_join_user_num }}
</td>
<th>预约事由</th>
<td colspan="3">
{{ viewData.reserve_cause }}
</td>
<!-- <th>场地需求</th>-->
<!-- <td>-->
<!-- {{ viewData.reserve_demand }}-->
<!-- </td>-->
</tr>
<tr>
<th>预约状态</th>
<td :colspan="5">
<span v-if="[0].includes(viewData.stateAuditType)"
style="color: #e6a23c">{{ viewData.state_name }}</span>
<span v-if="viewData.stateAuditType==3" style="color: #67c23a">{{ viewData.state_name }}</span>
<span v-if="viewData.stateAuditType==1" style="color: #f56c6c">{{ viewData.state_name }}</span>
</td>
</tr>
</table>
</border-table>
</el-tab-pane>
<el-tab-pane label="分工会审核信息" name="3" v-if="viewData.unionProcess">
<border-table>
<table style="margin-top: 20px">
<tr>
<th>审核人</th>
<td>
{{ viewData.unionProcess.username }}
</td>
<th>审核结果</th>
<td>
{{ viewData.unionProcess.auditPass?'通过':'驳回' }}
</td>
</tr>
<tr>
<th>审核时间</th>
<td>
{{ viewData.unionProcess.auditTime }}
</td>
<th>审核意见</th>
<td>
{{ viewData.unionProcess.auditOpinion }}
</td>
</tr>
</table>
</border-table>
</el-tab-pane>
<el-tab-pane label="校工会审核信息" name="4" v-if="viewData.schoolProcess">
<border-table>
<table style="margin-top: 20px">
<tr>
<th>审核人</th>
<td>
{{ viewData.schoolProcess.username }}
</td>
<th>审核结果</th>
<td>
{{ viewData.schoolProcess.auditPass?'通过':'驳回' }}
</td>
</tr>
<tr>
<th>审核时间</th>
<td>
{{ viewData.schoolProcess.auditTime }}
</td>
<th>审核意见</th>
<td>
{{ viewData.schoolProcess.auditOpinion }}
</td>
</tr>
</table>
</border-table>
</el-tab-pane>
<slot name="handle"></slot>
</el-tabs>
</div>
</template>
<script>
module.exports = {
props: {
id: String,
activeName: {
type: String,
default: '1'
},
},
data() {
return {
activeName: '2',
viewData: {},
reserve_time: '',
}
},
methods: {
async getSiteReserveInfo(id) {
const {data} = await $.get(base + "/platform/activity/site/reserve/findOne", {id})
return data
},
async openView(id,activeName = '2') {
this.viewData = await this.getSiteReserveInfo(id)
this.activeName = activeName
}
}
}
</script>
<style scoped>
.el-descriptions-item__cell {
text-align: center !important;
}
</style>
@@ -1,111 +0,0 @@
/**
*Desc:
*Create by: jug
*Create time:2023/12/15/11:37
*/
<template>
<div style="padding-bottom: 20px;">
<van-form>
<div class="van-cell-group__title">
<div class="van-sidebar-item van-sidebar-item--select">
申请信息
</div>
</div>
<van-cell-group>
<van-cell readonly :value="formData.reserve_person_username" title="预约人姓名"></van-cell>
<van-cell readonly :value="formData.reserve_person_loginname" title="预约人工号"></van-cell>
<van-cell readonly :value="formData.reserve_person_sex" title="预约人性别"></van-cell>
<van-cell readonly :value="formData.reserve_person_phone" title="预约人电话"></van-cell>
<van-cell readonly :value="formData.reserve_person_unitname" title="预约人部门"></van-cell>
<van-cell readonly :value="formData.reserve_person_unionname" title="预约人工会"></van-cell>
<van-cell readonly :value="formData.site_name" title="预约场地"></van-cell>
<van-cell readonly title="预约开始时间" :value="formData.reserve_start_time"></van-cell>
<van-cell readonly title="预约结束时间" :value="formData.reserve_end_time"></van-cell>
<!-- <van-cell readonly :value="formData.reserve_activity" title="预约活动项目"></van-cell>-->
<van-cell :value="formData.reserve_cause"
rows="1"
autosize
type="textarea"
title="预约事由"></van-cell>
<van-cell :value="formData.reserve_join_user_num"
title="参加人数"></van-cell>
<!-- <van-cell :value="formData.reserve_demand"-->
<!-- rows="1"-->
<!-- autosize-->
<!-- type="textarea"-->
<!-- title="场地需求"></van-cell>-->
</van-cell-group>
</van-form>
<template v-if="formData && formData.unionProcess">
<div class="van-cell-group__title">
<div class="van-sidebar-item van-sidebar-item--select">
分工会审核信息
</div>
</div>
<van-cell-group>
<van-cell title="审&ensp;核&ensp;人" :value="formData.unionProcess.username"></van-cell>
<van-cell title="审核时间" :value="formData.unionProcess.auditTime"></van-cell>
<van-cell title="审核意见" :value="formData.unionProcess.auditOpinion"></van-cell>
</van-cell-group>
</template>
<template v-if="formData && formData.schoolProcess">
<div class="van-cell-group__title">
<div class="van-sidebar-item van-sidebar-item--select">
校工会审核信息
</div>
</div>
<van-cell-group>
<van-cell title="审&ensp;核&ensp;人" :value="formData.schoolProcess.username"></van-cell>
<van-cell title="审核时间" :value="formData.schoolProcess.auditTime"></van-cell>
<van-cell title="审核意见" :value="formData.schoolProcess.auditOpinion"></van-cell>
</van-cell-group>
</template>
<slot name="audit"></slot>
</div>
</template>
<script>
module.exports = {
name: "SiteH5Info",
props: {
id: String
},
data() {
return {
formData: {}
}
},
methods: {
async getInfo(id) {
const {data, code, msg} = await $.get("/platform/activity/site/reserve/findOne", {id})
if (code === 0) {
this.formData = data
} else {
this.$toast.fail('获取信息失败');
}
},
},
created() {
this.getInfo(this.id)
}
}
</script>
<style scoped>
.van-cell-group__title {
padding-left: 0 !important;
}
.van-sidebar-item {
font-size: 16px !important;
text-indent: 4px !important;
}
.van-sidebar-item--select::before {
left: 5px !important;
}
</style>