2022-05-19 13:35:55 +08:00
|
|
|
<template>
|
2022-05-19 17:38:34 +08:00
|
|
|
<div class="result" showPage='false'>
|
|
|
|
|
|
|
|
|
|
<div class="type">
|
|
|
|
|
<div class="left">
|
|
|
|
|
<span>*</span>
|
|
|
|
|
<span v-if="status == 1">处理意见</span>
|
|
|
|
|
<span v-if="status == 2">处理结果</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="right">
|
|
|
|
|
<div style="display: flex" v-if="status == 1">
|
2022-05-20 10:14:39 +08:00
|
|
|
<AiPagePicker type="sysUser" @select="handlePartySelect" single :isFourParty="true">
|
2022-05-19 17:54:08 +08:00
|
|
|
<AiMore v-model="doUsername" placeholder="请选择"/>
|
|
|
|
|
</AiPagePicker>
|
2022-05-19 17:38:34 +08:00
|
|
|
</div>
|
|
|
|
|
<div class="check_box" v-if="status == 2">
|
|
|
|
|
<div class="check-item" :class="auditStatus == '1' ? 'check-active' : '' " @click="auditStatus='1'">通过审核<img src="./components/img/check-icon.png" alt=""></div>
|
|
|
|
|
<div class="check-item" :class="auditStatus == '0' ? 'check-active' : '' " @click="auditStatus='0'">驳回申请<img src="./components/img/check-icon.png" alt=""></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2022-05-19 15:41:49 +08:00
|
|
|
</div>
|
|
|
|
|
|
2022-05-19 17:38:34 +08:00
|
|
|
<div class="remark">
|
|
|
|
|
<div class="top">
|
|
|
|
|
<span style="margin-right: 8px;"></span><span>办理意见</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="bottom">
|
|
|
|
|
<u-input type="textarea" v-model="description" placeholder="请写下你的办理意见" maxlength="500" height="200"/>
|
|
|
|
|
</div>
|
2022-05-19 15:41:49 +08:00
|
|
|
</div>
|
|
|
|
|
|
2022-05-19 17:38:34 +08:00
|
|
|
<div class="picture">
|
|
|
|
|
<div class="top">
|
|
|
|
|
<span style="margin-right: 8px"></span><span>图片上传<span style="color: #999;font-size:14px;">最多9张</span></span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="bottom">
|
|
|
|
|
<AiUploader :def.sync="files" multiple placeholder="上传图片" :limit="9" action="/admin/file/add2"></AiUploader>
|
|
|
|
|
</div>
|
2022-05-19 16:12:11 +08:00
|
|
|
</div>
|
2022-05-19 13:35:55 +08:00
|
|
|
|
2022-05-19 17:38:34 +08:00
|
|
|
<div class="btn" @click="submit">提交</div>
|
|
|
|
|
|
2022-05-19 13:35:55 +08:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
2022-05-19 17:38:34 +08:00
|
|
|
description: '',
|
|
|
|
|
status: '',
|
|
|
|
|
files: [],
|
|
|
|
|
showPage: false,
|
|
|
|
|
id:'',
|
|
|
|
|
doUsername: '',
|
2022-05-19 16:12:11 +08:00
|
|
|
selectUser: {},
|
2022-05-19 17:38:34 +08:00
|
|
|
auditStatus: '',
|
|
|
|
|
wxUserId: '',
|
2022-05-19 13:35:55 +08:00
|
|
|
}
|
|
|
|
|
},
|
2022-05-19 17:38:34 +08:00
|
|
|
onLoad(o) {
|
|
|
|
|
this.$dict.load('fpRiskPersonOperation1','fpRiskPersonOperation2','fpRiskType').then(()=>{
|
|
|
|
|
this.status = o.status
|
|
|
|
|
this.id = o.id
|
|
|
|
|
this.showPage = true
|
|
|
|
|
|
2022-05-19 15:41:49 +08:00
|
|
|
})
|
2022-05-19 17:38:34 +08:00
|
|
|
|
2022-05-19 16:12:11 +08:00
|
|
|
},
|
2022-05-19 13:35:55 +08:00
|
|
|
methods: {
|
2022-05-19 17:54:08 +08:00
|
|
|
// 人员组件选择转交对象
|
|
|
|
|
handlePartySelect(e) {
|
2022-05-19 18:02:54 +08:00
|
|
|
console.log(e);
|
2022-05-19 17:54:08 +08:00
|
|
|
this.wxUserId = e[0].id
|
|
|
|
|
this.doUsername = e[0].name
|
2022-05-19 16:12:11 +08:00
|
|
|
},
|
|
|
|
|
|
2022-05-19 17:38:34 +08:00
|
|
|
submit() {
|
|
|
|
|
if (this.status == 1) {
|
|
|
|
|
if(!this.doUsername) {
|
|
|
|
|
return this.$u.toast('请选择转交对象')
|
2022-05-19 16:12:11 +08:00
|
|
|
}
|
2022-05-19 17:38:34 +08:00
|
|
|
}
|
|
|
|
|
if (this.status == 2) {
|
|
|
|
|
if(!this.auditStatus) {
|
|
|
|
|
return this.$u.toast('请选择处理结果')
|
2022-05-19 16:12:11 +08:00
|
|
|
}
|
2022-05-19 17:38:34 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let url = ''
|
|
|
|
|
let form = {}
|
|
|
|
|
if (this.status == 1) {
|
|
|
|
|
form = {
|
|
|
|
|
doUsername: this.doUsername,
|
|
|
|
|
description: this.description,
|
|
|
|
|
files: this.files,
|
|
|
|
|
declarationId: this.id,
|
|
|
|
|
wxUserId: this.wxUserId,
|
|
|
|
|
}
|
|
|
|
|
url = '/app/apphelpdeclarationinfo/forward'
|
2022-05-19 16:12:11 +08:00
|
|
|
}
|
2022-05-19 17:38:34 +08:00
|
|
|
if (this.status == 2) {
|
|
|
|
|
form = {
|
|
|
|
|
auditStatus: this.auditStatus,
|
|
|
|
|
description: this.description,
|
|
|
|
|
files: this.files,
|
|
|
|
|
declarationId: this.id,
|
|
|
|
|
wxUserId: this.wxUserId,
|
|
|
|
|
}
|
|
|
|
|
url = '/app/apphelpdeclarationinfo/audit'
|
2022-05-19 16:12:11 +08:00
|
|
|
}
|
2022-05-19 17:38:34 +08:00
|
|
|
this.$http.post(url,form).then(res => {
|
2022-05-19 15:41:49 +08:00
|
|
|
if (res.code == 0) {
|
2022-05-19 17:38:34 +08:00
|
|
|
this.$u.toast('提交成功')
|
|
|
|
|
uni.$emit('update')
|
2022-05-19 15:41:49 +08:00
|
|
|
setTimeout(() => {
|
2022-05-19 17:38:34 +08:00
|
|
|
uni.navigateBack({delta: 2})
|
2022-05-19 15:41:49 +08:00
|
|
|
},600)
|
|
|
|
|
}
|
|
|
|
|
})
|
2022-05-19 17:38:34 +08:00
|
|
|
}
|
2022-05-19 13:35:55 +08:00
|
|
|
},
|
2022-05-19 17:38:34 +08:00
|
|
|
onShow() {
|
|
|
|
|
document.title = this.checkType == 1? "处理意见":this.checkType == 2? "处理结果": ''
|
|
|
|
|
}
|
2022-05-19 13:35:55 +08:00
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
2022-05-19 17:38:34 +08:00
|
|
|
<style lang="scss" scoped>
|
2022-05-19 15:41:49 +08:00
|
|
|
.result {
|
2022-05-19 17:38:34 +08:00
|
|
|
padding-bottom: 112px;
|
|
|
|
|
::v-deep .ai-uploader .fileList .default {
|
|
|
|
|
width: 160px;
|
|
|
|
|
height: 160px;
|
|
|
|
|
}
|
|
|
|
|
.type {
|
|
|
|
|
height: 112px;
|
|
|
|
|
line-height: 112px;
|
|
|
|
|
background: #FFF;
|
|
|
|
|
font-size: 32px;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
padding: 0 32px;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
.left {
|
|
|
|
|
span:first-child {
|
|
|
|
|
color: #FF4466;
|
|
|
|
|
}
|
|
|
|
|
span:last-child {
|
|
|
|
|
color: #333333;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.right {
|
|
|
|
|
align-self: center;
|
|
|
|
|
text-align: right;
|
|
|
|
|
|
|
|
|
|
.check_box {
|
|
|
|
|
|
|
|
|
|
.check-item {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
width: 150px;
|
|
|
|
|
height: 60px;
|
|
|
|
|
line-height: 64px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
background: #F5F5F5;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
font-size: 30px;
|
|
|
|
|
font-family: PingFangSC-Medium, PingFang SC;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: #333;
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
img {
|
|
|
|
|
display: none;
|
2022-05-19 16:12:11 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-19 17:38:34 +08:00
|
|
|
.check-item:nth-of-type(1) {
|
|
|
|
|
margin-right: 36px;
|
2022-05-19 16:12:11 +08:00
|
|
|
}
|
|
|
|
|
|
2022-05-19 17:38:34 +08:00
|
|
|
.check-active {
|
|
|
|
|
background: #E7F1FE;
|
|
|
|
|
color: #1174FE;
|
|
|
|
|
|
|
|
|
|
img {
|
|
|
|
|
display: block;
|
|
|
|
|
position: absolute;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
width: 48px;
|
|
|
|
|
height: 48px;
|
2022-05-19 16:12:11 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-05-19 17:38:34 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.remark,
|
|
|
|
|
.picture {
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
margin-top: 16px;
|
|
|
|
|
background: #FFF;
|
|
|
|
|
padding: 0 32px;
|
|
|
|
|
font-size: 32px;
|
|
|
|
|
.top {
|
|
|
|
|
padding-top: 20px;
|
|
|
|
|
span:first-child {
|
|
|
|
|
color: #FF4466;
|
|
|
|
|
}
|
|
|
|
|
span:last-child {
|
|
|
|
|
color: #333333;
|
2022-05-19 15:41:49 +08:00
|
|
|
}
|
|
|
|
|
}
|
2022-05-19 17:38:34 +08:00
|
|
|
.bottom {
|
|
|
|
|
padding: 30px 0;
|
|
|
|
|
}
|
2022-05-19 13:35:55 +08:00
|
|
|
}
|
|
|
|
|
|
2022-05-19 15:41:49 +08:00
|
|
|
.btn {
|
2022-05-19 17:38:34 +08:00
|
|
|
height: 112px;
|
|
|
|
|
line-height: 112px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
background: #3192F4;
|
|
|
|
|
color: #FFF;
|
2022-05-19 15:41:49 +08:00
|
|
|
position: fixed;
|
|
|
|
|
bottom: 0;
|
2022-05-19 17:38:34 +08:00
|
|
|
left: 0;
|
2022-05-19 15:41:49 +08:00
|
|
|
width: 100%;
|
|
|
|
|
font-size: 32px;
|
2022-05-19 13:35:55 +08:00
|
|
|
}
|
|
|
|
|
}
|
2022-05-19 17:38:34 +08:00
|
|
|
</style>
|