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

114 lines
4.3 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/zqsh/pageData">
<template slot="operation">
<el-table-column label="操作" fixed="right" width="200px">
<template slot-scope="{row}">
<el-button size="mini" :type="row.state>80?null:'primary'"
@click="openView(row,row.state>80)">
{{row.state>80?'查看':'审核'}}
</el-button>
<el-button size="mini" type="danger" v-if="row.state>80 && row.state<=90"
@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="zqsh">
<el-form :model="formData" 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="zqxghyj">
<el-input maxlength="300" rows="5" type="textarea"
v-model="formData.zqxghyj"></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'
},
formData: {},
handleShow: false
}
},
components: {
'syr-table': httpVueLoader('/components/syr/syrtable.vue'),
'syr-info': httpVueLoader('/components/syr/syrinfo.vue'),
'sign': httpVueLoader('/components/sign/sign.vue?v=2.0.0'),
'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, 'zqsh')
this.formData = {
id: row.id,
zqxghyj: ''
}
}
},
async doHandle(res) {
if (this.formData.zqxghyj === '') {
this.$message.info('请填写审核意见')
return
}
const resp = await $.post('/platfotm/syr/info/zqsh/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>
<!--#
}
#-->