【bug】审核报名信息不显示 缴费凭证

This commit is contained in:
fengachen
2021-10-26 11:33:26 +08:00
parent b02f65f17f
commit 54cc1faf06
2 changed files with 67 additions and 58 deletions
@@ -634,6 +634,7 @@ export default {
* 审核
* */
handleAudit(record) {
this.$refs.auditModal.title = '审核凭证'
this.$refs.auditModal.open(record, false)
},
/*
@@ -1,77 +1,79 @@
<template>
<j-modal
:title="title"
:width="width"
:visible="visible"
:confirmLoading="confirmLoading"
@ok="handleOk"
@cancel="handleCancel"
cancelText="关闭">
:title="title"
:width="width"
:visible="visible"
:confirmLoading="confirmLoading"
@ok="handleOk"
@cancel="handleCancel"
cancelText="关闭">
<a-spin :spinning="confirmLoading">
<section class="check">
<h3>报名信息</h3>
<a-row :gutter="24">
<a-col :span="24">
<label>参会企业</label>
<span>{{model.companyName}}</span>
<span>{{ model.companyName }}</span>
</a-col>
</a-row>
<a-row :gutter="24">
<a-col :span="12">
<label>姓名</label>
<span>{{model.companyContactName}}</span></a-col>
<span>{{ model.companyContactName }}</span></a-col>
<a-col :span="12">
<label>手机号</label>
<span>{{model.phone}}</span></a-col>
<span>{{ model.phone }}</span></a-col>
</a-row>
<a-row :gutter="24">
<a-col :span="12">
<label>身份</label>
<span>{{model.identity_dictText}}</span></a-col>
<span>{{ model.identity_dictText }}</span></a-col>
<a-col :span="12" v-show="checkSignBool">
<label>是否住酒店</label>
<span>{{model.checkInHotel_dictText}}</span></a-col>
<span>{{ model.checkInHotel_dictText }}</span></a-col>
</a-row>
<a-row :gutter="24" v-show="checkSignBool">
<a-col :span="12">
<label>抵达时间</label>
<span>{{model.arrivalTime}}</span></a-col>
<span>{{ model.arrivalTime }}</span></a-col>
<a-col :span="12">
<label>离开时间</label>
<span>{{model.departureTime}}</span></a-col>
<span>{{ model.departureTime }}</span></a-col>
</a-row>
<a-row :gutter="24">
<a-col :span="12">
<label>缴费方式</label>
<span>{{model.payMode_dictText}}</span></a-col>
<span>{{ model.payMode_dictText }}</span></a-col>
<a-col :span="12">
<label>需要发票</label>
<span>{{model.needInvoice_dictText}}</span></a-col>
<span>{{ model.needInvoice_dictText }}</span></a-col>
</a-row>
</section>
<a-row :gutter="24" style="margin-top: 10px">
<a-col :span="3">
<label class="color-999">缴费凭证</label>
</a-col>
<!-- 审核报名信息不显示 -->
<a-row :gutter="24" style="margin-top: 10px" v-show="!checkSignBool">
<a-col :span="3">
<label class="color-999">缴费凭证</label>
</a-col>
<a-col :span="9">
<j-image-upload disabled :return-id="true" v-model="model.paymentRecord"></j-image-upload>
</a-col>
<!-- 缴费上方式为线上的 显示 -->
<!-- 缴费上方式为线上的 显示 -->
<a-col :span="12" v-if="model.payMode === 2 ">
<label class="color-999">订单后四位</label>
<span class="color-black">{{model.orderCode}}</span></a-col>
<span class="color-black">{{ model.orderCode }}</span></a-col>
</a-row>
<h3>审核</h3>
<a-form :form="form">
<a-row :gutter="24">
<a-col :xl="12" :sm="24" >
<a-col :xl="12" :sm="24">
<a-form-item label="审核" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-radio-group v-decorator="['checkResult',validatorRules.checkResult]" placeholder="请选择审核结果" @change="changeCheck">
<a-radio-group v-decorator="['checkResult',validatorRules.checkResult]" placeholder="请选择审核结果"
@change="changeCheck">
<a-radio value="1">
通过
通过
</a-radio>
<a-radio value='2'>
驳回
@@ -82,11 +84,11 @@
<a-col :xl="24" :sm="24" v-if="checkBool">
<a-form-item label="审核说明" :labelCol="remarksLabelCol" :wrapperCol="remarksWrapperCol">
<a-textarea
placeholder="请输入审核说明"
:auto-size="{ minRows: 3, maxRows: 6 }"
:maxLength='200'
v-decorator="['checkRemark',validatorRules.checkRemark]"
@change="e => {e.target.value = (e.target.value + '').trim()}"/>
placeholder="请输入审核说明"
:auto-size="{ minRows: 3, maxRows: 6 }"
:maxLength='200'
v-decorator="['checkRemark',validatorRules.checkRemark]"
@change="e => {e.target.value = (e.target.value + '').trim()}"/>
</a-form-item>
</a-col>
<a-col :xl="24" :sm="24" v-if="!checkBool">
@@ -157,53 +159,53 @@ export default {
// 审核凭证
check: '/meeting/payMeetingSituation/check',
// 审核报名信息
checkSignUp:'/meeting/payMeetingSituation/checkRegister'
checkSignUp: '/meeting/payMeetingSituation/checkRegister'
},
// 其他会议url
otherMeetingUrl: {
// 审核凭证
check: '/meeting/ohterMeetingSituation/check',
// 审核报名信息
checkSignUp:'/meeting/ohterMeetingSituation/checkRegister'
checkSignUp: '/meeting/ohterMeetingSituation/checkRegister'
},
// 工作组会议url
workGroupMeetingUrl: {
// 审核凭证
check: '/meeting/workGroupMeetingSituation/check',
// 审核报名信息
checkSignUp:'/meeting/workGroupMeetingSituation/checkRegister'
checkSignUp: '/meeting/workGroupMeetingSituation/checkRegister'
},
// 分标委会议url
committeeMeetingUrl: {
// 审核凭证
check: '/meeting/committeeMeetingSituation/check',
// 审核报名信息
checkSignUp:'/meeting/committeeMeetingSituation/checkRegister'
checkSignUp: '/meeting/committeeMeetingSituation/checkRegister'
},
// 国际研讨会url
internalMeetingUrl: {
// 审核凭证
check: '/meeting/internalMeetingSituation/check',
// 审核报名信息
checkSignUp:'/meeting/internalMeetingSituation/checkRegister'
checkSignUp: '/meeting/internalMeetingSituation/checkRegister'
},
// 标协会议url
standardsMeetingUrl: {
// 审核凭证
check: '/meeting/standardsMeetingSituation/check',
// 审核报名信息
checkSignUp:'/meeting/standardsMeetingSituation/checkRegister'
checkSignUp: '/meeting/standardsMeetingSituation/checkRegister'
},
// 审核结果选择
checkBool:false,
checkBool: false,
// 是否是审核报名信息
checkSignBool:false,
checkSignBool: false,
// 参会人id
signUpPersonId:'',
signUpPersonId: '',
}
},
methods: {
open(record,signUp) {
open(record, signUp) {
this.form.resetFields()
this.visible = true
this.signUpPersonId = record.id
@@ -211,7 +213,7 @@ export default {
// 控制行程信息显示 审核凭证不显示
this.checkSignBool = signUp || false
// 会议类型不同 url不同
this.url = Object.assign({},this.createUrlByMeetingType(this.$route.query.meetingType))
this.url = Object.assign({}, this.createUrlByMeetingType(this.$route.query.meetingType))
console.log(record)
},
close() {
@@ -225,10 +227,10 @@ export default {
if (!err) {
that.confirmLoading = true
let httpurl = ''
if(that.checkSignBool){
if (that.checkSignBool) {
// 审核报名信息的接口
httpurl = this.url.checkSignUp
}else {
httpurl = this.url.checkSignUp
} else {
// 审核凭证的接口
httpurl = this.url.check
}
@@ -250,9 +252,9 @@ export default {
}
})
},
querySingUpUserInfo(){
getSingUpUserInfo({id:this.signUpPersonId}).then(res => {
if(res.success){
querySingUpUserInfo() {
getSingUpUserInfo({id: this.signUpPersonId}).then(res => {
if (res.success) {
this.model = res.result
}
})
@@ -263,25 +265,30 @@ export default {
/*
* 选择审核结果
* */
changeCheck(e){
changeCheck(e) {
console.log(e)
// 审核结果选择拒绝 审核说明必填
if(e.target.value === '1'){
if (e.target.value === '1') {
this.checkBool = false
}else if(e.target.value === '2'){
} else if (e.target.value === '2') {
this.checkBool = true
}
},
/*
* 根据会议类型不同的url
* */
createUrlByMeetingType(meetingType){
switch (meetingType){
case '1': return this.workGroupMeetingUrl
case '2': return this.standardsMeetingUrl
case '3': return this.internalMeetingUrl
case '4': return this.otherMeetingUrl
case '5': return this.committeeMeetingUrl
createUrlByMeetingType(meetingType) {
switch (meetingType) {
case '1':
return this.workGroupMeetingUrl
case '2':
return this.standardsMeetingUrl
case '3':
return this.internalMeetingUrl
case '4':
return this.otherMeetingUrl
case '5':
return this.committeeMeetingUrl
}
}
}
@@ -316,7 +323,8 @@ export default {
.color-999 {
color: #999;
}
.color-black {
color:black;
color: black;
}
</style>