first commit

This commit is contained in:
2026-09-09 09:14:28 +08:00
commit 5343198112
5199 changed files with 1052895 additions and 0 deletions
@@ -0,0 +1,279 @@
<!--#
layout("/layouts/platform.html"){
#-->
<style>
.v-body {
display: flex;
width: 100%;
height: 100%;
justify-content: center;
align-items: center;
background-color: #f0f2f5;
}
.v-card {
/*width: calc(100% - 50px);*/
/*height: calc(100% - 50px);*/
width: 100%;
height: 100%;
position: relative;
}
.transition-row {
width: 100%;
height: 100%;
}
.transition-item {
width: 100%;
height: 100%;
}
.demo-table-expand {
font-size: 0;
}
.demo-table-expand label {
color: #99a9bf;
}
</style>
<div id="app" v-cloak>
<guava ref="guava" style="width: 100%;height: 100%">
<template>
<div class="v-body">
<el-card class="v-card" shadow="never">
<el-tabs v-model="activeName" @tab-click="id = '${@shiro.getPrincipalProperty('id')}'">
<el-tab-pane label="申请入会" name="first">
<div style="display: flex;width: 100%;height: 100%;align-items: center;justify-content: center;position: relative;padding: 10px">
<el-card style="width: 1000px">
<!-- <div slot="header" class="clearfix">
<h4>申请信息</h4>
</div>-->
<div>
<el-form :model="formData" ref="form" :rules="formRules" label-suffix=""
label-width="100px">
<el-row>
<el-col span="12">
<el-form-item label="姓&emsp;&emsp;名">
<el-input disabled v-model="formData.username"
placeholder="请输入内容"></el-input>
</el-form-item>
</el-col>
<el-col span="12">
<el-form-item label="工&emsp;&emsp;号">
<el-input disabled v-model="formData.loginname"
placeholder="请输入内容"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col span="12">
<el-form-item label="性别">
<el-radio-group v-model="formData.sex">
<el-radio-button label="男"></el-radio-button>
<el-radio-button label="女"></el-radio-button>
</el-radio-group>
</el-form-item>
</el-col>
<el-col span="12">
<el-form-item label="所在单位">
<el-input disabled v-model="formData.unitname"
placeholder="请输入内容"></el-input>
</el-form-item>
</el-col>
<!-- <el-col span="12">
<el-form-item label="基层工会">
<el-input disabled v-model="formData.unionname"
placeholder="请输入内容"></el-input>
</el-form-item>
</el-col>-->
</el-row>
<el-row>
<el-col span="12">
<el-form-item label="申请时间" prop="applyTime">
<el-date-picker disabled
style="width: 100%"
v-model="formData.applyTime"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col span="12">
<el-form-item label="联系方式" prop="mobile">
<el-input v-model="formData.mobile"
placeholder="请输入内容"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col span="12">
<el-form-item label="身份证号" prop="idcard">
<el-input v-model="formData.idcard" maxlength="18"
placeholder="请输入内容"></el-input>
</el-form-item>
</el-col>
<el-col span="12">
<el-form-item label="入校时间" prop="schoolTime">
<el-date-picker
style="width: 100%"
v-model="formData.schoolTime"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-form-item prop="sign" label="签&emsp;&emsp;字">
<sign :qz.sync="formData.sign"></sign>
</el-form-item>
</el-form>
<el-radio
style="width: 70%;margin-left: 15%;color: #F56C6C"
v-model="reading" :label="true" v-if="applyInfo.label!='申请退出'">
我自愿加入湖南工商大学教职工医疗互助基金会, 同意并遵守《湖南工商大学教职工医疗互助基金管理办法》的相关规定
</el-radio>
<el-button :disabled="applyInfo.disabled"
type="primary"
@click="apply"
style="width: 70%;margin-left: 15%">
<span>{{applyInfo.label}}</span>
</el-button>
</div>
</el-card>
</div>
</el-tab-pane>
<el-tab-pane label="变更记录" name="second">
<app_record :userid="id" ref="app_record"></app_record>
</el-tab-pane>
</el-tabs>
</el-card>
</div>
</template>
</guava>
</div>
<script>
const vue = new Vue({
el: '#app',
mixins: [initTableMixins],
data() {
return {
reading: false,
id: "",
formData: {
applyTime: moment().format('YYYY-MM-DD'),
id: "${@shiro.getPrincipalProperty('id')}",
username: "${@shiro.getPrincipalProperty('username')}",
loginname: "${@shiro.getPrincipalProperty('loginname')}",
mobile: "${@shiro.getPrincipalProperty('mobile')}",
sex: "${@shiro.getPrincipalProperty('sex')}",
idcard: "${@shiro.getPrincipalProperty('idcard')}",
schoolTime: "${@shiro.getPrincipalProperty('schoolTime')}",
unitname: "${@shiro.getPrincipalProperty('unit')!=null?@shiro.getPrincipalProperty('unit').getName():''}",
unionname: "${@shiro.getPrincipalProperty('union')!=null?@shiro.getPrincipalProperty('union').getUnionname():''}",
},
activeName: 'first',
applyInfo: {
disabled: true,
label: '申请加入'
},
formRules: {
mobile: [{required: true, message: '必填', trigger: ['blur', 'change']}],
idcard: [{required: true, message: '必填', trigger: ['blur', 'change']}],
},
}
},
components: {
'guava': httpVueLoader('/components/plugins/Guava.vue?v=1.0.0'),
'sign': httpVueLoader('/components/sign/sign.vue?v=2.0.0'),
'app_record': httpVueLoader('/components/diseaseaid/aidfund/AppRecord.vue'),
},
methods: {
apply() {
this.$refs.form.validate(async (valid) => {
if (this.formData.loginname == 2005 || this.formData.loginname == 2727){
this.$notify.warning({title: '提示', message: '暂未开放申请,如有疑问请联系校工会'});
return
}
if (valid) {
if (!this.reading && this.applyInfo.label != "申请退出") {
this.$notify.warning({title: '提示', message: '请勾选阅读须知'});
return
}
const isMember = "${@shiro.getPrincipalProperty('aidFundMember')}" === '1'
this.$confirm(this.applyInfo.label == '申请退出' ? '是否确认退出医疗互助基金会?' : '是否提交申请?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
iconClass: "el-icon-question"
}).then(async () => {
const response = await $.post(loc() + '/apply', this.formData)
AssertResponseMessage({
app: this,
response,
success: () => {
this.$set(this.applyInfo, "disabled", true)
this.canApply()
}
})
})
}
})
},
async canApply() {
const response = await $.get(loc() + '/canApply')
AssertResponse({
response,
success: ({data}) => {
this.applyInfo = data
}
})
},
},
async created() {
this.canApply()
}
})
</script>
<!--#
}
#-->
@@ -0,0 +1,210 @@
<!--#
layout("/layouts/platform.html"){
#-->
<div id="app" class="platform" v-cloak>
<guava ref="guava" padding="0">
<template>
<!-- <el-card shadow="never">
<div class="search">
<div class="search-item">
<div class="search-item-label">所属工会:</div>
<div class="search-item-option">
<el-select placeholder="所属工会" v-model="pageForm.unionId" style="width: 100%;"
clearable="true"
@change="flushUnits" @clear="flushUnits"
v-if="${@shiro.hasRole('sysadmin')||@shiro.hasRole('A06')||@shiro.hasRole('H03')}"
filterable="true">
<el-option v-for="item in unions" :label="item.unionname"
:value="item.id"></el-option>
</el-select>
</div>
</div>
<div class="search-item">
<div class="search-item-label">所属单位:</div>
<div class="search-item-option">
<el-select placeholder="所属单位" v-model="pageForm.unitId" style="width: 100%;"
clearable="true"
filterable="true">
<el-option v-for="item in units" :label="item.name" :value="item.id"></el-option>
</el-select>
</div>
</div>
<div class="search-item">
<div class="search-item-label">姓名/工号:</div>
<div class="search-item-option">
<el-input placeholder="请输入内容" v-model="pageForm.searchKeyword" clearable="true">
<el-select v-model="pageForm.searchName" slot="prepend" placeholder="查询"
style="width: 100px;">
<el-option label="工号" value="us.loginname"></el-option>
<el-option label="姓名" value="us.username"></el-option>
</el-select>
</el-input>
</div>
</div>
<div class="search-query">
<el-button type="primary" icon="el-icon-search" @click="doSearch">搜索</el-button>
</div>
</div>
</el-card>-->
<search v-model="pageForm" @search="doSearch">
<template #before>
<div class="search-item">
<div class="search-item-label">年度:</div>
<div class="search-item-option">
<el-date-picker
v-model="pageForm.aidFundMemberJoinTime"
type="year"
value-format="yyyy" style="width: 100%"
placeholder="选择年">
</el-date-picker>
</div>
</div>
</template>
</search>
<el-card shadow="never" class="mt10">
<table-tool label="人员列表" :app="this">
<template #func>
<el-button icon="el-icon-s-promotion" class="m10" type="primary" size="small"
:loading="submitLoading" plain
@click="BatchSettings">批量设置
</el-button>
</template>
</table-tool>
<el-table :data="tableData" style="width: 100%" row-key="id" @sort-change="pageOrder"
ref="multipleTable"
v-loading="tableLoading" :size="tableSize" class="vi-table"
@selection-change="handleSelectionChange">
<el-table-column :reserve-selection="true"
type="selection"
:selectable='checkboxT'
width="55" disabled>
</el-table-column>
<el-table-column align="center" header-align="center" type="index" :index="indexMethod"
label="序号"
width="80px"></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"
>
</el-table-column>
</el-table>
<!--#include("/layouts/pagination.html"){}#-->
</el-card>
</template>
</guava>
</div>
<script>
const vue = new Vue({
el: '#app',
mixins: [initTableMixins],
data() {
return {
selection: [],
unions: [],
units: [],
pageForm: {
searchName: "username",
aidFundMemberJoinTime: new Date().getFullYear() + "",
isRetirement: 1,
},
tableColumns: [
{prop: 'loginname', label: '工号'},
{prop: 'username', label: '姓名'},
{prop: 'sex', label: '性别'},
{prop: 'mobile', label: '电话'},
{prop: 'unionname', label: '工会', sortable: true},
{prop: 'unitname', label: '单位', sortable: true},
{prop: 'userState', label: '在职状态', sortable: true},
],
}
},
components: {
'guava': httpVueLoader('/components/plugins/Guava.vue'),
'search': httpVueLoader('/components/diseaseaid/aidfund/Search.vue?v=1.0.0'),
},
methods: {
checkboxT(row) {
if (row.stateId) {
/* console.log(row)
if (row.stateId == 3013 || row.stateId == 3015 || row.stateId == 3025 || (row.aidFundMemberQuitTime && row.stateId == 3030)) {
return true;
}*/
return false;
} else {
return true;
}
},
BatchSettings() {
if (!this.selection.length) {
this.$notify({
title: '警告',
message: '请先勾选需要设置的用户!',
type: 'warning'
});
return
}
this.$confirm('是否将已勾选的人员设置为基金会员?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(async () => {
this.submitLoading = true
const resp = await $.post(loc() + "/BatchSettings", {userId: JSON.stringify(this.selection.map(v => v.id))})
requestLaterMsgFun(this, resp, () => {
this.pageData()
this.$refs.multipleTable.clearSelection();
}, null, () => {
this.submitLoading = false
})
})
},
handleSelectionChange(val) {
this.selection = val
},
async flushUnits() {
this.$set(this.pageForm, "unitId", "")
if ("${@shiro.hasRole('sysadmin')||@shiro.hasRole('A06')||@shiro.hasRole('H03')}" === 'true') {
this.units = await getUnits(this.pageForm.unionId)
} else {
this.units = await getUnits("${@shiro.getPrincipalProperty('unit').getUnionid()}")
}
},
},
async created() {
this.pageData();
this.unions = await getUnions()
this.flushUnits()
}
})
</script>
<!--#
}
#-->
@@ -0,0 +1,389 @@
<!--#
layout("/layouts/platform.html"){
#-->
<style>
</style>
<div id="app" class="platform" v-cloak>
<guava ref="guava" padding="0 5%">
<template>
<search v-model="pageForm" @search="doSearch">
</search>
<el-card shadow="never" class="mt10">
<table-tool label="基金会员" :app="this">
<template #func>
<!--#if(@shiro.hasPermission('aid.fund.manage.backup')){#-->
<el-dropdown @command="dropdownCommand">
<el-button type="primary" size="small" plain>
备份会员名单<i class="el-icon-arrow-down el-icon--right"></i>
</el-button>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item v-for="year in yearOptions" v-key="year"
:command="{action:backupMember,value:year}">
{{year}}年
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<!--#}#-->
<!--#if(@shiro.hasPermission('aid.fund.manage.importUserStateChangeRecords')){#-->
<el-button type="primary" plain icon="el-icon-upload2" size="small" @click="openImport"
class="ml5">
导入会员退休去世记录
</el-button>
<!--#}#-->
<!--#if(@shiro.hasPermission('aid.fund.manage.exportNewMember')){#-->
<el-button type="primary" plain icon="el-icon-download" size="small" @click="exportNewMember">
导出{{new
Date().getFullYear()}}年新会员名单
</el-button>
<!--#}#-->
<!--#if(@shiro.hasPermission('aid.fund.manage.createPayList')){#-->
<el-button :loading="createPayListLoading" type="primary" plain icon="el-icon-tickets"
size="small" @click="createPayList">
生成{{new
Date().getFullYear()+1}}年缴费名单
</el-button>
<!--#}#-->
</template>
</table-tool>
<el-table :data="tableData" style="width: 100%" row-key="id" @sort-change="pageOrder" :size="tableSize"
v-loading="tableLoading" ref="table" class="vi-table">
<el-table-column align="center" header-align="center" type="index" :index="indexMethod" label="序号"
width="80px"></el-table-column>
<el-table-column
align="center"
header-align="center"
v-for="column in tableColumns"
show-overflow-tooltip
:sortable="column.sortable"
:label="column.label"
:prop="column.prop" :width="column.width" min-width="100px">
<template v-if="column.prop==='aidFundMemberJoinTime'" scope="{row:{aidFundMemberJoinTime}}">
{{aidFundMemberJoinTime|date}}
</template>
</el-table-column>
<el-table-column prop="userOnline" align="center" header-align="center" label="操作" fixed="right">
<template scope="{row}">
<el-dropdown @command="dropdownCommand">
<el-button plain size="mini">
<i class="ti-settings"></i>
<span class="ti-angle-down"></span>
</el-button>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item :command="{action:view,value:row}">
查看
</el-dropdown-item>
<!--#if(@shiro.hasPermission('aid.fund.manage.change')){#-->
<el-dropdown-item :command="{action:memberChange,value:row}">
变更
</el-dropdown-item>
<!--#}#-->
</el-dropdown-menu>
</el-dropdown>
</template>
</el-table-column>
</el-table>
<!--#include("/layouts/pagination.html"){}#-->
</el-card>
</template>
<template #edit_func>
<!-- <el-button type="primary" @click="">提交</el-button>-->
</template>
<template #edit>
</template>
<template #view>
<el-tabs v-model="activeName" class="aidPay_view">
<el-tab-pane label="用户信息" :name="1">
<info ref="info" :userid="info.id"></info>
</el-tab-pane>
<el-tab-pane label="变更记录" :name="2">
<app_record :userid="info.id" ref="app_record"></app_record>
</el-tab-pane>
<el-tab-pane label="缴费记录" :name="3">
<pay_record :userid="info.id" ref="pay_record"></pay_record>
</el-tab-pane>
</el-tabs>
</template>
</guava>
<el-dialog
title="会员变更"
:visible.sync="changeVisible"
width="40%">
<vi-title title="变更信息"></vi-title>
<el-form :model="formData" ref="form" :rules="formRules"
label-width="100px">
<el-form-item label="变更类型" prop="changeType">
<el-select v-model="formData.changeType" placeholder="请选择" style="width: 100%"
@change="changeTypeChange">
<el-option
v-for="item in changeTypeOptions"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
<div v-if="formData.changeType==2">
<el-form-item label="变更单位" prop="changeUnit">
<el-select v-model="formData.changeUnit" @change="unitChange" placeholder="请选择" filterable
style="width: 100%">
<el-option
v-for="item in units"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="所属工会" prop="unionname">
<el-input
placeholder=""
v-model="formData.unionname"
disabled>
</el-input>
</el-form-item>
</div>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="changeVisible = false" :disabled="changeSubmitLoading">取 消</el-button>
<el-button type="primary" @click="memberChangeHandle" :loading="changeSubmitLoading">提 交</el-button>
</span>
</el-dialog>
<el-dialog
title="退休去世记录导入"
:visible.sync="importVisible"
:close-on-click-modal="false"
width="50%"
>
<el-timeline>
<el-timeline-item timestamp="下载模板" placement="top">
<el-card>
<el-button size="medium" type="" style="width: 200px"
@click="location.href='/platform/basics/downloadTemplate?filePath=diseaseaid/aidfund/UserStateChangeTemplate.xls&fileName=会员退休去世记录.xls'"
icon="el-icon-download">下载模板
</el-button>
</el-card>
</el-timeline-item>
<el-timeline-item timestamp="上传文件" placement="top">
<el-card>
<el-upload
name="file"
ref="upload"
:on-remove="(file, fileList) => {
importData.fileList = fileHandleRemove(file, fileList)
}"
:on-change="(file, fileList) => {
importData.fileList = fileHandleChange(file, fileList,{type:['xls','xlsx']})
}"
:auto-upload="false"
:limit="1"
:file-list="importData.fileList">
<el-button size="medium" type="" icon="el-icon-upload" style="width: 200px">选择文件
</el-button>
</el-upload>
</el-card>
</el-timeline-item>
</el-timeline>
<span slot="footer" class="dialog-footer">
<el-button @click="importVisible = false" :disabled="importLoading">取 消</el-button>
<el-button type="primary" @click="doImport" :loading="importLoading">确定</el-button>
</span>
</el-dialog>
</div>
<script>
<!--#include("/platform/diseaseaid/common/AidFund.js"){}#-->
const getYearOptions = () => {
let year = new Date().getFullYear();
let arr = []
for (let i = year; i >= year - 3; i--) {
arr.push(i)
}
return arr
}
const vue = new Vue({
el: '#app',
mixins: [initTableMixins],
data: function () {
return {
yearOptions: getYearOptions(),
createPayListLoading: false,
changeSubmitLoading: false,
units: [],
info: {},
activeName: 1,
importData: {},
importLoading: false,
importVisible: false,
changeVisible: false,
pageForm: {
searchName: 'username',
aidFundMemberJoinTime: new Date().getFullYear() + "",
},
tableColumns: commonColumns,
changeTypeOptions: [
{label: '单位变更', value: 2},
{label: '自愿退出', value: 1},
{label: '退休', value: 3},
{label: '去世', value: 4},
],
formRules: {
changeType: [{required: true, message: '请选择变更类型', trigger: ['blur', 'change']}],
changeUnit: [{required: true, message: '请选择变更单位', trigger: ['blur', 'change']}],
}
}
},
components: {
'guava': httpVueLoader('/components/plugins/Guava.vue?v=1.0.0'),
'dict-select': httpVueLoader('/components/plugins/DictSelect.vue?v=1.0.0'),
'user-select': httpVueLoader('/components/plugins/UserTableSelect.vue?v=1.0.0'),
'search': httpVueLoader('/components/diseaseaid/aidfund/Search.vue?v=1.0.0'),
'info': httpVueLoader('/components/diseaseaid/aidfund/info.vue'),
'app_record': httpVueLoader('/components/diseaseaid/aidfund/AppRecord.vue'),
'pay_record': httpVueLoader('/components/diseaseaid/aidfund/PayRecord.vue'),
},
methods: {
backupMember(year) {
this.$confirm('您确定要备份' + year + '年的数据吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(async () => {
this.doBackupLoading = true
const resp = await $.post("/platform/aidfund/historyledger/backupMember", {year})
requestLaterMsgFun(this, resp, () => {
this.pageData()
}, null, () => {
this.doBackupLoading = false
})
})
},
changeTypeChange(val) {
const userState = this.changeTypeOptions.find(v => v.value === val)
if (userState) this.formData.userState = userState.label
},
createPayList() {
this.$confirm('请确认是否生成缴费名单?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(async () => {
this.createPayListLoading = true
const response = await $.post(loc() + "/createPayList")
AssertResponseMessage({
app: this,
response,
final: () => {
this.createPayListLoading = false
}
})
});
},
async memberChangeHandle() {
const v = await this.$refs["form"].validate()
if (!v) return
this.changeSubmitLoading = true
const response = await $.post(loc() + '/memberChange', this.formData)
AssertResponseMessage({
app: this,
response,
success: () => {
this.changeVisible = false
this.pageData()
},
final: () => {
this.changeSubmitLoading = false
}
})
},
unitChange(id) {
const unit = this.units.find(v => v.id === id)
if (unit) this.$set(this.formData, "unionname", unit.unionname)
},
memberChange({id}) {
this.formData = {id}
this.changeVisible = true
if (this.$refs['form']) {
this.$refs['form'].resetFields()
}
},
exportNewMember() {
location.href = loc() + '/exportNewMember'
},
view(row) {
this.activeName = 1
this.info = row
this.$refs.guava.view()
},
openImport() {
this.importData = {
fileList: []
}
this.importVisible = true;
},
doImport() {
if (!this.importData.fileList.length) {
this.notifyWarning("请选择文件!")
return
}
const data = new FormData();
this.importData.fileList.forEach((val) => {
data.append("file", val.raw, val.raw.name);
});
this.importLoading = true
$.ajax({
url: loc() + "/importUserStateChangeRecords?year=" + this.importData.year,
type: "post",
data: data,
processData: false,
contentType: false,
success: (data) => {
if (!data.code) {
this.notifySuccess("导入成功!");
this.pageData();
this.importVisible = false
} else {
this.notifyWarning("导入失败")
}
this.importLoading = false
},
error: (data) => {
this.notifyWarning("导入失败")
this.importLoading = false
}
});
},
},
async created() {
this.pageData();
this.units = await getUnits()
}
})
</script>
<!--#
}
#-->
@@ -0,0 +1,174 @@
<!--#
layout("/layouts/platform.html"){
#-->
<div id="app" class="platform" v-cloak>
<guava ref="guava" padding="0">
<template>
<search v-model="pageForm" @search="doSearch">
<template #before>
<div class="search-item">
<div class="search-item-label">年度:</div>
<div class="search-item-option">
<el-date-picker
v-model="pageForm.applyTime"
type="year"
value-format="yyyy" style="width: 100%"
placeholder="选择年">
</el-date-picker>
</div>
</div>
</template>
</search>
<el-card shadow="never" class="mt10">
<table-tool label="变更列表" :app="this">
</table-tool>
<el-table :data="tableData" style="width: 100%" row-key="id" @sort-change="pageOrder" :size="tableSize"
v-loading="tableLoading" ref="table" class="vi-table" @expand-change="onExpand">
<el-table-column type="expand" width="40px">
<template slot-scope="{row}">
<el-form class="demo-table-expand" v-loading="row.loading"
label-position="right" label-suffix="" label-width="120px">
<vi-title title="基层工会审核信息"></vi-title>
<el-row :gutter="20" v-if="row.info&&row.info.unionAudit">
<el-col :span="12">
<el-form-item label="审核人员">
<span>{{ row.info.unionAudit.username }}</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="审核时间">
<span>{{ row.info.unionAudit.auditTime|date }}</span>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="审核意见">
<span>{{ row.info.unionAudit.auditOpinion }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row v-else type="flex" justify="center">
<el-form-item label="暂无审核信息">
</el-form-item>
</el-row>
<vi-title title="校工会审核信息"></vi-title>
<el-row :gutter="20" v-if="row.info&&row.info.fundAudit">
<el-col :span="12">
<el-form-item label="审核人员">
<span>{{ row.info.fundAudit.username }}</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="审核时间">
<span>{{ row.info.fundAudit.auditTime|date }}</span>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="审核意见">
<span>{{ row.info.fundAudit.auditOpinion }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row v-else type="flex" justify="center">
<el-form-item label="暂无审核信息">
</el-form-item>
</el-row>
</el-form>
</template>
</el-table-column>
<el-table-column align="center" header-align="center" type="index" :index="indexMethod" label="序号"
width="80px"></el-table-column>
<el-table-column
align="center"
header-align="center"
v-for="column in tableColumns"
show-overflow-tooltip
:sortable="column.sortable"
:label="column.label"
:prop="column.prop" :width="column.width" min-width="100px">
<template v-if="column.prop==='isJoin'" scope="{row:{isJoin}}">
<el-tag type="success" v-if="isJoin">加入基金</el-tag>
<el-tag type="danger" v-if="!isJoin">退出基金</el-tag>
</template>
<template v-else-if="column.prop==='applyTime'" scope="{row:{applyTime}}">
<el-tag>{{applyTime|date}}</el-tag>
</template>
</el-table-column>
</el-table>
<!--#include("/layouts/pagination.html"){}#-->
</el-card>
</template>
</guava>
</div>
<script>
const vue = new Vue({
el: '#app',
mixins: [initTableMixins],
data() {
return {
pageForm: {
searchName: 'username',
applyTime: new Date().getFullYear() + "",
},
tableColumns: [
{prop: 'loginname', label: '工号'},
{prop: 'username', label: '姓名'},
{prop: 'sex', label: '性别', sortable: true, width: '100px'},
{prop: 'schoolTime', label: '入校日期', sortable: true, width: '100px'},
{prop: 'mobile', label: '电话', sortable: true, width: '100px'},
{prop: 'unitname', label: '所在单位', sortable: true},
{prop: 'unionname', label: '所属工会', sortable: true},
{prop: 'userState', label: '在职状态', sortable: true},
{prop: 'personType', label: '人员类型', sortable: true},
{prop: 'isJoin', label: '变更类型', sortable: true},
{prop: 'applyTime', label: '变更日期', sortable: true},
]
}
},
components: {
'guava': httpVueLoader('/components/plugins/Guava.vue'),
'search': httpVueLoader('/components/diseaseaid/aidfund/Search.vue?v=1.0.0'),
},
methods: {
async onExpand(row, expandedRows) {
if (!expandedRows.includes(row)) {
return
}
this.$set(row, "loading", true)
const resp = await $.get("/platform/aid/fund/common/findChangeApplyInfo", {id: row.id})
requestLaterFun(resp, (data) => {
this.$set(row, "info", data)
}, () => {
this.$set(row, "info", {})
}, () => {
this.$set(row, "loading", false)
})
},
},
async created() {
this.pageData();
}
})
</script>
<!--#
}
#-->
@@ -0,0 +1,473 @@
<!--#
layout("/layouts/platform.html"){
#-->
<style>
.aidFund_edit {
padding-top: 20px;
padding-left: 50px;
}
.aidFund_view {
padding-top: 20px;
padding-left: 50px;
}
</style>
<div id="app" class="platform" v-cloak>
<guava ref="guava" padding="0">
<template>
<search v-model="pageForm" @search="doSearch">
<template #before>
<div class="search-item">
<div class="search-item-label">年度:</div>
<div class="search-item-option">
<el-date-picker
v-model="pageForm.applyYear"
type="year"
value-format="yyyy" style="width: 100%"
placeholder="选择年">
</el-date-picker>
</div>
</div>
</template>
</search>
<el-card shadow="never" class="mt10">
<table-tool label="申请列表" :app="this">
<template #func>
<el-button type="primary" plain icon="el-icon-download" size="small" @click="exportMember">
导出审核名单
</el-button>
<el-radio-group class="ml5" v-model="pageForm.isAudit" @change="doSearch" size="small"
>
<el-radio-button :label="false">全部</el-radio-button>
<el-radio-button :label="true">待我审核</el-radio-button>
</el-radio-group>
<el-button class="ml5" icon="el-icon-s-promotion" type="primary" size="small" plain
@click="batchReview">批量审核
</el-button>
</template>
</table-tool>
<el-table :data="tableData" style="width: 100%" row-key="id" @sort-change="pageOrder"
v-loading="tableLoading" :size="tableSize" class="vi-table"
@selection-change="handleSelectionChange" ref="multipleTable">
<el-table-column :reserve-selection="true"
type="selection"
width="55" disabled>
</el-table-column>
<el-table-column align="center" header-align="center" type="index" :index="indexMethod" label="序号"
width="80px"></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 v-if="column.prop=='stateId'" scope="{row}">
<vi-table-state :state="row"></vi-table-state>
</template>
<template scope="{row}" v-else-if="column.prop=='isJoin'">
<el-tag v-if="row.isJoin" type="success">加入基金</el-tag>
<el-tag type="danger" v-else-if="!row.isJoin">退出基金</el-tag>
</template>
<template scope="{row}" v-else-if="column.prop=='source'">
<el-tag v-if="row.source==0">个人申请</el-tag>
<el-tag type="info" v-else-if="row.source==1">批量加入</el-tag>
</template>
<template scope="{row}" v-else-if="column.prop=='applyTime'">
{{row.applyTime|date}}
</template>
</el-table-column>
<el-table-column align="center" header-align="center" label="操作" fixed="right" width="150px">
<template scope="{row}">
<el-dropdown @command="dropdownCommand">
<el-button plain size="mini">
<i class="ti-settings"></i>
<span class="ti-angle-down"></span>
</el-button>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item :command="{type:'view',data:row}">
查看
</el-dropdown-item>
<el-dropdown-item :disabled="row.stateId > 3020"
:command="{type:'Review',data:row}">
审核
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</template>
</el-table-column>
</el-table>
<!--#include("/layouts/pagination.html"){}#-->
</el-card>
</template>
<template #edit>
<div class="aidFund_edit">
<el-tabs v-model="aidFundName">
<el-tab-pane label="个人信息" name="1">
<info ref="info" :userid="info.userId"></info>
</el-tab-pane>
<el-tab-pane label="变更记录" name="2">
<app_record :userid="info.userId" ref="app_record"></app_record>
</el-tab-pane>
<el-tab-pane label="分工会审核" name="3" v-if="viewData&&viewData.una">
<vi-title title="审核信息"></vi-title>
<el-form label-suffix="" label-position="left" style="padding: 20px 0">
<el-row gutter="20">
<el-col :span="12">
<el-form-item prop="username" label="姓&emsp;&emsp;名">
<span>{{ viewData.una.username }}</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="auditTime" label="审核时间">
<span>{{ viewData.una.auditTime|date }}</span>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item prop="auditOpinion" label="审核意见">
<span>{{ viewData.una.auditOpinion }}</span>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-tab-pane>
<el-tab-pane label="离退休干部处审核" name="3" v-if="viewData&&viewData.rea">
<vi-title title="审核信息"></vi-title>
<el-form label-suffix="" label-position="left" style="padding: 20px 0">
<el-row gutter="20">
<el-col :span="12">
<el-form-item prop="username" label="姓&emsp;&emsp;名">
<span>{{ viewData.rea.username }}</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="auditTime" label="审核时间">
<span>{{ viewData.rea.auditTime|date }}</span>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item prop="auditOpinion" label="审核意见">
<span>{{ viewData.rea.auditOpinion }}</span>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-tab-pane>
<el-tab-pane label="基金会审核" name="4">
<el-form :model="formData" ref="form" :rules="formRules" label-position="right"
style="padding: 20px 0"
label-width="120px">
<el-form-item label="审核信息&emsp;" label-width="135px" class="view-header">
</el-form-item>
<el-row gutter="20">
<el-col :span="12">
<el-form-item prop="username" label="审核人员">
<el-input v-model="formData.username"
disabled></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="time" label="审核时间">
<el-input v-model="formData.auditTime" disabled></el-input>
</el-form-item>
</el-col>
</el-row>
<el-form-item prop="opinion" label="审核意见">
<el-input type="textarea" v-model="formData.auditOpinion" rows="4" maxlength="500"
placeholder="请填写您的审核意见"></el-input>
</el-form-item>
</el-form>
<div style="float: right;margin: 20px 0">
<el-button @click="doReview(false)" :disabled="subDis" :loading="subLoading1">
</el-button>
<el-button type="primary" @click="doReview(true)" :disabled="subDis" :loading="subLoading2">
</el-button>
</div>
</el-tab-pane>
</el-tabs>
</div>
</template>
<template #view>
<div class="aidFund_view">
<el-tabs v-model="aidFundName">
<el-tab-pane label="个人信息" name="1">
<info ref="info" :userid="info.userId"></info>
</el-tab-pane>
<el-tab-pane label="变更记录" name="2">
<app_record :userid="info.userId" ref="app_record"></app_record>
</el-tab-pane>
</el-tabs>
</div>
</template>
</guava>
<el-dialog
title="批量审核"
:visible.sync="changeVisible"
width="60%">
<vi-title title="审核人员"></vi-title>
<el-form :model="formData" ref="form" :rules="formRules"
label-width="100px">
<el-table :data="selection" size="small" header-align="center" style="width: 100%">
<el-table-column prop="loginname" label="工号" header-align="center" align="center">
</el-table-column>
<el-table-column prop="username" label="姓名" header-align="center" align="center">
</el-table-column>
<el-table-column prop="sex" label="性别" header-align="center" align="center"></el-table-column>
<el-table-column prop="mobile" label="电话" header-align="center" align="center"></el-table-column>
<el-table-column prop="unitname" label="单位" header-align="center" align="center"></el-table-column>
<el-table-column prop="isJoin" label="申请类型" header-align="center" align="center">
<template scope="{row}">
<el-tag v-if="row.isJoin" type="success">加入基金</el-tag>
<el-tag type="danger" v-else-if="!row.isJoin">退出基金</el-tag>
</template>
</el-table-column>
<el-table-column label="状态" header-align="center" align="center">
<template scope="{row}">
<span :style="'color:'+row.stateColor">{{row.stateName}}</span>
</template>
</el-table-column>
</el-table>
<vi-title title="审核意见"></vi-title>
<el-form-item prop="auditOpinion">
<el-input type="textarea" v-model="formData.auditOpinion" rows="4" maxlength="500"
placeholder="请填写您的审核意见"></el-input>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="changeVisible=false">返回</el-button>
<el-button type="primary" @click="doSubmit(true)" :disabled="subDis" :loading="subLoading2">
</el-button>
</span>
</el-dialog>
</div>
<script>
const vue = new Vue({
el: '#app',
mixins: [initTableMixins],
data() {
return {
selection: [],
aidFundName: "1",
viewData: {
una: {
username: ""
}
},
info: {},
unions: [],
units: [],
changeSubmitLoading: false,
changeVisible: false,
subDis: false,
subLoading1: false,
subLoading2: false,
pageForm: {
searchName: 'username',
applyYear: new Date().getFullYear() + "",
isAudit: true,
unionid: '',
union: '',
unit: '',
personType: '',
userState: ''
},
tableColumns: [
{prop: 'loginname', label: '工号'},
{prop: 'username', label: '姓名'},
{prop: 'sex', label: '性别'},
{prop: 'mobile', label: '电话'},
{prop: 'unionname', label: '工会', sortable: true},
{prop: 'unitname', label: '单位', sortable: true},
{prop: 'isJoin', label: '申请类型', sortable: true},
{prop: 'source', label: '申请来源', sortable: true},
{prop: 'stateId', label: '状态', sortable: true},
{prop: 'applyTime', label: '申请时间', sortable: true}
],
formRules: {
auditOpinion: [{required: true, message: '请填写审核理由', trigger: ['blur', 'change']}],
}
}
},
components: {
'guava': httpVueLoader('/components/plugins/Guava.vue'),
'info': httpVueLoader('/components/diseaseaid/aidfund/info.vue'),
'app_record': httpVueLoader('/components/diseaseaid/aidfund/AppRecord.vue'),
'search': httpVueLoader('/components/diseaseaid/aidfund/Search.vue?v=1.0.0'),
},
methods: {
exportMember() {
const {applyYear, isAudit, userState, personType, union, unit} = this.pageForm
location.href = loc() + '/exportMember?applyYear=' + applyYear
+ "&isAudit=" + isAudit
+ "&userState=" + userState
+ "&personType=" + personType
+ "&union=" + union
+ "&unit=" + unit
},
handleSelectionChange(val) {
this.selection = val
},
dropdownCommand(command) {
const {type, data} = command
if (type == 'view') {
this.openView(data)
} else if (type == 'Review') {
this.openReview(data)
}
},
batchReview() {
if (!this.selection.length) {
this.$notify({
title: '警告',
message: '请先勾选需要审核的用户!',
type: 'warning'
});
return
}
this.changeVisible = true
if (this.$refs['form']) {
this.$refs['form'].resetFields()
}
},
doSubmit() {
this.$refs["form"].validate(async (valid) => {
if (valid) {
this.subLoading2 = true
const resp = await $.post(loc() + "/doSubmits", {
id: JSON.stringify(this.selection.map(v => v.id)),
auditOpinion: this.formData.auditOpinion
})
requestLaterMsgFun(this, resp, () => {
this.pageData()
this.$refs.multipleTable.clearSelection();
}, null, () => {
this.changeVisible = false
this.subLoading2 = false
})
}
})
},
async openReview(row) {
this.info = row
const {data, code, msg} = await $.get("/platform/aid/fund/common/findOne", {id: row.id})
if (data) {
this.viewData = data
} else {
this.viewData = {}
this.$message({
message: "获取信息失败",
type: 'error'
});
}
this.formData = {
id: row.id,
username: "${@shiro.getPrincipalProperty('username')}",
auditTime: moment().format('YYYY-MM-DD'),
}
this.aidFundName = "4"
this.$refs.guava.edit()
if (this.$refs['form']) {
this.$refs['form'].resetFields()
}
},
async doReview(flag) {
this.$refs["form"].validate(async (valid) => {
if (valid) {
this.formData.pass = flag
this.subDis = true
flag ? this.subLoading2 = true : this.subLoading1 = true
const resp = await $.post(loc() + "/doReview", this.formData)
requestLaterMsgFun(vue, resp, () => {
this.pageData()
this.$refs.guava.index()
}, null, (v) => {
this.subDis = false
this.subLoading1 = false
this.subLoading2 = false
})
}
})
},
async openView(row) {
this.info = row
this.$refs.guava.view()
},
pageData() {
sublime.showLoadingbar();
this.tableLoading = true
this.pageForm.date = JSON.stringify(this.pageForm.dateRange)
$.post(loc() + "/pageData", 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 flushUnits() {
this.$set(this.pageForm, "unitId", "")
if ("${@shiro.hasRole('sysadmin')||@shiro.hasRole('A06')||@shiro.hasRole('H03')}" === 'true') {
this.units = await getUnits(this.pageForm.unionId)
} else {
this.units = await getUnits("${@shiro.getPrincipalProperty('unit').getUnionid()}")
}
},
},
async created() {
this.pageData()
this.unions = await getUnions()
this.flushUnits()
}
})
</script>
<!--#
}
#-->
@@ -0,0 +1,120 @@
<!--#
layout("/layouts/platform.html"){
#-->
<div id="app" class="platform" v-cloak>
<guava ref="guava" padding="0">
<template>
<search v-model="pageForm" @search="doSearch">
<template #before>
<div class="search-item">
<div class="search-item-label">年度:</div>
<div class="search-item-option">
<el-date-picker
v-model="pageForm.aidFundMemberJoinTime"
type="year"
value-format="yyyy" style="width: 100%"
placeholder="选择年">
</el-date-picker>
</div>
</div>
</template>
</search>
<el-card shadow="never" class="mt10">
<table-tool label="历史基金会员" :app="this">
<template #func>
<!-- <el-button type="primary" plain icon="el-icon-printer" size="small" @click="backupMember">-->
<!-- 备份{{new-->
<!-- Date().getFullYear()}}年会员名单-->
<!-- </el-button>-->
</template>
</table-tool>
<el-table :data="tableData" style="width: 100%" row-key="id" @sort-change="pageOrder" :size="tableSize"
v-loading="tableLoading" ref="table" class="vi-table">
<el-table-column align="center" header-align="center" type="index" :index="indexMethod" label="序号"
width="80px"></el-table-column>
<el-table-column
align="center"
header-align="center"
v-for="column in tableColumns"
show-overflow-tooltip
:sortable="column.sortable"
:label="column.label"
:prop="column.prop" :width="column.width" min-width="100px">
<template v-if="column.prop==='aidFundMemberJoinTime'" scope="{row:{aidFundMemberJoinTime}}">
{{aidFundMemberJoinTime|date}}
</template>
</el-table-column>
</el-table>
<!--#include("/layouts/pagination.html"){}#-->
</el-card>
</template>
</guava>
</div>
<script>
const vue = new Vue({
el: '#app',
mixins: [initTableMixins],
data() {
return {
doBackupLoading: false,
pageForm: {
searchName: 'username',
aidFundMemberJoinTime: new Date().getFullYear() - 1 + "",
},
tableColumns: [
{prop: 'year', label: '年度', sortable: true},
{prop: 'loginname', label: '工号'},
{prop: 'username', label: '姓名'},
{prop: 'sex', label: '性别', sortable: true, width: '100px'},
{prop: 'personType', label: '人员类型', sortable: true},
{prop: 'userState', label: '在职状态', sortable: true},
{prop: 'unitname', label: '所在单位', sortable: true},
{prop: 'unionname', label: '所属工会', sortable: true},
{prop: 'aidFundMemberJoinTime', label: '加入时间', sortable: true}
],
}
},
components: {
'guava': httpVueLoader('/components/plugins/Guava.vue'),
'search': httpVueLoader('/components/diseaseaid/aidfund/Search.vue?v=1.0.0'),
},
methods: {
async memberYear() {
const resp = await $.get(loc() + "/memberYear")
},
backupMember() {
this.$confirm('您确定要备份' + new Date().getFullYear() + '年的数据吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(async () => {
this.doBackupLoading = true
const resp = await $.post(loc() + "/backupMember", {year: new Date().getFullYear() + ""})
requestLaterMsgFun(this, resp, () => {
this.pageData()
}, null, () => {
this.doBackupLoading = false
})
})
},
},
async created() {
const num = await this.memberYear()
this.pageForm.aidFundMemberJoinTime = num ? num : new Date().getFullYear() + ""
this.pageData()
}
})
</script>
<!--#
}
#-->
@@ -0,0 +1,289 @@
<!--#
layout("/layouts/platform.html"){
#-->
<style>
.aidPay_view {
padding-top: 20px;
padding-left: 50px;
}
</style>
<div id="app" class="platform" v-cloak>
<guava ref="guava" padding="0">
<template>
<search v-model="pageForm" @search="doSearch" :has_year="true"></search>
<el-card shadow="never" class="mt10">
<table-tool label="会员列表" :app="this">
<template #func>
<el-radio-group class="mr5" v-model="pageForm.isAudit" @change="doSearch" size="small"
style="margin-bottom: -7.5px">
<el-radio-button :label="1">全部</el-radio-button>
<el-radio-button :label="2">已缴费</el-radio-button>
<el-radio-button :label="3">未缴费</el-radio-button>
</el-radio-group>
<el-dropdown>
<el-button @click="download" type="primary" plain icon="el-icon-download" size="small">导出{{pageForm.year}}名单 <i
class="el-icon-arrow-down el-icon--right"></i>
</el-button>
</el-dropdown>
<el-button type="primary" class="ml5" plain icon="el-icon-upload2" size="small"
@click="openImport">导入缴费记录
</el-button>
<el-button type="primary" class="ml5" plain icon="el-icon-delete-solid" :loading="doPayLoading"
size="small"
:disabled="tableData.length==0"
@click="doPay">清空{{pageForm.year}}年缴费名单
</el-button>
</template>
</table-tool>
<el-table :data="tableData" style="width: 100%" row-key="id" @sort-change="pageOrder" :size="tableSize"
v-loading="tableLoading" ref="table" class="vi-table">
<el-table-column align="center" header-align="center" type="index" :index="indexMethod" label="序号"
width="80px"></el-table-column>
<el-table-column
align="center"
header-align="center"
v-for="column in tableColumns"
show-overflow-tooltip
:sortable="column.sortable"
:label="column.label"
:prop="column.prop" :width="column.width" min-width="100px">
<template v-if="column.prop==='payed'" scope="{row:{payed}}">
<el-tag type="success" v-if="payed">已扣款</el-tag>
<el-tag type="info" v-else-if="!payed">未扣款</el-tag>
</template>
<template v-else-if="column.prop==='money'" scope="{row:{money}}">
<el-tag>{{money}}</el-tag>
</template>
</el-table-column>
<el-table-column prop="userOnline" align="center" header-align="center" label="操作"
width="180px" fixed="right">
<template scope="{row}">
<el-dropdown @command="dropdownCommand">
<el-button plain size="mini">
<i class="ti-settings"></i>
<span class="ti-angle-down"></span>
</el-button>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item :command="{action:view,value:row}">
查看
</el-dropdown-item>
<el-dropdown-item :disabled="row.payed" :command="{action:isPayed,value:row.id}"
:loading="isPayedLoading">
已扣款
</el-dropdown-item>
<el-dropdown-item :disabled="!row.payed" :command="{action:isPayed,value:row.id}"
:loading="isPayedLoading">
未扣款
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</template>
</el-table-column>
</el-table>
<!--#include("/layouts/pagination.html"){}#-->
</el-card>
</template>
<template #view>
<el-tabs v-model="activeName" class="aidPay_view">
<el-tab-pane label="用户信息" :name="1">
<info ref="info" :userid="info.userId"></info>
</el-tab-pane>
<el-tab-pane label="变更记录" :name="2">
<app_record :userid="info.userId" ref="app_record"></app_record>
</el-tab-pane>
<el-tab-pane label="缴费记录" :name="3">
<pay_record :userid="info.userId" ref="pay_record"></pay_record>
</el-tab-pane>
</el-tabs>
</template>
</guava>
<el-dialog
title="扣费记录导入"
:visible.sync="importVisible"
:close-on-click-modal="false"
width="50%"
>
<el-timeline>
<el-timeline-item timestamp="下载模板" placement="top">
<el-card>
<el-button size="medium" type="" style="width: 200px"
@click="location.href='/platform/basics/downloadTemplate?filePath=diseaseaid/aidfund/kkmodel1.xls&fileName=扣费记录模板.xls'"
icon="el-icon-download">下载模板
</el-button>
</el-card>
</el-timeline-item>
<el-timeline-item timestamp="上传文件" placement="top">
<el-card>
<el-upload
name="file"
ref="upload"
:on-remove="(file, fileList) => {
importData.fileList = fileHandleRemove(file, fileList)
}"
:on-change="(file, fileList) => {
importData.fileList = fileHandleChange(file, fileList,{type:['xls','xlsx']})
}"
:auto-upload="false"
:limit="1"
:file-list="importData.fileList">
<el-button size="medium" type="" icon="el-icon-upload" style="width: 200px">选择文件
</el-button>
</el-upload>
</el-card>
</el-timeline-item>
</el-timeline>
<span slot="footer" class="dialog-footer">
<el-button @click="importVisible = false" :disabled="importLoading">取 消</el-button>
<el-button type="primary" @click="doImport" :loading="importLoading">确定</el-button>
</span>
</el-dialog>
</div>
<script>
const vue = new Vue({
el: '#app',
mixins: [initTableMixins],
data() {
return {
activeName: 1,
importData: {},
info: {},
importLoading: false,
importVisible: false,
doPayLoading: false,
isPayedLoading: false,
pageForm: {
searchName: 'username',
year: new Date().getFullYear() + "",
isAudit: "1"
},
tableColumns: [
{prop: 'year', label: '年度'},
{prop: 'loginname', label: '工号'},
{prop: 'username', label: '姓名'},
{prop: 'sex', label: '性别', sortable: true, width: '100px'},
{prop: 'userState', label: '在职状态', sortable: true},
{prop: 'unitname', label: '所在单位', sortable: true},
{prop: 'unionname', label: '所属工会', sortable: true},
{prop: 'money', label: '缴费金额', sortable: true},
{prop: 'payed', label: '是否扣款', sortable: true}
]
}
},
components: {
'guava': httpVueLoader('/components/plugins/Guava.vue'),
'search': httpVueLoader('/components/diseaseaid/aidfund/Search.vue?v=1.0.0'),
'info': httpVueLoader('/components/diseaseaid/aidfund/info.vue'),
'app_record': httpVueLoader('/components/diseaseaid/aidfund/AppRecord.vue'),
'pay_record': httpVueLoader('/components/diseaseaid/aidfund/PayRecord.vue'),
},
methods: {
download() {
location.href = location.href + '/download?year=' + this.pageForm.year
},
async isPayed(id) {
this.isPayedLoading = true
const resp = await $.post(loc() + "/isPayed", {id})
requestLaterMsgFun(this, resp, () => {
this.pageData()
}, null, () => {
this.isPayedLoading = false
})
},
view(row) {
this.info = row
this.activeName = 1
this.$refs.guava.view()
},
doPay() {
if (!this.pageForm.year) {
this.notifyWarning("请先选择年度!")
return;
} else if (this.pageForm.year < (new Date().getFullYear()).toString()) {
this.notifyWarning("历史数据不能删除!")
return;
}
this.$confirm('您确定要清空' + this.pageForm.year + '年的数据吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(async () => {
this.doPayLoading = true
const resp = await $.post(loc() + "/doPay", {year: this.pageForm.year})
requestLaterMsgFun(this, resp, () => {
this.pageData()
}, null, () => {
this.doPayLoading = false
})
})
},
openImport() {
this.importData = {
fileList: []
}
this.importVisible = true;
},
doImport() {
if (!this.importData.fileList.length) {
this.notifyWarning("请选择文件!")
return
}
const data = new FormData();
this.importData.fileList.forEach((val) => {
data.append("file", val.raw, val.raw.name);
});
this.importLoading = true
$.ajax({
url: loc() + "/importUserpays",
type: "post",
data: data,
processData: false,
contentType: false,
success: (data) => {
if (!data.code) {
this.notifySuccess("导入成功!");
this.pageData();
this.importVisible = false
} else {
this.notifyWarning("导入失败")
}
this.importLoading = false
},
error: (data) => {
this.notifyWarning("导入失败")
this.importLoading = false
}
});
}
},
async created() {
this.pageData();
}
})
</script>
<!--#
}
#-->
@@ -0,0 +1,264 @@
<!--#
layout("/layouts/platform.html"){
#-->
<style>
.aidFund_edit {
padding-top: 20px;
padding-left: 50px;
}
.aidFund_view {
padding-top: 20px;
padding-left: 50px;
}
</style>
<div id="app" class="platform" v-cloak>
<guava ref="guava" padding="0">
<template>
<search v-model="pageForm" @search="doSearch">
<template #before>
<div class="search-item">
<div class="search-item-label">年度:</div>
<div class="search-item-option">
<el-date-picker
v-model="pageForm.applyYear"
type="year"
value-format="yyyy" style="width: 100%"
placeholder="选择年">
</el-date-picker>
</div>
</div>
</template>
</search>
<el-card shadow="never" class="mt10">
<table-tool label="申请列表" :app="this">
<template #func>
<el-radio-group v-model="pageForm.isAudit" @change="doSearch" size="small"
style="margin-bottom: -7.5px">
<el-radio-button :label="false">全部</el-radio-button>
<el-radio-button :label="true">待我审核</el-radio-button>
</el-radio-group>
</template>
</table-tool>
<el-table :data="tableData" style="width: 100%" row-key="id" @sort-change="pageOrder"
v-loading="tableLoading" :size="tableSize" class="vi-table">
<el-table-column align="center" header-align="center" type="index" :index="indexMethod" label="序号"
width="80px"></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 v-if="column.prop=='stateId'" scope="{row}">
<vi-table-state :state="row"></vi-table-state>
</template>
<template scope="{row}" v-else-if="column.prop=='isJoin'">
<el-tag v-if="row.isJoin" type="success">加入基金</el-tag>
<el-tag type="danger" v-else-if="!row.isJoin">退出基金</el-tag>
</template>
<template scope="{row}" v-else-if="column.prop=='source'">
<el-tag v-if="row.source==0">个人申请</el-tag>
<el-tag type="info" v-else-if="row.source==1">批量加入</el-tag>
</template>
<template scope="{row}" v-else-if="column.prop=='applyTime'">
{{row.applyTime|date}}
</template>
</el-table-column>
<el-table-column align="center" header-align="center" label="操作" fixed="right" width="150px">
<template scope="{row}">
<el-dropdown @command="dropdownCommand">
<el-button plain size="mini">
<i class="ti-settings"></i>
<span class="ti-angle-down"></span>
</el-button>
<el-dropdown-menu slot="dropdown" >
<el-dropdown-item :command="{action:view,value:row}">
查看
</el-dropdown-item>
<el-dropdown-item :disabled="row.stateId > 3010"
:command="{action:review,value:row}">
审核
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</template>
</el-table-column>
</el-table>
<!--#include("/layouts/pagination.html"){}#-->
</el-card>
</template>
<template #edit>
<div class="aidFund_edit">
<el-tabs v-model="aidFundName">
<el-tab-pane label="个人信息" name="1">
<info ref="info" :userid="info.userId"></info>
</el-tab-pane>
<el-tab-pane label="变更记录" name="2">
<app_record :userid="info.userId" ref="app_record"></app_record>
</el-tab-pane>
<el-tab-pane label="离退休干部处审核" name="3">
<el-form :model="formData" ref="form" :rules="formRules" label-position="right"
style="padding: 20px 0"
label-width="120px">
<el-form-item label="审核信息&emsp;" label-width="135px" class="view-header">
</el-form-item>
<el-row gutter="20">
<el-col :span="12">
<el-form-item prop="username" label="审核人员">
<el-input v-model="formData.username"
disabled></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="time" label="审核时间">
<el-input v-model="formData.auditTime" disabled></el-input>
</el-form-item>
</el-col>
</el-row>
<el-form-item prop="opinion" label="审核意见">
<el-input type="textarea" v-model="formData.auditOpinion" rows="4" maxlength="500"
placeholder="请填写您的审核意见"></el-input>
</el-form-item>
</el-form>
<div style="float: right;margin: 20px 0">
<el-button @click="doReview(false)" :disabled="reDis" :loading="reLoading1">
</el-button>
<el-button type="primary" @click="doReview(true)" :disabled="reDis" :loading="reLoading2">
</el-button>
</div>
</el-tab-pane>
</el-tabs>
</div>
</template>
<template #view>
<div class="aidFund_view">
<el-tabs v-model="aidFundName">
<el-tab-pane label="个人信息" name="1">
<info ref="info" :userid="info.userId"></info>
</el-tab-pane>
<el-tab-pane label="变更记录" name="2">
<app_record :userid="info.userId" ref="app_record"></app_record>
</el-tab-pane>
</el-tabs>
</div>
</template>
</guava>
</div>
<script>
const vue = new Vue({
el: '#app',
mixins: [initTableMixins],
data() {
return {
aidFundName: "1",
info: {},
reDis: false,
reLoading1: false,
reLoading2: false,
pageForm: {
searchName: 'username',
applyYear: new Date().getFullYear() + "",
isAudit: true
},
tableColumns: [
{prop: 'loginname', label: '工号'},
{prop: 'username', label: '姓名'},
{prop: 'sex', label: '性别', sortable: true, width: '100px'},
{prop: 'personType', label: '人员类型', sortable: true},
{prop: 'unitname', label: '所在单位', sortable: true},
{prop: 'unionname', label: '所属工会', sortable: true},
{prop: 'isJoin', label: '申请类型', sortable: true},
{prop: 'source', label: '申请来源', sortable: true},
{prop: 'stateId', label: '状态', sortable: true},
{prop: 'applyTime', label: '申请时间', sortable: true}
],
}
},
components: {
'guava': httpVueLoader('/components/plugins/Guava.vue'),
'info': httpVueLoader('/components/diseaseaid/aidfund/info.vue'),
'app_record': httpVueLoader('/components/diseaseaid/aidfund/AppRecord.vue'),
'search': httpVueLoader('/components/diseaseaid/aidfund/Search.vue?v=1.0.0'),
},
methods: {
review(row){
this.info = row
this.formData = {
id: row.id,
username: "${@shiro.getPrincipalProperty('username')}",
auditTime: moment().format('YYYY-MM-DD'),
}
this.aidFundName = "3"
this.$refs.guava.edit()
if (this.$refs['form']) {
this.$refs['form'].resetFields()
}
},
async doReview(flag) {
this.$refs["form"].validate(async (valid) => {
if (valid) {
this.formData.pass = flag
this.reDis = true
flag ? this.reLoading2 = true : this.reLoading1 = true
const resp = await $.post(loc() + "/doReview", this.formData)
requestLaterMsgFun(vue, resp, () => {
this.pageData()
this.$refs.guava.index()
}, null, (v) => {
this.reDis = false
this.reLoading1 = false
this.reLoading2 = false
})
}
})
},
view(row) {
this.info = row
this.aidFundName = "1"
this.$refs.guava.view()
},
},
async created() {
this.pageData()
}
})
</script>
<!--#
}
#-->
@@ -0,0 +1,301 @@
<!--#
layout("/layouts/platform.html"){
#-->
<style>
.aidFund_edit {
padding-top: 20px;
padding-left: 50px;
}
.aidFund_view {
padding-top: 20px;
padding-left: 50px;
}
</style>
<div id="app" class="platform" v-cloak>
<guava ref="guava" padding="0">
<template>
<search v-model="pageForm" @search="doSearch">
<template #before>
<div class="search-item">
<div class="search-item-label">年度:</div>
<div class="search-item-option">
<el-date-picker
v-model="pageForm.applyYear"
type="year"
value-format="yyyy" style="width: 100%"
placeholder="选择年">
</el-date-picker>
</div>
</div>
</template>
</search>
<el-card shadow="never" class="mt10">
<table-tool label="申请列表" :app="this">
<template #func>
<el-radio-group v-model="pageForm.isAudit" @change="doSearch" size="small"
style="margin-bottom: -7.5px">
<el-radio-button :label="false">全部</el-radio-button>
<el-radio-button :label="true">待我审核</el-radio-button>
</el-radio-group>
</template>
</table-tool>
<el-table :data="tableData" style="width: 100%" row-key="id" @sort-change="pageOrder"
v-loading="tableLoading" :size="tableSize" class="vi-table">
<el-table-column align="center" header-align="center" type="index" :index="indexMethod" label="序号"
width="80px"></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 v-if="column.prop=='stateId'" scope="{row}">
<vi-table-state :state="row"></vi-table-state>
</template>
<template scope="{row}" v-else-if="column.prop=='isJoin'">
<el-tag v-if="row.isJoin" type="success">加入基金</el-tag>
<el-tag type="danger" v-else-if="!row.isJoin">退出基金</el-tag>
</template>
<template scope="{row}" v-else-if="column.prop=='source'">
<el-tag v-if="row.source==0">个人申请</el-tag>
<el-tag type="info" v-else-if="row.source==1">批量加入</el-tag>
</template>
<template scope="{row}" v-else-if="column.prop=='applyTime'">
{{row.applyTime|date}}
</template>
</el-table-column>
<el-table-column align="center" header-align="center" label="操作" fixed="right" width="150px">
<template scope="{row}">
<el-dropdown @command="dropdownCommand">
<el-button plain size="mini">
<i class="ti-settings"></i>
<span class="ti-angle-down"></span>
</el-button>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item :command="{type:'view',data:row}">
查看
</el-dropdown-item>
<el-dropdown-item :disabled="row.stateId > 3000"
:command="{type:'Review',data:row}">
审核
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</template>
</el-table-column>
</el-table>
<!--#include("/layouts/pagination.html"){}#-->
</el-card>
</template>
<template #edit>
<div class="aidFund_edit">
<el-tabs v-model="aidFundName">
<el-tab-pane label="个人信息" name="1">
<info ref="info" :userid="info.userId"></info>
</el-tab-pane>
<el-tab-pane label="变更记录" name="2">
<app_record :userid="info.userId" ref="app_record"></app_record>
</el-tab-pane>
<el-tab-pane label="分工会审核" name="3">
<el-form :model="formData" ref="form" :rules="formRules" label-position="right"
style="padding: 20px 0"
label-width="120px">
<el-form-item label="审核信息&emsp;" label-width="135px" class="view-header">
</el-form-item>
<el-row gutter="20">
<el-col :span="12">
<el-form-item prop="username" label="审核人员">
<el-input v-model="formData.username"
disabled></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="time" label="审核时间">
<el-input v-model="formData.auditTime" disabled></el-input>
</el-form-item>
</el-col>
</el-row>
<el-form-item prop="opinion" label="审核意见">
<el-input type="textarea" v-model="formData.auditOpinion" rows="4" maxlength="500"
placeholder="请填写您的审核意见"></el-input>
</el-form-item>
</el-form>
<div style="float: right;margin: 20px 0">
<el-button @click="doReview(false)" :disabled="subDis" :loading="subLoading1">
</el-button>
<el-button type="primary" @click="doReview(true)" :disabled="subDis" :loading="subLoading2">
</el-button>
</div>
</el-tab-pane>
</el-tabs>
</div>
</template>
<template #view>
<div class="aidFund_view">
<el-tabs v-model="aidFundName">
<el-tab-pane label="个人信息" name="1">
<info ref="info" :userid="info.userId"></info>
</el-tab-pane>
<el-tab-pane label="变更记录" name="2">
<app_record :userid="info.userId" ref="app_record"></app_record>
</el-tab-pane>
</el-tabs>
</div>
</template>
</guava>
</div>
<script>
const vue = new Vue({
el: '#app',
mixins: [initTableMixins],
data() {
return {
aidFundName: "1",
viewData: {},
info: {},
unions: [],
units: [],
subDis: false,
subLoading1: false,
subLoading2: false,
pageForm: {
searchName: 'username',
applyYear: new Date().getFullYear() + "",
isAudit: true
},
tableColumns: [
{prop: 'loginname', label: '工号'},
{prop: 'username', label: '姓名'},
{prop: 'sex', label: '性别'},
{prop: 'mobile', label: '电话'},
{prop: 'unionname', label: '工会', sortable: true},
{prop: 'unitname', label: '单位', sortable: true},
{prop: 'isJoin', label: '申请类型', sortable: true},
{prop: 'source', label: '申请来源', sortable: true},
{prop: 'stateId', label: '状态', sortable: true},
{prop: 'applyTime', label: '申请时间', sortable: true}
],
}
},
components: {
'guava': httpVueLoader('/components/plugins/Guava.vue'),
'info': httpVueLoader('/components/diseaseaid/aidfund/info.vue'),
'app_record': httpVueLoader('/components/diseaseaid/aidfund/AppRecord.vue'),
'search': httpVueLoader('/components/diseaseaid/aidfund/Search.vue?v=1.0.0'),
},
methods: {
dropdownCommand(command) {
const {type, data} = command
if (type == 'view') {
this.openView(data)
} else if (type == 'Review') {
this.openReview(data)
}
},
async openReview(row) {
this.info = row
this.formData = {
id: row.id,
username: "${@shiro.getPrincipalProperty('username')}",
auditTime: moment().format('YYYY-MM-DD'),
}
this.aidFundName = "3"
this.$refs.guava.edit()
if (this.$refs['form']) {
this.$refs['form'].resetFields()
}
},
async doReview(flag) {
this.$refs["form"].validate(async (valid) => {
if (valid) {
this.formData.pass = flag
this.subDis = true
flag ? this.subLoading2 = true : this.subLoading1 = true
const resp = await $.post(loc() + "/doReview", this.formData)
requestLaterMsgFun(vue, resp, () => {
this.pageData()
this.$refs.guava.index()
}, null, (v) => {
this.subDis = false
this.subLoading1 = false
this.subLoading2 = false
})
}
})
},
async openView(row) {
this.info = row
this.$refs.guava.view()
},
async flushUnits() {
this.$set(this.pageForm, "unitId", "")
if ("${@shiro.hasRole('sysadmin')||@shiro.hasRole('A06')||@shiro.hasRole('H03')}" === 'true') {
this.units = await getUnits(this.pageForm.unionId)
} else {
this.units = await getUnits("${@shiro.getPrincipalProperty('unit').getUnionid()}")
}
},
pageData() {
sublime.showLoadingbar();
this.tableLoading = true
this.pageForm.date = JSON.stringify(this.pageForm.dateRange)
$.post(loc() + "/pageData", 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 created() {
this.pageData()
this.unions = await getUnions()
this.flushUnits()
}
})
</script>
<!--#
}
#-->