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