first commit
This commit is contained in:
@@ -0,0 +1,872 @@
|
||||
<!--#
|
||||
layout("/layouts/platform.html"){
|
||||
#-->
|
||||
<style>
|
||||
|
||||
.el-transfer {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.el-transfer-panel {
|
||||
text-align: left;
|
||||
width: 40%;
|
||||
height: 500px;
|
||||
}
|
||||
|
||||
.el-transfer-panel__list.is-filterable {
|
||||
height: 400px;
|
||||
}
|
||||
|
||||
.el-textarea__inner {
|
||||
width: 600px;
|
||||
margin-left: 90px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.el-transfer-panel__body {
|
||||
height: calc(100% - 40px) !important;
|
||||
}
|
||||
|
||||
.el-transfer-panel__list {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.el-transfer {
|
||||
border: 1px solid #EBEEF5;
|
||||
}
|
||||
|
||||
.el-transfer .el-checkbox-group {
|
||||
line-height: 40px;
|
||||
}
|
||||
|
||||
.tableInput .el-textarea__inner {
|
||||
width: 100%;
|
||||
margin-left: auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
<div id="app" v-cloak>
|
||||
<guava ref="guava">
|
||||
|
||||
<el-card shadow="never">
|
||||
<div class="btn-group tool-button mt5">
|
||||
<el-date-picker
|
||||
placeholder="选择年度"
|
||||
type="year"
|
||||
v-model="pageForm.year"
|
||||
value-format="yyyy">
|
||||
</el-date-picker>
|
||||
</div>
|
||||
<div class="btn-group tool-button mt5">
|
||||
<el-select @change="doSearch" clearable filterable placeholder="请选择活动"
|
||||
v-model="pageForm.hdid">
|
||||
<el-option
|
||||
:key="item.id"
|
||||
:label="item.name"
|
||||
:value="item.id"
|
||||
v-for="item in lxyHd">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
<div class="btn-group tool-button mt5">
|
||||
<el-select @change="doSearch" clearable filterable placeholder="请选择分工会"
|
||||
v-model="pageForm.unionId">
|
||||
<el-option
|
||||
:key="item.id"
|
||||
:label="item.unionname"
|
||||
:value="item.id"
|
||||
v-for="item in unionList">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
|
||||
<div class="btn-group tool-button mt5">
|
||||
<el-button @click="doSearch" icon="el-icon-search"
|
||||
type="primary"></el-button>
|
||||
</div>
|
||||
</el-card>
|
||||
|
||||
<el-card class="mt10" shadow="never">
|
||||
<el-table :data="tableData" @sort-change="pageOrder" row-key="id"
|
||||
style="width: 100%"
|
||||
v-loading="tabLoading">
|
||||
<el-table-column align="center" header-align="center" label="序号"
|
||||
width="100px">
|
||||
<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="name"
|
||||
width="300px">
|
||||
<template scope="scope">
|
||||
<el-link @click="lxy_app.openView(scope.row.id)" type="primary">
|
||||
{{scope.row.name}}
|
||||
</el-link>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<!-- <el-table-column align="center" header-align="center" label="活动场地"
|
||||
prop="hdcd"
|
||||
show-overflow-tooltip></el-table-column>-->
|
||||
|
||||
<el-table-column align="center" header-align="center" label="活动时间"
|
||||
prop="hdkssj"
|
||||
sortable width="200px">
|
||||
<template scope="scope">
|
||||
{{scope.row.hdkssj}} 至 {{scope.row.hdjssj}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column align="center" header-align="center" label="报名时间"
|
||||
prop="bmsj" show-overflow-tooltip
|
||||
sortable width="200px">
|
||||
|
||||
<template scope="scope">
|
||||
{{scope.row.bmkssj}} 至 {{scope.row.bmjzsj}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
|
||||
<el-table-column align="center" header-align="center" label="分工会"
|
||||
prop="unionname" show-overflow-tooltip>
|
||||
<template scope="scope">
|
||||
<span>({{scope.row.unioncode}}){{scope.row.unionname}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column align="center" header-align="center" label="分配名额"
|
||||
prop="number" width="100px">
|
||||
<template scope="scope">
|
||||
<span style="color: tomato">{{scope.row.number}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" header-align="center" label="已报人数"
|
||||
prop="remain" width="100px">
|
||||
<template scope="scope">
|
||||
<span style="color: tomato">{{scope.row.number-scope.row.remain}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" header-align="center" label="状态"
|
||||
prop="name">
|
||||
<template scope="scope">
|
||||
<span :class="lxy_app.getStatus(scope.row).class">{{lxy_app.getStatus(scope.row).name}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" fixed="right" header-align="center"
|
||||
label="操作"
|
||||
width="300px">
|
||||
<template scope="scope">
|
||||
<el-button @click="lxy_app.openView(scope.row.id)" size="mini"
|
||||
type="primary">查看活动
|
||||
</el-button>
|
||||
|
||||
<!--# if(@shiro.hasRole('sysadmin')){ #-->
|
||||
<el-button @click="openView(scope.row)" size="mini" type="primary">查看报名
|
||||
</el-button>
|
||||
<!--# } #-->
|
||||
<!--# if(@shiro.hasRole('H04')){ #-->
|
||||
<el-button @click="openBm2(scope.row)" size="mini"
|
||||
type="primary">报名
|
||||
</el-button>
|
||||
<!--# } #-->
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<el-row class="el-pagination-container">
|
||||
<el-pagination
|
||||
:current-page="pageForm.pageNumber"
|
||||
:page-size="pageForm.pageSize"
|
||||
:page-sizes="[10, 20, 30, 50]"
|
||||
:total="pageForm.totalCount"
|
||||
@current-change="pageNumberChange"
|
||||
@size-change="pageSizeChange"
|
||||
layout="total, sizes, prev, pager, next">
|
||||
</el-pagination>
|
||||
</el-row>
|
||||
</el-card>
|
||||
|
||||
<template #edit_func>
|
||||
<el-button @click="doSubmit(false)" size="medium"
|
||||
type="primary">保存
|
||||
</el-button>
|
||||
<el-button @click="doSubmit(true)" size="medium"
|
||||
type="primary">提交
|
||||
</el-button>
|
||||
|
||||
</template>
|
||||
<template #edit>
|
||||
<el-row style="padding: 0 5%;">
|
||||
<el-transfer
|
||||
:data="notApplyUser"
|
||||
:filter-method="filterNotApplyUser"
|
||||
:props="{
|
||||
key: 'id',
|
||||
label: 'label'
|
||||
}"
|
||||
:right-default-checked="rightCheckedData"
|
||||
:titles="['可报人员名单','当前选择']"
|
||||
@change="transferChange"
|
||||
@right-check-change="rightCheckChange"
|
||||
filter-placeholder="请输入工号或者姓名查询"
|
||||
filterable
|
||||
v-model="CheckNotApplyUser">
|
||||
<template #left-footer>
|
||||
<!-- <el-checkbox-group @change="checkChange"
|
||||
v-model="userPageForm.check">
|
||||
<el-checkbox label="honer">是否获取荣誉</el-checkbox>
|
||||
<el-checkbox label="five">五年内未参加</el-checkbox>
|
||||
</el-checkbox-group>-->
|
||||
</template>
|
||||
<template #right-footer>
|
||||
<div class="text-right pr20" style="line-height: 40px">
|
||||
<el-button @click="addHasApplyUserTableData" size="mini"
|
||||
type="primary">添加
|
||||
</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-transfer>
|
||||
|
||||
<div>
|
||||
<el-divider content-position="left">
|
||||
工会分配名额<span
|
||||
class="text-info">{{checkTableRowData.number}}</span>人,
|
||||
您已选择名额<span
|
||||
class="text-info">{{hasApplyUserTableData.filter(v=>v.bmzt!='4').length}}</span>人,
|
||||
<!-- <!– 通过审核<span class="text-success">{{checkTableRowData.passnum}}</span>人,–>
|
||||
还可选择<span
|
||||
class="text-primary">{{checkTableRowData.number - checkTableRowData.passnum - checkTableRowData.reviewnum}}</span>人 -->
|
||||
还可选择<span class="text-primary">{{checkTableRowData.number - hasApplyUserTableData.filter(v=>v.bmzt!='4').length}}</span>人
|
||||
</el-divider>
|
||||
</div>
|
||||
|
||||
<el-table :data="hasApplyUserTableData" border height="480" size="mini">
|
||||
<el-table-column align="center" header-align="center" label="序号"
|
||||
type="index" fixed
|
||||
width="70"></el-table-column>
|
||||
<el-table-column align="center" header-align="center" label="姓名" fixed
|
||||
prop="username" width="100"></el-table-column>
|
||||
<el-table-column align="center" header-align="center" label="工号"
|
||||
prop="loginname" width="120"></el-table-column>
|
||||
<el-table-column align="center" header-align="center" label="单位"
|
||||
prop="unitname" width="120"></el-table-column>
|
||||
<el-table-column align="center" header-align="center" label="年龄"
|
||||
prop="age" width="70"></el-table-column>
|
||||
<el-table-column align="center" header-align="center" label="手机号码"
|
||||
width="150">
|
||||
<template scope="{row}">
|
||||
<div>
|
||||
<el-input :disabled="row.bmzt&&row.bmzt!=4" :rows="2"
|
||||
placeholder="请输入手机号码" style="width: 100%"
|
||||
v-model="row.mobile">
|
||||
</el-input>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" header-align="center" label="身份证号" width="200">
|
||||
<template scope="{row}">
|
||||
<div>
|
||||
<el-input :disabled="row.bmzt&&row.bmzt!=4" :rows="2"
|
||||
placeholder="请输入身份证号" style="width: 100%"
|
||||
v-model="row.idcard">
|
||||
</el-input>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" header-align="center" label="上车地点" width="200">
|
||||
<template scope="{row}">
|
||||
<div>
|
||||
<el-select v-model="row.scdd" placeholder="请选择上车地点" :disabled="row.bmzt&&row.bmzt!=4">
|
||||
<el-option label="西康路校区" value="西康路校区"></el-option>
|
||||
<el-option label="江宁校区" value="江宁校区"></el-option>
|
||||
<el-option label="常州新校区(金坛)" value="常州新校区(金坛)"></el-option>
|
||||
<el-option label="常州老校区" value="常州老校区"></el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" header-align="center" label="获奖名称" width="250">
|
||||
<template scope="{row}">
|
||||
<div class="tableInput">
|
||||
<el-input :disabled="row.bmzt&&row.bmzt!=4" :rows="2"
|
||||
placeholder="请输入获奖名称" style="width: 100%"
|
||||
type="textarea" v-model="row.zyhj">
|
||||
</el-input>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" header-align="center" label="备注" width="250">
|
||||
<template scope="{row}">
|
||||
<div class="tableInput">
|
||||
<el-input :disabled="row.bmzt&&row.bmzt!=4" :rows="2"
|
||||
placeholder="请输入备注" style="width: 100%"
|
||||
type="textarea" v-model="row.bz">
|
||||
</el-input>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" header-align="center"
|
||||
label="是否审核通过" width="100">
|
||||
<template scope="{row}">
|
||||
<span class="text-primary" v-if="row.bmzt==1">待分工会审核</span>
|
||||
<span class="text-danger"
|
||||
v-else-if="row.bmzt==2">分工会审核不通过</span>
|
||||
<span class="text-primary"
|
||||
v-else-if="row.bmzt==3">待校工会审核</span>
|
||||
<span class="text-danger"
|
||||
v-else-if="row.bmzt==4">校工会审核不通过</span>
|
||||
<span class="text-success"
|
||||
v-else-if="row.bmzt==5">报名成功</span>
|
||||
<span class="text-muted" v-else>预选</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column header-align="center" label="操作" width="200">
|
||||
<template scope="scope">
|
||||
<el-button
|
||||
@click="hasApplyUserTableData.splice(scope.$index,1)"
|
||||
size="mini" type="danger"
|
||||
v-if="scope.row.bmzt===4||!scope.row.bmzt">
|
||||
移除
|
||||
</el-button>
|
||||
|
||||
<el-button @click="viewInfo(scope.row)"
|
||||
size="mini" type="primary"
|
||||
v-if="scope.row.bmzt&&scope.row.files">
|
||||
查看
|
||||
</el-button>
|
||||
<el-button @click="uploadMaterial(scope.row)"
|
||||
size="mini" type="primary"
|
||||
v-if="scope.row.bmzt===4||!scope.row.bmzt">
|
||||
上传材料
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
</el-row>
|
||||
</template>
|
||||
|
||||
<template #view>
|
||||
<el-table :data="bmTableData" ref="multipleTableRy" row-key="id"
|
||||
style="width: 100%"
|
||||
tooltip-effect="dark">
|
||||
<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"
|
||||
sortable></el-table-column>
|
||||
<el-table-column align="center" header-align="center" label="年龄"
|
||||
prop="age"
|
||||
sortable></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="身份证号"
|
||||
prop="idcard"></el-table-column>
|
||||
<el-table-column align="center" header-align="center" label="获奖名称"
|
||||
prop="zyhj"
|
||||
show-overflow-tooltip></el-table-column>
|
||||
<el-table-column align="center" header-align="center" label="备注"
|
||||
prop="bz"
|
||||
show-overflow-tooltip></el-table-column>
|
||||
<el-table-column align="center" header-align="center" label="报名状态"
|
||||
prop="bmzt">
|
||||
<template scope="scope">
|
||||
<span style="color: #E6A23C"
|
||||
v-if="scope.row.bmzt==1">待分工会审核</span>
|
||||
<span style="color: #F56C6C"
|
||||
v-if="scope.row.bmzt==2">分工会审核未通过</span>
|
||||
<span style="color: #E6A23C"
|
||||
v-if="scope.row.bmzt==3">待校工会审核</span>
|
||||
<span style="color: #F56C6C"
|
||||
v-if="scope.row.bmzt==4">校工会审核未通过</span>
|
||||
<span style="color: #67C23A"
|
||||
v-if="scope.row.bmzt==5">报名成功</span>
|
||||
<span style="color: #E6A23C"
|
||||
v-if="scope.row.bmzt==6">待填写个人资料</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column align="center" fixed="right" header-align="center"
|
||||
label="操作"
|
||||
width="120px">
|
||||
<template scope="scope">
|
||||
<el-button @click="openViewXx(scope.row)" size="mini"
|
||||
type="primary">详细信息
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</template>
|
||||
|
||||
</guava>
|
||||
|
||||
<el-dialog :close-on-click-modal="false" :visible.sync="viewDialogSh"
|
||||
custom-class="ViewDialogClass"
|
||||
top="3%" width="60%">
|
||||
<el-form label-position="right" label-width="120px" style="padding: 20px 0">
|
||||
<vi-title title="个人信息"></vi-title>
|
||||
<el-row gutter="20">
|
||||
<el-col :span="8">
|
||||
<el-form-item label="工号:">
|
||||
{{ viewData.loginname }}
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="姓名:">
|
||||
{{ viewData.username }}
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="职务:">
|
||||
{{ viewData.zw }}
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="人事编制:">
|
||||
{{ viewData.rsbz }}
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="性别:">
|
||||
{{ viewData.sex }}
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="年龄:">
|
||||
{{ viewData.age }}
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="所在单位:">
|
||||
{{ viewData.unitname }}
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="手机号:">
|
||||
{{ viewData.mobile }}
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="获奖名称:">
|
||||
{{ viewData.zyhj }}
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="备注:">
|
||||
{{ viewData.bz }}
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
</el-row>
|
||||
<!-- <vi-title title="曾获荣誉"></vi-title>
|
||||
<el-table :data="viewData.chry" show-header="false" size="mini"
|
||||
style="width: 100%">
|
||||
<el-table-column align="center" header-align="center" label="获得时间"
|
||||
prop="hdsj"
|
||||
width="250px">
|
||||
<template slot-scope="{row}">
|
||||
<el-date-picker format="yyyy-MM-dd" readonly type="date"
|
||||
v-model="row.hdsj"></el-date-picker>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column align="center" header-align="center" label="曾获荣誉"
|
||||
prop="shry">
|
||||
<template slot-scope="{row}">
|
||||
<el-input readonly v-model="row.shry"></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column align="center" header-align="center" label="附件"
|
||||
width="120px">
|
||||
<template slot-scope="{row}">
|
||||
<div @click="dd3s.download(row.ryfj,row.ryfj)"
|
||||
class="file-down-span">
|
||||
<i class="el-icon-download"></i>
|
||||
</div>
|
||||
<el-image :src="'${AppFileDomain!}'+row.ryfj"
|
||||
@click="dd3s.showpic(row.ryfj)"
|
||||
fit="cover"
|
||||
style="width: 100px;height: 100px;box-shadow: 0 0 5px rgb(200,200,200)"
|
||||
v-if="dd3s.isPic(row.ryfj)">
|
||||
</el-image>
|
||||
<el-image src="***"
|
||||
style="width: 100px;height: 100px;box-shadow: 0 0 5px rgb(200,200,200)"
|
||||
v-else>
|
||||
<div class="image-slot" slot="error"
|
||||
style="width: 100%;height: 100%; display:flex;align-items: center;text-align: center">
|
||||
<span style="font-size: 12px;color: rgb(180,180,180);width: 100%;text-align: center;overflow: hidden;padding: 0 10px;
|
||||
text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical">{{row.ryfj}}</span>
|
||||
</div>
|
||||
</el-image>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<template v-if="viewData.files&&viewData.files.length">
|
||||
<vi-title title="身份证复印件"></vi-title>
|
||||
<div style="text-align: left;">
|
||||
<div style="display: inline-block;width: 100px;margin-right:10px"
|
||||
v-for="item in viewData.files">
|
||||
<div @click="dd3s.download(item.filepath,item.filename)"
|
||||
class="file-down-span">
|
||||
<i class="el-icon-download"></i>
|
||||
</div>
|
||||
<el-image :src="'${AppFileDomain!}'+item.filepath"
|
||||
@click="dd3s.showpic(item.filepath)"
|
||||
fit="cover"
|
||||
style="width: 100px;height: 100px;box-shadow: 0 0 5px rgb(200,200,200)"
|
||||
v-if="dd3s.isPic(item.filepath)">
|
||||
</el-image>
|
||||
<el-image src="***"
|
||||
style="width: 100px;height: 100px;box-shadow: 0 0 5px rgb(200,200,200)"
|
||||
v-else>
|
||||
<div class="image-slot" slot="error"
|
||||
style="width: 100%;height: 100%; display:flex;align-items: center;text-align: center">
|
||||
<span style="font-size: 12px;color: rgb(180,180,180);width: 100%;text-align: center;overflow: hidden;padding: 0 10px;
|
||||
text-overflow: ellipsis;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical">{{item.filename}}</span>
|
||||
</div>
|
||||
</el-image>
|
||||
</div>
|
||||
</div>
|
||||
</template>-->
|
||||
|
||||
<vi-title style="margin-top: 10px" title="个人材料"></vi-title>
|
||||
<el-descriptions :column="2" border>
|
||||
<el-descriptions-item label="附件">
|
||||
<file-upload :files="viewData.bmFiles"
|
||||
:view="true"
|
||||
v-if="viewData.bmFiles && viewData.bmFiles.length > 0"></file-upload>
|
||||
<span v-else>暂无个人材料</span>
|
||||
</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
</el-form>
|
||||
|
||||
</el-dialog>
|
||||
|
||||
<el-dialog :close-on-click-modal="false" :visible.sync="importVisible"
|
||||
title="上传材料" width="50%">
|
||||
|
||||
<file-upload :files.sync="uploadForm.files" :max_size="5*1024*1024"
|
||||
card>
|
||||
|
||||
</file-upload>
|
||||
|
||||
<span class="dialog-footer" slot="footer">
|
||||
<el-button :disabled="importLoading" @click="importVisible = false">取 消</el-button>
|
||||
<el-button :loading="importLoading" @click="importVisible = false"
|
||||
type="primary">确定</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
|
||||
<el-dialog :close-on-click-modal="false" :visible.sync="viewDialog"
|
||||
custom-class="ViewDialogClass"
|
||||
top="3%" width="60%">
|
||||
<vi-title style="margin-top: 10px" title="个人材料"></vi-title>
|
||||
<el-descriptions :column="2" border>
|
||||
<el-descriptions-item label="附件">
|
||||
<file-upload :files="viewDataFgh"
|
||||
:view="true"
|
||||
v-if="viewDataFgh && viewDataFgh.length > 0"></file-upload>
|
||||
<span v-else>暂无个人材料</span>
|
||||
</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
</el-dialog>
|
||||
</div>
|
||||
<!--#layout("/platform/zgfw/lxy/dialogView.html"){}#-->
|
||||
<script>
|
||||
const vue = new Vue({
|
||||
el: '#app',
|
||||
mixins: [initTableMixins],
|
||||
data() {
|
||||
return {
|
||||
unionList: [],
|
||||
unionname: '',
|
||||
viewDialogSh: false,
|
||||
bmTableData: [],
|
||||
lxyHd: [],
|
||||
tabKey: new Date().getTime(),
|
||||
stepActive: 0,
|
||||
unions: [],
|
||||
v: "index",
|
||||
userOptions: [],
|
||||
loading: false,
|
||||
tabLoading: false,
|
||||
userLoading: false,
|
||||
bmDialog: false,
|
||||
viewDialog: false,
|
||||
formData: {},
|
||||
tableData: [],
|
||||
pageForm: {
|
||||
year: new Date().getFullYear() + "",
|
||||
searchName: "",
|
||||
searchKeyword: "",
|
||||
pageNumber: 1,
|
||||
pageSize: 10,
|
||||
totalCount: 0,
|
||||
pageOrderName: "",
|
||||
pageOrderBy: "",
|
||||
hdid: ""
|
||||
},
|
||||
userPageForm: {
|
||||
check: [],
|
||||
pageNumber: 1,
|
||||
pageSize: 10,
|
||||
totalCount: 0,
|
||||
pageOrderName: "",
|
||||
pageOrderBy: ""
|
||||
},
|
||||
searchForm: {
|
||||
userId: "",
|
||||
ghId: ""
|
||||
},
|
||||
userData: [],
|
||||
userTableLoading: false,
|
||||
numData: {},
|
||||
viewData: [],
|
||||
notApplyUser: [], //未申请的用户
|
||||
CheckNotApplyUser: [], //选择的用户
|
||||
hasApplyUserTableData: [],
|
||||
checkTableRowData: {},
|
||||
rightCheckedData: [],
|
||||
//上传材料
|
||||
importVisible: false,
|
||||
importLoading: false,
|
||||
uploadForm: {},
|
||||
fileList: [],
|
||||
viewDataFgh: [],
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
openBm2(row) {
|
||||
this.checkTableRowData = row
|
||||
this.tabKey = new Date().getTime()
|
||||
this.userPageForm = {
|
||||
check: [],
|
||||
hdid: row.hdid,
|
||||
unionid: row.ghid
|
||||
}
|
||||
//查询该工会已申请的人员
|
||||
$.post(base + "/platform/zgfw/lxy/ghbm/getHasApply", this.userPageForm, (data) => {
|
||||
this.hasApplyUserTableData = data.data
|
||||
this.$refs.guava.edit()
|
||||
})
|
||||
this.getNotApplyUser()
|
||||
},
|
||||
//添加预选人员
|
||||
addHasApplyUserTableData() {
|
||||
|
||||
//const readyApplyUsers = this.notApplyUser.filter(v => this.CheckNotApplyUser.includes(v.id))
|
||||
const readyApplyUsers = this.notApplyUser.filter(v => this.rightCheckedData.includes(v.id))
|
||||
const num = this.checkTableRowData.number - this.hasApplyUserTableData.filter(v => v.bmzt !== '4').length
|
||||
const num2 = readyApplyUsers.length + this.hasApplyUserTableData.filter(v => v.bmzt !== '4').length
|
||||
if (num === 0 || (num2 > this.checkTableRowData.number)) {
|
||||
this.$message({
|
||||
message: '工会分配名额只需报' + this.checkTableRowData.number + "人",
|
||||
type: 'warning'
|
||||
});
|
||||
return
|
||||
}
|
||||
this.notApplyUser = this.notApplyUser.filter(v => !this.rightCheckedData.includes(v.id))
|
||||
readyApplyUsers.map(v => this.hasApplyUserTableData.unshift(v))
|
||||
//this.CheckNotApplyUser = []
|
||||
},
|
||||
|
||||
filterNotApplyUser(keys, data) {
|
||||
return data.loginname.indexOf(keys) > -1 || data.username.indexOf(keys) > -1
|
||||
},
|
||||
|
||||
//查询该工会未申请的人员
|
||||
getNotApplyUser() {
|
||||
$.post(base + "/platform/zgfw/lxy/ghbm/getNotApply", this.userPageForm, (data) => {
|
||||
data.data.forEach(v => {
|
||||
v.label = v.username + '(' + v.sex + '-' + v.loginname + '-' + v.unitname + ')'
|
||||
})
|
||||
this.notApplyUser = data.data
|
||||
this.$refs.guava.edit()
|
||||
})
|
||||
},
|
||||
//获奖、五年未申请
|
||||
checkChange(val) {
|
||||
this.userPageForm.pageNumber = 1
|
||||
this.getNotApplyUser()
|
||||
},
|
||||
|
||||
transferChange(keyData) {
|
||||
this.rightCheckedData = this.CheckNotApplyUser
|
||||
},
|
||||
|
||||
rightCheckChange(checkedData, statusChangeData) {
|
||||
this.rightCheckedData = checkedData
|
||||
},
|
||||
|
||||
//提交
|
||||
async doSubmit(flag) {
|
||||
let array = clone(this.hasApplyUserTableData).filter(a => !a.bmzt || a.bmzt === 4)
|
||||
array.forEach(item => {
|
||||
item.userid = item.id
|
||||
item.hdid = this.userPageForm.hdid
|
||||
item.ghid = this.userPageForm.unionid
|
||||
})
|
||||
const params = {
|
||||
data: JSON.stringify(array),
|
||||
flag: flag,
|
||||
}
|
||||
if (array.length > (this.checkTableRowData.number - this.checkTableRowData.passnum)) {
|
||||
//名额分配数 - 通过数 - 审核中数
|
||||
const msg = '您当前选中了' + array.length + '个人,最多只能提交' + (this.checkTableRowData.number - this.checkTableRowData.passnum - this.checkTableRowData.reviewnum) + '个人'
|
||||
this.$message.warning(msg)
|
||||
return
|
||||
}
|
||||
if (flag) {
|
||||
for (let i = 0; i < array.length; i++) {
|
||||
// if (array[i].files === undefined) {
|
||||
// this.$message.warning("请选择上传材料!")
|
||||
// return
|
||||
// }
|
||||
if (!array[i].idcard) {
|
||||
this.$message.warning("请填写身份证号!")
|
||||
return
|
||||
}
|
||||
if (!array[i].mobile) {
|
||||
this.$message.warning("请填写手机号!")
|
||||
return
|
||||
}
|
||||
if (!array[i].scdd) {
|
||||
this.$message.warning("请选择上车地点!")
|
||||
return
|
||||
}
|
||||
}
|
||||
const confirm = await this.$confirm('是否提交,提交后表示分工会审核通过!', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
})
|
||||
if (confirm === "confirm") {
|
||||
const loading = this.$loading({
|
||||
lock: true,
|
||||
text: '数据提交中...',
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
})
|
||||
|
||||
$.post('/platform/zgfw/lxy/ghbm/bm', params).then(res => {
|
||||
loading.close()
|
||||
if (res.code === 0) {
|
||||
this.doSearch()
|
||||
this.$refs.guava.index()
|
||||
this.$message.success('提交成功')
|
||||
|
||||
}
|
||||
})
|
||||
}
|
||||
} else {
|
||||
const loading = this.$loading({
|
||||
lock: true,
|
||||
text: '数据提交中...',
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
})
|
||||
$.post('/platform/zgfw/lxy/ghbm/bm', params).then(res => {
|
||||
loading.close()
|
||||
if (res.code === 0) {
|
||||
this.doSearch()
|
||||
this.$refs.guava.index()
|
||||
this.$message.success('提交成功')
|
||||
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
async getLxyBmInfo(id) {
|
||||
const {data} = await $.get(base + "/platform/zgfw/lxy/fghsh/getBmInfo", {id})
|
||||
return data
|
||||
},
|
||||
async openViewXx(row) {
|
||||
this.viewData = await this.getLxyBmInfo(row.id)
|
||||
this.pageForm.hdid = row.hdid
|
||||
this.pageForm.uid = row.uid
|
||||
this.viewData.unitname = row.unitname
|
||||
|
||||
this.viewDialogSh = true
|
||||
},
|
||||
openView(row) {
|
||||
this.unionname = row.unionname
|
||||
this.pageForm.hdid = row.hdid
|
||||
this.pageForm.ghid = row.ghid
|
||||
this.$refs.guava.view()
|
||||
$.post(base + "/platform/zgfw/lxy/ghbm/findBm", {
|
||||
ghId: row.ghid,
|
||||
hdId: row.hdid
|
||||
}, (data) => {
|
||||
sublime.closeLoadingbar();
|
||||
this.tabLoading = false
|
||||
if (data.code == 0) {
|
||||
this.bmTableData = data.data;
|
||||
} else {
|
||||
this.$message({
|
||||
message: data.msg,
|
||||
type: 'error'
|
||||
});
|
||||
}
|
||||
}, "json");
|
||||
},
|
||||
|
||||
pageData() {
|
||||
sublime.showLoadingbar();
|
||||
this.tabLoading = true
|
||||
$.post(base + "/platform/zgfw/lxy/ghbm/pageData", this.pageForm, (data) => {
|
||||
sublime.closeLoadingbar();
|
||||
this.tabLoading = false
|
||||
if (data.code == 0) {
|
||||
this.tableData = data.data.list;
|
||||
this.pageForm.totalCount = data.data.totalCount;
|
||||
} else {
|
||||
this.$message({
|
||||
message: data.msg,
|
||||
type: 'error'
|
||||
});
|
||||
}
|
||||
}, "json");
|
||||
},
|
||||
uploadMaterial(row) {
|
||||
if (row.files && !Array.isArray(row.files)) {
|
||||
row.files = JSON.parse(row.files)
|
||||
} else if (row.files && Array.isArray(row.files)) {
|
||||
row.files = row.files
|
||||
} else if (!row.files) {
|
||||
row.files = []
|
||||
}
|
||||
this.uploadForm = row
|
||||
this.importVisible = true;
|
||||
},
|
||||
async viewInfo(row) {
|
||||
let files = []
|
||||
if (Array.isArray(row.files)) {
|
||||
files = row.files
|
||||
} else {
|
||||
files = JSON.parse(row.files)
|
||||
}
|
||||
this.viewDataFgh = files
|
||||
this.viewDialog = true
|
||||
},
|
||||
},
|
||||
async created() {
|
||||
this.unions = await getUnions()
|
||||
this.lxyHd = await getNowLxyHd()
|
||||
this.pageForm.hdid = this.lxyHd[0].id
|
||||
this.pageData();
|
||||
this.unionList = await getUnions()
|
||||
},
|
||||
})
|
||||
</script>
|
||||
<!--#
|
||||
}
|
||||
#-->
|
||||
Reference in New Issue
Block a user