310 lines
14 KiB
HTML
310 lines
14 KiB
HTML
<!--#
|
|
layout("/layouts/platform.html"){
|
|
#-->
|
|
<div id="app" v-cloak>
|
|
<guava ref="guava">
|
|
<template>
|
|
<el-card shadow="never">
|
|
<div class="btn-group tool-button">
|
|
<el-date-picker
|
|
v-model="pageForm.year"
|
|
type="year"
|
|
value-format="yyyy"
|
|
placeholder="选择年">
|
|
</el-date-picker>
|
|
</div>
|
|
|
|
<div class="btn-group tool-button">
|
|
<el-input placeholder="请输入内容" clearable v-model="pageForm.searchKeyword"
|
|
@keyup.enter.native="doSearch">
|
|
<el-select v-model="pageForm.searchName" clearable slot="prepend"
|
|
placeholder="姓名查询"
|
|
style="width: 120px;">
|
|
<el-option label="子女姓名" value="dj_znname"></el-option>
|
|
<el-option label="教职工姓名" value="ur.username"></el-option>
|
|
</el-select>
|
|
</el-input>
|
|
</div>
|
|
|
|
<div class="btn-group tool-button">
|
|
<el-select v-model="pageForm.djlx" clearable placeholder="请选择登记类型">
|
|
<!-- <el-option value="1" label="幼升小"></el-option>-->
|
|
<el-option value="2" label="小学"></el-option>
|
|
<!-- <el-option value="3" label="初升高"></el-option>-->
|
|
</el-select>
|
|
</div>
|
|
|
|
<div class="btn-group tool-button">
|
|
<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 class="btn-group tool-button">
|
|
<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 class="btn-group tool-button" v-if="pageForm.isAudit===1">
|
|
<el-select placeholder="审核状态" v-model="pageForm.dj_sqzt" style="width: 100%;"
|
|
clearable
|
|
filterable>
|
|
<el-option label="待分工会审核" :value="5100"></el-option>
|
|
<el-option label="分工会拒绝" :value="5115"></el-option>
|
|
<el-option label="分工会退回" :value="5118"></el-option>
|
|
<el-option label="待校工会审核" :value="5200"></el-option>
|
|
<el-option label="校工会拒绝" :value="5215"></el-option>
|
|
<el-option label="校工会退回" :value="5218"></el-option>
|
|
<el-option label="审核通过" :value="5300"></el-option>
|
|
</el-select>
|
|
</div>
|
|
|
|
<div class="btn-group tool-button">
|
|
<el-button icon="el-icon-search" @click="doSearch" type="primary"></el-button>
|
|
</div>
|
|
</el-card>
|
|
<el-card shadow="never" class="mt20">
|
|
<vi-title2 title="登记列表">
|
|
<template #func>
|
|
<el-radio-group size="small" v-model="pageForm.isAudit" @change="doSearch"
|
|
class="ml10">
|
|
<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>
|
|
</vi-title2>
|
|
<el-table :data="tableData" @sort-change="pageOrder">
|
|
<el-table-column label="序号" type="index">
|
|
<template scope="scope">
|
|
<span>{{scope.$index+(pageForm.pageNumber - 1) * pageForm.pageSize + 1}} </span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column prop="dj_znname" label="子女姓名">
|
|
<template scope="scope">
|
|
{{scope.row.dj_znname}}
|
|
</template>
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
|
prop="jzgname"
|
|
label="教职工姓名"
|
|
>
|
|
<template scope="scope">
|
|
{{scope.row.jzgname}}
|
|
</template>
|
|
</el-table-column>
|
|
<!-- <el-table-column
|
|
prop="dj_jzgzngx"
|
|
label="子女关系">
|
|
<template scope="scope">
|
|
{{scope.row.dj_jzgzngx}}
|
|
</template>
|
|
</el-table-column>-->
|
|
<el-table-column label="分工会" prop="jzgfghname" header-align="center"
|
|
align="center"
|
|
show-overflow-tooltip sortable width="200px">
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="dj_iphone"
|
|
label="手机号码">
|
|
<template scope="scope">
|
|
{{scope.row.dj_iphone}}
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="dj_djlx"
|
|
label="摸底登记类型" sortable>
|
|
<template scope="{row}">
|
|
<span v-if="row.dj_djlx==1">幼升小</span>
|
|
<span v-if="row.dj_djlx==2">小学</span>
|
|
<span v-if="row.dj_djlx==3">初升高</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="dj_tbrq"
|
|
label="填报日期" sortable>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="dj_sqzt"
|
|
sortable
|
|
label="信息审核状态">
|
|
<template scope="{row}">
|
|
<span :style="'color: ' + row.stateColor">{{row.stateName}}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
label="操作"
|
|
width="200px">
|
|
<template slot-scope="{row}">
|
|
<el-button size="mini" @click="openView(row)">查看
|
|
</el-button>
|
|
<el-button v-if="row.dj_sqzt===5100" size="mini" type="primary"
|
|
@click="openAudit(row)">审核
|
|
</el-button>
|
|
<el-button v-if="[5115,5118,5200].includes(row.dj_sqzt)" size="mini"
|
|
type="danger"
|
|
@click="ch(row)">
|
|
撤回
|
|
</el-button>
|
|
</template>
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
<el-row class="el-pagination-container">
|
|
<el-pagination
|
|
@size-change="pageSizeChange"
|
|
@current-change="pageNumberChange"
|
|
:current-page="pageForm.pageNumber"
|
|
:page-sizes="[10, 20, 30, 50]"
|
|
:page-size="pageForm.pageSize"
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
:total="pageForm.totalCount">
|
|
</el-pagination>
|
|
</el-row>
|
|
</el-card>
|
|
</template>
|
|
|
|
<template #edit>
|
|
<rxdj-info ref="auditInfo">
|
|
<template slot="audit">
|
|
<el-tab-pane label="分工会审核" :name="fghAuditTabName">
|
|
<el-form :model="formData" ref="Form" label-width="100px">
|
|
<el-form-item label="审核人">
|
|
${@shiro.getPrincipalProperty('username')}
|
|
</el-form-item>
|
|
<el-form-item label="审核时间">
|
|
{{moment().format('YYYY-MM-DD')}}
|
|
</el-form-item>
|
|
<el-form-item label="审核意见" prop="dj_fghshyj" class="is-required">
|
|
<el-input v-model="formData.dj_fghshyj" type="textarea"
|
|
maxlength="300"
|
|
rows="5"></el-input>
|
|
</el-form-item>
|
|
</el-form>
|
|
<el-row class="mt20 text-center">
|
|
<el-button type="danger" @click="doHandle(5115)">拒 绝</el-button>
|
|
<el-button type="info" @click="doHandle(5118)">退 回</el-button>
|
|
<el-button type="success" @click="doHandle(5200)">通 过</el-button>
|
|
|
|
</el-row>
|
|
</el-tab-pane>
|
|
</template>
|
|
</rxdj-info>
|
|
</template>
|
|
|
|
<template #view>
|
|
<rxdj-info ref="viewInfo"></rxdj-info>
|
|
</template>
|
|
</guava>
|
|
</div>
|
|
|
|
<script>
|
|
var vue = new Vue({
|
|
el: '#app',
|
|
mixins: [initTableMixins],
|
|
components: {
|
|
'rxdj-info': httpVueLoader('/components/zgfw/rxdj/rxdj.vue'),
|
|
},
|
|
data() {
|
|
return {
|
|
unions: [],
|
|
units: [],
|
|
pageForm: {
|
|
lx: 1,
|
|
year: moment().format('YYYY') + "",
|
|
isAudit: 3
|
|
},
|
|
smm: {status: 'table', id: ''},
|
|
tableData: [],
|
|
formData: {},
|
|
fghAuditTabName: 'fghAuditTabName'
|
|
}
|
|
},
|
|
methods: {
|
|
pageData: function () {
|
|
$.post(base + '/platform/zgfw/rxdj/sh/pageData', this.pageForm).then(res => {
|
|
this.tableData = res.data.list
|
|
this.pageForm.totalCount = res.data.totalCount
|
|
})
|
|
},
|
|
openView(row) {
|
|
this.$refs.guava.view()
|
|
this.$refs.viewInfo.openView(clone(row))
|
|
},
|
|
openAudit(row) {
|
|
this.formData = clone(row)
|
|
this.formData.dj_fghshyj = "情况属实。"
|
|
this.$refs.guava.edit()
|
|
this.$refs.auditInfo.openAudit(clone(row), this.fghAuditTabName)
|
|
},
|
|
async doHandle(s) {
|
|
if (this.formData.dj_fghshyj === null) {
|
|
this.$message.warning("请填写审核信息")
|
|
return
|
|
}
|
|
let title = s === 5200 ? "通过" : s === 5115 ? "拒绝" : "退回"
|
|
const confirm = await this.$confirm('确认要' + title + '吗?', '提示', {
|
|
confirmButtonText: '确定',
|
|
cancelButtonText: '取消',
|
|
type: 'warning'
|
|
})
|
|
if (confirm === "confirm") {
|
|
this.formData.dj_sqzt = s
|
|
const resp = await $.post('/platform/zgfw/rxdj/sh/dofghSh', this.formData)
|
|
if (resp.code === 0) {
|
|
this.notifySuccess(resp.msg)
|
|
this.$refs.guava.index()
|
|
this.pageData()
|
|
}
|
|
}
|
|
},
|
|
ch(row) {
|
|
this.$confirm('确定要撤回吗?', '提示', {
|
|
confirmButtonText: '确定',
|
|
cancelButtonText: '取消',
|
|
type: 'warning'
|
|
}).then(() => {
|
|
$.post('/platform/zgfw/rxdj/sh/doch', {
|
|
dj_id: row.dj_id,
|
|
dj_sqzt: 5100
|
|
}).then(res => {
|
|
if (res.code === 0) {
|
|
this.$message.success(res.msg)
|
|
this.pageData()
|
|
}
|
|
})
|
|
}).catch(() => {
|
|
});
|
|
},
|
|
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>
|
|
|
|
<!--#
|
|
}
|
|
#--> |