141 lines
5.8 KiB
HTML
141 lines
5.8 KiB
HTML
<!--#
|
|
layout("/layouts/platform.html"){
|
|
#-->
|
|
<!--校工会评审结果-->
|
|
<div id="app" v-cloak>
|
|
<guava ref="guava">
|
|
<syr-table :smm.sync="smm" auditval="评审" ref="syrTable" request="/platfotm/syr/info/psjg/pageData"
|
|
yeartype="jtyear">
|
|
<template slot="operation">
|
|
<el-table-column label="操作" fixed="right" width="200px">
|
|
<template slot-scope="{row}">
|
|
<el-button size="mini" :type="row.state>110?null:'primary'"
|
|
@click="openView(row,row.state>110)">
|
|
{{row.state>110?'查看':'评审'}}
|
|
</el-button>
|
|
<el-button size="mini" type="danger" v-if="row.state>110 && row.state<=120"
|
|
@click="doRollBack(row)">撤回
|
|
</el-button>
|
|
</template>
|
|
</el-table-column>
|
|
</template>
|
|
</syr-table>
|
|
|
|
<template #edit>
|
|
<syr-info-new ref="auditInfo">
|
|
<template slot="handle">
|
|
<el-tab-pane label="校工会评审结果" name="xghpsjg">
|
|
<el-form :model="formData" label-width="100px" ref="Form" :rules="rules">
|
|
<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="ispass">
|
|
<el-radio-group v-model="formData.ispass" size="mini">
|
|
<el-radio :label="true" border>是</el-radio>
|
|
<el-radio :label="false" border>否</el-radio>
|
|
</el-radio-group>
|
|
</el-form-item>
|
|
<el-form-item label="是否优秀" prop="isgood" v-if="formData.ispass">
|
|
<el-radio-group v-model="formData.isgood" size="mini">
|
|
<el-radio :label="true" border>是</el-radio>
|
|
<el-radio :label="false" border>否</el-radio>
|
|
</el-radio-group>
|
|
</el-form-item>
|
|
|
|
<el-form-item label="审核意见" prop="jtxghyj">
|
|
<el-input maxlength="100" rows="5" type="textarea"
|
|
v-model="formData.jtxghyj"></el-input>
|
|
</el-form-item>
|
|
|
|
</el-form>
|
|
<el-row class="mt20 text-center">
|
|
<el-button @click="$refs.guava.index()">返 回</el-button>
|
|
<el-button @click="doHandle(true)" type="primary">提 交</el-button>
|
|
</el-row>
|
|
</el-tab-pane>
|
|
</template>
|
|
</syr-info-new>
|
|
</template>
|
|
|
|
<template #view>
|
|
<syr-info-new ref="viewInfo"></syr-info-new>
|
|
</template>
|
|
</guava>
|
|
|
|
</div>
|
|
<script>
|
|
let vue = new Vue({
|
|
el: '#app',
|
|
mixins: [initTableMixins],
|
|
data() {
|
|
return {
|
|
smm: {
|
|
status: 'table'
|
|
},
|
|
unionList: [],
|
|
unitList: [],
|
|
searchData: {
|
|
unionid: '',
|
|
unitid: ''
|
|
},
|
|
formData: {},
|
|
handleShow: false,
|
|
rules: {
|
|
ispass: [{required: true, message: '请选择是否通过', trigger: ['blur', 'change']}],
|
|
isgood: [{required: true, message: '请选择是否优秀', trigger: ['blur', 'change']}],
|
|
jtxghyj: [{required: true, message: '请输入审核意见', trigger: ['blur', 'change']}],
|
|
}
|
|
}
|
|
},
|
|
components: {
|
|
'syr-table': httpVueLoader('/components/syr/syrtable.vue'),
|
|
'syr-info': httpVueLoader('/components/syr/syrinfo.vue'),
|
|
'syr-info-new': httpVueLoader('/components/syr/SyrInfoNew.vue'),
|
|
},
|
|
methods: {
|
|
openView(row, isView) {
|
|
if (isView) {
|
|
this.$refs.guava.view()
|
|
this.$refs.viewInfo.openView(row.id, 'xghpsjg')
|
|
} else {
|
|
this.$refs.guava.edit()
|
|
this.$refs.auditInfo.openView(row.id, 'xghpsjg')
|
|
this.$set(this.formData, 'id', row.id)
|
|
this.$set(this.formData, 'ispass', null)
|
|
this.$set(this.formData, 'isgood', null)
|
|
this.$set(this.formData, 'isgood', null)
|
|
this.$set(this.formData, 'isgood', null)
|
|
|
|
}
|
|
},
|
|
async doHandle() {
|
|
const valid = await this.$refs.Form.validate()
|
|
if (!valid) return
|
|
const resp = await $.post('/platfotm/syr/info/psjg/doHandle', this.formData)
|
|
if (resp.code === 0) {
|
|
this.$refs.guava.index()
|
|
this.notifySuccess(resp.msg)
|
|
this.$refs['syrTable'].doSearch()
|
|
}
|
|
},
|
|
async doRollBack(row) {
|
|
const resp = await $.get('/platfotm/syr/info/yjsh/doRollBack', {id: row.id, state: row.state})
|
|
if (resp.code === 0) {
|
|
this.notifySuccess(resp.msg)
|
|
this.$refs['syrTable'].doSearch()
|
|
}
|
|
}
|
|
}
|
|
})
|
|
</script>
|
|
|
|
<!--#
|
|
}
|
|
#-->
|
|
|
|
|
|
|