【bug】会议费用为 0

This commit is contained in:
fengachen
2021-11-30 10:04:58 +08:00
parent ff79fcb97e
commit 11ea9ec0ea
4 changed files with 73 additions and 11 deletions
@@ -131,7 +131,7 @@ import SeminarVipForm from '@views/incomePayments/meetManage/modules/SeminarVipF
import SeminarPartnerForm from '@views/incomePayments/meetManage/modules/SeminarPartnerForm'
import AddMeetingCompany from '@comp/company/AddMeetingCompany'
import {getContactsById} from '@api/api'
import {getSingUpUserInfo} from '@api/incomeMeetingApi'
import {getSingUpUserInfo, validateStandard, getMeetInfoById} from '@api/incomeMeetingApi'
import {httpAction} from '@api/manage'
import pick from 'lodash.pick'
import PageHeaderTitle from '@comp/layouts/PageHeaderTitle'
@@ -202,8 +202,12 @@ export default {
selectPerson:null,
// 会议类型
meetingType: '',
// 当前会议的信息
currentMeetingInfo:{},
// 会议费用是否为0
meetingCostBool:false,
// 是否是标协成员
isStandardBool: false,
// url:{
// add:'/meeting/payMeetingSituation/add',
// edit:'/meeting/payMeetingSituation/edit'
@@ -252,6 +256,10 @@ export default {
}
})
}
//获取 会议信息
if(this.$route.query.meetingId){
this.queryMeetingInfo(this.$route.query.meetingId)
}
},
computed:{
@@ -429,6 +437,30 @@ export default {
* */
changeCompany(value) {
this.selectedCompany = value
// 去掉未审核 去判断的企业是否是标协会企业
let companyName = this.selectedCompany.companyName.replaceAll('(未审核)','')
// 通过企业名称判断当前会议费用 是否为 0
if (this.currentMeetingInfo.meetingType + '' === '2') {
validateStandard({companyName: companyName}).then(res => {
this.isStandardBool = res.result
this.meetingCostBool = false
if (this.isStandardBool) {
// 是标协企业 判断 会员费用是否为0
if(this.currentMeetingInfo.meetingCostsVip === '0.00'){
this.meetingCostBool = true
}
}else {
// 不是标协企业 判断正常会议费用 是否为 0
if( this.currentMeetingInfo.meetingCosts === '0.00'){
this.meetingCostBool = true
}
}
if( this.$refs.formother !== undefined ){
console.log( this.$refs.formother.meetingCostBool,' this.$refs.formother.meetingCostBool')
}
})
}
// 选择企业清空 姓名 手机号
this.form.resetFields(['companyContactId','phone'])
if(this.$refs.formother ){
@@ -452,6 +484,20 @@ export default {
}
})
},
/**
* @Description 通过会议id获取会议信息
* @Date 2021-11-29
* @param meetingId 会议id
* @author fac
* */
queryMeetingInfo(meetingId){
this.currentMeetingInfo = {}
getMeetInfoById({id:meetingId}).then(res => {
if(res.success){
this.currentMeetingInfo = res.result
}
})
}
}
}
</script>