Files
UNION_HUTB/target/classes/views/mobile/member/union_Audit.html
T
2026-09-09 09:14:28 +08:00

114 lines
3.4 KiB
HTML

<!--#
layout("/mobile/platform.html"){
#-->
<div id="app" v-cloak>
<van-nav-bar fixed left-arrow placeholder title="会员审核"
@click-left="history.back()"></van-nav-bar>
<member-menber-info ref="info" :id="id" title="院级工会审核" :handle="handle">
<template #handle>
<div class="van-cell-group__title mt20">
<div class="van-sidebar-item van-sidebar-item--select">
院级工会审核
</div>
</div>
<van-form>
<van-field
label="审核人员"
name="username"
readonly
value="${@shiro.getPrincipalProperty('username')}"
></van-field>
<van-field v-model="formData.auditTime" label="审核时间" readonly></van-field>
<van-field required
v-model="formData.auditOpinion"
rows="1"
autosize
label="审核意见"
type="textarea"
placeholder="请输入审核意见"
></van-field>
<van-row gutter="20" style="margin-top: 30px;padding: 0 25px">
<van-col span="12">
<van-button :color="themeColor" plain block @click="doAudit(false)">拒 绝
</van-button>
</van-col>
<van-col span="12">
<van-button :color="themeColor" block @click="doAudit(true)">通 过
</van-button>
</van-col>
</van-row>
</van-form>
</template>
</member-menber-info>
</div>
<script>
const vue = new Vue({
el: '#app',
mixins: [mobileMixins],
data() {
return {
handle: true,
id: "",
formData: {},
}
},
components: {
'member-menber-info': httpVueLoader('/components/mobile/member/MobileMemberInfo.vue?v=' + new Date().getTime()),
},
methods: {
async doAudit(pass) {
if (!this.formData.auditOpinion) {
this.$toast.fail('请填写审核意见');
return
}
this.formData.auditPass = pass
const resp = await $.post("/platform/member/apply/audit/doAudit", this.formData)
if(resp.code===0){
this.$toast.success('审核成功');
setTimeout(() => {
location.href = '/mobile/member/audit'
}, 1000)
}else{
this.$toast.fail('审核失败')
}
},
},
async created() {
const record_id = GetQueryString("record_id")
const user_id = GetQueryString("user_id")
setTimeout(() => {
this.$refs.info.getUserInfo(user_id)
this.$refs.info.getAuditInfo(record_id)
}, 500)
this.formData = {
recordId: record_id,
username: "${@shiro.getPrincipalProperty('username')}",
auditTime: moment().format('YYYY-MM-DD'),
auditOpinion: null
}
}
})
</script>
<!--#
}
#-->