Files
2026-09-08 19:49:21 +08:00

124 lines
4.2 KiB
HTML

<!--#
layout("/mobile/platform.html"){
#-->
<div id="app" v-cloak>
<van-nav-bar title="困难帮扶审核" left-arrow placeholder fixed
@click-left="history.back()"></van-nav-bar>
<difficulty-info ref="info" :id.sync="id" title="分工会审核" :handle="handle">
<template #handle>
<div class="van-cell-group__title">
<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 v-model="formData.auditTime" label="审核时间" readonly></van-field>
<van-field v-model="formData.auditOpinion"
required
rows="1"
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.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 @click="doAudit(1)">拒 绝
</van-button>
</van-col>
<!-- <van-col span="8">-->
<!-- <van-button :color="themeColor" block @click="doAudit(2)">返回修改-->
<!-- </van-button>-->
<!-- </van-col>-->
<van-col span="12">
<van-button :color="themeColor" block @click="doAudit(2)">通 过
</van-button>
</van-col>
</van-row>
</van-form>
</template>
</difficulty-info>
</div>
<script>
var vue = new Vue({
el: '#app',
mixins: [mobileMixins],
data() {
return {
handle: true,
id: "",
formData: {},
}
},
components: {
'mobile-sign': httpVueLoader('/components/sign/mobileSign.vue'),
'difficulty-info': httpVueLoader('/components/mobile/difficulty/info.vue?v=' + new Date().getTime()),
},
methods: {
async doAudit(pass) {
if (!this.formData.auditOpinion) {
this.$toast.fail('请填写审核意见');
return
}
if (this.$refs.signature.checkNull()) {
this.$toast('请签字')
return
}
this.$refs.signature.submitSign()
this.formData.pass = pass
const resp = await $.post("/platform/fw/difficulty/twoOrganization/doReview", this.formData)
if(resp.code===0){
this.$toast.success('审核成功');
setTimeout(() => {
// location.href = '/mobile/difficulty/audit'
history.back()
}, 1000)
}else{
this.$toast.fail('审核失败');
}
},
},
async created() {
this.id = GetQueryString("id")
this.formData = {
id: this.id,
username: "${@shiro.getPrincipalProperty('username')}",
auditTime: moment().format('YYYY-MM-DD'),
auditOpinion: null,
auditSign: ""
}
}
})
</script>
<!--#
}
#-->