220 lines
9.8 KiB
HTML
220 lines
9.8 KiB
HTML
<!--#
|
|
layout("/layouts/platform.html"){
|
|
#-->
|
|
|
|
<div id="app" v-cloak>
|
|
<guava ref="guava">
|
|
<el-card shadow="never">
|
|
<div class="search">
|
|
<div class="search-item">
|
|
<div class="search-item-label">年度查询:</div>
|
|
<div class="search-item-option" style="display: flex;column-gap: 10px">
|
|
<el-date-picker
|
|
placeholder="选择开始年度"
|
|
style="width: 50%"
|
|
type="year"
|
|
value-format="yyyy"
|
|
v-model="pageForm.startYear">
|
|
</el-date-picker>
|
|
<el-date-picker
|
|
placeholder="选择结束年度"
|
|
style="width: 50%"
|
|
type="year"
|
|
value-format="yyyy"
|
|
v-model="pageForm.endYear">
|
|
</el-date-picker>
|
|
</div>
|
|
</div>
|
|
<div class="search-item">
|
|
<div class="search-item-label">职工信息:</div>
|
|
<div class="search-item-option">
|
|
<el-input placeholder="请输入内容" v-model="pageForm.searchKeyword">
|
|
<el-select v-model="pageForm.searchName" slot="prepend" placeholder="查询类型"
|
|
style="width: 80px;">
|
|
<el-option label="工号" value="u.loginname"></el-option>
|
|
<el-option label="姓名" value="u.username"></el-option>
|
|
</el-select>
|
|
</el-input>
|
|
</div>
|
|
</div>
|
|
<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-radio-group @change="doSearch" v-model="pageForm.isAccept">
|
|
<el-radio-button :label="0">全部</el-radio-button>
|
|
<el-radio-button :label="1">申请</el-radio-button>
|
|
<el-radio-button :label="-1">放弃</el-radio-button>
|
|
</el-radio-group>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="search-query">
|
|
<el-button @click="doSearch" icon="el-icon-search" type="primary">搜索</el-button>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-card>
|
|
|
|
<el-card class="mt10" shadow="never">
|
|
<table-tool :app="this" label="补助汇总列表">
|
|
<template #func>
|
|
<el-button @click="exportSubsidiesAmountTable" size="small" type="primary">导出补助金额情况表
|
|
</el-button>
|
|
</template>
|
|
</table-tool>
|
|
<el-table :data="tableData" :size="tableSize" @sort-change="pageOrder"
|
|
align="center" header-align="center">
|
|
<el-table-column align="center" header-align="center" label="序号" type="index" width="80">
|
|
<template scope="scope">
|
|
<span>{{ scope.$index + (pageForm.pageNumber - 1) * pageForm.pageSize + 1 }} </span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
:label="column.label"
|
|
:prop="column.prop"
|
|
:sortable="column.sortable"
|
|
:width="column.width"
|
|
align="center"
|
|
header-align="center"
|
|
show-overflow-tooltip
|
|
v-for="column in tableColumns"
|
|
>
|
|
|
|
|
|
<template scope="{row}" v-if="column.prop==='isAccept'">
|
|
<span v-if="row.isAccept !== null"
|
|
:class="{'text-success': row.isAccept, 'text-danger': !row.isAccept}">
|
|
{{ row.isAccept ? '申请' : '放弃' }}
|
|
</span>
|
|
<span v-else class="text-info">无</span>
|
|
</template>
|
|
</el-table-column>
|
|
|
|
<el-table-column label="操作" width="250">
|
|
<template scope="{row}">
|
|
<el-button @click="openView(row.id)" size="mini" type="primary">查看</el-button>
|
|
</template>
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
<!--#include("/layouts/pagination.html"){}#-->
|
|
</el-card>
|
|
|
|
<template #view>
|
|
<sick-help-info ref="sickView"></sick-help-info>
|
|
</template>
|
|
|
|
</guava>
|
|
|
|
|
|
</div>
|
|
|
|
<script>
|
|
var vue = new Vue({
|
|
el: '#app',
|
|
mixins: [initTableMixins],
|
|
components: {
|
|
'SickHelpInfo': httpVueLoader('/components/sickHelp/SickHelpInfo.vue'),
|
|
},
|
|
data() {
|
|
return {
|
|
tableColumns: [
|
|
{prop: 'userName', label: '姓名'},
|
|
{prop: 'loginName', label: '工号'},
|
|
{prop: 'unitName', label: '单位', sortable: true},
|
|
// {prop: 'unionName', label: '分工会', sortable: true},
|
|
{prop: 'year', label: '年度', sortable: true},
|
|
{prop: 'selfPayMoney', label: '个人支付金额(元)', sortable: true},
|
|
{prop: 'subsidyMoney', label: '补助金额(元)', sortable: true},
|
|
// {prop: 'subsidyRatio', label: '补助比例', sortable: true},
|
|
// {prop: 'isMeetRequirements', label: '是否符合申请要求'},
|
|
{prop: 'isAccept', label: '是否接受补助'},
|
|
{prop: 'stateName', label: '审核状态'},
|
|
// {prop: 'remarks', label: '备注'},
|
|
],
|
|
pageForm: {
|
|
startYear: (new Date().getFullYear() - 1).toString(),
|
|
endYear: (new Date().getFullYear()).toString(),
|
|
searchName: 'u.username',
|
|
isAccept: 1
|
|
},
|
|
unions: [],
|
|
units: [],
|
|
formData: {},
|
|
rules: {
|
|
applyUserSign: [{required: true, message: '请签字', trigger: ['change', 'blur']}],
|
|
applyReason: [{required: true, message: '请输入申请理由', trigger: ['change', 'blur']}],
|
|
sex: [{required: true, message: '请选择性别', trigger: ['change', 'blur']}],
|
|
birthday: [{required: true, message: '请输入出生年月', trigger: ['change', 'blur']}],
|
|
mutualGoldStartTime: [{
|
|
required: true,
|
|
message: '请输入参加大病医疗互助时间',
|
|
trigger: ['change', 'blur']
|
|
}],
|
|
unitName: [{required: true, message: '请输入工作单位', trigger: ['change', 'blur']}],
|
|
homeAddress: [{required: true, message: '请输入家庭住址', trigger: ['change', 'blur']}],
|
|
},
|
|
applyDialog: false
|
|
}
|
|
},
|
|
methods: {
|
|
openView(id) {
|
|
this.$refs.guava.view()
|
|
this.$refs.sickView.openView(id)
|
|
},
|
|
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()}")
|
|
}
|
|
},
|
|
exportSubsidiesAmountTable() {
|
|
const {startYear, endYear} = this.pageForm
|
|
if (!startYear && !endYear) {
|
|
this.notifyWarning('请先选择需要导出的年度')
|
|
return
|
|
}
|
|
window.open(loc() + '/exportSubsidiesAmountTable?startYear=' + startYear + '&endYear=' + endYear)
|
|
}
|
|
},
|
|
async created() {
|
|
this.pageData()
|
|
this.unions = await getUnions()
|
|
this.flushUnits()
|
|
}
|
|
})
|
|
</script>
|
|
|
|
|
|
<!--#
|
|
}
|
|
#-->
|