Files
zhgh_hmc/src/main/resources/views/platform/reimbursement/standingViceChairmanAudit.html
T
2025-09-02 11:36:10 +08:00

365 lines
17 KiB
HTML

<!--#
layout("/layouts/platform.html"){
#-->
<div class="platform" id="app" v-cloak>
<guava ref="guava">
<template>
<el-card shadow="never">
<div class="search">
<div class="search-item">
<div class="search-item-label">&emsp;&emsp;度:</div>
<div class="search-item-option">
<el-date-picker
placeholder="选择年"
style="width: 100%"
type="year" v-model="pageForm.year"
value-format="yyyy">
</el-date-picker>
</div>
</div>
<div class="search-item">
<div class="search-item-label">经办人:</div>
<div class="search-item-option">
<el-input @keyup.enter.native="doSearch" clearable
placeholder="请输入内容"
v-model="pageForm.searchKeyword">
<el-select placeholder="查询类型" slot="prepend"
style="width: 100px;"
v-model="pageForm.searchName">
<el-option label="姓名" value="rei.userName"></el-option>
<el-option label="工号" value="rei.loginName"></el-option>
</el-select>
</el-input>
</div>
</div>
<div class="search-item">
<div class="search-item-label">所属工会:</div>
<div class="search-item-option">
<el-select clearable
filterable="true"
placeholder="所属工会" style="width: 100%;"
v-model="pageForm.unionId">
<el-option :label="item.unionname" :value="item.id"
v-for="item in unions"></el-option>
</el-select>
</div>
</div>
<div class="search-item">
<div class="search-item-label">协会:</div>
<div class="search-item-option">
<el-select clearable
placeholder="请选择协会"
style="width: 100%;" v-model="pageForm.clubId">
<el-option
:key="item.stid"
:label="item.name"
:value="item.stid"
v-for="item in clubOption">
</el-option>
</el-select>
</div>
</div>
<div class="search-item">
<div class="search-item-label">活动类型:</div>
<div class="search-item-option">
<el-select clearable placeholder="所属单位"
style="width: 100%;"
v-model="pageForm.jf_source">
<el-option :label="item.name" :value="item.code"
v-for="item in budgetTypeOption"></el-option>
</el-select>
</div>
</div>
<!-- <div class="search-item">
<div class="search-item-label">明细类:</div>
<div class="search-item-option">
<el-select clearable placeholder="请选择明细类"
style="width: 100%;"
v-model="pageForm.detailsTypeId">
<el-option :label="item.name" :value="item.code"
v-for="item in detailsTypeOption"></el-option>
</el-select>
</div>
</div>-->
<div class="search-query">
<el-button type="primary" icon="el-icon-search" @click="doSearch">搜索
</el-button>
</div>
</div>
</el-card>
<el-card class="mt10" shadow="never">
<table-tool :app="this" label="报销列表">
<template #func>
<el-radio-group @change="doSearch" size="small"
v-model="pageForm.isAudit">
<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-row class="el-table-container">
<el-table :data="tableData" @sort-change="pageOrder" row-key="id"
style="width: 100%"
v-loading="tableLoading">
<el-table-column :index="indexMethod" align="center" header-align="center"
label="序号"
type="index"
width="80px"></el-table-column>
<el-table-column
:label="column.label"
:prop="column.prop"
:sortable="column.sortable"
align="center"
header-align="center"
show-overflow-tooltip
v-for="column in tableColumns">
<template scope="{row}" v-if="column.prop=='stateId'">
<span :style="'color:'+row.stateColor">{{row.stateName}}</span>
</template>
<template scope="{row}" v-else-if="column.prop=='jf_source'">
<dict-tag :options="budgetTypeOption"
:value="row.jf_source"></dict-tag>
</template>
<template scope="{row}" v-else-if="column.prop=='activity_name'">
<span>{{row.activity_name}}</span>
</template>
<template scope="{row}" v-else-if="column.prop=='detailsTypeId'">
<dict-tag :options="detailsTypeOption"
:value="row.detailsTypeId"></dict-tag>
</template>
<template scope="{row}" v-else-if="column.prop=='helpUnitName'">
<span v-if="['ACTIVITY_BUDGET_TYPE_ONE'].includes(row.jf_source)">校工会</span>
<span v-if="['ACTIVITY_BUDGET_TYPE_TWO'].includes(row.jf_source)">{{row.unionName}}</span>
<span v-if="['ACTIVITY_BUDGET_TYPE_THREE','ACTIVITY_BUDGET_TYPE_FOUR'].includes(row.jf_source)">{{row.clubName}}</span>
</template>
</el-table-column>
<el-table-column align="center" fixed="right" header-align="center"
label="操作" width="300px">
<template scope="{row}">
<el-button size="mini" type="primary" @click="openView(row.id)">
查看
</el-button>
<el-button size="mini" type="primary" @click="openAudit(row)"
:disabled="row.State!=3080">
审核
</el-button>
<el-button size="mini" type="danger" @click="doRevoke(row.id)"
v-if="[3085,3086,3090].includes(row.State)&&row.money>50000">
撤回
</el-button>
</template>
</el-table-column>
</el-table>
</el-row>
<!--#include("/layouts/pagination.html"){}#-->
</el-card>
</template>
<template #edit>
<info handle label="工会主席审核" ref="info2">
<template #handle>
<el-form :model="formData" :rules="formRules" label-position="right"
label-width="120px"
ref="form"
style="padding: 20px 0">
<vi-title2 title="审核信息"></vi-title2>
<el-row gutter="20">
<el-col :span="12">
<el-form-item label="审核人员" prop="username">
<el-input disabled
v-model="formData.username"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="审核时间" prop="time">
<el-input disabled v-model="formData.auditTime"></el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="审核意见" prop="auditOpinion">
<el-input maxlength="500" placeholder="请填写您的审核意见"
rows="4"
type="textarea"
v-model="formData.auditOpinion"></el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="签字" prop="auditSign">
<sign :qz.sync="formData.auditSign" prefix="StandingViceChairman"
:is_value_base64="false"></sign>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div style="float: right;margin: 20px 0">
<el-button :loading="submitLoading"
@click="doAudit(1)" type="danger">
</el-button>
<el-button :loading="submitLoading" @click="doAudit(2)"
type="info">退回修改
</el-button>
<el-button :loading="submitLoading" @click="doAudit(3)"
type="primary">通 过
</el-button>
</div>
</template>
</info>
</template>
<template #view>
<info ref="info"></info>
</template>
</guava>
</div>
<script>
const vue = new Vue({
el: '#app',
mixins: [initTableMixins],
data() {
return {
clubOption: [],
unions: [],
units: [],
pageForm: {
searchName: "rei.userName",
isAudit: 3,
year: new Date().getFullYear() + ""
},
formRules: {
auditSign: [{required: true, message: '必填', trigger: ['blur', 'change']}],
auditOpinion: [{required: true, message: '必填', trigger: ['blur', 'change']}],
clubId: [{required: true, message: '必填', trigger: ['blur', 'change']}],
jf_source: [{required: true, message: '必填', trigger: ['blur', 'change']}],
flag: [{required: true, message: '必填', trigger: ['blur', 'change']}],
accountViewId: [{required: true, message: '必填', trigger: ['blur', 'change']}],
detailsTypeId: [{
required: true,
message: '必填',
trigger: ['blur', 'change']
}],
},
tableColumns: [
{prop: 'loginName', label: '经办人工号', sortable: true},
{prop: 'userName', label: '姓名', sortable: true},
{prop: 'unionName', label: '所属工会', sortable: true},
{prop: 'unitName', label: '所属单位', sortable: true},
{prop: 'jf_source', label: '活动类型', sortable: true},
{prop: 'activity_name', label: '活动项目'},
{prop: 'helpUnitName', label: '申报单位'},
{prop: 'money', label: '金额'},
// {prop: 'detailsTypeId', label: '明细类'},
{prop: 'applyTime', label: '申请时间', sortable: true},
{prop: 'stateId', label: '申请状态', sortable: true}
],
budgetTypeOption: [],
detailsTypeOption: [],
detailsTypeList: [],
dialogVisible: false,
accountViewOption:[]
}
},
components: {
'info': httpVueLoader('/components/reimbursement/reimbursementNew.vue?v=' + new Date().getTime()),
},
methods: {
openView(id) {
this.$refs.guava.view()
this.$refs.info.getInfo(id)
},
openAudit(row) {
this.formData = {
id: row.id,
username: "${@shiro.getPrincipalProperty('username')}",
auditTime: moment().format('YYYY-MM-DD'),
}
this.$refs.guava.edit()
this.$refs.info2.getInfo(row.id)
if (this.$refs['form']) {
this.$refs['form'].resetFields()
}
},
doRevoke(id) {
this.$confirm('确定要撤回审核吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(async () => {
this.submitLoading = true
const res = await $.post('/platform/reimbursement/standingViceChairmanAudit/doRevoke', {id})
this.submitLoading = false
if (res.code === 0) {
this.$message.success('操作成功')
this.pageData()
} else {
this.$message.error(res.msg)
}
})
},
doAudit(flag) {
this.$refs.form.validate((valid) => {
if (valid) {
this.$confirm('确定要提交审核吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(async () => {
this.submitLoading = true
this.formData.flag = flag
const res = await $.post('/platform/reimbursement/standingViceChairmanAudit/doAudit', this.formData)
this.submitLoading = false
if (res.code === 0) {
this.$message.success('操作成功')
this.pageData()
this.$refs.guava.index()
} else {
this.$message.error(res.msg)
}
})
}
})
},
},
async created() {
this.pageData();
this.unions = await getUnionList()
this.unions.unshift({"id": "4330", "unionname": "大学外语部"})
this.unions.unshift({"id": "4070", "unionname": "外国语学院"})
this.unions.unshift({"id": "4270", "unionname": "软件学院"})
this.unions.unshift({"id": "4450", "unionname": "国际关系学院"})
this.clubOption = await getClubsByRole()
this.budgetTypeOption = await getDictByCode("ACTIVITY_BUDGET_TYPE");
this.detailsTypeOption = await getDictByCode("ACTIVITY_BUDGET_DETAILS_TYPE");
this.detailsTypeList = clone(this.detailsTypeOption)
}
})
</script>
<!--#
}
#-->