135 lines
5.5 KiB
HTML
135 lines
5.5 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/jtsqyjcs/pageData"
|
||
yeartype="jtyear">
|
||
<template slot="operation">
|
||
<el-table-column label="操作" fixed="right" width="200">
|
||
<template slot-scope="{row}">
|
||
<el-button size="mini" :type="row.state>91?null:'primary'"
|
||
@click="openView(row,row.state>91)">
|
||
{{row.state>91?'查看':'审核'}}
|
||
</el-button>
|
||
<el-button size="mini" type="danger" v-if="row.state===92"
|
||
@click="doRollBack(row)">撤回
|
||
</el-button>
|
||
</template>
|
||
</el-table-column>
|
||
</template>
|
||
</syr-table>
|
||
|
||
<template #edit>
|
||
<syr-info-new ref="auditInfo">
|
||
<template #handle>
|
||
<el-tab-pane label="院级工会结题初审" name="jtcsyjsh">
|
||
<el-form :model="formData" label-suffix=":" 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="jtfghcsIspass">
|
||
<el-radio-group v-model="formData.jtfghcsIspass" 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="jtfghcsyj">
|
||
<el-input maxlength="300" rows="5" type="textarea"
|
||
v-model="formData.jtfghcsyj"></el-input>
|
||
</el-form-item>
|
||
<el-form-item label="签字" prop="jtfghcsQz">
|
||
<sign :qz.sync="formData.jtfghcsQz" prefix="syrjtyjsh"></sign>
|
||
</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'
|
||
},
|
||
formData: {
|
||
id: null,
|
||
jtfghcsIspass: true,
|
||
jtfghcsyj: null,
|
||
jtfghcsQz: null
|
||
},
|
||
handleShow: false,
|
||
rules: {
|
||
jtfghcsIspass: [{required: true, message: '请选择是否同意结题', trigger: ['blur', 'change']}],
|
||
jtfghcsyj: [{required: true, message: '请输入审核意见', trigger: ['blur', 'change']}],
|
||
jtfghcsQz: [{required: false, 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, row.state > 90 ? '9' : '1')
|
||
} else {
|
||
this.$refs.guava.edit()
|
||
this.$refs.auditInfo.openView(row.id, 'jtcsyjsh')
|
||
this.formData = {
|
||
id: row.id,
|
||
jtfghcsIspass: true,
|
||
jtfghcsyj: null,
|
||
jtfghcsQz: null
|
||
}
|
||
}
|
||
},
|
||
async doHandle(res) {
|
||
const valid = await this.$refs.Form.validate()
|
||
if (!valid) return
|
||
|
||
const resp = await $.post('/platfotm/syr/info/jtsqyjcs/doAudit', 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>
|
||
|
||
<!--#
|
||
}
|
||
#-->
|