Files
UNION_NSI/target/classes/views/platform/syr/info/yjsh.html
T
2026-09-08 19:49:21 +08:00

123 lines
4.8 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!--#
layout("/layouts/platform.html"){
#-->
<div id="app" v-cloak>
<guava ref="guava">
<syr-table :smm.sync="smm" auditval="审核" ref="syrTable" request="/platfotm/syr/info/yjsh/pageData">
<template slot="operation">
<el-table-column label="操作" fixed="right" width="200px">
<template slot-scope="{row}">
<el-button size="mini" :type="row.state>20?null:'primary'"
@click="openView(row,row.state>20)">
{{row.state>20?'查看':'审核'}}
</el-button>
<el-button size="mini" type="danger" v-if="row.state>20 && row.state<=30"
@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="yjsh">
<el-form :model="formData" label-suffix="" label-width="100px" ref="Form">
<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="stbmghyj">
<el-input maxlength="300" rows="5" type="textarea"
v-model="formData.stbmghyj"></el-input>
</el-form-item>
<el-form-item label="签字" prop="stbmghfzrqz">
<sign :qz.sync="formData.stbmghfzrqz" prefix="syrxjsh"></sign>
</el-form-item>
</el-form>
<el-row class="mt20 text-center">
<el-button @click="doHandle(false)" type="danger">退 回</el-button>
<el-button @click="doHandle(true)" type="success">通 过</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',
request: '/platfotm/syr/info/yjsh/pageData'
},
formData: {},
handleShow: false,
}
},
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)
} else {
this.$refs.guava.edit()
this.$refs.auditInfo.openView(row.id, 'yjsh')
this.formData = {
id: row.id,
stbmghfzrqz: '',
stbmghyj: ''
}
}
},
async doHandle(res) {
if (this.formData.stbmghyj === '') {
this.$message.info('请填写审核意见')
return
}
/* if (this.formData.stbmghfzrqz === '') {
this.$message.info('请扫描二维码签字')
return
}*/
this.formData.state = res ? 30 : 10
const resp = await $.post('/platfotm/syr/info/yjsh/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>
<!--#
}
#-->