127 lines
4.3 KiB
HTML
127 lines
4.3 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 :handle="handle" :id="id" ref="info" title="部门工会审核">
|
|
<template #handle>
|
|
|
|
<div class="van-cell-group__title mt5">
|
|
<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
|
|
v-model="formData.auditOpinion"
|
|
rows="1"
|
|
autosize
|
|
label="审核意见"
|
|
type="textarea"
|
|
placeholder="请输入审核意见"></van-field>
|
|
|
|
<van-field label="签字" style="flex-flow: column">
|
|
<template #label>
|
|
<div class="mb10">签  字</div>
|
|
</template>
|
|
<template #input>
|
|
<mobile-sign ref="signature" :my_sign.sync="formData.auditSign"></mobile-sign>
|
|
</template>
|
|
</van-field>
|
|
|
|
<van-row gutter="20" style="margin-top: 30px;padding: 0 25px">
|
|
<van-col span="12">
|
|
<van-button :color="themeColor" plain block :loading="formLoading" :disabled="formLoading" @click="doAudit(false)">拒 绝
|
|
</van-button>
|
|
</van-col>
|
|
|
|
<van-col span="12">
|
|
<van-button :color="themeColor" block :loading="formLoading" :disabled="formLoading" @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,
|
|
formLoading: false,
|
|
id: "",
|
|
formData: {},
|
|
}
|
|
},
|
|
components: {
|
|
'member-menber-info': httpVueLoader('/components/mobile/member/MobileMemberInfo.vue?v=' + new Date().getTime()),
|
|
'mobile-sign': httpVueLoader('/components/sign/mobileSign.vue'),
|
|
},
|
|
methods: {
|
|
|
|
doAudit(pass) {
|
|
if (this.formLoading) return
|
|
// 与 PC 共用审核参数;提交前读取手写签名,避免仅提交历史签名。
|
|
this.$refs.signature.submitSign()
|
|
this.$set(this.formData, 'auditPass', pass)
|
|
this.formLoading = true
|
|
$.post('/platform/member/apply/audit/doAudit', this.formData).then(resp => {
|
|
requestLaterFun(resp, () => {
|
|
this.$toast.success('审核成功')
|
|
location.replace('/mobile/member/audit')
|
|
}, () => {
|
|
this.$toast.fail('审核失败')
|
|
}, () => {})
|
|
}).fail(() => {
|
|
this.$toast.fail('审核失败,请稍后重试')
|
|
}).always(() => {
|
|
this.formLoading = false
|
|
})
|
|
},
|
|
},
|
|
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>
|
|
|
|
|
|
<!--#
|
|
}
|
|
#-->
|