【bug】报名费用根据企业是否是标协成员不同显示

This commit is contained in:
fengachen
2021-10-26 14:02:54 +08:00
parent 54cc1faf06
commit b97aefc4c1
2 changed files with 19 additions and 2 deletions
+5 -1
View File
@@ -14,11 +14,15 @@ const createQcCode = (params) => getAction('/meeting/payMeeting/createBase64',pa
// 收入合同的新增会员项目的查询
const queryContractMemberProject = (params) => getAction('/jero/memberProject/queryListByNotCompany',params)
// 通过单位名称校验是否标协会员
const validateStandard = (params) => getAction('/meeting/internalMeetingSituation/checkMember',params)
export {
getUserInfo,
getMeetInfoById,
getAllWorkProjects,
getSingUpUserInfo,
createQcCode,
queryContractMemberProject
queryContractMemberProject,
validateStandard
}
+14 -1
View File
@@ -223,7 +223,7 @@
</template>
<script>
import {getMeetInfoById} from '@api/incomeMeetingApi'
import {getMeetInfoById,validateStandard} from '@api/incomeMeetingApi'
import SelectContacts from '@comp/company/SelectContacts'
import OtherMeetingForm from '@views/incomePayments/meetManage/OtherMeetingForm'
import SeminarVipForm from '@views/incomePayments/meetManage/modules/SeminarVipForm'
@@ -331,6 +331,8 @@ export default {
isPackBool: false,
// 国际研讨会身份的控制
identityBool: false,
// 是否是标协成员
isStandardBool:false,
// url是否有id字段 默认没有
urlHaveIdBool: false,
url: {
@@ -529,7 +531,18 @@ export default {
* 选择参会企业
* */
changeCompany(value) {
this.selectedCompany = value
// 通过企业名称判断当前参会人
if(this.currentMeetingInfo.meetingType +'' === '2' ){
console.log('标协会议')
validateStandard({companyName:this.selectedCompany.companyName}).then(res => {
this.isStandardBool = res.result
if(this.isStandardBool){
this.meetingCostSum = this.currentMeetingInfo.meetingCostsVip
}
})
}
// 选择企业清空 姓名 手机号
this.form.resetFields(['companyContactId', 'phone'])