749 lines
36 KiB
HTML
749 lines
36 KiB
HTML
<!--#
|
|
layout("/layouts/platform.html"){
|
|
#-->
|
|
|
|
<style>
|
|
.query-row {
|
|
height: 70px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.query-row .el-col {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.query-row:not(:last-child) {
|
|
border-bottom: 1px dashed rgb(230, 230, 230);
|
|
}
|
|
|
|
.query-row-title {
|
|
width: 120px;
|
|
}
|
|
|
|
.el-table-container {
|
|
padding-top: 0;
|
|
}
|
|
</style>
|
|
|
|
|
|
<div id="app" v-cloak>
|
|
<guava ref="guava">
|
|
<template>
|
|
|
|
<el-card shadow="never">
|
|
<el-row align="middle" class="query-row" type="flex">
|
|
<el-col class="query-row-title"></el-col>
|
|
<el-col class="query-row-content">
|
|
<el-row>
|
|
<el-col :span="12">
|
|
<span>年  度:</span>
|
|
<el-date-picker
|
|
v-model="pageForm.year"
|
|
type="year"
|
|
value-format="yyyy"
|
|
placeholder="选择年"
|
|
style="width: 80%" @change="pageData">
|
|
</el-date-picker>
|
|
</el-col>
|
|
<el-col :span="12" v-if="pageForm.lb==='ry'||pageForm.lb===''">
|
|
<span>查询类型:</span>
|
|
<el-input placeholder="请输入内容" clearable v-model="pageForm.searchKeyword"
|
|
style="width: 80%" @keyup.enter.native="pageData">
|
|
<el-select v-model="pageForm.searchName" slot="prepend" placeholder="查询类型"
|
|
style="width: 110px;">
|
|
<el-option label="姓名" value="userName"></el-option>
|
|
<el-option label="工号" value="loginName"></el-option>
|
|
</el-select>
|
|
<el-button slot="append" @click="pageData">搜索</el-button>
|
|
</el-input>
|
|
</el-col>
|
|
</el-row>
|
|
</el-col>
|
|
</el-row>
|
|
|
|
<el-row align="middle" class="query-row" type="flex">
|
|
<el-col class="query-row-title"></el-col>
|
|
<el-col class="query-row-content">
|
|
<el-row>
|
|
<el-col :span="12">
|
|
<span>所属工会:</span>
|
|
<el-select v-model="pageForm.unionId" placeholder="请选择所属工会" @change="flushUnits"
|
|
@clear="flushUnits"
|
|
filterable clearable style="width: 80%">
|
|
<el-option
|
|
v-for="item in unionOptions"
|
|
:key="item.id"
|
|
:label="item.unionname"
|
|
:value="item.id">
|
|
</el-option>
|
|
</el-select>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<span>所属单位:</span>
|
|
<el-select v-model="pageForm.unitId" placeholder="请选择所属单位" @change="pageData"
|
|
filterable clearable style="width: 80%">
|
|
<el-option
|
|
v-for="item in unitOptions"
|
|
:key="item.id"
|
|
:label="item.name"
|
|
:value="item.id">
|
|
</el-option>
|
|
</el-select>
|
|
</el-col>
|
|
</el-row>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row align="middle" class="query-row" type="flex">
|
|
<el-col class="query-row-title"></el-col>
|
|
<el-col class="query-row-content">
|
|
<span>查询条件:</span>
|
|
<el-tag :effect="pageForm.state===item.value?'dark':'plain'"
|
|
:key="item.value"
|
|
:type="item.label"
|
|
@click="checkState(item.value)"
|
|
style="margin-right: 10px;cursor: pointer;margin-bottom: 5px;"
|
|
v-for="item in options">
|
|
{{ item.label }}
|
|
</el-tag>
|
|
<el-link :underline="false" @click="pageForm.state='';pageForm.lb='';pageData()"
|
|
type="danger" v-if="options.length&&pageForm.state">清空
|
|
</el-link>
|
|
</el-col>
|
|
</el-row>
|
|
|
|
|
|
<el-row align="middle" class="query-row" type="flex">
|
|
<el-col class="query-row-title"></el-col>
|
|
<el-col class="query-row-content">
|
|
<el-row>
|
|
<el-col :span="12" v-if="pageForm.state=='1'">
|
|
<span>选择路线:</span>
|
|
<el-select v-model="pageForm.takePartInLineId" filterable clearable placeholder="请选择线路"
|
|
style="width: 80%" @change="pageData()">
|
|
<el-option v-for="item in takePartInLines"
|
|
:key="item.id"
|
|
:label="item.lineName"
|
|
:value="item.id">
|
|
</el-option>
|
|
</el-select>
|
|
</el-col>
|
|
<el-col :span="12" v-if="pageForm.state=='2'">
|
|
<span>选择旅行社:</span>
|
|
<el-select v-model="pageForm.agencyId" filterable clearable placeholder="请选择旅行社"
|
|
style="width: 80%" @change="pageData()">
|
|
<el-option v-for="item in agencyLists"
|
|
:key="item.id"
|
|
:label="item.travelAgencyName"
|
|
:value="item.id">
|
|
</el-option>
|
|
</el-select>
|
|
</el-col>
|
|
|
|
</el-row>
|
|
</el-col>
|
|
</el-row>
|
|
|
|
|
|
</el-card>
|
|
|
|
|
|
<el-card shadow="never" class="mt10">
|
|
<table-tool label="" :app="this">
|
|
<template #label_end>
|
|
<el-radio-group size="medium" v-model="pageForm.lb" class="ml10" @change="pageData()"
|
|
v-if="pageForm.state=='1'">
|
|
<el-radio-button label="xl">线路列表</el-radio-button>
|
|
<el-radio-button label="ry">人员列表</el-radio-button>
|
|
</el-radio-group>
|
|
<el-radio-group size="medium" v-model="pageForm.lb" class="ml10" @change="pageData()"
|
|
v-if="pageForm.state=='2'">
|
|
<el-radio-button label="lxs">旅行社列表</el-radio-button>
|
|
<el-radio-button label="ry">人员列表</el-radio-button>
|
|
</el-radio-group>
|
|
<span class="ml10"
|
|
style="color: red">当前报名人数有教职工{{applyNum.count1}}人,家属有{{applyNum.count2}}人</span>
|
|
</template>
|
|
<template #func>
|
|
<el-button icon="el-icon-s-promotion" size="medium" type="primary" @click="doExport"
|
|
class="mr10">导出
|
|
</el-button>
|
|
<el-radio-group @change="pageData()" size="medium" v-model="pageForm.regionalNature"
|
|
v-if="pageForm.state=='1'">
|
|
<el-radio-button label="">全部</el-radio-button>
|
|
<el-radio-button label="省内">省内</el-radio-button>
|
|
<el-radio-button label="省外">省外</el-radio-button>
|
|
</el-radio-group>
|
|
</template>
|
|
</table-tool>
|
|
|
|
<el-table :data="tableData" style="width: 100%"
|
|
ref="table"
|
|
row-key="id" @sort-change="pageOrder"
|
|
v-loading="tableLoading">
|
|
|
|
<el-table-column label="家属信息" type="expand" width="150px" v-if="pageForm.lb==='ry'" key="#expand">
|
|
<template scope="{row}">
|
|
<el-card shadow="never">
|
|
<h4 slot="header" style="color: #1867b0">
|
|
家属信息
|
|
</h4>
|
|
<el-table :data="row.companionList">
|
|
<el-table-column label="姓名" prop="userName"></el-table-column>
|
|
<el-table-column label="性别" prop="sex"></el-table-column>
|
|
<el-table-column label="身份证号" prop="idCard"></el-table-column>
|
|
<el-table-column label="年龄" prop="age"></el-table-column>
|
|
<el-table-column label="床型" prop="bedType">
|
|
<template scope="{row}">
|
|
{{ row.bedInfo.bedType }}
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="床位" prop="bedNum">
|
|
<template scope="{row}">
|
|
{{ row.bedInfo.bedNum }}
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="意向拼床人" prop="otherSleepUser">
|
|
<template scope="{row}">
|
|
{{ row.bedInfo.otherSleepUser ? row.bedInfo.otherSleepUser : '暂无' }}
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="关系" prop="relation"></el-table-column>
|
|
</el-table>
|
|
</el-card>
|
|
</template>
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column align="center" header-align="center" type="index" label="序号"
|
|
width="80px" key="#index">
|
|
<template scope="scope">
|
|
<span>{{scope.$index+(pageForm.pageNumber - 1) * pageForm.pageSize + 1}} </span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
align="center"
|
|
header-align="center"
|
|
v-for="column in tableColumns"
|
|
show-overflow-tooltip
|
|
:label="column.label"
|
|
:prop="column.prop"
|
|
:sortable="column.sortable"
|
|
>
|
|
<template scope="{row}" v-if="column.prop=='lineName'">
|
|
<el-link type="primary" @click="openLine(row)">{{row.lineName}}</el-link>
|
|
</template>
|
|
<template scope="{row}" v-else-if="column.prop=='isFamily'">
|
|
{{row.isFamily?'携带':'未携带'}}
|
|
</template>
|
|
<template scope="{row}" v-else-if="column.prop=='lineNum'">
|
|
<el-link type="primary" @click="openApplyUser(row)">
|
|
{{row.lineNum+row.signUpUserFamilyNum}}
|
|
</el-link>
|
|
</template>
|
|
<template scope="{row}" v-else-if="column.prop=='signUpMode'">
|
|
{{signUpModeName(row.signUpMode)}}
|
|
</template>
|
|
<template scope="{row}" v-else-if="column.prop=='agencyNum'">
|
|
<el-link type="primary" @click="openApplyUser(row)">{{row.agencyNum}}</el-link>
|
|
</template>
|
|
<template scope="{row}" v-else-if="column.prop=='travelAgencyName'">
|
|
<el-link type="primary" @click="openAgency(row)">{{row.travelAgencyName}}</el-link>
|
|
</template>
|
|
<template scope="{row}" v-else-if="column.prop=='Name'">
|
|
{{row.lineName?row.lineName:row.travelAgencyName}}
|
|
</template>
|
|
<template scope="{row:{officialWebsite}}" v-else-if="column.prop==='officialWebsite'">
|
|
<a :href="officialWebsite" class="text-primary" target="_blank">
|
|
{{officialWebsite}}
|
|
</a>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="操作" width="250px"
|
|
v-if="pageForm.lb==='ry'||pageForm.lb===''||pageForm.lb==='xl'">
|
|
<template scope="{row}">
|
|
<template v-if="pageForm.lb==='xl'">
|
|
<el-button @click="openApplyUser(row)" size="mini" type="primary">
|
|
查看
|
|
</el-button>
|
|
<el-button @click="doRemind(row)" size="mini" type="primary">
|
|
提醒
|
|
</el-button>
|
|
</template>
|
|
|
|
<el-button @click="openView(row)" size="mini" type="primary" v-else>查看</el-button>
|
|
</template>
|
|
|
|
</el-table-column>
|
|
<el-table-column label="操作" width="250px" v-if="pageForm.lb==='lxs'">
|
|
<template scope="{row}">
|
|
<el-button @click="doEmail(row)" size="mini" type="primary">发送</el-button>
|
|
</template>
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
<el-row class="el-pagination-container" style="margin-bottom: 0px">
|
|
<el-pagination
|
|
@size-change="pageSizeChange"
|
|
@current-change="pageNumberChange"
|
|
:current-page="pageForm.pageNumber"
|
|
:page-sizes="[5,10, 20, 30, 50]"
|
|
:page-size="pageForm.pageSize"
|
|
layout="total, sizes, prev, pager, next"
|
|
:total="pageForm.totalCount">
|
|
</el-pagination>
|
|
</el-row>
|
|
|
|
</el-card>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
<template #view>
|
|
<el-card shadow="never">
|
|
<el-table :data="userTableData" style="width: 100%"
|
|
row-key="id" @sort-change="pageOrder"
|
|
v-loading="tableLoading">
|
|
<el-table-column label="家属信息" type="expand" width="150px">
|
|
<template scope="{row}">
|
|
<el-card shadow="never">
|
|
<h4 slot="header" style="color: #1867b0">
|
|
家属信息
|
|
</h4>
|
|
<el-table :data="row.companionList">
|
|
<el-table-column label="姓名" prop="userName"></el-table-column>
|
|
<el-table-column label="性别" prop="sex"></el-table-column>
|
|
<el-table-column label="身份证号" prop="idCard"></el-table-column>
|
|
<el-table-column label="年龄" prop="age"></el-table-column>
|
|
<el-table-column label="床型" prop="bedType">
|
|
<template scope="{row}">
|
|
{{ row.bedInfo.bedType }}
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="床位" prop="bedNum">
|
|
<template scope="{row}">
|
|
{{ row.bedInfo.bedNum }}
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="意向拼床人" prop="otherSleepUser">
|
|
<template scope="{row}">
|
|
{{ row.bedInfo.otherSleepUser ? row.bedInfo.otherSleepUser : '暂无' }}
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="关系" prop="relation"></el-table-column>
|
|
</el-table>
|
|
</el-card>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column align="center" header-align="center" type="index" label="序号"
|
|
width="80px">
|
|
<template scope="scope">
|
|
<span>{{scope.$index+(pageFormUser.pageNumber - 1) * pageFormUser.pageSize + 1}} </span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
align="center"
|
|
header-align="center"
|
|
v-for="column in tableColumnUsers"
|
|
show-overflow-tooltip
|
|
:label="column.label"
|
|
:prop="column.prop"
|
|
:sortable="column.sortable"
|
|
>
|
|
|
|
<template scope="{row}" v-if="column.prop=='isFamily'">
|
|
{{row.isFamily?'携带':'未携带'}}
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="操作" width="250px">
|
|
<template scope="{row}">
|
|
<el-button @click="openView(row)" size="mini" type="primary">查看</el-button>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table>
|
|
<el-row class="el-pagination-container" style="margin-bottom: 0px">
|
|
<el-pagination
|
|
@size-change="pageSizeChangeUser"
|
|
@current-change="pageNumberChangeUser"
|
|
:current-page="pageFormUser.pageNumber"
|
|
:page-sizes="[5,10, 20, 30, 50]"
|
|
:page-size="pageFormUser.pageSize"
|
|
layout="total, sizes, prev, pager, next"
|
|
:total="pageFormUser.totalCount">
|
|
</el-pagination>
|
|
</el-row>
|
|
</el-card>
|
|
</template>
|
|
|
|
<template #edit>
|
|
<el-descriptions :column="2" border class="viewTable">
|
|
<el-descriptions-item label="旅行社编号">{{viewData.serialNumber}}</el-descriptions-item>
|
|
<el-descriptions-item label="旅行社名称">{{viewData.travelAgencyName}}</el-descriptions-item>
|
|
<el-descriptions-item label="联系人">{{viewData.contact}}</el-descriptions-item>
|
|
<el-descriptions-item label="备注">{{viewData.contactMobileNumber}}</el-descriptions-item>
|
|
<el-descriptions-item label="邮箱">{{viewData.email}}</el-descriptions-item>
|
|
<el-descriptions-item label="官网">
|
|
<a :href="viewData.officialWebsite" target="_blank">
|
|
{{viewData.officialWebsite}}
|
|
<span class="text-primary">立即访问</span>
|
|
</a>
|
|
</el-descriptions-item>
|
|
<el-descriptions-item :span="2" label="备注">{{viewData.note}}</el-descriptions-item>
|
|
</el-descriptions>
|
|
</template>
|
|
|
|
<template #public>
|
|
<line-info ref="viewLineInfo"></line-info>
|
|
</template>
|
|
|
|
|
|
</guava>
|
|
<el-dialog
|
|
title="查看个人信息"
|
|
:visible.sync="userFindDialogVisible"
|
|
width="80%">
|
|
<enroll-info ref="viewEnrollInfo" :union_id="unionId"></enroll-info>
|
|
<span slot="footer" class="dialog-footer">
|
|
<el-button @click="userFindDialogVisible = false" type="primary">关闭</el-button>
|
|
</span>
|
|
</el-dialog>
|
|
|
|
</div>
|
|
|
|
|
|
<script>
|
|
const vue = new Vue({
|
|
el: '#app',
|
|
mixins: [initTableMixins],
|
|
data() {
|
|
return {
|
|
applyNum: {},
|
|
signUpModeList: [],
|
|
viewData: {},
|
|
agencyLists: [],
|
|
unionId: "${@shiro.getPrincipalProperty('unit').getUnionid()}",
|
|
userFindDialogVisible: false,
|
|
userTableData: [],
|
|
unionOptions: [],
|
|
unitOptions: [],
|
|
takePartInLines: [],
|
|
pageFormUser: {
|
|
searchName: "",
|
|
searchKeyword: "",
|
|
pageNumber: 1,
|
|
pageSize: 10,
|
|
totalCount: 0,
|
|
pageOrderName: "",
|
|
pageOrderBy: ""
|
|
},
|
|
pageForm: {
|
|
regionalNature: "省外",
|
|
year: moment().format('YYYY'),
|
|
searchName: "userName",
|
|
searchKeyword: '',
|
|
unionId: '',
|
|
unitId: '',
|
|
agencyId: '',
|
|
takePartInLineId: '',
|
|
state: '',
|
|
lb: ''
|
|
},
|
|
tableColumnUsers: [
|
|
{prop: 'loginName', label: '工号'},
|
|
{prop: 'userName', label: '姓名'},
|
|
{prop: 'unitName', label: '单位', sortable: true},
|
|
{prop: 'unionName', label: '工会', sortable: true},
|
|
// {prop: 'lineName', label: '线路'},
|
|
{prop: 'isFamily', label: '是否携带家属'},
|
|
],
|
|
tableColumns: [
|
|
{prop: 'year', label: '年度'},
|
|
{prop: 'lineName', label: '线路'},
|
|
{prop: 'travelAgencyName', label: '旅行社'},
|
|
{prop: 'contact', label: '联系人'},
|
|
{prop: 'contactMobileNumber', label: '联系方式'},
|
|
{prop: 'unionname', label: '所属分工会'},
|
|
{prop: 'lineNum', label: '报名人数'}
|
|
],
|
|
options: [
|
|
{label: "线路", value: "1"},
|
|
{label: "旅行社", value: "2"},
|
|
],
|
|
}
|
|
},
|
|
components: {
|
|
'enroll-info': httpVueLoader('/components/theRapyRecuperation/Enrollinfo.vue'),
|
|
'line-info': httpVueLoader('/components/theRapyRecuperation/LineInfo.vue')
|
|
},
|
|
methods: {
|
|
async doEmail(row) {
|
|
const refs = await $.post(loc() + "/doEmail", {id: row.id})
|
|
},
|
|
async doRemind(row) {
|
|
const confirm = await this.$confirm('您将发送提醒!, 是否继续?', '提示', {
|
|
confirmButtonText: '确定',
|
|
cancelButtonText: '取消',
|
|
type: 'warning'
|
|
})
|
|
if (confirm === "confirm") {
|
|
const refs = await $.post(loc() + "/doRemind", {id: row.id})
|
|
if (refs.code == 0) {
|
|
this.notifySuccess(refs.msg);
|
|
} else {
|
|
this.notifyWarning(refs.msg)
|
|
}
|
|
}
|
|
},
|
|
doExport() {
|
|
const {year, searchName, searchKeyword, unionId, unitId, agencyId, takePartInLineId} = this.pageForm
|
|
window.open(loc() + "/doExport?year=" + year +
|
|
"&searchName=" + searchName +
|
|
"&searchKeyword" + searchKeyword +
|
|
"&unionId=" + unionId +
|
|
"&unitId=" + unitId +
|
|
"&agencyId=" + agencyId +
|
|
"&takePartInLineId=" + takePartInLineId)
|
|
|
|
},
|
|
pageSizeChange(val) {
|
|
this.pageForm.pageNumber = val;
|
|
this.pageData();
|
|
},
|
|
pageNumberChange(val) {
|
|
this.pageForm.pageNumber = val;
|
|
this.pageData();
|
|
},
|
|
checkState(type) {
|
|
this.pageForm.state = type
|
|
if (type === "1") {
|
|
this.pageForm.lb = 'xl'
|
|
} else {
|
|
this.pageForm.lb = 'lxs'
|
|
}
|
|
this.pageData()
|
|
},
|
|
async openView(row) {
|
|
this.userFindDialogVisible = true
|
|
this.$nextTick(() => {
|
|
this.$refs.viewEnrollInfo.openView(row.id)
|
|
})
|
|
},
|
|
pageSizeChangeUser(val) {
|
|
this.pageFormUser.pageSize = val;
|
|
this.openApplyUser();
|
|
|
|
},
|
|
pageNumberChangeUser(val) {
|
|
this.pageFormUser.pageNumber = val;
|
|
this.openApplyUser();
|
|
|
|
},
|
|
async openApplyUser(row) {
|
|
sublime.showLoadingbar();
|
|
const pageForm = clone(this.pageFormUser)
|
|
pageForm.id = row.id
|
|
let url = this.pageForm.state === '1' ? '/platform/theRapyRecuperation/line/selectLineUser' : '/platform/theRapyRecuperation/query/selectAgencyUser'
|
|
$.post(url, pageForm, (data) => {
|
|
sublime.closeLoadingbar();
|
|
this.tableLoading = false
|
|
if (data.code == 0) {
|
|
this.userTableData = data.data.list;
|
|
this.pageFormUser.totalCount = data.data.totalCount;
|
|
} else {
|
|
this.$message.error(data.msg);
|
|
}
|
|
}, "json");
|
|
this.$refs.guava.view()
|
|
},
|
|
openAgency(row) {
|
|
this.viewData = row
|
|
this.$refs.guava.edit()
|
|
},
|
|
openLine(row) {
|
|
this.$refs.guava.public()
|
|
if (row.regionalNature === "省内") {
|
|
this.$refs.viewLineInfo.findOne(row.id, null)
|
|
} else {
|
|
this.$refs.viewLineInfo.findOne(row.id, row.usUnionId)
|
|
|
|
}
|
|
},
|
|
getSelfUnionUser() {
|
|
this.tableLoading = true
|
|
this.tableData = []
|
|
$.post(loc() + "/getSelfUnionUser", this.pageForm, (data) => {
|
|
sublime.closeLoadingbar();
|
|
this.tableLoading = false
|
|
if (data.code === 0) {
|
|
this.tableData = data.data.list;
|
|
this.pageForm.totalCount = data.data.totalCount;
|
|
} else {
|
|
this.$message.error(data.msg);
|
|
}
|
|
}, "json");
|
|
},
|
|
|
|
async pageData() {
|
|
if (this.pageForm.lb === "") {
|
|
this.tableColumns = [
|
|
{prop: 'loginName', label: '工号'},
|
|
{prop: 'userName', label: '姓名'},
|
|
{prop: 'unitName', label: '单位', sortable: true},
|
|
{prop: 'unionName', label: '工会', sortable: true},
|
|
{prop: 'Name', label: '线路(旅行社)', sortable: true},
|
|
{prop: 'isFamily', label: '是否携带家属'},
|
|
]
|
|
this.getSelfUnionUser()
|
|
} else if (this.pageForm.lb === "xl") {
|
|
this.tableColumns = [
|
|
{prop: 'year', label: '年度'},
|
|
{prop: 'lineName', label: '线路名称', sortable: true},
|
|
{prop: 'travelAgencyName', label: '承担旅行社', sortable: true},
|
|
{prop: 'unionname', label: '创建工会', sortable: true},
|
|
{prop: 'regionalNature', label: '线路类型', sortable: true},
|
|
{prop: 'signUpMode', label: '组织形式', sortable: true},
|
|
{prop: 'contact', label: '联系人', sortable: true},
|
|
{prop: 'contactMobileNumber', label: '联系方式'},
|
|
{prop: 'lineNum', label: '报名人数(包含家属)'}
|
|
]
|
|
this.takePartInLines = await this.getXlByUnion()
|
|
await this.getXlData()
|
|
} else if (this.pageForm.lb === "lxs") {
|
|
this.tableColumns = [
|
|
{label: '年度', prop: 'year'},
|
|
{label: '旅行社编号', prop: 'serialNumber', sortable: true},
|
|
{label: '旅行社名称', prop: 'travelAgencyName', sortable: true},
|
|
{label: '联系人', prop: 'contact'},
|
|
{label: '联系人手机', prop: 'contactMobileNumber'},
|
|
{label: '邮箱', prop: 'email'},
|
|
{label: '官网', prop: 'officialWebsite'},
|
|
{label: '报名人数', prop: 'agencyNum', sortable: true},
|
|
],
|
|
this.getLxsData()
|
|
await this.getAgencyList()
|
|
} else {
|
|
this.tableColumns = [
|
|
{prop: 'loginName', label: '工号'},
|
|
{prop: 'userName', label: '姓名'},
|
|
{prop: 'unitName', label: '单位', sortable: true},
|
|
{prop: 'unionName', label: '工会', sortable: true},
|
|
{prop: 'Name', label: '线路(旅行社)'},
|
|
{prop: 'isFamily', label: '是否携带家属'},
|
|
]
|
|
await this.getRyData()
|
|
|
|
}
|
|
await this.getApplyNum()
|
|
},
|
|
async flushUnits() {
|
|
if (this.pageForm.unionId) {
|
|
this.unitOptions = await getUnits(this.pageForm.unionId)
|
|
} else {
|
|
this.unitOptions = []
|
|
this.$set(this.pageForm, "unitId", "")
|
|
}
|
|
await this.pageData()
|
|
},
|
|
async getXlByUnion() {
|
|
const {data} = await $.post("/platform/theRapyRecuperation/TheRapyAudit/getXlByUnion", {
|
|
unionId: this.pageForm.unionId,
|
|
year: this.pageForm.year
|
|
})
|
|
return data
|
|
},
|
|
async getAgencyList() {
|
|
const {data} = await $.post("/platform/theRapyRecuperation/travelAgency/selectTravelAgency", {
|
|
year: this.pageForm.year
|
|
})
|
|
this.agencyLists = data
|
|
},
|
|
getLxsData() {
|
|
this.tableLoading = true
|
|
this.tableData = []
|
|
$.post(loc() + "/getLxsData", this.pageForm, (data) => {
|
|
sublime.closeLoadingbar();
|
|
this.tableLoading = false
|
|
if (data.code === 0) {
|
|
this.tableData = data.data.list;
|
|
this.pageForm.totalCount = data.data.totalCount;
|
|
} else {
|
|
this.$message.error(data.msg);
|
|
}
|
|
}, "json");
|
|
},
|
|
async getXlData() {
|
|
this.tableLoading = true
|
|
this.tableData = []
|
|
$.post(loc() + "/getXlData", this.pageForm, (data) => {
|
|
sublime.closeLoadingbar();
|
|
this.tableLoading = false
|
|
if (data.code === 0) {
|
|
this.tableData = data.data.list;
|
|
this.pageForm.totalCount = data.data.totalCount;
|
|
} else {
|
|
this.$message.error(data.msg);
|
|
}
|
|
}, "json");
|
|
},
|
|
async getRyData() {
|
|
this.tableLoading = true
|
|
this.tableData = []
|
|
$.post(loc() + "/getRyData", this.pageForm, (data) => {
|
|
sublime.closeLoadingbar();
|
|
this.tableLoading = false
|
|
if (data.code === 0) {
|
|
this.tableData = data.data.list;
|
|
this.pageForm.totalCount = data.data.totalCount;
|
|
} else {
|
|
this.$message.error(data.msg);
|
|
}
|
|
}, "json");
|
|
},
|
|
/**
|
|
* 查询所有报名人员的工会
|
|
* @returns {Promise<void>}
|
|
*/
|
|
async getBmUserUnion() {
|
|
const {data} = await $.post("/platform/theRapyRecuperation/TheRapyAudit/getBmUserUnion")
|
|
this.unionOptions = data
|
|
},
|
|
/**
|
|
* 查询现在有多少个人报名
|
|
* @returns {Promise<void>}
|
|
*/
|
|
async getApplyNum() {
|
|
const {data} = await $.post(loc() + "/getApplyNum", {
|
|
unionId: this.pageForm.unionId,
|
|
state: this.pageForm.state,
|
|
regionalNature: this.pageForm.regionalNature,
|
|
year: this.pageForm.year
|
|
})
|
|
this.applyNum = data
|
|
},
|
|
signUpModeName(val) {
|
|
const d = this.signUpModeList.find(v => v.value === val)
|
|
return d ? d.label : null
|
|
},
|
|
},
|
|
async created() {
|
|
this.signUpModeList = await getEnumOptions('TheRapyRecuperationSignUpMode')
|
|
this.unionOptions = await getUnions()
|
|
|
|
if ("${@shiro.hasRole('H04')}" === 'true' && "${@shiro.hasRole('sysadmin')||@shiro.hasRole('A06')}" === 'false') {
|
|
await this.getBmUserUnion()
|
|
if (this.unionOptions && this.unionOptions.length > 0) {
|
|
this.$set(this.pageForm, "unionId", "${@shiro.getPrincipalProperty('unit').getUnionid()}")
|
|
}
|
|
}
|
|
this.flushUnits()
|
|
}
|
|
})
|
|
</script>
|
|
|
|
|
|
<!--#
|
|
}
|
|
#--> |