【update】-WASIC

This commit is contained in:
fengchenchen
2023-10-24 09:23:47 +08:00
parent 4a0777cd6e
commit 8d18263778
7 changed files with 75 additions and 10 deletions
@@ -43,7 +43,7 @@
v-decorator="['phone',validatorRules.phone]"></a-input>
</a-form-item>
</a-col>
<!-- 国际研讨会 WASIC 增加课题名称的选择-->
<!-- 国际研讨会 WASIC 增加课题名称的选择--已经到账的信息不能修改-->
<a-col :xxl="8" :xl="12" :sm="24" v-if="currentMeetingInfo.isWasic">
<a-form-item label="课题名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
<j-multi-select-tag
@@ -52,8 +52,11 @@
style="width: 100%"
dict-code="linkTopics"
placeholder="请选择课题名称"
:options="linkTopicsOptionArr"
type="checkbox"
class="meeting-form-multi-select"
@change="changeChoiceTopic"
:disabled="model.inAccount === 1"
>
</j-multi-select-tag>
</a-form-item>
@@ -144,12 +147,13 @@ import SeminarVipForm from '@views/incomePayments/meetManage/modules/SeminarVipF
import SeminarPartnerForm from '@views/incomePayments/meetManage/modules/SeminarPartnerForm'
import AddMeetingCompany from '@comp/company/AddMeetingCompany'
import {getContactsById} from '@api/api'
import {getSingUpUserInfo, validateStandard, getMeetInfoById} from '@api/incomeMeetingApi'
import {getSingUpUserInfo, validateStandard, getMeetInfoById, getLinkTopics} from '@api/incomeMeetingApi'
import { judgeInternalEnterprise } from '../../../api/incomePaymentsApi'
import {httpAction} from '@api/manage'
import pick from 'lodash.pick'
import PageHeaderTitle from '@comp/layouts/PageHeaderTitle'
import { queryCompanyInfoById } from '../../../api/api'
import { LinkTopicsEnums } from "../../../enums/commonEnums";
export default {
name: 'SignUpInfoEdit',
@@ -265,7 +269,9 @@ export default {
},
title:'添加参会人',
// 当前参会企业是否是内部企业
isInternalEnterprise: false
isInternalEnterprise: false,
// 可选课题名称的数组
linkTopicsOptionArr: []
}
},
created() {
@@ -310,6 +316,14 @@ export default {
},
},
methods: {
// 获取国际研讨会-能选择课题的数据字典数据
getLinkTopicsOptionArr(meetingId) {
getLinkTopics({id: meetingId}).then(res =>{
if(res.success) {
this.linkTopicsOptionArr = res.result || []
}
})
},
// 通过企业的id获取企业管理中的基本信息,用于发票回显
queryCompanyInfoById(id) {
return new Promise(resolve => {
@@ -488,6 +502,21 @@ export default {
handleCancel() {
this.$router.go(-1)
},
// 国际研讨会-WASIC-改变选择的主题值
changeChoiceTopic(e) {
console.log('e------', e)
// let choiceTopicArr = (e || '').split(',')
// choiceTopicArr = choiceTopicArr.filter(item => item && item !== (LinkTopicsEnums.free.index + ''))
// let meetingCostSum = 0
// console.log('choiceTopicArr------', choiceTopicArr)
// if(choiceTopicArr.length > 2) {
// meetingCostSum = this.currentMeetingInfo.meetingCostsThreeTopic
// } else {
// meetingCostSum = this.currentMeetingInfo.meetingCostsTwoTopic
// }
// 改变组件内的待收金额
// this.$refs.formother && this.$refs.formother.changeReceivableAmountParent({target: {value: meetingCostSum}})
},
/*
* 改变身份
* */
@@ -594,9 +623,13 @@ export default {
* */
queryMeetingInfo(meetingId){
this.currentMeetingInfo = {}
getMeetInfoById({id:meetingId}).then(res => {
getMeetInfoById({id: meetingId}).then(res => {
if(res.success){
this.currentMeetingInfo = res.result
// 国际研讨会 且为WASIC 会议
if (this.currentMeetingInfo.meetingType === '3' && this.currentMeetingInfo.isWasic){
this.getLinkTopicsOptionArr(meetingId)
}
}
})
}