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,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>
<!--#
}
#-->