[update 会议报名信息编辑] 缴费方式不能选择打包
This commit is contained in:
@@ -448,6 +448,8 @@ export default {
|
||||
// 设置编辑的显示隐藏状态
|
||||
this.identifyType = this.model.identity
|
||||
this.guestType = this.model.guestType ? this.model.guestType : null
|
||||
// 判断当前企业是否是打包企业
|
||||
this.judgeCompanyIsPackaged(this.model.companyId, false)
|
||||
// 参会单位回显
|
||||
this.model.companyId = {
|
||||
id:this.model.companyId,
|
||||
@@ -706,14 +708,14 @@ export default {
|
||||
/**
|
||||
* 判断当前的企业是否是打包企业,如果是修改isPackEnterprise
|
||||
*/
|
||||
judgeCompanyIsPackaged (id) {
|
||||
judgeCompanyIsPackaged (id, clearForm = true) {
|
||||
judgeCompanyIsPackaged({ companyId: id }).then(res => {
|
||||
if (res.success) {
|
||||
this.isPackEnterprise = res.result
|
||||
}
|
||||
}).finally(() => {
|
||||
// 清空已选的缴费方式
|
||||
if (this.$refs.formother) {
|
||||
if (clearForm && this.$refs.formother) {
|
||||
this.$refs.formother.clearPayMode()
|
||||
}
|
||||
})
|
||||
@@ -738,7 +740,7 @@ export default {
|
||||
/*
|
||||
* 判断当前的企业是否是内部企业,如果是修改isInternalEnterprise
|
||||
* */
|
||||
judgeInternalEnterprise(id) {
|
||||
judgeInternalEnterprise(id, clearForm = true) {
|
||||
let params = {
|
||||
id: id
|
||||
}
|
||||
@@ -747,12 +749,14 @@ export default {
|
||||
this.isInternalEnterprise = res.result !== 'false'
|
||||
}
|
||||
}).finally(() => {
|
||||
// 清空form表单身份的数据
|
||||
this.form.setFieldsValue({
|
||||
identity: null
|
||||
})
|
||||
// 嘉宾类型置空
|
||||
this.guestType = null
|
||||
if (clearForm) {
|
||||
// 清空form表单身份的数据
|
||||
this.form.setFieldsValue({
|
||||
identity: null
|
||||
})
|
||||
// 嘉宾类型置空
|
||||
this.guestType = null
|
||||
}
|
||||
})
|
||||
},
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user