[update] -增加企业是否是内部企业的判断
This commit is contained in:
@@ -67,7 +67,7 @@
|
||||
<a-radio-group :disabled="model.checkResult === 1" v-decorator="['identity',validatorRules.identify]" @change="changeIdentify">
|
||||
<a-radio :value="1">嘉宾</a-radio>
|
||||
<a-radio :value="2">参会人</a-radio>
|
||||
<a-radio :value="3">内部企业</a-radio>
|
||||
<a-radio :value="3" :disabled="!isInternalEnterprise">内部企业</a-radio>
|
||||
</a-radio-group>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
@@ -132,6 +132,7 @@ import SeminarPartnerForm from '@views/incomePayments/meetManage/modules/Seminar
|
||||
import AddMeetingCompany from '@comp/company/AddMeetingCompany'
|
||||
import {getContactsById} from '@api/api'
|
||||
import {getSingUpUserInfo, validateStandard, getMeetInfoById} from '@api/incomeMeetingApi'
|
||||
import { judgeInternalEnterprise } from '../../../api/incomePaymentsApi'
|
||||
import {httpAction} from '@api/manage'
|
||||
import pick from 'lodash.pick'
|
||||
import PageHeaderTitle from '@comp/layouts/PageHeaderTitle'
|
||||
@@ -243,6 +244,8 @@ export default {
|
||||
edit:'/meeting/councilMeetingSituation/edit'
|
||||
},
|
||||
title:'添加参会人',
|
||||
// 当前参会企业是否是内部企业
|
||||
isInternalEnterprise: false
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -294,6 +297,7 @@ export default {
|
||||
* 编辑
|
||||
* */
|
||||
edit(record){
|
||||
this.isInternalEnterprise = false
|
||||
this.form.resetFields()
|
||||
this.model = Object.assign({},record)
|
||||
if(this.model.id){
|
||||
@@ -473,6 +477,9 @@ export default {
|
||||
if(this.$refs.formother ){
|
||||
this.$refs.formother.clearFormItem()
|
||||
}
|
||||
// 判断当前企业是否是内部企业
|
||||
console.log('-----this.selectedCompany-----', this.selectedCompany)
|
||||
this.judgeInternalEnterprise(this.selectedCompany.id)
|
||||
},
|
||||
/*
|
||||
* 选择联系人获取信息
|
||||
@@ -491,6 +498,26 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
/*
|
||||
* 判断当前的企业是否是内部企业,如果是修改isInternalEnterprise
|
||||
* */
|
||||
judgeInternalEnterprise(id) {
|
||||
let params = {
|
||||
id: id
|
||||
}
|
||||
judgeInternalEnterprise(params).then(res => {
|
||||
if(res.success) {
|
||||
this.isInternalEnterprise = res.result !== 'false'
|
||||
}
|
||||
}).finally(() => {
|
||||
// 清空form表单身份的数据
|
||||
this.form.setFieldsValue({
|
||||
identity: null
|
||||
})
|
||||
// 嘉宾类型置空
|
||||
this.guestType = null
|
||||
})
|
||||
},
|
||||
/**
|
||||
* @Description 通过会议id获取会议信息
|
||||
* @Date 2021-11-29
|
||||
|
||||
Reference in New Issue
Block a user