98 lines
3.7 KiB
HTML
98 lines
3.7 KiB
HTML
<!--#
|
|
layout("/mobile/platform.html"){
|
|
#-->
|
|
|
|
<div id="app" v-cloak>
|
|
<van-nav-bar title="基层工会审核" left-arrow placeholder fixed @click-left="pjaxReplace('/mobile/index')"></van-nav-bar>
|
|
<rxdj-mobile-info :dj_id="dj_id" title="基层工会审核" :handle="handle">
|
|
<template #handle>
|
|
<div class="handle">
|
|
<van-form>
|
|
<van-field readonly value="${@shiro.getPrincipalProperty('username')}" name="username" label="审核人员"></van-field>
|
|
|
|
<van-field v-model="formData.auditTime" label="审核时间" readonly></van-field>
|
|
|
|
<van-field
|
|
v-model="formData.dj_fghshyj"
|
|
required
|
|
rows="1"
|
|
autosize
|
|
label="审核意见"
|
|
type="textarea"
|
|
placeholder="请输入审核意见"
|
|
></van-field>
|
|
</van-form>
|
|
|
|
<div style="display: flex; justify-content: space-around; padding: 5px 0 20px 0">
|
|
<van-button type="danger" plain style="flex: 1; margin: 0 10px 0 10px" @click="doHandle(5115)">拒绝</van-button>
|
|
<van-button color="RGB(8,23,118)" plain style="flex: 1; margin: 0 10px 0 10px" @click="doHandle(5118)">退回</van-button>
|
|
<van-button color="RGB(8,23,118)" style="flex: 1; margin: 0 10px 0 10px" @click="doHandle(5200)">通过</van-button>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</rxdj-mobile-info>
|
|
</div>
|
|
|
|
<script>
|
|
const vue = new Vue({
|
|
el: "#app",
|
|
data() {
|
|
return {
|
|
formData: {},
|
|
dj_id: GetQueryString("dj_id"),
|
|
handle: true
|
|
}
|
|
},
|
|
components: {
|
|
"rxdj-mobile-info": httpVueLoader("/components/zgfw/rxdj/mobileRxdj.vue?v=" + new Date().getTime())
|
|
},
|
|
methods: {
|
|
async doHandle(s) {
|
|
this.formData.dj_sqzt = s
|
|
if (this.formData.dj_fghshyj == "") {
|
|
vant.Toast("请填写审核意见")
|
|
return
|
|
}
|
|
vant.Dialog.confirm({
|
|
title: "标题",
|
|
message: "您确定要提交吗?"
|
|
})
|
|
.then(async () => {
|
|
const loading = this.$toast({
|
|
duration: 0,
|
|
message: "提交中...",
|
|
forbidClick: true,
|
|
loadingType: "spinner",
|
|
type: "loading",
|
|
overlay: true
|
|
})
|
|
const res = await $.post("/platform/zgfw/rxdj/sh/dofghSh", this.formData)
|
|
if (res.code === 0) {
|
|
setTimeout(() => {
|
|
loading.type = "success"
|
|
loading.message = "提交成功"
|
|
window.location.href = document.referrer
|
|
}, 500)
|
|
}
|
|
})
|
|
.catch(() => {})
|
|
}
|
|
},
|
|
async created() {
|
|
this.formData = {
|
|
dj_id: this.dj_id,
|
|
username: "${@shiro.getPrincipalProperty('username')}",
|
|
auditTime: moment().format("YYYY-MM-DD"),
|
|
dj_fghshyj: ""
|
|
}
|
|
const { data } = await $.get("/platform/zgfw/mobile/rxdj/audit/GetRxdjDjSqzt", { dj_id: this.dj_id })
|
|
this.handle = data === 5100
|
|
},
|
|
mounted() {}
|
|
})
|
|
</script>
|
|
|
|
<!--#
|
|
}
|
|
#-->
|