Files
2026-09-20 15:46:34 +08:00

116 lines
4.3 KiB
HTML
Raw Permalink 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="审核" request="/platfotm/syr/info/xjsh/pageData">
<template slot="operation">
<el-table-column label="操作" fixed="right" width="100">
<template slot-scope="{row}">
<el-button size="mini" :type="row.state>30?null:'primary'"
@click="openView(row,row.state>30)">
{{row.state>30?'查看':'评审'}}
</el-button>
</template>
</el-table-column>
</template>
</syr-table>
<template #edit>
<syr-info-new ref="auditInfo">
<template #handle>
<el-tab-pane label="校工会审核" name="xjsh">
<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="stxghyj">
<el-input maxlength="300" rows="5" type="textarea"
v-model="formData.stxghyj"></el-input>
</el-form-item>
<el-form-item label="签字" prop="stxghfzrqz">
<sign :qz.sync="formData.stxghfzrqz" 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'
},
formData: {},
}
},
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, 'xjsh')
this.formData = {
id: row.id,
stxghyj: '',
stxghfzrqz: ''
}
}
},
async doHandle(res) {
if (this.formData.stxghyj === '') {
this.$message.info('请填写审核意见')
return
}
if (this.formData.stxghfzrqz === '') {
this.$message.info('请扫描二维码签字')
return
}
this.formData.state = res ? 40 : 35
const resp = await $.post('/platfotm/syr/info/xjsh/doHandle', this.formData)
if (resp.code === 0) {
this.$refs.guava.index()
this.notifySuccess(resp.msg)
location.reload()
}
},
async getUnitList() {
this.searchData.unitid = ''
this.unitList = await getUnit(this.searchData.unionid)
}
}
})
</script>
<!--#
}
#-->