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,433 @@
<!--#
layout("/layouts/platform.html"){
#-->
<style>
.aid-dash-bord .card-label {
color: rgba(0, 0, 0, .45);
font-size: 14px;
margin-bottom: 10px;
}
.aid-dash-bord .card-value-num {
font-size: 30px;
color: rgba(0, 0, 0, .85);
}
.el-table__body-wrapper::-webkit-scrollbar {
display: none; /* Chrome Safari */
}
.el-table__body-wrapper {
scrollbar-width: none; /* firefox */
-ms-overflow-style: none; /* IE 10+ */
overflow-x: hidden;
overflow-y: auto;
}
.idx {
display: flex;
justify-content: center;
align-items: center;
color: rgba(0, 0, 0, .85);
width: 20px;
height: 20px;
border-radius: 50%;
background-color: #f0f0f0;
font-size: 12px;
}
.top-col {
background-color: white;
position: relative;
box-sizing: border-box;
padding: 20px;
width: calc((100% - (20px * 4)) / 4);
}
.top-col:not(:last-child), .center-col:not(:last-child) {
margin-right: 20px;
}
.top-col-member-number {
font-size: 30px;
color: rgba(0, 0, 0, .85);
}
.top-col-chart {
height: 80px;
width: 100%;
position: relative;
}
.center-col {
background-color: white;
position: relative;
box-sizing: border-box;
padding: 20px;
width: calc((100% - (20px * 2)) / 2);
}
.idx-rank {
color: white !important;
background-color: #314659 !important;
}
</style>
<div id="app" class="platform aid-dash-bord" v-cloak>
<guava ref="guava">
<template>
<el-row gutter="20" type="flex">
<el-col v-loading="loading.memberNumber">
<el-card shadow="never">
<div class="card-label">基金会员总数</div>
<div class="card-value">
<span class="card-value-num">{{memberNumberData.memberNum}}</span><span
class="card-value-unit"></span>
</div>
</el-card>
</el-col>
<el-col v-loading="loading.memberNumberYear">
<el-card shadow="never">
<div class="card-label">今年新加入会员数</div>
<div class="card-value">
<span class="card-value-num">{{memberNumberData.memberNumberYear}}</span><span
class="card-value-unit"></span>
</div>
</el-card>
</el-col>
<el-col v-loading="loading.aidMedical">
<el-card shadow="never">
<div class="card-label">医疗补助申请总数</div>
<div class="card-value">
<span class="card-value-num">{{aidMedicalData.med}}</span><span
class="card-value-unit"></span>
</div>
</el-card>
</el-col>
<el-col v-loading="loading.aidMedical">
<el-card shadow="never">
<div class="card-label">重疾补助申请总数</div>
<div class="card-value">
<span class="card-value-num">{{aidMedicalData.weightMed}}</span><span
class="card-value-unit"></span>
</div>
</el-card>
</el-col>
<el-col v-loading="loading.aidMedicalMoney">
<el-card shadow="never">
<div class="card-label">共计补助</div>
<div class="card-value">
<span class="card-value-num">{{aidMedicalData.Money/10000}}</span><span
class="card-value-unit"> 万元</span>
</div>
</el-card>
</el-col>
</el-row>
<el-row style="background-color: #f0f2f5;margin-top: 20px" type="flex">
<el-col class="center-col">
<div class="card-label">工会基金会员数</div>
<div style="width: 100%;height: 100px" id="unionMemberChart"></div>
<el-table :data="unionMember" style="width: 100%;margin-top: 20px"
height="calc(100vh - 160px - 300px)"
:header-cell-style="{background:'#FAFAFA'}" row-key="id">
<el-table-column label="序号" width="100px">
<template scope="{$index}">
<div class="idx idx-rank" v-if="$index<3">{{$index+1}}</div>
<div class="idx" v-else>{{$index+1}}</div>
</template>
</el-table-column>
<el-table-column prop="unioncode" header-align="center" label="基层工会" sortable
show-overflow-tooltip>
<template scope="{row}">
{{row.unionname}}{{row.unioncode}}
</template>
</el-table-column>
<el-table-column prop="value" align="center" header-align="center" label="会员人数"
width="120px" sortable
show-overflow-tooltip></el-table-column>
</el-table>
</el-col>
<el-col class="center-col">
<div class="card-label">在职状态</div>
<div style="width: 100%;height:calc(50% - 35px);box-sizing: border-box;padding: 30px 10px"
v-loading="loading.userStateMember"
id="userStateMemberChart"></div>
<div class="card-label">人员类型</div>
<div style="width: 100%;height:calc(50% - 35px);box-sizing: border-box;padding: 30px 10px"
v-loading="loading.personTypeMember"
id="personTypeMemberChart"></div>
</el-col>
</el-row>
</template>
</guava>
</div>
<script>
const chart = {
unionMemberChart: undefined,
userStateMemberChart: undefined,
personTypeMemberChart: undefined,
}
const vue = new Vue({
el: '#app',
mixins: [initTableMixins],
data() {
return {
loading: {
unionMember: false,
memberNumberYear: false,
personTypeMember: false,
userStateMember: false,
memberNumber: false,
aidMedicalMoney: false,
},
memberNumberData: {
memberNum: '--',
memberNumberYear: '--',
},
aidMedicalData: {
med: '--',
weightMed: '--',
Money: '--',
},
unionMember: [],
}
},
components: {
'guava': httpVueLoader('/components/plugins/Guava.vue?v=1.0.0')
},
methods: {
/**
* 各工会会员数
* @returns {Promise<void>}
*/
async getUnionMember() {
this.loading.unionMember = true
const resp = await $.get(loc() + '/unionMember')
requestLaterFun(resp, ({chartData, tableData}) => {
this.loading.unionMember = false
this.unionMember = tableData
const labels = chartData.map(v => v.unionname)
const values = chartData.map(v => v.value)
if (chart.unionMemberChart) {
chart.unionMemberChart.changeData(values)
return
}
chart.unionMemberChart = new G2Plot.TinyArea('unionMemberChart', {
autoFit: true,
data: values,
smooth: true,
tooltip: {
customContent: function (i, data) {
if (labels[i]) {
return labels[i] + '- ' + data[0]?.data?.y + '人';
}
return ''
},
},
})
chart.unionMemberChart.render();
})
},
/**
* 根据在职状态查找会员数
* @returns {Promise<void>}
*/
async getUserStateMember() {
this.loading.userStateMember = true
const resp = await $.get(loc() + '/userStateMember')
requestLaterFun(resp, (data) => {
this.loading.userStateMember = false
if (chart.userStateMemberChart) {
chart.userStateMemberChart.changeData(data)
return
}
/* chart.userStateMemberChart = new G2Plot.Radar('userStateMemberChart', {*/
chart.userStateMemberChart = new G2Plot.Pie('userStateMemberChart', {
data,
/* xField: 'label',
yField: 'value',
appendPadding: [0, 10, 0, 10],*/
angleField: 'value',
colorField: 'type',
radius: 0.75,
appendPadding: 10,
label: {
type: 'spider',
labelHeight: 28,
content: '{name}\n{value}',
},
interactions: [{type: 'element-selected'}, {type: 'element-active'}],
/* meta: {
value: {
alias: '会员数量',
min: 0,
nice: true,
formatter: (v) => Number(v).toFixed(2),
},
},*/
/* xAxis: {
tickLine: null,
},
yAxis: {
label: false,
grid: {
alternateColor: 'rgba(0, 0, 0, 0.04)',
},
},
// 开启辅助点
point: {
size: 2,
},
area: {},*/
});
chart.userStateMemberChart.render();
})
},
/**
* 根据人员类型查找会员数
* @returns {Promise<void>}
*/
async getPersonTypeMember() {
this.loading.personTypeMember = true
const resp = await $.get(loc() + '/personTypeMember')
requestLaterFun(resp, (data) => {
this.loading.personTypeMember = false
if (chart.personTypeMemberChart) {
chart.personTypeMemberChart.changeData(data)
return
}
chart.personTypeMemberChart = new G2Plot.Column('personTypeMemberChart', {
data,
autoFit: true,
xField: 'label',
yField: 'value',
label: {
// 可手动配置 label 数据标签位置
position: 'middle', // 'top', 'bottom', 'middle',
// 配置样式
style: {
fill: '#FFFFFF',
opacity: 0.6,
},
},
xAxis: {
label: {
autoHide: true,
autoRotate: false,
},
},
meta: {
label: {
alias: '类型',
},
value: {
alias: '会员数',
},
},
});
chart.personTypeMemberChart.render();
})
},
/**
* 查询基金会员总数
* @returns {Promise<void>}
*/
async getAidFundMember() {
this.loading.memberNumber = true
const resp = await $.get(loc() + '/getAidFundMember')
requestLaterFun(resp, (data) => {
this.loading.memberNumber = false
this.memberNumberData.memberNum = data
})
},
/**
* 查询本年加入基金会员总数
* @returns {Promise<void>}
*/
async getAidFundMemberYear() {
this.loading.memberNumberYear = true
const resp = await $.get(loc() + '/getAidFundMemberYear')
requestLaterFun(resp, (data) => {
this.loading.memberNumberYear = false
this.memberNumberData.memberNumberYear = data
})
},
/**
* 查询med医疗补助和weightMed重疾补助
* @returns {Promise<void>}
*/
async getAidMedical() {
this.loading.aidMedical = true
const resp = await $.get(loc() + '/getAidMedical')
requestLaterFun(resp, (data) => {
this.loading.aidMedical = false
this.aidMedicalData.med = data.med
this.aidMedicalData.weightMed = data.weightmed
})
},
/**
* 查询全部补助金额
* @returns {Promise<void>}
*/
async getAidMedicalMoney() {
this.loading.aidMedicalMoney = true
const resp = await $.get(loc() + '/getAidMedicalMoney')
requestLaterFun(resp, (data) => {
this.loading.aidMedicalMoney = false
this.aidMedicalData.Money = data
})
}
},
mounted() {
this.getUnionMember()
this.getUserStateMember()
this.getPersonTypeMember()
this.getAidFundMember()
this.getAidFundMemberYear()
this.getAidMedical()
this.getAidMedicalMoney()
},
async created() {
}
})
</script>
<!--#
}
#-->
@@ -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>
<!--#
}
#-->
@@ -0,0 +1,10 @@
const commonColumns = [
{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}
]
@@ -0,0 +1,9 @@
const commonColumns = [
{prop: 'loginname', label: '工号', sortable: true},
{prop: 'user_name', label: '姓名', sortable: true},
{prop: 'unit_name', label: '所属部门', sortable: true},
{prop: 'apply_time', label: '申请时间', sortable: true},
{prop: 'disease_diagnosis', label: '疾病诊断'},
{prop: 'type', label: '补助类型', sortable: true},
{prop: 'state_id', label: '申请状态', sortable: true},
]
@@ -0,0 +1,208 @@
<!--#
layout("/layouts/platform.html"){
#-->
<style>
input[type="file"] {
display: none
}
.el-input-number input {
text-align: left !important;
}
.el-input-number__decrease, .el-input-number__increase {
display: none;
}
</style>
<div id="app" v-cloak>
<guava ref="guava" padding="0% 5%">
<template>
<el-card shadow="never">
<div class="search">
<div class="search-item">
<div class="search-item-option">
<el-input placeholder="请输入内容" clearable v-model="pageForm.searchKeyword">
<el-select v-model="pageForm.searchName" slot="prepend" placeholder="查询类型"
style="width: 100px;">
<el-option label="名称" value="typeName"></el-option>
<el-option label="编码" value="typeCode"></el-option>
</el-select>
</el-input>
</div>
</div>
<div class="search-query" style="margin-left: -100px">
<el-button type="primary" icon="el-icon-search" @click="doSearch">搜索</el-button>
</div>
</div>
</el-card>
<el-card shadow="never" class="mt10">
<table-tool label="类型列表" :app="this">
<template #func>
<el-button size="small" type="primary" icon="el-icon-edit" @click="openAdd">新增类型</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">
</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:openEdit,value:row}">
修改
</el-dropdown-item>
<el-dropdown-item :command="{action:doDelete,value:row}">
删除
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</template>
</el-table-column>
</el-table>
<!--#include("/layouts/pagination.html"){}#-->
</el-card>
</template>
</guava>
<el-dialog :visible.sync="dialogVisible" :title="formData.id?'修改':'新增'" width="40%"
:close-on-click-modal="false" :before-close="handleClose">
<vi-title title="填写疾病类型"></vi-title>
<el-form :model="formData" ref="form" :rules="formRules" label-width="80px">
<el-form-item label="类型编码" prop="typeCode">
<el-input maxlength="10" placeholder="类型编码" v-model="formData.typeCode" type="text"
:disabled="isModify"></el-input>
</el-form-item>
<el-form-item label="类型名称" prop="typeName">
<el-input maxlength="50" placeholder="类型名称" v-model="formData.typeName" type="text"></el-input>
</el-form-item>
<el-form-item label="类型备注" prop="typeNotes">
<el-input maxlength="500" placeholder="类型备注" v-model="formData.typeNotes" type="textarea"></el-input>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="addAndModify">提 交</el-button>
</span>
</el-dialog>
</div>
<script>
const vue = new Vue({
el: '#app',
mixins: [initTableMixins],
data() {
return {
isModify: false,
dialogVisible: false,
pageForm: {searchName: "typeName"},
tableColumns: [
{prop: 'typeName', label: '名称'},
{prop: 'typeCode', label: '编码'},
{prop: 'typeNotes', label: '备注'},
],
formRules: {
typeName: [{required: true, message: '请填写疾病类型名称', trigger: ['blur', 'change']}],
typeCode: [{required: true, message: '请填写疾病类型编码', trigger: ['blur', 'change']}],
}
}
},
methods: {
handleClose() {
this.formData = {id: '', typeName: '', typeCode: '', typeNotes: ''}
this.dialogVisible = false
},
openAdd() {
this.isModify = false
this.dialogVisible = true
if (this.$refs['form']) {
this.$refs['form'].resetFields()
}
this.formData = {id: '', typeName: '', typeCode: '', typeNotes: ''}
},
openEdit(row) {
this.isModify = true
this.dialogVisible = true
if (this.$refs['form']) {
this.$refs['form'].resetFields()
}
this.formData = row
},
addAndModify() {
this.$refs["form"].validate(async (valid) => {
if (valid) {
const loading = this.$loading({
lock: true,
text: '正在提交...',
spinner: 'el-icon-loading',
background: COVER_LAYER_COLOR
});
let data = clone(this.formData)
const resp = await $.post(loc() + "/addAndModify", {data: JSON.stringify(data)})
requestLaterMsgFun(vue, resp, () => {
this.pageData()
this.dialogVisible = false
}, () => {
}, () => {
loading.close()
});
}
});
},
doDelete(row) {
const {id, typeName} = row
this.$confirm('此操作将删除【' + typeName + '】疾病类型!', '提示', {type: 'warning'})
.then(async () => {
const resp = await $.post(loc() + "/doDelete", {id})
requestLaterFun(resp, () => {
this.pageData()
this.$notify.success({title: '成功', message: resp.msg});
}, () => {
this.$notify.error({title: '失败', message: resp.msg});
})
})
.catch(() => {
});
}
},
async created() {
this.pageData();
}
})
</script>
<!--#
}
#-->
@@ -0,0 +1,722 @@
<!--#
layout("/layouts/platform.html"){
#-->
<style>
input[type="file"] {
display: none
}
.el-select {
width: 100%;
}
.el-input-number input {
text-align: left !important;
}
.el-input-number__decrease, .el-input-number__increase {
display: none;
}
</style>
<div id="app" v-cloak>
<guava ref="guava" padding="0% 5%">
<template>
<search :page_form.sync="pageForm" :has_union="false" @search="doSearch"></search>
<el-card shadow="never" class="mt10">
<table-tool label="申请列表" :app="this">
<template #func>
<el-button size="small" type="primary" icon="el-icon-edit" @click="openAdd">申请医疗补助</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==='state_id'" scope="{row}">
<span :style="'color:'+row.state_color">{{row.state_name}}</span>
</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:openView,value:row}">
查看
</el-dropdown-item>
<!-- :disabled="!row.state_id||row.state_id<600"-->
<el-dropdown-item :disabled="row.state_id===90"
:command="{action:doExport,value:row}">
导出
</el-dropdown-item>
<el-dropdown-item :disabled="row.state_id!=90"
:command="{action:openEdit,value:row}">
编辑
</el-dropdown-item>
<!--# if(@shiro.hasRole('sysadmin')){ #-->
<el-dropdown-item :command="{action:openAdvancedEdit,value:row}">
高级编辑
</el-dropdown-item>
<!--# } #-->
<el-dropdown-item :disabled="row.state_id!=100 && ${@shiro.lacksRole('sysadmin')}"
:command="{action:doDelete,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>
<vi-title title="填写补助信息"></vi-title>
<el-form :model="formData" ref="form" :rules="formRules" label-position="top"
label-suffix="">
<el-row gutter="20">
<el-col :span="6">
<el-form-item prop="user_name" label="姓&emsp;&emsp;名">
<!--#if(!(@shiro.hasRole('sysadmin')||@shiro.hasRole('ltxgbc'))){#-->
<el-input readonly v-model="formData.user_name" type="text"></el-input>
<!--#}else{#-->
<el-select v-model="formData.user_id"
@change="userChange"
filterable
remote
reserve-keyword
placeholder="请输入工号或姓名查询"
:remote-method="remoteMethod">
<el-option
v-for="item in userList"
:key="item.id"
:label="item.username+'-'+item.loginname+'-'+item.unitname"
:value="item.id">
</el-option>
</el-select>
<!--#}#-->
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item prop="loginname" label="工&emsp;&emsp;号">
<!--#if(!(@shiro.hasRole('sysadmin')||@shiro.hasRole('ltxgbc'))){#-->
<el-input readonly :value="formData.loginname" type="text"></el-input>
<!--#}else{#-->
<el-input readonly v-model="formData.loginname" type="text"></el-input>
<!--#}#-->
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item prop="sex" label="性&emsp;&emsp;别">
<el-input readonly v-model="formData.sex" type="text"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item prop="user_age" label="年龄(岁)">
<el-input readonly v-model.number="formData.user_age"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row gutter="20">
<el-col :span="12">
<el-form-item prop="unit_name" label="部&emsp;&emsp;门">
<el-input readonly v-model="formData.unit_name" type="text"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="on_job" label="在职状态">
<el-input readonly v-if="formData.on_job" value="在职" type="text"></el-input>
<el-input readonly v-else value="退休" type="text"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row gutter="20">
<el-col :span="12">
<el-form-item prop="mobile" label="联系电话">
<el-input maxlength="20" placeholder="请填写联系电话" v-model="formData.mobile"
type="text"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="disease_diagnosis" label="疾病诊断">
<el-input maxlength="255" placeholder="请填写疾病诊断" v-model="formData.disease_diagnosis"
type="text"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row gutter="20">
<el-col :span="12">
<el-form-item prop="hospital" label="入住医院">
<el-input maxlength="255" placeholder="请填写入住医院" v-model="formData.hospital"
type="text"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item prop="hospital_time" label="住院时间">
<el-date-picker
style="width: 100%"
v-model="formData.hospital_time"
type="daterange"
value-format="yyyy-MM-dd"
@change="getHospitalStay"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item prop="hospital_stay" label="住院天数">
<el-input disabled placeholder="选择住院时间后计算" v-model="formData.hospital_stay"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row gutter="20">
<el-col :span="12">
<el-form-item prop="bank_name" label="开户银行名称">
<el-input maxlength="255" placeholder="请填写开户银行名称" v-model="formData.bank_name"
type="text"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="bank_account" label="银行账号">
<el-input maxlength="20" placeholder="请填写银行账号" v-model="formData.bank_account"
type="text"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row gutter="20">
<el-col :span="12">
<el-form-item prop="total_medical_expenses" label="本次住院医疗费总额">
<el-input-number style="width: 100%" v-model="formData.total_medical_expenses"
placeholder="请填写本次住院医疗费总额" controls-position="right" precision="2" :min="0"
:max="1000000000"></el-input-number>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="overall_fund_payment" label="统筹基金支付总额(医保支付)">
<el-input-number style="width: 100%" v-model="formData.overall_fund_payment"
placeholder="请填写统筹基金支付总额(医保支付)" controls-position="right" precision="2"
:min="0"
:max="1000000000"></el-input-number>
</el-form-item>
</el-col>
</el-row>
<!-- <el-row gutter="20">
<el-col :span="12">
<el-form-item prop="individual_pay" label="部分政策自付的个人支付">
<el-input-number style="width: 100%" v-model="formData.individual_pay"
placeholder="请填写部分政策字符的个人支付" controls-position="right" precision="2"
:min="0"
:max="1000000000"></el-input-number>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="overall_individual_pay" label="统筹段的个人比例自付部分">
<el-input-number style="width: 100%" v-model="formData.overall_individual_pay"
placeholder="请填写统筹段的个人比例自付部分" controls-position="right" precision="2"
:min="0"
:max="1000000000"></el-input-number>
</el-form-item>
</el-col>
</el-row>-->
<el-row gutter="20">
<el-col :span="12">
<el-form-item prop="selfPayMoney" label="个人实际支付金额">
<el-input-number style="width: 100%" v-model="formData.selfPayMoney"
placeholder="个人实际支付金额" controls-position="right" precision="2"
:min="0"
:max="1000000000"></el-input-number>
</el-form-item>
</el-col>
<!-- <el-col :span="12">
<el-form-item prop="deductible" label="起付线自付费(门槛费)">
<el-input-number style="width: 100%" v-model="formData.deductible"
placeholder="请填写起付线自付费(门槛费)" controls-position="right" precision="2"
:min="0"
:max="1000000000"></el-input-number>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="materials" label="完全政策自付中内置材料和自费药费">
<el-input-number style="width: 100%" v-model="formData.materials"
placeholder="请填写完全政策自付中内置材料和自费药费" controls-position="right" precision="2"
:min="0"
:max="1000000000"></el-input-number>
</el-form-item>
</el-col>-->
<el-col :span="12">
<el-form-item prop="insured_amount" label="其他保险报销金额">
<el-input-number style="width: 100%" v-model="formData.insured_amount"
placeholder="请填写其他保险报销金额" controls-position="right" precision="2"
:min="0"
:max="1000000000"></el-input-number>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="invoice_num" label="发票号码">
<el-input maxlength="50" placeholder="请填写发票号码" v-model="formData.invoice_num"
type="text"></el-input>
</el-form-item>
</el-col>
</el-row>
<!--<el-row gutter="20">
<el-col :span="12">
<el-form-item prop="files_invoice" label="发&emsp;&emsp;票">
<file-upload :files.sync="formData.files_invoice" card></file-upload>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="files_medical_certificate" label="诊断书">
<file-upload :files.sync="formData.files_medical_certificate" card></file-upload>
</el-form-item>
</el-col>
</el-row>-->
<!--<el-row gutter="20">
<el-col :span="12">
<el-form-item prop="files_medicare_settlement" label="医保结算单">
<file-upload :files.sync="formData.files_medicare_settlement" card></file-upload>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="files_summary_discharge" label="出院小结">
<file-upload :files.sync="formData.files_summary_discharge" card></file-upload>
</el-form-item>
</el-col>
</el-row>-->
<!-- <el-form-item prop="sign" label="签&emsp;&emsp;字">
<sign prefix="medicalAid" :qz.sync="formData.sign"></sign>
</el-form-item>-->
</el-form>
<div style="float: right;margin: 20px 0">
<template v-if="!isAdvancedEdit">
<el-button type="primary" @click="doSave()">保 存</el-button>
<!-- <el-button type="primary" @click="formData.id?doEdit():doAdd()">提 交</el-button>-->
<el-button type="primary" @click="doAdd()">提 交</el-button>
</template>
<el-button v-if="isAdvancedEdit" type="primary" @click="doAdvancedEdit()">高级修改</el-button>
</div>
</template>
<template #view>
<medical-aid-info ref="med_info"></medical-aid-info>
</template>
</guava>
</div>
<script>
const vue = new Vue({
el: '#app',
mixins: [initTableMixins],
data() {
return {
tabLoading: false,
formData: {},
tableData: [],
pageForm: {
searchName: "username",
year: new Date().getFullYear() + ""
},
formRules: {
disease_diagnosis: [{required: true, message: '必填', trigger: ['blur', 'change']}],
hospital: [{required: true, message: '必填', trigger: ['blur', 'change']}],
hospital_stay: [{required: true, message: '必填', trigger: ['blur', 'change']}],
hospital_time: [{required: true, message: '必填', trigger: ['blur', 'change']}],
mobile: [{required: true, message: '必填', trigger: ['blur', 'change']}],
total_medical_expenses: [{required: true, message: '必填', trigger: ['blur', 'change']}],
overall_fund_payment: [{required: true, message: '必填', trigger: ['blur', 'change']}],
individual_pay: [{required: true, message: '必填', trigger: ['blur', 'change']}],
overall_individual_pay: [{required: true, message: '必填', trigger: ['blur', 'change']}],
deductible: [{required: true, message: '必填', trigger: ['blur', 'change']}],
materials: [{required: true, message: '必填', trigger: ['blur', 'change']}],
bank_name: [{required: true, message: '必填', trigger: ['blur', 'change']}],
bank_account: [{required: true, message: '必填', trigger: ['blur', 'change']}],
invoice_num: [{required: true, message: '必填', trigger: ['blur', 'change']}],
files_invoice: [{required: false, message: '必填', trigger: ['blur', 'change']}],
files_summary_discharge: [{required: false, message: '必填', trigger: ['blur', 'change']}],
files_medical_certificate: [{required: false, message: '必填', trigger: ['blur', 'change']}],
files_medicare_settlement: [{required: false, message: '必填', trigger: ['blur', 'change']}],
selfPayMoney: [{required: true, message: '必填', trigger: ['blur', 'change']}],
insured_amount: [{required: true, message: '必填', trigger: ['blur', 'change']}],
},
subDis: false,
fundMembers: "${@shiro.getPrincipalProperty('sfjrdbjj')}" === '1',
tableColumns: [
{prop: 'loginname', label: '工号'},
{prop: 'user_name', label: '姓名',},
{prop: 'apply_time', label: '申请时间', sortable: true},
{prop: 'disease_diagnosis', label: '疾病诊断'},
{prop: 'hospital', label: '入住医院'},
{prop: 'state_id', label: '申请状态', sortable: true},
],
userList: [],
isAdvancedEdit: false
}
},
components: {
'guava': httpVueLoader('/components/plugins/Guava.vue'),
'file-upload': httpVueLoader('/components/plugins/FileUpload.vue'),
'medical-aid-info': httpVueLoader('/components/medicalaid/MedicalAidInfo.vue?v=1.0.2'),
'sign': httpVueLoader('/components/sign/sign.vue?v=2.0.0'),
'search': httpVueLoader('/components/medicalaid/MedicalAidSearch.vue?v=1.0.0'),
},
methods: {
userChange(val) {
console.log(val)
const user = this.userList.find(v => v.id === val)
this.$set(this.formData, 'loginname', user.loginname)
this.$set(this.formData, 'user_name', user.username)
this.$set(this.formData, 'unit_name', user.unitname)
this.$set(this.formData, 'sex', user.sex)
this.$set(this.formData, 'user_age', user.user_age)
this.$set(this.formData, 'on_job', user.userstate === '在职')
this.$set(this.formData, 'mobile', user.mobile)
this.$set(this.formData, 'bank_account', user.bank_number)
this.$set(this.formData, 'bank_name', user.bank_number ? bankCardAttribution(user.bank_number).bankName : '')
},
async remoteMethod(query) {
const {data} = await $.get('/platform/fw/medicalAid/common/findAidUser', {query})
this.userList = data.list
},
doExport(row) {
location.href = "/platform/fw/medicalAid/common/exportDoc?id=" + row.id
},
getHospitalStay(val) {
this.$set(this.formData, "hospital_stay", moment(val[1]).diff(moment(val[0]), 'day'))
},
openView(row) {
const {id} = row
this.$refs.med_info.getInfo(id)
this.$refs.guava.view()
},
async doEdit() {
this.$refs["form"].validate(async (valid) => {
if (valid) {
const formData = JSON.parse(JSON.stringify(this.formData))
formData.hospital_time = formData.hospital_time.toString()
const loading = this.$loading({
lock: true,
text: '正在提交...',
spinner: 'el-icon-loading',
background: COVER_LAYER_COLOR
});
const resp = await $.post("/platform/fw/medicalAid/common/doEdit", {data: JSON.stringify(formData)})
closeLoadingFunc(loading, resp, async () => {
this.pageData()
this.$refs.guava.index()
}, (data, msg) => {
this.$message.error(msg);
})
} else {
this.$notify({
title: '警告',
message: '存在未填写的必填项',
type: 'warning'
});
}
});
},
async openEdit(row) {
const {id} = row
this.formData = {}
this.$set(row, "editLoading", true)
const resp = await $.get("/platform/fw/medicalAid/common/findOne", {id})
requestLaterFun(resp, (v) => {
this.$set(row, "editLoading", false)
medicalAid.toFormData(v)
this.formData = v
this.userList.unshift({
id: v.user_id,
username: v.user_name,
loginname: v.loginname,
unitname: v.unit_name
})
this.$refs.guava.edit()
})
},
async openAdvancedEdit(row) {
this.isAdvancedEdit = true
const {id} = row
this.formData = {}
this.$set(row, "editLoading", true)
const resp = await $.get("/platform/fw/medicalAid/common/findOne", {id})
requestLaterFun(resp, (v) => {
this.$set(row, "editLoading", false)
medicalAid.toFormData(v)
this.formData = v
this.userList.unshift({
id: v.user_id,
username: v.user_name,
loginname: v.loginname,
unitname: v.unit_name
})
this.$refs.guava.edit()
})
},
async doAdvancedEdit() {
const {state_id} = this.formData
if (state_id > 300) {
const confirm = await this.$confirm('本次补助工会会计已经审核,如果有金额的变化,本记录将重新回到补助申请状态,需重新审核,请确认是否编辑?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
if (confirm !== 'confirm') return
}
const valid = await this.$refs["form"].validate()
if (valid) {
const formData = JSON.parse(JSON.stringify(this.formData))
formData.hospital_time = formData.hospital_time.toString()
const loading = this.$loading({
lock: true,
text: '正在修改...',
spinner: 'el-icon-loading',
background: COVER_LAYER_COLOR
});
const resp = await $.post("/platform/fw/medicalAid/common/doAdvancedEdit", {data: JSON.stringify(formData)})
closeLoadingFunc(loading, resp, async () => {
this.pageData()
this.$refs.guava.index()
this.isAdvancedEdit = false
}, (data, msg) => {
this.$message.error(msg);
})
} else {
this.$notify({
title: '警告',
message: '存在未填写的必填项',
type: 'warning'
});
}
},
doDelete(row) {
const {id} = row
this.$confirm('确定要删除吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
callback: async (a, b) => {
if ("confirm" == a) {//确认后再执行
this.$set(row, "delLoading", true)
const resp = await $.post("/platform/fw/medicalAid/common/doDelete", {id: id});
requestLaterMsgFun(vue, resp, async () => {
this.pageData()
}, () => {
}, () => {
this.$set(row, "delLoading", false)
})
}
}
});
},
async doAdd() {
this.$refs["form"].validate(async (valid) => {
if (valid) {
this.$confirm('是否确定提交?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(async () => {
const formData = JSON.parse(JSON.stringify(this.formData))
formData.sign = null
formData.hospital_time = formData.hospital_time.toString()
const loading = this.$loading({
lock: true,
text: '正在提交...',
spinner: 'el-icon-loading',
background: COVER_LAYER_COLOR
});
const resp = await $.post(location.href + "/doAdd", {
data: JSON.stringify(formData),
sign: this.formData.sign
})
closeLoadingFunc(loading, resp, async () => {
this.pageData()
this.$refs.guava.index()
}, (data, msg) => {
this.$message.error(msg);
})
}).catch(() => {
});
} else {
this.$notify({
title: '警告',
message: '存在未填写的必填项',
type: 'warning'
});
}
});
},
async doSave() {
const validResult = []
this.$refs['form'].validateField(['disease_diagnosis', 'hospital'], (errMsg) => {
validResult.push(errMsg)
})
if (validResult.every(v => v === '')) {
const formData = JSON.parse(JSON.stringify(this.formData))
formData.sign = null
formData.hospital_time = formData.hospital_time.toString()
const loading = this.$loading({
lock: true,
text: '正在保存...',
spinner: 'el-icon-loading',
background: COVER_LAYER_COLOR
});
const resp = await $.post(location.href + "/doSave", {
data: JSON.stringify(formData),
sign: this.formData.sign
})
closeLoadingFunc(loading, resp, async () => {
this.pageData()
this.$refs.guava.index()
}, (data, msg) => {
this.$message.error(msg);
})
} else {
this.notifyWarning('保存至少填写疾病诊断和入住医院两个信息')
}
},
openAdd() {
if ('${@shiro.getPrincipalProperty("aidFundMember")}' === '0') {
this.$confirm('您还不是基金会员,请前往基金会员管理系统申请', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
window.location.href = base + "/platform/aid/fund/apply";
}).catch(() => {
});
return
}
if (Boolean('${@shiro.hasRole("sysadmin")}' === 'true') || Boolean('${@shiro.hasRole("ltxgbc")}' === 'true')) {
this.formData = {
files: [],
hospital_time: [],
user_name: '',
sex: '',
user_age: '',
unit_name: '',
mobile: '',
bank_account: '',
loginname: '',
bank_name: '',
on_job: false,
}
} else {
this.formData = {
files: [],
hospital_time: [],
user_id: '${@shiro.getPrincipalProperty("id")}',
user_name: '${@shiro.getPrincipalProperty("username")}',
sex: '${@shiro.getPrincipalProperty("sex")}',
user_age: '${@shiro.getPrincipalProperty("birthday")}' ? moment().diff(moment('${@shiro.getPrincipalProperty("birthday")}'), 'years') : '',
unit_name: '${@shiro.getPrincipalProperty("unit").getName()}',
mobile: '${@shiro.getPrincipalProperty("mobile")}',
bank_account: '${@shiro.getPrincipalProperty("bank_number")}',
loginname: Boolean('${@shiro.hasRole("sysadmin")}' === 'true') ? '' : '${@shiro.getPrincipalProperty("loginname")}',
bank_name: '${@shiro.getPrincipalProperty("bank_number")}' ? bankCardAttribution('${@shiro.getPrincipalProperty("bank_number")}').bankName : '',
}
const zzzt = '${@shiro.getPrincipalProperty("userState")}'
if (zzzt === '在职') {
this.$set(this.formData, "on_job", true)
} else if (zzzt === '退休') {
this.$set(this.formData, "on_job", false)
}
}
this.$refs.guava.edit()
if (this.$refs['form']) {
this.$refs['form'].resetFields()
}
},
},
async created() {
this.pageData();
console.log(Boolean('${@shiro.hasRole("sysadmin")}' === 'true') || Boolean('${@shiro.hasRole("ltxgbc")}' === 'true'))
}
})
</script>
<!--#
}
#-->
@@ -0,0 +1,522 @@
<!--#
layout("/layouts/platform.html"){
#-->
<style>
input[type="file"] {
display: none
}
.el-input-number input {
text-align: left !important;
}
.el-input-number__decrease, .el-input-number__increase {
display: none;
}
</style>
<div id="app" v-cloak>
<guava ref="guava" padding="0% 5%">
<template>
<search :page_form.sync="pageForm" :has_union="false" @search="doSearch"></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">
<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==='state_id'" scope="{row}">
<span v-if="row.id" :style="'color:'+row.state_color">{{row.state_name}}</span>
<span v-else style="color: #1890ff">等待办理</span>
</template>
<template v-else-if="column.prop==='apply_time'" scope="{row}">
{{row.apply_time?row.apply_time:'暂无'}}
</template>
<template v-else-if="column.prop==='type'" scope="{row:{type}}">
<div v-html="medicalAid.elementType(type)"></div>
</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 :disabled="!row.id" :command="{action:openView,value:row}">
查看
</el-dropdown-item>
<el-dropdown-item :disabled="row.id"
:command="{action:openAdd,value:row}">
办理
</el-dropdown-item>
<el-dropdown-item :disabled="!row.state_id||row.state_id<600"
:command="{action:doExport,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>
<el-form :model="formData" ref="form" :rules="formRules" label-position="top"
label-suffix="">
<vi-title title="补助信息"></vi-title>
<el-row gutter="20">
<el-col :span="12">
<el-form-item prop="user_name" label="姓&emsp;&emsp;名">
<el-input disabled v-model="formData.user_name" type="text"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item prop="sex" label="性&emsp;&emsp;别">
<el-input disabled v-model="formData.sex" type="text"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item prop="user_age" label="年龄(岁)">
<el-input disabled v-model.number="formData.user_age"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row gutter="20">
<el-col :span="12">
<el-form-item prop="unit_name" label="部&emsp;&emsp;门">
<el-input disabled v-model="formData.unit_name" type="text"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="on_job" label="在职状态">
<el-input disabled v-if="formData.on_job" value="在职" type="text"></el-input>
<el-input disabled v-else value="退休" type="text"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row gutter="20">
<el-col :span="12">
<el-form-item prop="mobile" label="联系电话">
<el-input maxlength="20" placeholder="请填写联系电话" v-model="formData.mobile"
type="text"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="disease_diagnosis" label="疾病诊断">
<el-input maxlength="255" placeholder="请填写疾病诊断" v-model="formData.disease_diagnosis"
type="text"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="bank_name" label="开户银行名称">
<el-input maxlength="255" placeholder="请填写开户银行名称" v-model="formData.bank_name"
type="text"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="bank_account" label="银行账号">
<el-input maxlength="20" placeholder="请填写银行账号" v-model="formData.bank_account"
type="text"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row gutter="20">
<el-col :span="12">
<el-form-item label="住院医疗总费用(元)">
<el-input-number style="width: 100%" v-model="formData.total_medical_expenses"
disabled
placeholder="请填写住院医疗总费用" controls-position="right" precision="2" :min="0"
:max="1000000000"></el-input-number>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="统筹基金支付数(元)">
<el-input-number style="width: 100%" v-model="formData.overall_fund_payment"
disabled
placeholder="请填写统筹基金支付数" controls-position="right" precision="2"
:min="0"
:max="1000000000"></el-input-number>
</el-form-item>
</el-col>
</el-row>
<el-row gutter="20">
<el-col :span="12">
<el-form-item label="个人实际支付金额(元)">
<el-input-number style="width: 100%" v-model="formData.selfPayMoney"
disabled
placeholder="个人实际支付金额" controls-position="right" precision="2" :min="0"
:max="1000000000"></el-input-number>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="其他保险报销金额">
<el-input-number style="width: 100%" v-model="formData.insured_amount"
disabled
placeholder="请填写其他保险报销金额" controls-position="right" precision="2"
:min="0"
:max="1000000000"></el-input-number>
</el-form-item>
</el-col>
</el-row>
<el-row gutter="20">
<el-col :span="12">
<el-form-item label="学校医疗补助已补助金额(元)">
<el-input-number style="width: 100%" v-model="formData.already_subsidized"
disabled
placeholder="请填写学校医疗补助已补助金额" controls-position="right" precision="2"
:min="0"
:max="1000000000"></el-input-number>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="selfPayMoney" label="个人实际支付部分合计(元)">
<el-input-number style="width: 100%" v-model="formData.grsjzfbfhj"
placeholder="请填写个人实际支付部分合计金额" controls-position="right" precision="2"
:min="0"
:max="1000000000"></el-input-number>
</el-form-item>
</el-col>
</el-row>
<vi-title title="办理信息"></vi-title>
<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.time" disabled></el-input>
</el-form-item>
</el-col>
</el-row>
<el-form-item prop="total_grant" label="补助金额">
<el-input-number style="width: 100%" v-model="formData.total_grant"
placeholder="请填写补助金额" controls-position="right" precision="2"
:min="0"
:max="1000000000"></el-input-number>
</el-form-item>
<el-form-item prop="idea" label="办理意见">
<el-input type="textarea" v-model="formData.idea" rows="4" maxlength="500"
placeholder="请填写您的审核意见"></el-input>
</el-form-item>
<el-form-item prop="sign" label="签&emsp;&emsp;字">
<sign prefix="medicalAid" :qz.sync="formData.sign"></sign>
</el-form-item>
</el-form>
<div style="float: right;margin: 20px 0">
<el-button type="primary" @click="formData.id?doEdit():doAdd()">提 交</el-button>
</div>
</template>
<template #view>
<medical-aid-info ref="med_info"></medical-aid-info>
</template>
</guava>
</div>
<script>
const vue = new Vue({
el: '#app',
mixins: [initTableMixins],
data() {
return {
addDialogVisible: false,
editDialogVisible: false,
tabLoading: false,
formData: {},
tableData: [],
pageForm: {
searchName: "username",
year: new Date().getFullYear() + ""
},
formRules: {
already_total_medical_expenses: [{required: true, message: '必填', trigger: ['blur', 'change']}],
already_overall_fund_payment: [{required: true, message: '必填', trigger: ['blur', 'change']}],
individual_pay: [{required: true, message: '必填', trigger: ['blur', 'change']}],
already_subsidized: [{required: true, message: '必填', trigger: ['blur', 'change']}],
mobile: [{required: true, message: '必填', trigger: ['blur', 'change']}],
bank_name: [{required: true, message: '必填', trigger: ['blur', 'change']}],
bank_account: [{required: true, message: '必填', trigger: ['blur', 'change']}],
disease_diagnosis: [{required: true, message: '必填', trigger: ['blur', 'change']}],
invoice_num: [{required: true, message: '必填', trigger: ['blur', 'change']}],
files_invoice: [{required: true, message: '必填', trigger: ['blur', 'change']}],
files_summary_discharge: [{required: true, message: '必填', trigger: ['blur', 'change']}],
files_medical_certificate: [{required: true, message: '必填', trigger: ['blur', 'change']}],
files_medicare_settlement: [{required: true, message: '必填', trigger: ['blur', 'change']}],
},
subDis: false,
addLoading: false,
fundMembers: "${@shiro.getPrincipalProperty('sfjrdbjj')}" === '1',
tableColumns: [
{prop: 'loginname', label: '工号'},
{prop: 'username', label: '姓名',},
{prop: 'disease_diagnosis', label: '疾病诊断'},
{prop: 'total', label: '自付总费用', sortable: true},
{prop: 'apply_time', label: '办理时间', sortable: true},
{prop: 'state_id', label: '状态', sortable: true},
]
}
},
components: {
'guava': httpVueLoader('/components/plugins/Guava.vue'),
'file-upload': httpVueLoader('/components/plugins/FileUpload.vue'),
'medical-aid-info': httpVueLoader('/components/medicalaid/MedicalAidInfo.vue?v=1.0.1'),
'sign': httpVueLoader('/components/sign/sign.vue?v=2.0.0'),
'search': httpVueLoader('/components/medicalaid/MedicalAidSearch.vue?v=1.0.0'),
},
methods: {
doExport(row) {
location.href = "/platform/fw/medicalAid/common/exportDoc?id=" + row.id
},
getHospitalStay(val) {
this.$set(this.formData, "hospital_stay", moment(val[1]).diff(moment(val[0]), 'day'))
},
openView(row) {
const {id} = row
this.$refs.med_info.getInfo(id)
this.$refs.guava.view()
},
async doEdit() {
this.$refs["form"].validate(async (valid) => {
if (valid) {
const formData = JSON.parse(JSON.stringify(this.formData))
const loading = this.$loading({
lock: true,
text: '正在提交...',
spinner: 'el-icon-loading',
background: COVER_LAYER_COLOR
});
const resp = await $.post("/platform/fw/medicalAid/common/doEdit", {data: JSON.stringify(formData)})
closeLoadingFunc(loading, resp, async () => {
this.pageData()
this.$refs.guava.index()
}, (data, msg) => {
this.$message.error(msg);
})
} else {
this.$notify({
title: '警告',
message: '存在未填写的必填项',
type: 'warning'
});
}
});
},
async openEdit(row) {
const {id} = row
this.formData = {}
this.$set(row, "editLoading", true)
const resp = await $.get("/platform/fw/medicalAid/common/findOne", {id})
requestLaterFun(resp, (v) => {
this.$set(row, "editLoading", false)
medicalAid.toFormData(v)
this.formData = v
this.$refs.guava.edit()
console.log('1111111111')
if (v.bank_account) {
this.$set(this.formData, 'bank_name', bankCardAttribution(v.bank_account).bankName)
}
})
},
doDelete(row) {
const {id} = row
this.$confirm('确定要删除吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
callback: async (a, b) => {
if ("confirm" == a) {
this.$set(row, "delLoading", true)
const resp = await $.post("/platform/fw/medicalAid/common/doDelete", {id: id});
requestLaterMsgFun(vue, resp, async () => {
this.pageData()
}, () => {
}, () => {
this.$set(row, "delLoading", false)
})
}
}
});
},
async doAdd() {
this.$refs["form"].validate(async (valid) => {
if (valid) {
this.$confirm('是否确定提交?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(async () => {
const formData = clone(this.formData)
formData.sign = null
const loading = this.$loading({
lock: true,
text: '正在提交...',
spinner: 'el-icon-loading',
background: COVER_LAYER_COLOR
});
const resp = await $.post(location.href + "/doAdd", {
data: JSON.stringify(formData),
sign: this.formData.sign,
idea: this.formData.idea,
total_grant: this.formData.total_grant,
})
closeLoadingFunc(loading, resp, async () => {
this.pageData()
this.$refs.guava.index()
}, (data, msg) => {
this.$message.error(msg);
})
}).catch(() => {
});
} else {
this.$notify({
title: '警告',
message: '存在未填写的必填项',
type: 'warning'
});
}
});
},
async openAdd(row) {
console.log(row)
const {user_id, year, disease_diagnosis, total, disease_type_code, muy_id} = row
this.$set(row, "handleLoading", true)
// const {data} = await $.get(location.href + "/getAlready", {userid: user_id, year})
const {data} = await $.get(location.href + "/findApplyInfoByMuyId", {muyId: muy_id})
this.$set(row, "handleLoading", false)
data.user_age = data.birthday ? moment().diff(moment(data.birthday), 'years') : ''
data.bank_name = data.bank_account ? bankCardAttribution(data.bank_account).bankName : ''
data.disease_diagnosis = disease_diagnosis
if (data.userState === '在职') {
data.on_job = true
} else if (data.userState === '退休') {
data.on_job = false
}
//办理的信息
data.medicalaid_user_year_id = muy_id
data.disease_type_code = disease_type_code
data.username = "${@shiro.getPrincipalProperty('username')}"
data.time = moment().format('YYYY-MM-DD')
data.total_grant = this.getTotalGrant(total)
data.idea = '按照学校《教职工病伤医疗互助基金实施办法》规定,本次共补助金额为:\n' + capitalAmount(data.total_grant) + '' + data.total_grant + ')。'
this.formData = data
this.$refs.guava.edit()
if (this.$refs['form']) {
this.$refs['form'].resetFields()
}
},
getTotalGrant(total) {
let totalGrant = 0
const ten = 10000
const mon_1_3 = 3 * ten * 0.55
const mon_3_6 = 3 * ten * 0.60
const mon_6_9 = 3 * ten * 0.65
const mon_9_12 = 3 * ten * 0.70
const mon_12_15 = 3 * ten * 0.75
//起付线
// let money = total - 10000;
let money = total;
if (money < 0) {
return totalGrant;
}
if (money >= 15 * ten) {
totalGrant += (money - 15 * ten) * 0.80;
totalGrant += (mon_1_3 + mon_3_6 + mon_6_9 + mon_9_12 + mon_12_15);
} else if (12 * ten <= money && money < 15 * ten) {
totalGrant += (money - 12 * ten) * 0.75;
totalGrant += (mon_1_3 + mon_3_6 + mon_6_9 + mon_9_12);
} else if (9 * ten <= money && money < 12 * ten) {
totalGrant += (money - 9 * ten) * 0.70;
totalGrant += (mon_1_3 + mon_3_6 + mon_6_9);
} else if (6 * ten <= money && money < 9 * ten) {
totalGrant += (money - 6 * ten) * 0.65;
totalGrant += (mon_1_3 + mon_3_6);
} else if (3 * ten <= money && money < 6 * ten) {
totalGrant += (money - 3 * ten) * 0.60 + mon_1_3;
} else if (money < 3 * ten) {
totalGrant += money * 0.55;
}
return totalGrant.toFixed(0)
},
},
async created() {
this.pageData();
}
})
</script>
<!--#
}
#-->
@@ -0,0 +1,394 @@
<!--#
layout("/layouts/platform.html"){
#-->
<style>
input[type="file"] {
display: none
}
.el-input-number input {
text-align: left !important;
}
.el-input-number__decrease, .el-input-number__increase {
display: none;
}
</style>
<div id="app" class="platform" v-cloak>
<guava ref="guava" padding="0% 5%">
<template>
<search :page_form.sync="pageForm" @search="doSearch"></search>
<el-card shadow="never" class="mt10">
<table-tool label="申请列表" :app="this">
<template #func>
<el-button size="small" type="primary" icon="el-icon-edit" @click="openAdd">申请医疗补助</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==='state_id'" scope="{row}">
<span :style="'color:'+row.state_color">{{row.state_name}}</span>
</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:openView,value:row}">
查看
</el-dropdown-item>
<el-dropdown-item :disabled="!row.state_id||row.state_id<600"
:command="{action:doExport,value:row}">
导出
</el-dropdown-item>
<el-dropdown-item :disabled="row.state_id!=100"
:command="{action:openEdit,value:row}">
编辑
</el-dropdown-item>
<el-dropdown-item :disabled="row.state_id!=100"
:command="{action:doDelete,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>
<vi-title title="填写补助信息"></vi-title>
<el-form :model="formData" ref="form" :rules="formRules" label-position="top"
label-suffix="">
<el-row gutter="20">
<el-col :span="12">
<el-form-item prop="user_name" label="姓&emsp;&emsp;名">
<el-input disabled v-model="formData.user_name" type="text"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item prop="sex" label="性&emsp;&emsp;别">
<el-input disabled v-model="formData.sex" type="text"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item prop="user_age" label="年龄(岁)">
<el-input disabled v-model.number="formData.user_age"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row gutter="20">
<el-col :span="12">
<el-form-item prop="unit_name" label="部&emsp;&emsp;门">
<el-input disabled v-model="formData.unit_name" type="text"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="on_job" label="在职状态">
<el-input disabled v-if="formData.on_job" value="在职" type="text"></el-input>
<el-input disabled v-else value="退休" type="text"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row gutter="20">
<el-col :span="12">
<el-form-item prop="mobile" label="联系电话">
<el-input maxlength="20" placeholder="请填写联系电话" v-model="formData.mobile"
type="text"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="disease_diagnosis" label="疾病诊断">
<el-input maxlength="255" placeholder="请填写疾病诊断" v-model="formData.disease_diagnosis"
type="text"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="bank_name" label="开户银行名称">
<el-input maxlength="255" placeholder="请填写开户银行名称" v-model="formData.bank_name"
type="text"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="bank_account" label="银行账号">
<el-input maxlength="20" placeholder="请填写银行账号" v-model="formData.bank_account"
type="text"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row gutter="20">
<el-col :span="12">
<el-form-item prop="special_clinic_self_pay" label="特殊门诊个人自付部分总额">
<el-input-number style="width: 100%" v-model="formData.special_clinic_self_pay"
placeholder="请填写特殊门诊个人自付部分总额" controls-position="right" precision="2"
:min="0"
:max="1000000000"></el-input-number>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="invoice_num" label="发票号码">
<el-input maxlength="50" placeholder="请填写发票号码" v-model="formData.invoice_num"
type="text"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row gutter="20">
<el-col :span="12">
<el-form-item prop="files_invoice" label="发&emsp;&emsp;票">
<file-upload :files.sync="formData.files_invoice" card></file-upload>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="files_medical_certificate" label="诊断书">
<file-upload :files.sync="formData.files_medical_certificate" card></file-upload>
</el-form-item>
</el-col>
</el-row>
<el-row gutter="20">
<el-col :span="12">
<el-form-item prop="files_medicare_settlement" label="医保结算单">
<file-upload :files.sync="formData.files_medicare_settlement" card></file-upload>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="files_summary_discharge" label="出院小结">
<file-upload :files.sync="formData.files_summary_discharge" card></file-upload>
</el-form-item>
</el-col>
</el-row>
<el-form-item prop="sign" label="签&emsp;&emsp;字">
<sign prefix="medicalAid" :qz.sync="formData.sign"></sign>
</el-form-item>
</el-form>
<div style="float: right;margin: 20px 0">
<el-button type="primary" @click="formData.id?doEdit():doAdd()">提 交</el-button>
</div>
</template>
<template #view>
<medical-aid-info ref="med_info"></medical-aid-info>
</template>
</guava>
</div>
<script>
const vue = new Vue({
el: '#app',
mixins: [initTableMixins],
data() {
return {
addDialogVisible: false,
editDialogVisible: false,
tabLoading: false,
formData: {},
tableData: [],
pageForm: {
searchName: "username",
year: new Date().getFullYear() + ""
},
formRules: {
special_clinic_self_pay: [{required: true, message: '必填', trigger: ['blur', 'change']}],
mobile: [{required: true, message: '必填', trigger: ['blur', 'change']}],
bank_name: [{required: true, message: '必填', trigger: ['blur', 'change']}],
bank_account: [{required: true, message: '必填', trigger: ['blur', 'change']}],
disease_diagnosis: [{required: true, message: '必填', trigger: ['blur', 'change']}],
invoice_num: [{required: true, message: '必填', trigger: ['blur', 'change']}],
files_invoice: [{required: true, message: '必填', trigger: ['blur', 'change']}],
files_summary_discharge: [{required: true, message: '必填', trigger: ['blur', 'change']}],
files_medical_certificate: [{required: true, message: '必填', trigger: ['blur', 'change']}],
files_medicare_settlement: [{required: true, message: '必填', trigger: ['blur', 'change']}],
},
subDis: false,
fundMembers: "${@shiro.getPrincipalProperty('sfjrdbjj')}" === '1',
tableColumns: [
{prop: 'loginname', label: '工号'},
{prop: 'user_name', label: '姓名',},
{prop: 'apply_time', label: '申请时间', sortable: true},
{prop: 'disease_diagnosis', label: '疾病诊断'},
{prop: 'state_id', label: '申请状态', sortable: true},
]
}
},
components: {
'guava': httpVueLoader('/components/plugins/Guava.vue'),
'file-upload': httpVueLoader('/components/plugins/FileUpload.vue'),
'medical-aid-info': httpVueLoader('/components/medicalaid/MedicalAidInfo.vue?v=1.0.1'),
'sign': httpVueLoader('/components/sign/sign.vue?v=2.0.0'),
'search': httpVueLoader('/components/medicalaid/MedicalAidSearch.vue?v=1.0.0'),
},
methods: {
doExport(row) {
location.href = "/platform/fw/medicalAid/common/exportDoc?id=" + row.id
},
getHospitalStay(val) {
this.$set(this.formData, "hospital_stay", moment(val[1]).diff(moment(val[0]), 'day'))
},
openView(row) {
const {id} = row
this.$refs.med_info.getInfo(id)
this.$refs.guava.view()
},
async doEdit() {
this.$refs["form"].validate(async (valid) => {
if (valid) {
const formData = JSON.parse(JSON.stringify(this.formData))
const loading = this.$loading({
lock: true,
text: '正在提交...',
spinner: 'el-icon-loading',
background: COVER_LAYER_COLOR
});
const resp = await $.post("/platform/fw/medicalAid/common/doEdit", {data: JSON.stringify(formData)})
closeLoadingFunc(loading, resp, async () => {
this.pageData()
this.$refs.guava.index()
}, (data, msg) => {
this.$message.error(msg);
})
}
});
},
async openEdit(row) {
const {id} = row
this.formData = {}
this.$set(row, "editLoading", true)
const resp = await $.get("/platform/fw/medicalAid/common/findOne", {id})
requestLaterFun(resp, (v) => {
this.$set(row, "editLoading", false)
medicalAid.toFormData(v)
this.formData = v
this.$refs.guava.edit()
})
},
doDelete(row) {
const {id} = row
this.$confirm('确定要删除吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
callback: async (a, b) => {
if ("confirm" == a) {//确认后再执行
this.$set(row, "delLoading", true)
const resp = await $.post("/platform/fw/medicalAid/common/doDelete", {id: id});
requestLaterMsgFun(vue, resp, async () => {
this.pageData()
}, () => {
}, () => {
this.$set(row, "delLoading", false)
})
}
}
});
},
async doAdd() {
this.$refs["form"].validate(async (valid) => {
if (valid) {
const formData = JSON.parse(JSON.stringify(this.formData))
formData.sign = null
const loading = this.$loading({
lock: true,
text: '正在提交...',
spinner: 'el-icon-loading',
background: COVER_LAYER_COLOR
});
const resp = await $.post(location.href + "/doAdd", {
data: JSON.stringify(formData),
sign: this.formData.sign
})
closeLoadingFunc(loading, resp, async () => {
this.pageData()
this.$refs.guava.index()
}, (data, msg) => {
this.$message.error(msg);
})
}
});
},
async openAdd() {
this.formData = {
files: [],
hospital_time: [],
user_name: '${@shiro.getPrincipalProperty("username")}',
sex: '${@shiro.getPrincipalProperty("sex")}',
user_age: '${@shiro.getPrincipalProperty("birthday")}' ? moment().diff(moment('${@shiro.getPrincipalProperty("birthday")}'), 'years') : '',
unit_name: '${@shiro.getPrincipalProperty("unit").getName()}',
mobile: '${@shiro.getPrincipalProperty("mobile")}',
bank_account: '${@shiro.getPrincipalProperty("bank_number")}',
bank_name: '${@shiro.getPrincipalProperty("bank_number")}' ? bankCardAttribution('${@shiro.getPrincipalProperty("bank_number")}').bankName : '',
}
const zzzt = '${@shiro.getPrincipalProperty("zzzt")}'
if (zzzt == '在职') {
this.$set(this.formData, "on_job", true)
} else if (zzzt == '退休') {
this.$set(this.formData, "on_job", false)
}
this.$refs.guava.edit()
if (this.$refs['form']) {
this.$refs['form'].resetFields()
}
},
},
async created() {
this.pageData();
}
})
</script>
<!--#
}
#-->
@@ -0,0 +1,235 @@
<!--#
layout("/layouts/platform.html"){
#-->
<!--
汇总
-->
<style>
input[type="file"] {
display: none
}
.el-input-number input {
text-align: left !important;
}
.el-input-number__decrease, .el-input-number__increase {
display: none;
}
.el-table td {
transition: all 5000ms !important;
}
</style>
<div id="app" v-cloak>
<guava ref="guava" padding="0% 5%">
<template>
<el-card shadow="never">
<div class="btn-group tool-button mt5">
<el-date-picker
v-model="pageForm.year"
type="year"
value-format="yyyy" style="width: 150px"
placeholder="选择年" @change="doSearch">
</el-date-picker>
</div>
<div class="btn-group tool-button mt5">
<el-select v-model="pageForm.type" clearable placeholder="补助类型" @change="doSearch">
<el-option
v-for="item in medicalAid.med_types"
:key="item.val"
:label="item.lab"
:value="item.val">
</el-option>
</el-select>
</div>
<div class="btn-group tool-button mt5">
<el-select placeholder="所属工会" v-model="pageForm.unionId" style="width: 100%;"
clearable="true"
@change="flushUnits" @clear="flushUnits"
filterable="true">
<el-option v-for="item in unions" :label="item.unionname" :value="item.id"></el-option>
</el-select>
</div>
<div class="btn-group tool-button mt5">
<el-select v-model="pageForm.unitid" filterable placeholder="根据部门查询" clearable @change="doSearch">
<el-option
v-for="item in units"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</div>
<div class="btn-group tool-button mt5">
<el-input placeholder="请输入内容" clearable v-model="pageForm.searchKeyword"
@keyup.enter.native="doSearch">
<el-select v-model="pageForm.searchName" slot="prepend" placeholder="查询类型"
style="width: 120px;">
<el-option label="姓名" value="username"></el-option>
<el-option label="工号" value="loginname"></el-option>
</el-select>
</el-input>
</div>
<div class="btn-group tool-button mt5">
<el-button type="primary" icon="el-icon-search" @click="doSearch"></el-button>
</div>
<div class="pull-right offscreen-right mt5">
<el-dropdown @command="downloadCommand">
<el-button icon="el-icon-download">导出名单 <i class="el-icon-arrow-down el-icon--right"></i>
</el-button>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item v-for="item in [{val:true,lab:'在职'},{val:false,lab:'退休'}]"
:command="{val:item.val}">{{item.lab}}
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
</el-card>
<el-card class="mt10" shadow="never">
<el-table :data="tableData" border stripe style="width: 100%" row-key="id" @sort-change="pageOrder"
v-loading="tabLoading">
<el-table-column align="center" header-align="center" type="index" :index="indexMethod" label="序号"
width="80px"></el-table-column>
<el-table-column label="姓名" prop="user_name" header-align="center" width="150px"
align="center"></el-table-column>
<el-table-column label="部门" prop="unit_name" header-align="center" sortable width="200px"
align="center"></el-table-column>
<el-table-column label="疾病诊断" prop="disease_diagnosis" header-align="center" width="300px"
align="center"></el-table-column>
<el-table-column label="住院医疗费总额" v-if="pageForm.type==1" prop="total_medical_expenses"
min-width="150px"
header-align="center" sortable
align="center"></el-table-column>
<el-table-column label="统筹支付总额" v-if="pageForm.type==1" prop="overall_fund_payment"
min-width="150px"
header-align="center" sortable
align="center"></el-table-column>
<el-table-column label="政策部分自付" v-if="pageForm.type==1" prop="individual_pay" header-align="center"
min-width="150px"
sortable
align="center"></el-table-column>
<el-table-column label="比例自付费" v-if="pageForm.type==1" prop="overall_individual_pay"
min-width="150px"
header-align="center" sortable
align="center"></el-table-column>
<el-table-column label="应付起付线(门槛费)" v-if="pageForm.type==1" prop="deductible" min-width="150px"
header-align="center" sortable
align="center"></el-table-column>
<el-table-column label="完全政策自付内置材料和自付部分" v-if="pageForm.type==1" prop="materials" min-width="150px"
header-align="center" sortable
align="center"></el-table-column>
<el-table-column label="医疗补助已补助金额" v-if="pageForm.type===2" prop="already_subsidized"
min-width="150px"
header-align="center" sortable
align="center"></el-table-column>
<el-table-column label="统筹支付总额" v-if="pageForm.type===2" prop="already_overall_fund_payment"
min-width="150px"
header-align="center" sortable
align="center"></el-table-column>
<el-table-column label="住院医疗费总额" v-if="pageForm.type===2" prop="already_total_medical_expenses"
min-width="150px"
header-align="center" sortable
align="center"></el-table-column>
<el-table-column label="特殊门诊个人自付部分总额" v-if="pageForm.type===3" prop="special_clinic_self_pay"
min-width="150px"
header-align="center" sortable
align="center"></el-table-column>
<el-table-column label="补助类型" prop="type" header-align="center" sortable align="center">
<template scope="{row}">
<div v-html="medicalAid.elementType(row.type)"></div>
</template>
</el-table-column>
<el-table-column label="补助金额" prop="total_grant" min-width="120px" fixed="right"
header-align="center" sortable
align="center"></el-table-column>
<el-table-column label="报销日期" prop="cashier_review_time" min-width="120px" fixed="right"
header-align="center" sortable
align="center"></el-table-column>
<el-table-column prop="userOnline" align="center" header-align="center" label="操作" fixed="right"
width="150px">
<template scope="{row}">
<el-button size="mini" @click="openView(row)">
查看
</el-button>
<el-button size="mini" type="primary" @click="doExport(row)">
导出
</el-button>
</template>
</el-table-column>
</el-table>
<!--#include("/layouts/pagination.html"){}#-->
</el-card>
</template>
<template #view>
<medical-aid-info ref="med_info"></medical-aid-info>
</template>
</guava>
</div>
<script>
const vue = new Vue({
el: '#app',
mixins: [initTableMixins],
data() {
return {
unions: [],
tabLoading: false,
tableData: [],
pageForm: {
...getPageForm(),
searchName: "username",
year: new Date().getFullYear() + "",
type: '',
},
units: [],
}
},
components: {
'guava': httpVueLoader('/components/plugins/Guava.vue'),
'medical-aid-info': httpVueLoader('/components/medicalaid/MedicalAidInfo.vue?v=1.0.1'),
},
methods: {
async flushUnits() {
this.$set(this.pageForm, "unitId", "")
this.units = await getUnits(this.pageForm.unionId)
},
downloadCommand(command) {
const {val} = command
location.href = location.href + '/download?year=' + this.pageForm.year + '&on_job=' + val
},
doExport(row) {
location.href = "/platform/fw/medicalAid/common/exportDoc?displayUser=true&id=" + row.id
},
openView(row) {
const {id} = row
this.$refs.med_info.getInfo(id)
this.$refs.guava.view()
},
},
async created() {
this.pageData();
this.unions = await getUnions(null)
this.units = await getUnits()
}
})
</script>
<!--#
}
#-->
@@ -0,0 +1,32 @@
<el-table-column align="center" header-align="center" label="序号" width="80px">
<template scope="scope">
<span>{{scope.$index+(pageForm.pageNumber - 1) * pageForm.pageSize + 1}} </span>
</template>
</el-table-column>
<el-table-column label="工号" prop="loginname" header-align="center" min-width="80px"
show-overflow-tooltip
align="center"></el-table-column>
<el-table-column label="姓名" prop="user_name" header-align="center" min-width="80px"
show-overflow-tooltip
align="center"></el-table-column>
<el-table-column label="所属部门" prop="unit_name" sortable header-align="center" min-width="80px"
show-overflow-tooltip
align="center"></el-table-column>
<el-table-column label="申请时间" prop="apply_time" header-align="center" sortable min-width="80px"
show-overflow-tooltip
align="center"></el-table-column>
<el-table-column label="疾病诊断" prop="disease_diagnosis" header-align="center" min-width="80px"
show-overflow-tooltip
align="center"></el-table-column>
<el-table-column align="center" prop="type" header-align="center" label="补助类型" sortable
min-width="80px" show-overflow-tooltip>
<template scope="{row:{type}}">
<div v-html="medicalAid.elementType(type)"></div>
</template>
</el-table-column>
<el-table-column align="center" prop="state_id" header-align="center" label="申请状态" sortable
min-width="80px" show-overflow-tooltip>
<template scope="scope">
<span :style="'color:'+scope.row.state_color">{{scope.row.state_name}}</span>
</template>
</el-table-column>
@@ -0,0 +1,257 @@
<!--#
layout("/layouts/platform.html"){
#-->
<!--
工会会计审核
-->
<style>
input[type="file"] {
display: none
}
.el-input-number input {
text-align: left !important;
}
.el-input-number__decrease, .el-input-number__increase {
display: none;
}
</style>
<div id="app" v-cloak>
<guava ref="guava" padding="0% 5%">
<template>
<search :page_form.sync="pageForm" :has_type="true" @search="doSearch"></search>
<el-card shadow="never" class="mt10">
<table-tool label="审核列表" :app="this">
<template #func>
<el-radio-group v-model="pageForm.audit" @change="doSearch" size="small">
<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>
</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==='state_id'" scope="{row}">
<span :style="'color:'+row.state_color">{{row.state_name}}</span>
</template>
<template v-else-if="column.prop==='type'" scope="{row:{type}}">
<div v-html="medicalAid.elementType(type)"></div>
</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:openView,value:row}">
查看
</el-dropdown-item>
<el-dropdown-item :disabled="row.state_id!=300"
:command="{action:openReview,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>
<medical-aid-info ref="med_info2" :handle="true" label="工会会计审核" :panes="[2,3]">
<template #handle>
<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.time" disabled></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row gutter="20">
<el-col :span="12">
<el-form-item prop="typename" label="疾病类型">
<el-input v-model="formData.typeName" disabled></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="total_grant" label="补助金额">
<el-input-number style="width: 100%" v-model="formData.total_grant"
placeholder="请填写补助金额" controls-position="right" precision="2"
:min="0"
:max="1000000000"></el-input-number>
</el-form-item>
</el-col>
</el-row>
<el-form-item prop="idea" label="审核意见">
<el-input type="textarea" v-model="formData.idea" rows="4" maxlength="500"
placeholder="请填写您的审核意见"></el-input>
</el-form-item>
<el-form-item prop="sign" label="签&emsp;&emsp;字">
<sign prefix="medicalAid" :qz.sync="formData.sign"></sign>
</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>
</template>
</medical-aid-info>
</template>
<template #view>
<medical-aid-info ref="med_info"></medical-aid-info>
</template>
</guava>
</div>
<script>
<!--#include("/platform/diseaseaid/common/Medical.js"){}#-->
const vue = new Vue({
el: '#app',
mixins: [initTableMixins],
data() {
return {
tableColumns: commonColumns,
addDialogVisible: false,
editDialogVisible: false,
tabLoading: false,
formData: {},
tableData: [],
pageForm: {
searchName: "username",
year: new Date().getFullYear() + "",
audit: '3'
},
formRules: {
total_grant: [{required: true, message: '请填写补助金额', trigger: ['blur', 'change']}],
},
subDis: false,
subLoading1: false,
subLoading2: false,
}
},
components: {
'search': httpVueLoader('/components/medicalaid/MedicalAidSearch.vue?v=1.0.1'),
'guava': httpVueLoader('/components/plugins/Guava.vue'),
'medical-aid-info': httpVueLoader('/components/medicalaid/MedicalAidInfo.vue?v=1.0.1'),
'sign': httpVueLoader('/components/sign/sign.vue?v=2.0.0')
},
methods: {
openView(row) {
const {id} = row
this.$refs.med_info.getInfo(id)
this.$refs.guava.view()
},
async doReview(flag) {
this.$refs["form"].validate(async (valid) => {
if (valid) {
this.$confirm('是否确定提交?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(async () => {
this.formData.flag = flag
this.subDis = true
flag ? this.subLoading2 = true : this.subLoading1 = true
const resp = await $.post(location.href + "/doReview", this.formData)
requestLaterMsgFun(vue, resp, null, null, (v) => {
this.subDis = false
this.subLoading1 = false
this.subLoading2 = false
this.pageData()
this.$refs.guava.index()
})
}).catch(() => {
});
}
})
},
async openReview(row) {
const {id} = row
this.$set(row, "reviewLoading", true)
const {data} = await $.get(location.href + "/getTotalGrant", {id})
let special_clinic_self_pay = data > 200 ? data : 200
this.formData = {
id,
username: "${@shiro.getPrincipalProperty('username')}",
time: moment().format('YYYY-MM-DD'),
typeName: row.typeName,
idea: '按照学校《教职工病伤医疗互助基金实施办法》规定,本次共补助金额为:\n' + capitalAmount(special_clinic_self_pay.toFixed(0)) + '' + special_clinic_self_pay.toFixed(2) + ')。',
sign: '',
total_grant: data
}
this.$set(row, "reviewLoading", false)
this.$refs.med_info2.getInfo(id)
this.$refs.guava.edit()
},
},
async created() {
this.pageData();
}
})
</script>
<!--#
}
#-->
@@ -0,0 +1,258 @@
<!--#
layout("/layouts/platform.html"){
#-->
<!--
财务出纳
-->
<style>
input[type="file"] {
display: none
}
.el-input-number input {
text-align: left !important;
}
.el-input-number__decrease, .el-input-number__increase {
display: none;
}
</style>
<div id="app" v-cloak>
<guava ref="guava" padding="0% 5%">
<template>
<search :page_form.sync="pageForm" :has_type="true" @search="doSearch"></search>
<el-card shadow="never" class="mt10">
<table-tool label="列表" :app="this">
<template #label_end>
<span class="text-danger">(温馨提醒:请先选择记录,后进行财务出纳审核)</span>
</template>
<template #func>
<span class="text-primary">是否重大疾病:</span>
<el-radio-group v-model="pageForm.isDisease" size="small" class="mr10" @change="doSearch">
<el-radio-button label="1"></el-radio-button>
<el-radio-button label="2"></el-radio-button>
</el-radio-group>
<el-button type="primary" size="small" icon="el-icon-download" @click="doExport">导出名单
</el-button>
<el-button type="primary" size="small" slot="reference" icon="el-icon-position"
:disabled="!multipleSelection.length"
@click="openReview">财务出纳
</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"
@selection-change="handleSelectionChange">
<el-table-column type="selection" reserve-selection width="55" align="center"></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==='state_id'" scope="{row}">
<span :style="'color:'+row.state_color">{{row.state_name}}</span>
</template>
<template v-else-if="column.prop==='type'" scope="{row:{type}}">
<div v-html="medicalAid.elementType(type)"></div>
</template>
<template v-else-if="column.prop==='total_grant'" scope="{row:{total_grant}}">
<i>{{total_grant.toFixed(2)}}</i>
</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:openView,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>
<el-form :model="formData" ref="form" 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.time" disabled></el-input>
</el-form-item>
</el-col>
</el-row>
<el-form-item prop="idea" label="意&emsp;&emsp;见">
<el-input type="textarea" v-model="formData.idea" rows="4" maxlength="500"
placeholder="请填写您的审核意见"></el-input>
</el-form-item>
<el-form-item prop="sign" label="签&emsp;&emsp;字">
<sign prefix="medicalAid" :qz.sync="formData.sign"></sign>
</el-form-item>
</el-form>
<div style="float: right;margin: 20px 0">
<el-button type="primary" @click="doReview" :loading="subLoading">
提 交
</el-button>
</div>
</template>
<template #view>
<medical-aid-info ref="med_info"></medical-aid-info>
</template>
</guava>
</div>
<script>
<!--#include("/platform/diseaseaid/common/Medical.js"){}#-->
const vue = new Vue({
el: '#app',
mixins: [initTableMixins],
data() {
return {
tableColumns: [
{prop: 'loginname', label: '工号', sortable: true},
{prop: 'user_name', label: '姓名', sortable: true},
{prop: 'unit_name', label: '所属部门', sortable: true},
{prop: 'apply_time', label: '申请时间', sortable: true},
{prop: 'disease_diagnosis', label: '疾病诊断'},
{prop: 'typeName', label: '疾病类型'},
{prop: 'type', label: '补助类型', sortable: true},
{prop: 'bank_name', label: '银行名称', sortable: true},
{prop: 'bank_account', label: '银行卡号', sortable: true},
{prop: 'total_grant', label: '补助金额', sortable: true},
{prop: 'state_id', label: '申请状态', sortable: true},
],
addDialogVisible: false,
editDialogVisible: false,
tabLoading: false,
formData: {},
tableData: [],
pageForm: {
searchName: "username",
year: new Date().getFullYear() + "",
},
formRules: {},
subLoading: false,
multipleSelection: [],
}
},
components: {
'search': httpVueLoader('/components/medicalaid/MedicalAidSearch.vue?v=1.0.1'),
'guava': httpVueLoader('/components/plugins/Guava.vue'),
'medical-aid-info': httpVueLoader('/components/medicalaid/MedicalAidInfo.vue?v=1.0.1'),
'sign': httpVueLoader('/components/sign/sign.vue?v=2.0.0')
},
methods: {
async doReview() {
this.$confirm('是否确定提交?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(async () => {
this.subLoading = true
this.formData.ids = JSON.stringify(this.formData.ids)
this.formData.ordinaryList = JSON.stringify(this.formData.ordinaryList)
this.formData.majorList = JSON.stringify(this.formData.majorList)
const resp = await $.post(location.href + "/doReview", this.formData)
requestLaterMsgFun(vue, resp, (v) => {
this.$refs.table.clearSelection();
this.pageData()
this.$refs.guava.index()
}, null, (v) => {
this.subLoading = false
})
}).catch(() => {
});
},
async openReview() {
//重大疾病
let majorList = this.multipleSelection.filter(v => v.disease_type_code !== 'A' && v.type === 1)
majorList.forEach(a => {
a.apply_time = moment(a.apply_time).format('YYYY')
})
//常规疾病
let ordinaryList = this.multipleSelection.filter(v => v.disease_type_code === 'A' && v.type === 1)
ordinaryList.forEach(a => {
a.apply_time = moment(a.apply_time).format('YYYY')
})
this.formData = {
ids: this.multipleSelection.map(v => v.id),
ordinaryList: ordinaryList,
majorList: majorList,
username: "${@shiro.getPrincipalProperty('username')}",
time: moment().format('YYYY-MM-DD'),
sign: '',
}
this.$refs.guava.edit()
},
handleSelectionChange(val) {
this.multipleSelection = val;
}
,
doExport() {
location.href = location.href + "/doExport"
}
,
openView(row) {
const {id} = row
this.$refs.med_info.getInfo(id)
this.$refs.guava.view()
}
},
async created() {
this.pageData();
}
})
</script>
<!--#
}
#-->
@@ -0,0 +1,334 @@
<!--#
layout("/layouts/platform.html"){
#-->
<!--
工会主席审批
-->
<style>
input[type="file"] {
display: none
}
.el-input-number input {
text-align: left !important;
}
.el-input-number__decrease, .el-input-number__increase {
display: none;
}
</style>
<div id="app" v-cloak>
<guava ref="guava" padding="0% 5%">
<template>
<search :page_form.sync="pageForm" :has_type="true" @search="doSearch"></search>
<el-card shadow="never" class="mt10">
<table-tool label="审核列表" :app="this">
<template #func>
<el-radio-group v-model="pageForm.audit" @change="doSearch" size="small">
<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-button size="small" type="primary" class="ml10" v-if="pageForm.audit===3"
@click="openBatchAudit">批量审核
</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 type="selection" align="center"
:selectable="(row)=>{return row.state_id===500}"></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==='state_id'" scope="{row}">
<span :style="'color:'+row.state_color">{{row.state_name}}</span>
</template>
<template v-else-if="column.prop==='type'" scope="{row:{type}}">
<div v-html="medicalAid.elementType(type)"></div>
</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:openView,value:row}">
查看
</el-dropdown-item>
<el-dropdown-item :disabled="row.state_id!=500"
:command="{action:openReview,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>
<medical-aid-info ref="med_info2" :handle="true" label="工会主席审批" :panes="[2,3,4,5]">
<template #handle>
<el-form :model="formData" ref="form" 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.time" disabled></el-input>
</el-form-item>
</el-col>
</el-row>
<el-form-item prop="typeName" label="疾病类型">
<el-input v-model="formData.typeName" disabled></el-input>
</el-form-item>
<el-form-item prop="idea" label="审批意见">
<el-input type="textarea" v-model="formData.idea" rows="4" maxlength="500"
placeholder="请填写您的审核意见"></el-input>
</el-form-item>
<el-form-item prop="sign" label="签&emsp;&emsp;字">
<sign prefix="medicalAid" :qz.sync="formData.sign"></sign>
</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>
</template>
</medical-aid-info>
</template>
<template #view>
<medical-aid-info ref="med_info"></medical-aid-info>
</template>
<el-dialog title="批量审核" :visible.sync="batchAuditDialogVisible" width="60%" :close-on-click-modal="false">
<el-table :data="batchTableData" max-height="500px">
<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==='state_id'" scope="{row}">
<span :style="'color:'+row.state_color">{{row.state_name}}</span>
</template>
<template v-else-if="column.prop==='type'" scope="{row:{type}}">
<div v-html="medicalAid.elementType(type)"></div>
</template>
</el-table-column>
</el-table>
<el-form :model="formData" ref="form" 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.time" disabled></el-input>
</el-form-item>
</el-col>
</el-row>
<el-form-item prop="idea" label="审核意见">
<el-input type="textarea" v-model="formData.idea" rows="4" maxlength="500"
placeholder="请填写您的审核意见"></el-input>
</el-form-item>
<el-form-item prop="sign" label="签&emsp;&emsp;字">
<sign prefix="medicalAid" :qz.sync="formData.sign"></sign>
</el-form-item>
</el-form>
<span slot="footer">
<el-button @click="doBatchAudit(false)" type="danger" v-throttle>批量拒绝</el-button>
<el-button @click="doBatchAudit(true)" type="primary" v-throttle>批量通过</el-button>
</span>
</el-dialog>
</guava>
</div>
<script>
<!--#include("/platform/diseaseaid/common/Medical.js"){}#-->
const vue = new Vue({
el: '#app',
mixins: [initTableMixins],
data() {
return {
tableColumns: commonColumns,
addDialogVisible: false,
editDialogVisible: false,
tabLoading: false,
formData: {},
tableData: [],
pageForm: {
searchName: "username",
year: new Date().getFullYear() + "",
audit: 3
},
formRules: {},
subDis: false,
subLoading1: false,
subLoading2: false,
batchTableData: [],
batchAuditDialogVisible: false
}
},
components: {
'search': httpVueLoader('/components/medicalaid/MedicalAidSearch.vue?v=1.0.1'),
'guava': httpVueLoader('/components/plugins/Guava.vue'),
'medical-aid-info': httpVueLoader('/components/medicalaid/MedicalAidInfo.vue?v=1.0.1'),
'sign': httpVueLoader('/components/sign/sign.vue?v=2.0.0')
},
methods: {
openView(row) {
const {id} = row
this.$refs.med_info.getInfo(id)
this.$refs.guava.view()
},
async doReview(flag) {
this.$confirm('是否确定提交?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(async () => {
this.formData.flag = flag
this.subDis = true
flag ? this.subLoading2 = true : this.subLoading1 = true
const resp = await $.post(location.href + "/doReview", this.formData)
requestLaterMsgFun(vue, resp, null, null, (v) => {
this.subDis = false
this.subLoading1 = false
this.subLoading2 = false
this.pageData()
this.$refs.guava.index()
})
}).catch(() => {
});
},
async openReview(row) {
const {id} = row
this.formData = {
id,
username: "${@shiro.getPrincipalProperty('username')}",
time: moment().format('YYYY-MM-DD'),
typeName: row.typeName,
idea: '',
sign: '',
}
this.$refs.med_info2.getInfo(id)
this.$refs.guava.edit()
},
openBatchAudit() {
const selection = this.$refs.table.selection
if (selection.length === 0) {
this.notifyWarning('请先勾选需要审核的记录')
return
}
this.batchTableData = selection
this.batchAuditDialogVisible = true
this.formData = {
username: "${@shiro.getPrincipalProperty('username')}",
time: moment().format('YYYY-MM-DD'),
idea: '',
sign: '',
}
},
async doBatchAudit(v) {
if (this.formData.idea === '') {
this.notifyWarning('请填写审核意见')
return
}
const confirm = await this.$confirm('是否确定提交?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
if ('confirm' !== confirm) return
const ids = this.batchTableData.map(v => v.id)
const resp = await $.post(location.href + "/doBatchReview", {
ids: JSON.stringify(ids),
...this.formData,
flag: v
})
if (resp.code === 0) {
this.notifySuccess(resp.msg)
this.pageData()
this.batchAuditDialogVisible = false
} else {
this.notifyWarning(resp.msg)
}
}
},
async created() {
this.pageData();
}
})
</script>
<!--#
}
#-->
@@ -0,0 +1,315 @@
<!--#
layout("/layouts/platform.html"){
#-->
<!--
综合门诊部审核
-->
<style>
input[type="file"] {
display: none
}
.el-input-number input {
text-align: left !important;
}
.el-input-number__decrease, .el-input-number__increase {
display: none;
}
.el-checkbox__label {
color: red;
}
</style>
<div id="app" v-cloak>
<guava ref="guava" padding="0% 5%">
<template>
<search :page_form.sync="pageForm" :has_type="true" @search="doSearch"></search>
<el-card shadow="never" class="mt10">
<table-tool label="审核列表" :app="this">
<template #func>
<el-radio-group v-model="pageForm.audit" @change="doSearch" size="small">
<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>
</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==='state_id'" scope="{row}">
<span :style="'color:'+row.state_color">{{row.state_name}}</span>
</template>
<template v-else-if="column.prop==='type'" scope="{row:{type}}">
<div v-html="medicalAid.elementType(type)"></div>
</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:openView,value:row}">
查看
</el-dropdown-item>
<el-dropdown-item :disabled="row.state_id!=200"
:command="{action:openReview,value:row}">
审核
</el-dropdown-item>
<!--# if(@shiro.hasRole('sysadmin')){ #-->
<el-dropdown-item v-if="row.state_id>200"
:command="{action:openEdit,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>
<medical-aid-info ref="med_info2" :handle="true" label="综合门诊部审核" :panes="[2]">
<template #handle>
<el-form :model="formData" ref="form" label-position="right" style="padding: 20px 0"
label-width="140px" :rules="formRules">
<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.time" disabled></el-input>
</el-form-item>
</el-col>
</el-row>
<el-form-item prop="code" label="是否属于重大疾病">
<el-select v-model="formData.code" placeholder="请选择是否属于重大疾病" style="width: 100%">
<el-option
v-for="item in diseaseTypeList"
:key="item.typeCode"
:label="item.typeName"
:value="item.typeCode">
</el-option>
</el-select>
</el-form-item>
<el-form-item prop="idea" label="审核意见">
<el-input type="textarea" v-model="formData.idea" rows="4" maxlength="500"
placeholder="请填写您的审核意见"></el-input>
</el-form-item>
<el-form-item prop="sign" label="签&emsp;&emsp;字">
<sign prefix="medicalAid" :qz.sync="formData.sign"></sign>
</el-form-item>
<el-form-item prop="checked" label="">
<el-checkbox v-model="formData.checked">
已仔细核对《附件》页各项申请材料
</el-checkbox>
</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>
</template>
</medical-aid-info>
</template>
<template #view>
<medical-aid-info ref="med_info"></medical-aid-info>
</template>
</guava>
<el-dialog :visible.sync="editMedicalTypeDialog" title="修改疾病类型" width="30%">
<el-select v-model="editMedicalTypeFormData.code" placeholder="请选择是否属于重大疾病" style="width: 100%">
<el-option
v-for="item in diseaseTypeList"
:key="item.typeCode"
:label="item.typeName"
:value="item.typeCode">
</el-option>
</el-select>
<el-row class="text-right mt15">
<el-button @click="editMedicalTypeDialog=false">取消</el-button>
<el-button @click="doEdit" type="primary">确定</el-button>
</el-row>
</el-dialog>
</div>
<script>
<!--#include("/platform/diseaseaid/common/Medical.js"){}#-->
const vue = new Vue({
el: '#app',
mixins: [initTableMixins],
data() {
return {
diseaseTypeList: [],
tableColumns: commonColumns,
addDialogVisible: false,
editDialogVisible: false,
tabLoading: false,
formData: {},
tableData: [],
pageForm: {
searchName: "username",
year: new Date().getFullYear() + "",
audit: '3'
},
subDis: false,
subLoading1: false,
subLoading2: false,
formRules: {code: [{required: true, message: '请选择是否属于重大疾病', trigger: ['blur', 'change']}],},
editMedicalTypeDialog: false,
editMedicalTypeFormData: {
code: '',
id: ''
}
}
},
components: {
'search': httpVueLoader('/components/medicalaid/MedicalAidSearch.vue?v=1.0.1'),
'guava': httpVueLoader('/components/plugins/Guava.vue'),
'medical-aid-info': httpVueLoader('/components/medicalaid/MedicalAidInfo.vue?v=1.0.1'),
'sign': httpVueLoader('/components/sign/sign.vue?v=2.0.0')
},
methods: {
openView(row) {
const {id} = row
this.$refs.med_info.getInfo(id)
this.$refs.guava.view()
},
async doReview(flag) {
const valid = await this.$refs['form'].validate()
if(!valid)return
this.$confirm('是否确定提交?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(async () => {
if (!this.formData.checked) {
this.$message({
message: '请确认已仔细核对《附件》页各项申请材料',
type: 'warning'
});
return
}
this.formData.flag = flag
this.subDis = true
flag ? this.subLoading2 = true : this.subLoading1 = true
const resp = await $.post(location.href + "/doReview", this.formData)
requestLaterMsgFun(vue, resp, null, null, (v) => {
this.subDis = false
this.subLoading1 = false
this.subLoading2 = false
this.pageData()
this.$refs.guava.index()
})
}).catch(() => {
});
},
async openReview(row) {
const {id} = row
this.formData = {
id,
username: "${@shiro.getPrincipalProperty('username')}",
time: moment().format('YYYY-MM-DD'),
idea: '',
sign: '',
checked: false
}
this.$refs.med_info2.getInfo(id)
this.$refs.guava.edit()
},
openEdit(row) {
console.log(row)
this.editMedicalTypeDialog = true
this.editMedicalTypeFormData.code = row.disease_type_code
this.editMedicalTypeFormData.id = row.id
},
doEdit() {
this.$confirm('您确定要修改吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(async () => {
const data = await $.post(loc() + '/doEditByAdmin', this.editMedicalTypeFormData)
if (data.code === 0) {
this.$message.success(data.msg)
this.editMedicalTypeDialog = false
this.pageData()
}
}).catch(() => {
})
},
async findAllDiseaseType() {
const {data} = await $.get("/platform/fw/medicalAid/disease/type/findAll")
return data;
}
},
async created() {
this.pageData();
this.diseaseTypeList = await this.findAllDiseaseType()
}
})
</script>
<!--#
}
#-->
@@ -0,0 +1,330 @@
<!--#
layout("/layouts/platform.html"){
#-->
<!--
离退休干部处审核
-->
<style>
input[type="file"] {
display: none
}
.el-input-number input {
text-align: left !important;
}
.el-input-number__decrease, .el-input-number__increase {
display: none;
}
</style>
<div id="app" v-cloak>
<guava ref="guava" padding="0% 5%">
<template>
<search :page_form.sync="pageForm" :has_type="true" :has_union="false" @search="doSearch"></search>
<el-card shadow="never" class="mt10">
<table-tool label="审核列表" :app="this">
<template #func>
<el-radio-group v-model="pageForm.audit" @change="doSearch" size="small">
<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-button size="small" type="primary" class="ml10" v-if="pageForm.audit===3"
@click="openBatchAudit">批量审核
</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 type="selection" align="center"
:selectable="(row)=>{return row.state_id===155}"></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==='state_id'" scope="{row}">
<span :style="'color:'+row.state_color">{{row.state_name}}</span>
</template>
<template v-else-if="column.prop==='type'" scope="{row:{type}}">
<div v-html="medicalAid.elementType(type)"></div>
</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:openView,value:row}">
查看
</el-dropdown-item>
<el-dropdown-item :disabled="row.state_id!=155"
:command="{action:openReview,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>
<medical-aid-info ref="med_info2" :handle="true" label="离退休干部处审核">
<template #handle>
<el-form :model="formData" ref="form" 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.time" disabled></el-input>
</el-form-item>
</el-col>
</el-row>
<el-form-item prop="idea" label="审核意见">
<el-input type="textarea" v-model="formData.idea" rows="4" maxlength="500"
placeholder="请填写您的审核意见"></el-input>
</el-form-item>
<el-form-item prop="sign" label="签&emsp;&emsp;字">
<sign prefix="medicalAid" :qz.sync="formData.sign"></sign>
</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>
</template>
</medical-aid-info>
</template>
<template #view>
<medical-aid-info ref="med_info"></medical-aid-info>
</template>
<el-dialog title="批量审核" :visible.sync="batchAuditDialogVisible" width="60%" :close-on-click-modal="false">
<el-table :data="batchTableData" max-height="500px">
<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==='state_id'" scope="{row}">
<span :style="'color:'+row.state_color">{{row.state_name}}</span>
</template>
<template v-else-if="column.prop==='type'" scope="{row:{type}}">
<div v-html="medicalAid.elementType(type)"></div>
</template>
</el-table-column>
</el-table>
<el-form :model="formData" ref="form" 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.time" disabled></el-input>
</el-form-item>
</el-col>
</el-row>
<el-form-item prop="idea" label="审核意见">
<el-input type="textarea" v-model="formData.idea" rows="4" maxlength="500"
placeholder="请填写您的审核意见"></el-input>
</el-form-item>
<el-form-item prop="sign" label="签&emsp;&emsp;字">
<sign prefix="medicalAid" :qz.sync="formData.sign"></sign>
</el-form-item>
</el-form>
<span slot="footer">
<el-button @click="doBatchAudit(false)" type="danger" v-throttle>批量拒绝</el-button>
<el-button @click="doBatchAudit(true)" type="primary" v-throttle>批量通过</el-button>
</span>
</el-dialog>
</guava>
</div>
<script>
<!--#include("/platform/diseaseaid/common/Medical.js"){}#-->
const vue = new Vue({
el: '#app',
mixins: [initTableMixins],
data() {
return {
tableColumns: commonColumns,
addDialogVisible: false,
editDialogVisible: false,
tabLoading: false,
formData: {},
tableData: [],
pageForm: {
searchName: "username",
year: new Date().getFullYear() + "",
audit: 3
},
formRules: {},
subDis: false,
subLoading1: false,
subLoading2: false,
batchTableData: [],
batchAuditDialogVisible: false
}
},
components: {
'search': httpVueLoader('/components/medicalaid/MedicalAidSearch.vue?v=1.0.1?v=1.0.1'),
'guava': httpVueLoader('/components/plugins/Guava.vue'),
'medical-aid-info': httpVueLoader('/components/medicalaid/MedicalAidInfo.vue?v=1.0.1'),
'sign': httpVueLoader('/components/sign/sign.vue?v=2.0.0')
},
methods: {
openView(row) {
const {id} = row
this.$refs.med_info.getInfo(id)
this.$refs.guava.view()
},
async doReview(flag) {
this.$confirm('是否确定提交?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(async () => {
this.formData.flag = flag
this.subDis = true
flag ? this.subLoading2 = true : this.subLoading1 = true
const resp = await $.post(location.href + "/doReview", this.formData)
requestLaterMsgFun(vue, resp, null, null, (v) => {
this.subDis = false
this.subLoading1 = false
this.subLoading2 = false
this.pageData()
this.$refs.guava.index()
})
}).catch(() => {
});
},
async openReview(row) {
const {id} = row
this.formData = {
id,
username: "${@shiro.getPrincipalProperty('username')}",
time: moment().format('YYYY-MM-DD'),
idea: '',
sign: '',
}
this.$refs.med_info2.getInfo(id)
this.$refs.guava.edit()
},
openBatchAudit() {
const selection = this.$refs.table.selection
if (selection.length === 0) {
this.notifyWarning('请先勾选需要审核的记录')
return
}
this.batchTableData = selection
this.batchAuditDialogVisible = true
this.formData = {
username: "${@shiro.getPrincipalProperty('username')}",
time: moment().format('YYYY-MM-DD'),
idea: '',
sign: '',
}
},
async doBatchAudit(v) {
if (this.formData.idea === '') {
this.notifyWarning('请填写审核意见')
return
}
const confirm = await this.$confirm('是否确定提交?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
if ('confirm' !== confirm) return
const ids = this.batchTableData.map(v => v.id)
const resp = await $.post(location.href + "/doBatchReview", {
ids: JSON.stringify(ids),
...this.formData,
flag: v
})
if (resp.code === 0) {
this.notifySuccess(resp.msg)
this.pageData()
this.batchAuditDialogVisible = false
} else {
this.notifyWarning(resp.msg)
}
}
},
async created() {
this.pageData();
}
})
</script>
<!--#
}
#-->
@@ -0,0 +1,329 @@
<!--#
layout("/layouts/platform.html"){
#-->
<!--
基层工会主席审核
-->
<style>
input[type="file"] {
display: none
}
.el-input-number input {
text-align: left !important;
}
.el-input-number__decrease, .el-input-number__increase {
display: none;
}
</style>
<div id="app" v-cloak>
<guava ref="guava" padding="0% 5%">
<template>
<search :page_form.sync="pageForm" :has_type="true" :has_union="false" @search="doSearch"></search>
<el-card shadow="never" class="mt10">
<table-tool label="审核列表" :app="this">
<template #func>
<el-radio-group v-model="pageForm.audit" @change="doSearch" size="small">
<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-button size="small" type="primary" class="ml10" v-if="pageForm.audit===3"
@click="openBatchAudit">批量审核
</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 type="selection" align="center"
:selectable="(row)=>{return row.state_id===100}"></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==='state_id'" scope="{row}">
<span :style="'color:'+row.state_color">{{row.state_name}}</span>
</template>
<template v-else-if="column.prop==='type'" scope="{row:{type}}">
<div v-html="medicalAid.elementType(type)"></div>
</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:openView,value:row}">
查看
</el-dropdown-item>
<el-dropdown-item :disabled="row.state_id!=100"
:command="{action:openReview,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>
<medical-aid-info ref="med_info2" :handle="true" label="基层工会主席审核">
<template #handle>
<el-form :model="formData" ref="form" 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.time" disabled></el-input>
</el-form-item>
</el-col>
</el-row>
<el-form-item prop="idea" label="审核意见">
<el-input type="textarea" v-model="formData.idea" rows="4" maxlength="500"
placeholder="请填写您的审核意见"></el-input>
</el-form-item>
<el-form-item prop="sign" label="签&emsp;&emsp;字">
<sign prefix="medicalAid" :qz.sync="formData.sign"></sign>
</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>
</template>
</medical-aid-info>
</template>
<template #view>
<medical-aid-info ref="med_info"></medical-aid-info>
</template>
<el-dialog title="批量审核" :visible.sync="batchAuditDialogVisible" width="60%" :close-on-click-modal="false">
<el-table :data="batchTableData" max-height="500px">
<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==='state_id'" scope="{row}">
<span :style="'color:'+row.state_color">{{row.state_name}}</span>
</template>
<template v-else-if="column.prop==='type'" scope="{row:{type}}">
<div v-html="medicalAid.elementType(type)"></div>
</template>
</el-table-column>
</el-table>
<el-form :model="formData" ref="form" 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.time" disabled></el-input>
</el-form-item>
</el-col>
</el-row>
<el-form-item prop="idea" label="审核意见">
<el-input type="textarea" v-model="formData.idea" rows="4" maxlength="500"
placeholder="请填写您的审核意见"></el-input>
</el-form-item>
<el-form-item prop="sign" label="签&emsp;&emsp;字">
<sign prefix="medicalAid" :qz.sync="formData.sign"></sign>
</el-form-item>
</el-form>
<span slot="footer">
<el-button @click="doBatchAudit(false)" type="danger" v-throttle>批量拒绝</el-button>
<el-button @click="doBatchAudit(true)" type="primary" v-throttle>批量通过</el-button>
</span>
</el-dialog>
</guava>
</div>
<script>
<!--#include("/platform/diseaseaid/common/Medical.js"){}#-->
const vue = new Vue({
el: '#app',
mixins: [initTableMixins],
data() {
return {
tableColumns: commonColumns,
addDialogVisible: false,
editDialogVisible: false,
tabLoading: false,
formData: {},
tableData: [],
pageForm: {
searchName: "username",
year: new Date().getFullYear() + "",
audit: 3
},
formRules: {},
subDis: false,
subLoading1: false,
subLoading2: false,
batchTableData: [],
batchAuditDialogVisible: false
}
},
components: {
'search': httpVueLoader('/components/medicalaid/MedicalAidSearch.vue?v=1.0.1?v=1.0.1'),
'guava': httpVueLoader('/components/plugins/Guava.vue'),
'medical-aid-info': httpVueLoader('/components/medicalaid/MedicalAidInfo.vue?v=1.0.1'),
'sign': httpVueLoader('/components/sign/sign.vue?v=2.0.0')
},
methods: {
openView(row) {
const {id} = row
this.$refs.med_info.getInfo(id)
this.$refs.guava.view()
},
async doReview(flag) {
this.$confirm('是否确定提交?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(async () => {
this.formData.flag = flag
this.subDis = true
flag ? this.subLoading2 = true : this.subLoading1 = true
const resp = await $.post(location.href + "/doReview", this.formData)
requestLaterMsgFun(vue, resp, null, null, (v) => {
this.subDis = false
this.subLoading1 = false
this.subLoading2 = false
this.pageData()
this.$refs.guava.index()
})
}).catch(() => {
});
},
async openReview(row) {
const {id} = row
this.formData = {
id,
username: "${@shiro.getPrincipalProperty('username')}",
time: moment().format('YYYY-MM-DD'),
idea: '',
sign: '',
}
this.$refs.med_info2.getInfo(id)
this.$refs.guava.edit()
},
openBatchAudit() {
const selection = this.$refs.table.selection
if (selection.length === 0) {
this.notifyWarning('请先勾选需要审核的记录')
return
}
this.batchTableData = selection
this.batchAuditDialogVisible = true
this.formData = {
username: "${@shiro.getPrincipalProperty('username')}",
time: moment().format('YYYY-MM-DD'),
idea: '',
sign: '',
}
},
async doBatchAudit(v) {
if (this.formData.idea === '') {
this.notifyWarning('请填写审核意见')
return
}
const confirm = await this.$confirm('是否确定提交?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
if ('confirm' !== confirm) return
const ids = this.batchTableData.map(v => v.id)
const resp = await $.post(location.href + "/doBatchReview", {
ids: JSON.stringify(ids),
...this.formData,
flag: v
})
if (resp.code === 0) {
this.notifySuccess(resp.msg)
this.pageData()
this.batchAuditDialogVisible = false
} else {
this.notifyWarning(resp.msg)
}
}
},
async created() {
this.pageData();
}
})
</script>
<!--#
}
#-->
@@ -0,0 +1,333 @@
<!--#
layout("/layouts/platform.html"){
#-->
<!--
工会副主席审核
-->
<style>
input[type="file"] {
display: none
}
.el-input-number input {
text-align: left !important;
}
.el-input-number__decrease, .el-input-number__increase {
display: none;
}
</style>
<div id="app" v-cloak>
<guava ref="guava" class="platform" padding="0% 5%">
<template>
<search :page_form.sync="pageForm" :has_type="true" @search="doSearch"></search>
<el-card shadow="never" class="mt10">
<table-tool label="审核列表" :app="this">
<template #func>
<el-radio-group v-model="pageForm.audit" @change="doSearch" size="small">
<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-button size="small" type="primary" class="ml10" v-if="pageForm.audit===3"
@click="openBatchAudit">批量审核
</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 type="selection" align="center"
:selectable="(row)=>{return row.state_id===400}"></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==='state_id'" scope="{row}">
<span :style="'color:'+row.state_color">{{row.state_name}}</span>
</template>
<template v-else-if="column.prop==='type'" scope="{row:{type}}">
<div v-html="medicalAid.elementType(type)"></div>
</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:openView,value:row}">
查看
</el-dropdown-item>
<el-dropdown-item :disabled="row.state_id!=400"
:command="{action:openReview,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>
<medical-aid-info ref="med_info2" :handle="true" label="工会副主席审核" :panes="[2,3,4]">
<template #handle>
<el-form :model="formData" ref="form" 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.time" disabled></el-input>
</el-form-item>
</el-col>
</el-row>
<el-form-item prop="typename" label="疾病类型">
<el-input v-model="formData.typeName" disabled></el-input>
</el-form-item>
<el-form-item prop="idea" label="审核意见">
<el-input type="textarea" v-model="formData.idea" rows="4" maxlength="500"
placeholder="请填写您的审核意见"></el-input>
</el-form-item>
<el-form-item prop="sign" label="签&emsp;&emsp;字">
<sign prefix="medicalAid" :qz.sync="formData.sign"></sign>
</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>
</template>
</medical-aid-info>
</template>
<template #view>
<medical-aid-info ref="med_info"></medical-aid-info>
</template>
<el-dialog title="批量审核" :visible.sync="batchAuditDialogVisible" width="60%" :close-on-click-modal="false">
<el-table :data="batchTableData" max-height="500px">
<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==='state_id'" scope="{row}">
<span :style="'color:'+row.state_color">{{row.state_name}}</span>
</template>
<template v-else-if="column.prop==='type'" scope="{row:{type}}">
<div v-html="medicalAid.elementType(type)"></div>
</template>
</el-table-column>
</el-table>
<el-form :model="formData" ref="form" 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.time" disabled></el-input>
</el-form-item>
</el-col>
</el-row>
<el-form-item prop="idea" label="审核意见">
<el-input type="textarea" v-model="formData.idea" rows="4" maxlength="500"
placeholder="请填写您的审核意见"></el-input>
</el-form-item>
<el-form-item prop="sign" label="签&emsp;&emsp;字">
<sign prefix="medicalAid" :qz.sync="formData.sign"></sign>
</el-form-item>
</el-form>
<span slot="footer">
<el-button @click="doBatchAudit(false)" type="danger" v-throttle>批量拒绝</el-button>
<el-button @click="doBatchAudit(true)" type="primary" v-throttle>批量通过</el-button>
</span>
</el-dialog>
</guava>
</div>
<script>
<!--#include("/platform/diseaseaid/common/Medical.js"){}#-->
const vue = new Vue({
el: '#app',
mixins: [initTableMixins],
data() {
return {
tableColumns: commonColumns,
addDialogVisible: false,
editDialogVisible: false,
tabLoading: false,
formData: {},
tableData: [],
pageForm: {
searchName: "username",
year: new Date().getFullYear() + "",
audit: 3
},
formRules: {},
subDis: false,
subLoading1: false,
subLoading2: false,
batchTableData: [],
batchAuditDialogVisible: false
}
},
components: {
'search': httpVueLoader('/components/medicalaid/MedicalAidSearch.vue?v=1.0.1'),
'guava': httpVueLoader('/components/plugins/Guava.vue'),
'medical-aid-info': httpVueLoader('/components/medicalaid/MedicalAidInfo.vue?v=1.0.1'),
'sign': httpVueLoader('/components/sign/sign.vue?v=2.0.0')
},
methods: {
openView(row) {
const {id} = row
this.$refs.med_info.getInfo(id)
this.$refs.guava.view()
},
async doReview(flag) {
this.$confirm('是否确定提交?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(async () => {
this.formData.flag = flag
this.subDis = true
flag ? this.subLoading2 = true : this.subLoading1 = true
const resp = await $.post(location.href + "/doReview", this.formData)
requestLaterMsgFun(vue, resp, null, null, (v) => {
this.subDis = false
this.subLoading1 = false
this.subLoading2 = false
this.pageData()
this.$refs.guava.index()
})
}).catch(() => {
});
},
async openReview(row) {
const {id} = row
this.formData = {
id,
username: "${@shiro.getPrincipalProperty('username')}",
time: moment().format('YYYY-MM-DD'),
typeName: row.typeName,
idea: '',
sign: '',
}
this.$refs.med_info2.getInfo(id)
this.$refs.guava.edit()
},
openBatchAudit() {
const selection = this.$refs.table.selection
if (selection.length === 0) {
this.notifyWarning('请先勾选需要审核的记录')
return
}
this.batchTableData = selection
this.batchAuditDialogVisible = true
this.formData = {
username: "${@shiro.getPrincipalProperty('username')}",
time: moment().format('YYYY-MM-DD'),
idea: '',
sign: '',
}
},
async doBatchAudit(v) {
if (this.formData.idea === '') {
this.notifyWarning('请填写审核意见')
return
}
const confirm = await this.$confirm('是否确定提交?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
if ('confirm' !== confirm) return
const ids = this.batchTableData.map(v => v.id)
const resp = await $.post(location.href + "/doBatchReview", {
ids: JSON.stringify(ids),
...this.formData,
flag: v
})
if (resp.code === 0) {
this.notifySuccess(resp.msg)
this.pageData()
this.batchAuditDialogVisible = false
} else {
this.notifyWarning(resp.msg)
}
}
},
async created() {
this.pageData();
}
})
</script>
<!--#
}
#-->