【bug】 打包费用为0 缴费二维码的回显

This commit is contained in:
fengachen
2021-10-20 18:32:50 +08:00
parent 3b10703035
commit 643aafb9f6
3 changed files with 48 additions and 8 deletions
+21 -5
View File
@@ -175,13 +175,14 @@
<template v-if="meetingType !== '3' ">
<other-meeting-form ref="formother" :selected-company="selectedCompany"
:meeting-cost-bool="meetingCostBool"
:identify-type="identifyType" @formData="getFormData"></other-meeting-form>
:identify-type="identifyType" @formData="getFormData" @isPack="isPack"></other-meeting-form>
</template>
<!--国际研讨会参会人与内部企业的显示 默认不展示 -->
<template v-if="meetingType === '3' && identifyType !== 1 && identifyType !== null ">
<other-meeting-form ref="formother" :meeting-type="meetingType" :selected-company="selectedCompany"
:meeting-cost-bool="meetingCostBool"
@isPack="isPack"
:identify-type="identifyType" @formData="getFormData"></other-meeting-form>
</template>
<!-- 国际研讨会身份选择嘉宾 并且是VIP-->
@@ -321,6 +322,8 @@ export default {
inviteCodeBool: false,
// 邀请码错误状态
codeErrorBool: true,
// 是否是打包
isPackBool:false,
url: {
add: '/meeting/payMeetingSituation/signUp'
}
@@ -344,15 +347,15 @@ export default {
if (res.success) {
this.currentMeetingInfo = res.result
this.meetingType = this.currentMeetingInfo.meetingType
// 初始化会议费用
// 初始化会议费用 这里的判断有问题 应该根据单位是否是标协会员单位 显示不同的会议费用
if (this.currentMeetingInfo.meetingCostsVip) {
this.meetingMoney = `普通会员(${this.currentMeetingInfo.meetingCosts}/人) 标协会员(${this.currentMeetingInfo.meetingCostsVip}/人)`
// 费用合计
this.meetingCostSum = Number(this.currentMeetingInfo.meetingCosts) + Number(this.currentMeetingInfo.meetingCostsVip)
this.meetingCostSum = this.currentMeetingInfo.meetingCosts
} else {
this.meetingMoney = `普通会员(${this.currentMeetingInfo.meetingCosts}/人)`
// 费用合计
this.meetingCostSum = Number(this.currentMeetingInfo.meetingCosts)
this.meetingCostSum = this.currentMeetingInfo.meetingCosts
}
// 初始化召开时间
if (this.currentMeetingInfo.startTime) {
@@ -425,6 +428,15 @@ export default {
if (r != null) return unescape(r[2])
return null
},
// 是否打包 打包会议费用为0
isPack(val){
this.isPackBool = val
if(this.isPackBool){
this.meetingCostSum = '0.00'
}else {
this.meetingCostSum = this.currentMeetingInfo.meetingCosts
}
},
/*
* 确定
* */
@@ -541,6 +553,11 @@ export default {
this.inviteCodeBool = false
// 选的否 身份置空
this.identifyType = null
this.$nextTick(() => {
if(this.$refs.formother){
this.$refs.formother.isLimitBool = true
}
})
}
},
/*
@@ -555,7 +572,6 @@ export default {
nextSetp() {
// 获取邀请码
let code = this.form.getFieldValue('code')
console.log(this.currentMeetingInfo.cooperativeInvitationCode === code)
switch (code) {
// 合作伙伴
case this.currentMeetingInfo.cooperativeInvitationCode: