[update 会议报名信息编辑] 缴费方式不能选择打包

This commit is contained in:
danshihao
2024-03-27 11:42:40 +08:00
parent 89eb6be641
commit 46bd4dc369
@@ -448,6 +448,8 @@ export default {
// 设置编辑的显示隐藏状态 // 设置编辑的显示隐藏状态
this.identifyType = this.model.identity this.identifyType = this.model.identity
this.guestType = this.model.guestType ? this.model.guestType : null this.guestType = this.model.guestType ? this.model.guestType : null
// 判断当前企业是否是打包企业
this.judgeCompanyIsPackaged(this.model.companyId, false)
// 参会单位回显 // 参会单位回显
this.model.companyId = { this.model.companyId = {
id:this.model.companyId, id:this.model.companyId,
@@ -706,14 +708,14 @@ export default {
/** /**
* 判断当前的企业是否是打包企业,如果是修改isPackEnterprise * 判断当前的企业是否是打包企业,如果是修改isPackEnterprise
*/ */
judgeCompanyIsPackaged (id) { judgeCompanyIsPackaged (id, clearForm = true) {
judgeCompanyIsPackaged({ companyId: id }).then(res => { judgeCompanyIsPackaged({ companyId: id }).then(res => {
if (res.success) { if (res.success) {
this.isPackEnterprise = res.result this.isPackEnterprise = res.result
} }
}).finally(() => { }).finally(() => {
// 清空已选的缴费方式 // 清空已选的缴费方式
if (this.$refs.formother) { if (clearForm && this.$refs.formother) {
this.$refs.formother.clearPayMode() this.$refs.formother.clearPayMode()
} }
}) })
@@ -738,7 +740,7 @@ export default {
/* /*
* 判断当前的企业是否是内部企业,如果是修改isInternalEnterprise * 判断当前的企业是否是内部企业,如果是修改isInternalEnterprise
* */ * */
judgeInternalEnterprise(id) { judgeInternalEnterprise(id, clearForm = true) {
let params = { let params = {
id: id id: id
} }
@@ -747,12 +749,14 @@ export default {
this.isInternalEnterprise = res.result !== 'false' this.isInternalEnterprise = res.result !== 'false'
} }
}).finally(() => { }).finally(() => {
// 清空form表单身份的数据 if (clearForm) {
this.form.setFieldsValue({ // 清空form表单身份的数据
identity: null this.form.setFieldsValue({
}) identity: null
// 嘉宾类型置空 })
this.guestType = null // 嘉宾类型置空
this.guestType = null
}
}) })
}, },
/** /**