126 lines
4.6 KiB
HTML
126 lines
4.6 KiB
HTML
<!--#
|
|
layout("/mobile/platform.html"){
|
|
#-->
|
|
|
|
<div id="app">
|
|
<van-nav-bar title="职工之家场地预约校工会审核" left-arrow placeholder fixed
|
|
@click-left="history.back()"></van-nav-bar>
|
|
|
|
<site_h5_info :id="id">
|
|
<template #audit>
|
|
<div class="van-cell-group__title mt10">
|
|
<div class="van-sidebar-item van-sidebar-item--select">
|
|
校工会审核
|
|
</div>
|
|
</div>
|
|
<van-form>
|
|
<van-field readonly
|
|
value="${@shiro.getPrincipalProperty('username')}"
|
|
name="username"
|
|
label="审核人员"
|
|
></van-field>
|
|
|
|
<van-field :value="moment().format('YYYY-MM-DD')"
|
|
label="审核时间"
|
|
readonly></van-field>
|
|
|
|
<van-field v-model="formData.schoolOption"
|
|
rows="1"
|
|
required
|
|
autosize
|
|
label="审核意见"
|
|
type="textarea"
|
|
placeholder="请输入审核意见"
|
|
></van-field>
|
|
|
|
<!-- <van-field label="签字" required style="flex-flow: column">-->
|
|
<!-- <template #label>-->
|
|
<!-- <div class="mb10">签  字</div>-->
|
|
<!-- </template>-->
|
|
<!-- <template #input>-->
|
|
<!-- <mobile-sign ref="signature" :my_sign.sync="formData.sign"></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 @click="doAudit(false)">拒 绝
|
|
</van-button>
|
|
</van-col>
|
|
<!-- <van-col span="8">-->
|
|
<!-- <van-button color="red" block plain @click="doAudit(2)">返回修改-->
|
|
<!-- </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>
|
|
</site_h5_info>
|
|
</div>
|
|
|
|
<script>
|
|
var vue = new Vue({
|
|
el: '#app',
|
|
mixins: [mobileMixins],
|
|
components: {
|
|
'site_h5_info': httpVueLoader('/components/activity/site/SiteH5Info.vue'),
|
|
'mobile-sign': httpVueLoader('/components/sign/mobileSign.vue'),
|
|
},
|
|
data() {
|
|
return {
|
|
id: GetQueryString("id"),
|
|
formData: {}
|
|
}
|
|
},
|
|
methods: {
|
|
async doAudit(pass) {
|
|
if (this.formData.schoolOption == null || this.formData.schoolOption === '') {
|
|
this.$toast('请填写审核意见')
|
|
return
|
|
}
|
|
|
|
this.$dialog.confirm({
|
|
title: '提示',
|
|
message: '您确定要' + (pass ? '通过' : '拒绝') + '吗?',
|
|
}).then(async () => {
|
|
const loading = this.$toast.loading({
|
|
message: '提交中...',
|
|
forbidClick: true,
|
|
})
|
|
const {
|
|
data,
|
|
code,
|
|
msg
|
|
} = await $.post('/platform/activity/site/review/doProcess',
|
|
{
|
|
id: this.id,
|
|
schoolOption: this.formData.schoolOption,
|
|
isPass: pass
|
|
}
|
|
)
|
|
loading.clear()
|
|
if (code === 0) {
|
|
this.$toast.success(msg)
|
|
setTimeout(() => {
|
|
window.history.back()
|
|
}, 500)
|
|
} else {
|
|
this.$toast.fail(msg)
|
|
}
|
|
}).catch(() => {
|
|
})
|
|
}
|
|
},
|
|
created() {
|
|
|
|
}
|
|
})
|
|
</script>
|
|
|
|
<!--#
|
|
}
|
|
#--> |