[fix 82928] 会议报名非打包企业缴费方式不能选择打包
This commit is contained in:
@@ -167,6 +167,8 @@ const workingGroupEditAccount = (param) => getAction('/project/payWorkingGroupSu
|
||||
const getAllDraftProjects = (params) => getAction('/drafting/payDraftingGroup/listAll', params)
|
||||
// 企业管理-单位/开票信息-更改是否打包企业
|
||||
const updatePackageEnterprise = (params) => postAction('/company/payCompanyManagement/updatePackageEnterprise', params)
|
||||
// 判断是否打包企业
|
||||
const judgeCompanyIsPackaged = (params) => getAction('/company/payCompanyManagement/judgeCompanyIsPackaged', params)
|
||||
|
||||
export {
|
||||
getWorkingGroupById,
|
||||
@@ -254,5 +256,6 @@ export {
|
||||
|
||||
workingGroupEditAccount,
|
||||
getAllDraftProjects,
|
||||
updatePackageEnterprise
|
||||
updatePackageEnterprise,
|
||||
judgeCompanyIsPackaged
|
||||
}
|
||||
|
||||
@@ -55,4 +55,11 @@ export const IncomeMethod = {
|
||||
export const YesOrNoEnums = {
|
||||
yes: { name: '是', value: '1'},
|
||||
no: { name: '否', value: '0'},
|
||||
}
|
||||
|
||||
// 缴费方式
|
||||
export const PayMode = {
|
||||
remittance: { name: '汇款', value: 1 },
|
||||
onSitePayment: { name: '现场缴费', value: 2 },
|
||||
pack: { name: '打包', value: 3 },
|
||||
}
|
||||
@@ -10,7 +10,7 @@
|
||||
@change="changePayMode">
|
||||
<a-radio :value="1">汇款</a-radio>
|
||||
<a-radio :value="2">现场缴费(仅支持扫码支付)</a-radio>
|
||||
<a-radio :value="3">打包</a-radio>
|
||||
<a-radio :value="3" :disabled="!isPackEnterprise">打包</a-radio>
|
||||
</a-radio-group>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
@@ -242,6 +242,12 @@ export default {
|
||||
meetingCostBool: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
},
|
||||
// 是否打包企业
|
||||
isPackEnterprise: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
data() {
|
||||
@@ -446,7 +452,12 @@ export default {
|
||||
clearFormItem() {
|
||||
this.form.resetFields(['postContactId', 'postContactAddress', 'postCode'])
|
||||
},
|
||||
|
||||
/**
|
||||
* 清空缴费方式
|
||||
*/
|
||||
clearPayMode () {
|
||||
this.form.resetFields(['payMode'])
|
||||
},
|
||||
/*
|
||||
* 选择了联系人后给邮寄联系人和地址赋值
|
||||
* */
|
||||
|
||||
@@ -104,12 +104,14 @@
|
||||
<!--除开国际研讨会的其他会议的显示-->
|
||||
<template v-if="meetingType !== '3' ">
|
||||
<other-meeting-form ref="formother" :selected-company="selectedCompany" :meeting-cost-bool="meetingCostBool"
|
||||
:is-pack-enterprise="isPackEnterprise"
|
||||
:identify-type="identifyType" @formData="getFormData"></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"
|
||||
:is-pack-enterprise="isPackEnterprise"
|
||||
:identify-type="identifyType" @formData="getFormData"></other-meeting-form>
|
||||
</template>
|
||||
<!-- 国际研讨会身份选择嘉宾 并且是VIP-->
|
||||
@@ -162,7 +164,7 @@ import SeminarPartnerForm from '@views/incomePayments/meetManage/modules/Seminar
|
||||
import AddMeetingCompany from '@comp/company/AddMeetingCompany'
|
||||
import {getContactsById} from '@api/api'
|
||||
import {getSingUpUserInfo, validateStandard, getMeetInfoById, getLinkTopics} from '@api/incomeMeetingApi'
|
||||
import { judgeInternalEnterprise } from '../../../api/incomePaymentsApi'
|
||||
import {judgeCompanyIsPackaged, judgeInternalEnterprise} from '../../../api/incomePaymentsApi'
|
||||
import {httpAction} from '@api/manage'
|
||||
import pick from 'lodash.pick'
|
||||
import PageHeaderTitle from '@comp/layouts/PageHeaderTitle'
|
||||
@@ -290,6 +292,8 @@ export default {
|
||||
title:'添加参会人',
|
||||
// 当前参会企业是否是内部企业
|
||||
isInternalEnterprise: false,
|
||||
// 当前参会企业是否是打包企业
|
||||
isPackEnterprise: false,
|
||||
// 可选会议名称的数组
|
||||
linkTopicsOptionArr: [],
|
||||
// WASIC可选会议的数组-前端写死
|
||||
@@ -696,6 +700,23 @@ export default {
|
||||
console.log('-----this.selectedCompany-----', this.selectedCompany)
|
||||
this.judgeInternalEnterprise(this.selectedCompany.id)
|
||||
|
||||
// 判断当前企业是否是打包企业
|
||||
this.judgeCompanyIsPackaged(this.selectedCompany.id)
|
||||
},
|
||||
/**
|
||||
* 判断当前的企业是否是打包企业,如果是修改isPackEnterprise
|
||||
*/
|
||||
judgeCompanyIsPackaged (id) {
|
||||
judgeCompanyIsPackaged({ companyId: id }).then(res => {
|
||||
if (res.success) {
|
||||
this.isPackEnterprise = res.result
|
||||
}
|
||||
}).finally(() => {
|
||||
// 清空已选的缴费方式
|
||||
if (this.$refs.formother) {
|
||||
this.$refs.formother.clearPayMode()
|
||||
}
|
||||
})
|
||||
},
|
||||
/*
|
||||
* 选择联系人获取信息
|
||||
|
||||
Reference in New Issue
Block a user