221 lines
8.6 KiB
HTML
221 lines
8.6 KiB
HTML
<!--#
|
|
layout("/layouts/platform.html"){
|
|
#-->
|
|
|
|
|
|
<div id="app" v-cloak>
|
|
<guava ref="guava">
|
|
|
|
<el-card shadow="never">
|
|
<div class="search">
|
|
|
|
<div class="search-item">
|
|
<div class="search-item-label">年度:</div>
|
|
<div class="search-item-option">
|
|
<el-date-picker
|
|
style="width: 100%;"
|
|
:clearable="true"
|
|
@change="doSearch"
|
|
placeholder="选择年"
|
|
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-select placeholder="所属工会" v-model="pageForm.unionId" style="width: 100%;"
|
|
clearable="true"
|
|
@change="doSearch"
|
|
filterable="true">
|
|
<el-option v-for="item in unions" :label="item.unionname" :value="item.id"></el-option>
|
|
</el-select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</el-card>
|
|
|
|
|
|
<el-card shadow="never" class="mt20">
|
|
<table-tool label="评审列表" :app="this">
|
|
<template #func>
|
|
<el-radio-group @change="doSearch" size="small" v-model="pageForm.isAudit">
|
|
<el-radio-button :label="true">已评审</el-radio-button>
|
|
<el-radio-button :label="false">未评审</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=='stateId'" scope="{row}">
|
|
<vi-table-state :state="row"></vi-table-state>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column prop="userOnline" align="center" header-align="center" label="操作" width="170px"
|
|
fixed="right">
|
|
<template scope="{row}">
|
|
<el-button plain size="mini" @click="openView(row)">
|
|
查看
|
|
</el-button>
|
|
<el-button size="mini" type="primary" @click="openSubmit(row)"
|
|
v-if="row.stateId==='4580'">
|
|
评审
|
|
</el-button>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table>
|
|
<!--#include("/layouts/pagination.html"){}#-->
|
|
|
|
</el-card>
|
|
|
|
|
|
<template #view>
|
|
<four-one-activity ref="info"></four-one-activity>
|
|
</template>
|
|
|
|
<template #edit>
|
|
<four-one-activity ref="edit" label="专家评审" handle>
|
|
<template #handle>
|
|
<el-form :model="formData" ref="form" :rules="formRules" label-position="right"
|
|
style="padding: 20px 0"
|
|
label-width="120px">
|
|
<el-form-item label="评审信息 " 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-col :span="12">
|
|
<el-form-item prop="opinion" label="评审等级">
|
|
<el-select v-model="formData.assessGrade" placeholder="请选择评审等级" style="width: 100%">
|
|
<el-option
|
|
v-for="item in assessGradeOptions"
|
|
:key="item"
|
|
:label="item"
|
|
:value="item">
|
|
</el-option>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
</el-form>
|
|
<div style="float: right;margin: 20px 0">
|
|
<el-button type="primary" @click="doReview">提交
|
|
</el-button>
|
|
|
|
</div>
|
|
</template>
|
|
</four-one-activity>
|
|
</template>
|
|
|
|
|
|
</guava>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<script>
|
|
|
|
var vue = new Vue({
|
|
el: '#app',
|
|
mixins: [initTableMixins],
|
|
data() {
|
|
return {
|
|
unions: [],
|
|
assessGradeOptions: ["优秀", "较好", "良好", "一般"],
|
|
pageForm: {
|
|
isAudit: false,
|
|
year: moment().format('YYYY') + "",
|
|
},
|
|
tableColumns: [
|
|
{prop: 'year', label: '年度'},
|
|
{prop: 'activityApplyUserName', label: '申请人'},
|
|
{prop: 'activityApplyUserMobile', label: '联系方式'},
|
|
{prop: 'activityApplyUserUnionName', label: '所在工会', sortable: true},
|
|
{prop: 'activityApplyDate', label: '申请时间', sortable: true},
|
|
{prop: 'stateId', label: '申报状态', sortable: true},
|
|
]
|
|
}
|
|
},
|
|
components: {
|
|
'four-one-activity': httpVueLoader('/components/fourOneActivity/fourOneActivityInfo.vue'),
|
|
},
|
|
methods: {
|
|
openSubmit(data) {
|
|
this.formData = {
|
|
id: data.id,
|
|
username: "${@shiro.getPrincipalProperty('username')}",
|
|
auditTime: moment().format('YYYY-MM-DD'),
|
|
assessGrade: ""
|
|
}
|
|
this.$refs.edit.getInfo(data.id)
|
|
this.$refs.guava.edit()
|
|
},
|
|
openView(data) {
|
|
this.$refs.info.getInfo(data.id)
|
|
this.$refs.guava.view()
|
|
},
|
|
async doReview() {
|
|
if (this.formData.assessGrade === "") {
|
|
this.notifyWarning("请选择评审等级")
|
|
return
|
|
}
|
|
const confirm = await this.$confirm('确定要提交吗?', '提示', {
|
|
confirmButtonText: '确定',
|
|
cancelButtonText: '取消',
|
|
type: 'warning'
|
|
})
|
|
if (confirm === "confirm") {
|
|
const resp = await $.post(loc() + "/doReview", this.formData)
|
|
if (resp.code === 0) {
|
|
this.notifySuccess(resp.msg)
|
|
this.doSearch()
|
|
this.$refs.guava.index()
|
|
} else {
|
|
this.notifyError(resp.msg)
|
|
}
|
|
}
|
|
},
|
|
|
|
},
|
|
async created() {
|
|
this.unions = await getUnions(null)
|
|
this.pageData()
|
|
}
|
|
})
|
|
</script>
|
|
|
|
|
|
<!--#
|
|
}
|
|
#--> |