【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
@@ -58,7 +58,8 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
</a-row> </a-row>
<a-row :gutter="24"> <!-- 会议费用 0不显示 -->
<a-row :gutter="24" v-if="!meetingCostBool">
<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">
<select-contacts placeholder="请选择邮寄人" <select-contacts placeholder="请选择邮寄人"
@@ -76,7 +77,7 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
</a-row> </a-row>
<a-row :gutter="24"> <a-row :gutter="24" v-if="!meetingCostBool">
<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-input placeholder="请输入邮编" <a-input placeholder="请输入邮编"
@@ -96,7 +97,7 @@
</a-col> </a-col>
</a-row> </a-row>
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :xl="12" :sm="24"> <a-col :xl="12" :sm="24" v-if="!meetingCostBool">
<a-form-item label="需要发票" :labelCol="labelCol" :wrapperCol="wrapperCol"> <a-form-item label="需要发票" :labelCol="labelCol" :wrapperCol="wrapperCol">
<j-dict-select-tag style="width: 100%" dict-code="invoice_type" <j-dict-select-tag style="width: 100%" dict-code="invoice_type"
v-decorator="['needInvoice',validatorRules.needInvoice]" v-decorator="['needInvoice',validatorRules.needInvoice]"
@@ -110,14 +111,15 @@
date-format="YYYY-MM-DD"/> date-format="YYYY-MM-DD"/>
</a-form-item> </a-form-item>
</a-col> </a-col>
</a-row>
<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">
<j-date placeholder="请选择离开日期" style="width: 100%;" v-decorator="['departureTime']" :trigger-change="true" <j-date placeholder="请选择离开日期" style="width: 100%;" v-decorator="['departureTime']" :trigger-change="true"
date-format="YYYY-MM-DD"/> date-format="YYYY-MM-DD"/>
</a-form-item> </a-form-item>
</a-col> </a-col>
</a-row>
<a-row :gutter="24">
</a-row> </a-row>
<a-row> <a-row>
<a-col :xl="12" :sm="24"> <a-col :xl="12" :sm="24">
@@ -129,7 +131,7 @@
</a-radio-group> </a-radio-group>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :xl="12" :sm="24"> <a-col :xl="12" :sm="24" v-if="!meetingCostBool">
<a-form-item label="缴费凭证" :labelCol="labelCol" :wrapperCol="wrapperCol"> <a-form-item label="缴费凭证" :labelCol="labelCol" :wrapperCol="wrapperCol">
<j-image-upload :return-id="true" <j-image-upload :return-id="true"
v-decorator="['paymentRecord',validatorRules.paymentRecord]"></j-image-upload> v-decorator="['paymentRecord',validatorRules.paymentRecord]"></j-image-upload>
@@ -137,7 +139,7 @@
</a-col> </a-col>
</a-row> </a-row>
<!-- 只有线上的才输入订单后四位--> <!-- 只有线上的才输入订单后四位-->
<a-row :gutter="24" v-if="onlinePayModeBool"> <a-row :gutter="24" v-if="onlinePayModeBool && !meetingCostBool">
<a-col :xl="12" :sm="24"> <a-col :xl="12" :sm="24">
<a-form-item label="订单号后四位" :labelCol="{xs: {span: 24},sm: {span: 8} }" <a-form-item label="订单号后四位" :labelCol="{xs: {span: 24},sm: {span: 8} }"
:wrapperCol="{xs: {span: 24},sm: {span: 16} }"> :wrapperCol="{xs: {span: 24},sm: {span: 16} }">
@@ -276,8 +278,9 @@ export default {
// 会议金额 // 会议金额
meetingCosts: '', meetingCosts: '',
// 参会单位 // 参会单位
selectedCompanyName: '' selectedCompanyName: '',
// 会议费用 是否为 0
meetingCostBool: false
} }
}, },
methods: { methods: {
@@ -428,6 +431,16 @@ export default {
} }
} }
},
watch: {
// 判断会议费用 是否为 0
meetingCosts(val) {
if (val === '0.00') {
this.meetingCostBool = true
} else {
this.meetingCostBool = false
}
}
} }
} }
</script> </script>
@@ -226,6 +226,10 @@ export default {
console.log(val) console.log(val)
return val return val
} }
},
meetingCostBool(val){
console.log(val)
return val
} }
}, },
methods: { methods: {
@@ -131,7 +131,7 @@ import SeminarVipForm from '@views/incomePayments/meetManage/modules/SeminarVipF
import SeminarPartnerForm from '@views/incomePayments/meetManage/modules/SeminarPartnerForm' import SeminarPartnerForm from '@views/incomePayments/meetManage/modules/SeminarPartnerForm'
import AddMeetingCompany from '@comp/company/AddMeetingCompany' import AddMeetingCompany from '@comp/company/AddMeetingCompany'
import {getContactsById} from '@api/api' import {getContactsById} from '@api/api'
import {getSingUpUserInfo} from '@api/incomeMeetingApi' import {getSingUpUserInfo, validateStandard, getMeetInfoById} from '@api/incomeMeetingApi'
import {httpAction} from '@api/manage' import {httpAction} from '@api/manage'
import pick from 'lodash.pick' import pick from 'lodash.pick'
import PageHeaderTitle from '@comp/layouts/PageHeaderTitle' import PageHeaderTitle from '@comp/layouts/PageHeaderTitle'
@@ -202,8 +202,12 @@ export default {
selectPerson:null, selectPerson:null,
// 会议类型 // 会议类型
meetingType: '', meetingType: '',
// 当前会议的信息
currentMeetingInfo:{},
// 会议费用是否为0 // 会议费用是否为0
meetingCostBool:false, meetingCostBool:false,
// 是否是标协成员
isStandardBool: false,
// url:{ // url:{
// add:'/meeting/payMeetingSituation/add', // add:'/meeting/payMeetingSituation/add',
// edit:'/meeting/payMeetingSituation/edit' // edit:'/meeting/payMeetingSituation/edit'
@@ -252,6 +256,10 @@ export default {
} }
}) })
} }
//获取 会议信息
if(this.$route.query.meetingId){
this.queryMeetingInfo(this.$route.query.meetingId)
}
}, },
computed:{ computed:{
@@ -429,6 +437,30 @@ export default {
* */ * */
changeCompany(value) { changeCompany(value) {
this.selectedCompany = 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']) this.form.resetFields(['companyContactId','phone'])
if(this.$refs.formother ){ 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> </script>
-1
View File
@@ -543,7 +543,6 @@ export default {
this.selectedCompany = value this.selectedCompany = value
// 通过企业名称判断当前参会人 // 通过企业名称判断当前参会人
if (this.currentMeetingInfo.meetingType + '' === '2') { if (this.currentMeetingInfo.meetingType + '' === '2') {
console.log('标协会议')
validateStandard({companyName: this.selectedCompany.companyName}).then(res => { validateStandard({companyName: this.selectedCompany.companyName}).then(res => {
this.isStandardBool = res.result this.isStandardBool = res.result
if (this.isStandardBool) { if (this.isStandardBool) {