[fix 86984] 功能安全中心项目会议-添加参会人只能选择本级成员

This commit is contained in:
danshihao
2024-07-09 14:01:51 +08:00
parent c43aa5c026
commit 94767de37e
2 changed files with 22 additions and 4 deletions
@@ -1179,7 +1179,8 @@ export default {
query: {
meetingType: this.currentMeetingInfo.meetingType,
meetingId: this.$route.query.id,
costBool: this.meetingCostBool
costBool: this.meetingCostBool,
safetyCenterId: this.currentMeetingInfo.safetyCenterId
}
})
},
@@ -1198,7 +1199,8 @@ export default {
id: record.id,
meetingId: this.$route.query.id,
meetingType: this.currentMeetingInfo.meetingType,
costBool: this.meetingCostBool
costBool: this.meetingCostBool,
safetyCenterId: this.currentMeetingInfo.safetyCenterId
}
})
},
@@ -12,6 +12,8 @@
<add-meeting-company @change="changeCompany" v-decorator="['companyId',validatorRules.companyId]"
placeholder="请选择参会企业"
full-company-info
:customListUrl="safetyCenterId ? companyList : ''"
:customListParams="safetyCenterId ? customListParams : {}"
:disabled="model.checkResult === 1"
:maxLength='50'>
</add-meeting-company>
@@ -25,8 +27,11 @@
placeholder="请选择参会人"
v-decorator="['companyContactId',validatorRules.companyContactId]"
:maxLength='50'
:can-add="!safetyCenterId"
:disabled="model.checkResult === 1"
:init-contacts="selectPerson"
:customListFn="safetyCenterId ? getContactsByCompanyBySafetyCenter : null"
:customListParams="safetyCenterId ? customListParams : {}"
@change="changeContact"
ref="selectMailContacts"
@ok="addContactsOk"></select-contacts>
@@ -170,7 +175,7 @@ import OtherMeetingForm from '@views/incomePayments/meetManage/OtherMeetingForm'
import SeminarVipForm from '@views/incomePayments/meetManage/modules/SeminarVipForm'
import SeminarPartnerForm from '@views/incomePayments/meetManage/modules/SeminarPartnerForm'
import AddMeetingCompany from '@comp/company/AddMeetingCompany'
import {getContactsById} from '@api/api'
import {getContactsByCompanyBySafetyCenter, getContactsById} from '@api/api'
import {getSingUpUserInfo, validateStandard, getMeetInfoById, getLinkTopics} from '@api/incomeMeetingApi'
import {judgeCompanyIsPackaged, judgeInternalEnterprise} from '../../../api/incomePaymentsApi'
import {httpAction} from '@api/manage'
@@ -319,7 +324,17 @@ export default {
// 可选会议名称的数组
linkTopicsOptionArr: [],
// WASIC可选会议的数组-前端写死
showTopicsArr: [...WasicTopicData]
showTopicsArr: [...WasicTopicData],
// 功能安全中心id
safetyCenterId: this.$route.query.safetyCenterId,
// 成员单位列表(功能安全中心单独的选择成员列表接口)
companyList: '/company/payCompanyManagement/listSafetyCenter',
// 需要带上当前项目id
customListParams: {
projectId: this.$route.query.safetyCenterId,
// 查询本级可选,传其他值是查上级
type: '2'
}
}
},
created() {
@@ -372,6 +387,7 @@ export default {
},
},
methods: {
getContactsByCompanyBySafetyCenter,
// 验证选择会议名称的情况
checkChoiceTopic(rules, value, callback) {
console.log(value)