530 lines
25 KiB
HTML
530 lines
25 KiB
HTML
<!--综合查询页面 djx 2019-5-21-->
|
|
<!--#
|
|
layout("/layouts/platform.html"){
|
|
#-->
|
|
|
|
<style>
|
|
|
|
.el-date-editor .el-range-separator {
|
|
padding: 0px;
|
|
}
|
|
|
|
.el-input--suffix .el-input__inner {
|
|
padding-right: 0px;
|
|
}
|
|
|
|
.el-date-editor .el-range-separator {
|
|
width: 6%;
|
|
}
|
|
|
|
.el-dialog__body {
|
|
padding: 30px 20px 10px 20px;
|
|
}
|
|
|
|
#infoDialog .el-dialog__body {
|
|
padding: 15px 20px;
|
|
}
|
|
|
|
.tpa {
|
|
padding: 10px;
|
|
text-align: center;
|
|
width: 12%;
|
|
background-color: rgb(250, 250, 250);
|
|
border: 1px solid rgb(220, 220, 220);
|
|
}
|
|
|
|
.tpb {
|
|
padding: 10px;
|
|
text-align: center;
|
|
color: #a0a9b4;
|
|
width: 16%;
|
|
border: 1px solid rgb(220, 220, 220);
|
|
}
|
|
|
|
.tpc {
|
|
padding: 10px;
|
|
color: #a0a9b4;
|
|
width: 15%;
|
|
border: 1px solid rgb(220, 220, 220);
|
|
}
|
|
|
|
.el-card__body {
|
|
padding: 10px;
|
|
}
|
|
|
|
</style>
|
|
|
|
<div id="app" v-cloak>
|
|
|
|
<!--快捷查询-->
|
|
<el-row class="header navbar bg-white shadow" style="position: relative;margin-bottom: 10px">
|
|
|
|
<el-row type="flex">
|
|
<el-col style="width: 100px;">
|
|
<div class="mt5" style="height: 40px;line-height: 40px">基本查询:</div>
|
|
</el-col>
|
|
<el-col>
|
|
<div class="btn-group tool-button mt5">
|
|
<el-date-picker
|
|
style="width: 150px"
|
|
v-model="pageForm.year"
|
|
value-format="yyyy"
|
|
type="year"
|
|
placeholder="年度">
|
|
</el-date-picker>
|
|
</div>
|
|
|
|
<div class="btn-group tool-button mt5">
|
|
<el-select placeholder="请选择所属工会" v-model="pageForm.union" @change="seeunit(pageForm.union)"
|
|
style="width: 180px;" clearable="true" filterable="true">
|
|
<el-option v-for="item in unions" :label="item.unionname" :value="item.id"></el-option>
|
|
</el-select>
|
|
<el-select placeholder="请选择单位" v-model="pageForm.unit" style="width: 180px;" clearable="true"
|
|
filterable="true">
|
|
<el-option v-for="item in unit" :label="item.name" :value="item.id"></el-option>
|
|
</el-select>
|
|
|
|
</div>
|
|
<div class="btn-group tool-button mt5">
|
|
<el-input placeholder="请输入内容" clearable v-model="pageForm.searchKeyword">
|
|
<el-select v-model="pageForm.searchName" slot="prepend" placeholder="查询" style="width: 80px;">
|
|
<el-option label="工号" value="loginname"></el-option>
|
|
<el-option label="姓名" value="username"></el-option>
|
|
</el-select>
|
|
</el-input>
|
|
</div>
|
|
|
|
<div class="btn-group tool-button mt5">
|
|
<dict-select v-model="pageForm.rylx" clearable style="width: 200px;" placeholder="请选择人员类型"
|
|
code="UserType"></dict-select>
|
|
</div>
|
|
<div class="btn-group tool-button mt5">
|
|
<dict-select v-model="pageForm.zzzt" clearable style="width: 200px;" placeholder="请选择在职状态"
|
|
code="UserState"></dict-select>
|
|
</div>
|
|
|
|
<div class="btn-group tool-button mt5">
|
|
<el-date-picker style="width:260px;"
|
|
format="yyyy-MM-dd"
|
|
value-format="yyyy-MM-dd"
|
|
v-model="rxTime"
|
|
type="daterange"
|
|
range-separator="至"
|
|
start-placeholder="入校时间"
|
|
end-placeholder="入校时间">
|
|
</el-date-picker>
|
|
</div>
|
|
|
|
<div class="btn-group tool-button mt5">
|
|
<el-date-picker style="width:260px;"
|
|
format="yyyy-MM-dd"
|
|
value-format="yyyy-MM-dd"
|
|
v-model="txTime"
|
|
type="daterange"
|
|
range-separator="至"
|
|
start-placeholder="退休时间"
|
|
end-placeholder="退休时间">
|
|
</el-date-picker>
|
|
</div>
|
|
|
|
<div class="btn-group tool-button mt5">
|
|
<el-select placeholder="会员状态" v-model="pageForm.hyzt" style="width: 120px;" clearable="true"
|
|
filterable="true">
|
|
<el-option label="正式会员" value="1"></el-option>
|
|
<el-option label="会籍保留" value="4"></el-option>
|
|
<el-option label="已转出" value="2"></el-option>
|
|
<el-option label="已退会" value="5"></el-option>
|
|
<el-option label="已开除" value="6"></el-option>
|
|
</el-select>
|
|
</div>
|
|
|
|
|
|
<div class="btn-group tool-button mt5">
|
|
<el-button type="primary" icon="el-icon-search" @click="doSearch"></el-button>
|
|
</div>
|
|
</el-col>
|
|
</el-row>
|
|
|
|
<el-row type="flex" style="margin-top: 10px">
|
|
<el-col style="width: 100px;">
|
|
<div class="mt5" style="height: 40px;line-height: 40px">一键查询:</div>
|
|
</el-col>
|
|
<el-col>
|
|
<div class="btn-group tool-button mt5">
|
|
<el-button size="medium" @click="pageForm.sfhy='';pageForm.year='';pageData()">全部</el-button>
|
|
</div>
|
|
<div class="btn-group tool-button mt5">
|
|
<el-button size="medium" @click="pageForm.sfhy='1';pageForm.year='';pageData()">正式会员</el-button>
|
|
</div>
|
|
<div class="btn-group tool-button mt5">
|
|
<el-button size="medium" @click="pageForm.sfhy='5';pageForm.year='';pageData()">退休会员</el-button>
|
|
</div>
|
|
<!-- <div class="btn-group tool-button mt5">-->
|
|
<!-- <el-button size="medium" @click="pageForm.zzzt='在职';pageForm.year='';pageData()">去世会员</el-button>-->
|
|
<!-- </div>-->
|
|
<div class="btn-group tool-button mt5">
|
|
<el-button size="medium" @click="pageForm.zzzt='',pageForm.year=moment().format('YYYY');pageData()">
|
|
{{moment().format('YYYY')}}年入会
|
|
</el-button>
|
|
</div>
|
|
<div class="pull-right offscreen-right mt5">
|
|
<el-button style="margin-left: 30px;" size="medium" @click="exportxls"><i
|
|
class="el-icon-download"></i>
|
|
导出会员名册
|
|
</el-button>
|
|
</div>
|
|
</el-col>
|
|
</el-row>
|
|
|
|
</el-row>
|
|
<!--表格-->
|
|
<el-row>
|
|
<el-table :data="tableData" size="medium">
|
|
<el-table-column align="center" header-align="center" label="序号" type="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" label="职工号" prop="loginname"></el-table-column>
|
|
<el-table-column align="center" header-align="center" label="姓名" prop="username"></el-table-column>
|
|
<el-table-column align="center" header-align="center" label="性别" prop="sex"></el-table-column>
|
|
<el-table-column align="center" header-align="center" label="电话" prop="mobile"></el-table-column>
|
|
<el-table-column align="center" header-align="center" label="所属单位" width="200px"
|
|
prop="name"></el-table-column>
|
|
<el-table-column align="center" header-align="center" label="所属工会" width="200px"
|
|
prop="unionname"></el-table-column>
|
|
<el-table-column align="center" header-align="center" label="会员状态" prop="sfhy">
|
|
<template slot-scope="scope">
|
|
<span v-if="scope.row.sfhy == 1" class="text-success ml5">正式会员</span>
|
|
<span v-if="scope.row.sfhy == 2" class="text-primary ml5">已转出</span>
|
|
<span v-if="scope.row.sfhy == 3" class="text-warning ml5">已转入</span>
|
|
<span v-if="scope.row.sfhy == 4" class="text-info ml5">保留会籍</span>
|
|
<span v-if="scope.row.sfhy == 5" class="text-muted ml5">已退会</span>
|
|
<span v-if="scope.row.sfhy == 6" class="text-danger ml5">已开除</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column align="center" header-align="center" label="入校时间" prop="rxsj"></el-table-column>
|
|
<el-table-column align="center" header-align="center" label="退休时间" prop="txsj"></el-table-column>
|
|
<el-table-column align="center" label="操作" width="200px">
|
|
<template slot-scope="scope">
|
|
<el-button @click="openInfo(scope)" size="mini">查看</el-button>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-row>
|
|
<!--分页-->
|
|
<el-row style="margin-top: 10px">
|
|
<el-pagination
|
|
@size-change="pageSizeChange"
|
|
@current-change="pageNumberChange"
|
|
:current-page="pageForm.pageNumber"
|
|
:page-sizes="[10, 20, 30, 50]"
|
|
:page-size="pageForm.pageSize"
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
:total="pageForm.totalCount">
|
|
</el-pagination>
|
|
</el-row>
|
|
|
|
<!--查看会员详细资料-->
|
|
<el-dialog title="查看" width="55%" custom-class="ViewDialogClass" :visible.sync="infoDialogVisible" top="5%">
|
|
<el-form label-width="80px">
|
|
<el-collapse v-model="activeName">
|
|
<el-collapse-item title="用户信息" name="1">
|
|
|
|
|
|
<el-card>
|
|
<div>
|
|
<table style="width: 100%">
|
|
<tr style="border: 1px solid rgb(220,220,220);">
|
|
<td class="tpa">姓  名</td>
|
|
<td class="tpb">{{viewData.username}}</td>
|
|
<td class="tpa">性  别</td>
|
|
<td class="tpb">{{viewData.sex}}</td>
|
|
<td class="tpa">出生日期</td>
|
|
<td class="tpb">{{viewData.birthday}}</td>
|
|
<td rowspan="3">
|
|
<img v-if="viewData.imgurl!=''&&viewData.imgurl!=null" :src="showPic"
|
|
style="height: 140px;width: 100%">
|
|
<div style="text-align: center">
|
|
<el-label v-if="viewData.imgurl==''||viewData.imgurl==null">暂无图片</el-label>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr style="border: 1px solid rgb(220,220,220);">
|
|
<td class="tpa">出生地点</td>
|
|
<td class="tpb">{{viewData.csdd}}</td>
|
|
<td class="tpa">民  族</td>
|
|
<td class="tpb">{{viewData.mz}}</td>
|
|
<td class="tpa">政治面貌</td>
|
|
<td class="tpb">{{viewData.zzmc}}</td>
|
|
</tr>
|
|
|
|
<tr style="border: 1px solid rgb(220,220,220);">
|
|
<td class="tpa">工  资</td>
|
|
<td class="tpb">{{viewData.gz}}</td>
|
|
<td class="tpa">职  称</td>
|
|
<td class="tpb">{{viewData.zc}}</td>
|
|
<td class="tpa">联系电话</td>
|
|
<td class="tpb">{{viewData.mobile}}</td>
|
|
|
|
</tr>
|
|
<tr style="border: 1px solid rgb(220,220,220);">
|
|
<td class="tpa" colspan="1">人事编制</td>
|
|
<td class="tpb" colspan="3">{{viewData.rsbz}}</td>
|
|
<td class="tpa" colspan="1">Email</td>
|
|
<td class="tpb" colspan="2">{{viewData.email}}</td>
|
|
</tr>
|
|
<tr style="border: 1px solid rgb(220,220,220);">
|
|
<td class="tpa" colspan="1">所在部门</td>
|
|
<td class="tpb" colspan="3">{{viewData.unitname}}</td>
|
|
<td class="tpa" colspan="1">现任职务</td>
|
|
<td class="tpb" colspan="2">{{viewData.zw}}</td>
|
|
</tr>
|
|
<tr style="border: 1px solid rgb(220,220,220);">
|
|
<td class="tpa" colspan="7">个 人 简 历</td>
|
|
</tr>
|
|
<tr style="border: 1px solid rgb(220,220,220);">
|
|
<td class="tpb" colspan="7" v-if="(typeof(viewData.grjl)==='undefined')">暂无个人简历信息
|
|
</td>
|
|
<td class="tpc" colspan="7" v-if="!(typeof(viewData.grjl)==='undefined')">
|
|
<div v-html="viewData.grjl"></div>
|
|
</td>
|
|
</tr>
|
|
<!-- <tr style="border: 1px solid rgb(220,220,220);">
|
|
<td class="tpa" colspan="7" >家 庭 成 员</td>
|
|
</tr>
|
|
<tr style="border: 1px solid rgb(220,220,220);">
|
|
<td class="tpb" colspan="7" v-if="(typeof(viewData.jtcy)==='undefined')">暂无家庭成员信息</td>
|
|
<td class="tpc" colspan="7" v-if="!(typeof(viewData.jtcy)==='undefined')"><div v-html="viewData.jtcy"></div></td>
|
|
</tr>-->
|
|
|
|
</table>
|
|
</div>
|
|
</el-card>
|
|
|
|
</el-collapse-item>
|
|
<el-collapse-item title="家庭成员" name="2">
|
|
<el-table
|
|
:data="viewData.jtcy"
|
|
border
|
|
size="mini"
|
|
>
|
|
<el-table-column prop="gx" label="与本人关系" align="center" header-align="center">
|
|
|
|
</el-table-column>
|
|
<el-table-column prop="xm" label="姓名" align="center" header-align="center">
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="dw" label="单位" align="center" header-align="center">
|
|
|
|
</el-table-column>
|
|
<el-table-column prop="bz" label="备注" align="center" header-align="center">
|
|
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
</el-collapse-item>
|
|
<el-collapse-item title="会籍变更档案" name="3">
|
|
<el-table size="mini"
|
|
:data="hjtableData"
|
|
style="width: 95%">
|
|
|
|
<el-tale-column label="变更事由" show-overflow-tooltip="true" prop="bgsy" header-align="center"
|
|
align="center"></el-tale-column>
|
|
<el-table-column label="变更时间" width="88" show-overflow-tooltip="true" prop="sj"
|
|
header-align="center" align="center"></el-table-column>
|
|
<el-table-column label="变更类型" show-overflow-tooltip="true" prop="bgtype" header-align="center"
|
|
align="center">
|
|
<template scope="scope"><span>
|
|
<span v-if="scope.row.bgtype == 1" class="text-danger ml5">转出</span>
|
|
<span v-if="scope.row.bgtype == 2" class="text-primary ml5">转入</span>
|
|
<span v-if="scope.row.bgtype == 3" class="text-warning ml5">保留</span>
|
|
<span v-if="scope.row.bgtype == 4" class="text-info ml5">退会</span>
|
|
<span v-if="scope.row.bgtype == 5" class="text-muted ml5">开除</span>
|
|
</span></template>
|
|
</el-table-column>
|
|
<el-table-column label="变更方式" show-overflow-tooltip="true" prop="bgfs" header-align="center"
|
|
align="center">
|
|
<template scope="scope"><span>
|
|
<span v-if="scope.row.bgfs == 1" class="text-danger ml5">会员申请</span>
|
|
<span v-if="scope.row.bgfs == 2" class="text-primary ml5">用户更新</span>
|
|
<span v-if="scope.row.bgfs == 3" class="text-warning ml5">校工会变更</span>
|
|
</span></template>
|
|
</el-table-column>
|
|
<el-table-column label="变更原因" :show-overflow-tooltip="true" prop="bgyy" header-align="center"
|
|
align="center"></el-table-column>
|
|
<el-table-column label="原单位" :show-overflow-tooltip="true" width="120" prop="oldunitname"
|
|
header-align="center" align="center"></el-table-column>
|
|
<el-table-column label="原工会" :show-overflow-tooltip="true" width="140" prop="oldunionname"
|
|
header-align="center" align="center"></el-table-column>
|
|
<el-table-column label="变更单位" :show-overflow-tooltip="true" width="120" prop="newunitname"
|
|
header-align="center" align="center"></el-table-column>
|
|
<el-table-column label="变更工会" :show-overflow-tooltip="true" width="140" prop="newunionname"
|
|
header-align="center" align="center"></el-table-column>
|
|
|
|
<el-table-column label="状态" show-overflow-tooltip="true" prop="hyzt" width="130"
|
|
header-align="center" align="center">
|
|
<template scope="scope">
|
|
<span>
|
|
<el-tag v-if="scope.row.bgstate==1" type="warning">待审核</el-tag>
|
|
<el-tag v-if="scope.row.bgstate==2" type="success">审核通过</el-tag>
|
|
<el-tag v-if="scope.row.bgstate==3" type="danger">审核拒绝</el-tag>
|
|
</span>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-collapse-item>
|
|
</el-collapse>
|
|
</el-form>
|
|
</el-dialog>
|
|
|
|
</div>
|
|
|
|
<script>
|
|
|
|
new Vue({
|
|
el: "#app",
|
|
data: function () {
|
|
return {
|
|
pageForm: {
|
|
pageNumber: 1,
|
|
pageSize: 10,
|
|
totalCount: 0,
|
|
searchKeyword: "",
|
|
searchName: "username",
|
|
union: "",
|
|
hyzt: "",
|
|
unit: "",
|
|
rxTime: "",
|
|
txTime: "",
|
|
zzzt: "",
|
|
year: "",
|
|
},
|
|
tableData: [],
|
|
unions: [],
|
|
rxTime: [],
|
|
txTime: [],
|
|
unit: [],
|
|
|
|
/*查看*/
|
|
infoDialogVisible: false,
|
|
viewData: [],
|
|
age: "",
|
|
hjtableData: [],
|
|
activeName: "1",
|
|
showPic: "",
|
|
}
|
|
},
|
|
components: {
|
|
'dict-select': httpVueLoader('/components/plugins/DictSelect.vue?v=1.0.4'),
|
|
},
|
|
methods: {
|
|
seeunit: function (id) {
|
|
var self = this;
|
|
$.post(base + "/platform/hy/hyda/seeunit", {id: id}, function (data) {
|
|
self.unit = data.data;
|
|
self.pageForm.unit = "";
|
|
})
|
|
},
|
|
pageData: function () {
|
|
|
|
var self = this;
|
|
if (self.rxTime) {
|
|
self.pageForm.rxTime = self.rxTime.toString();
|
|
} else {
|
|
self.pageForm.rxTime = "";
|
|
}
|
|
if (self.txTime) {
|
|
self.pageForm.txTime = self.txTime.toString();
|
|
} else {
|
|
self.pageForm.txTime = "";
|
|
}
|
|
sublime.showLoadingbar();//显示loading
|
|
$.post(base + "/platform/hy/zhcx/init", self.pageForm, function (data) {
|
|
sublime.closeLoadingbar();//关闭loading
|
|
if (data.code == 0) {
|
|
self.tableData = data.data.user.list;
|
|
self.unions = data.data.unions;
|
|
self.unit = data.data.ejdw;
|
|
self.pageForm.totalCount = data.data.user.totalCount;
|
|
|
|
}
|
|
}, "json");
|
|
},
|
|
/*分页事件*/
|
|
pageSizeChange: function (val) {
|
|
this.pageForm.pageSize = val;
|
|
this.pageData();
|
|
},
|
|
pageNumberChange: function (val) {
|
|
this.pageForm.pageNumber = val;
|
|
this.pageData();
|
|
},
|
|
|
|
doSearch: function () {
|
|
this.pageData();
|
|
},
|
|
|
|
openInfo: function (scope) {
|
|
var self = this;
|
|
$.post(base + "/platform/hy/zhcx/findInfo", {id: scope.row.id}, function (data) {
|
|
if (data.code == 0) {
|
|
self.viewData = data.data.userInfo;
|
|
if (self.viewData.jtcy == "" || self.viewData.jtcy == null || self.viewData == undefined) {
|
|
self.viewData.jtcy = [];
|
|
} else {
|
|
self.viewData.jtcy = JSON.parse(self.viewData.jtcy | "[]");
|
|
}
|
|
self.hjtableData = data.data.hjbg;
|
|
self.showPic = FILE_DOMAIN + self.viewData.imgurl;
|
|
self.age = self.calAge(self.viewData.birthday);
|
|
}
|
|
}, "json");
|
|
self.infoDialogVisible = true;
|
|
},
|
|
|
|
/*导出xls*/
|
|
exportxls: function () {
|
|
var self = this;
|
|
self.$confirm('即将按所选的条件导出会员名册,是否继续?', '提示', {
|
|
confirmButtonText: '确定',
|
|
cancelButtonText: '取消',
|
|
type: 'warning',
|
|
callback: function (a, b) {
|
|
if ("confirm" == a) {//确认后再执行
|
|
window.open(base + "/platform/hy/zhcx/export?searchKeyword=" + self.pageForm.searchKeyword
|
|
+ "&hyzt=" + self.pageForm.hyzt
|
|
+ "&rxTime=" + self.pageForm.rxTime
|
|
+ "&txTime=" + self.pageForm.txTime
|
|
+ "&unionid=" + self.pageForm.union
|
|
+ "&unit=" + self.pageForm.unit
|
|
);
|
|
}
|
|
}
|
|
});
|
|
},
|
|
|
|
/*计算年龄*/
|
|
calAge: function (birthday) {
|
|
// 获得今天的时间
|
|
var date = new Date();
|
|
var startDate = new Date(birthday);
|
|
var newDate = date.getTime() - startDate.getTime();
|
|
var age = Math.ceil(newDate / 1000 / 60 / 60 / 24 / 365);
|
|
if (isNaN(age)) {
|
|
age = "";
|
|
}
|
|
return age;
|
|
},
|
|
|
|
},
|
|
created: function () {
|
|
this.pageData();
|
|
}
|
|
})
|
|
|
|
</script>
|
|
|
|
<!--#
|
|
}
|
|
#--> |