[fix 86984] 功能安全中心项目会议-添加参会人只能选择本级成员
This commit is contained in:
@@ -1179,7 +1179,8 @@ export default {
|
|||||||
query: {
|
query: {
|
||||||
meetingType: this.currentMeetingInfo.meetingType,
|
meetingType: this.currentMeetingInfo.meetingType,
|
||||||
meetingId: this.$route.query.id,
|
meetingId: this.$route.query.id,
|
||||||
costBool: this.meetingCostBool
|
costBool: this.meetingCostBool,
|
||||||
|
safetyCenterId: this.currentMeetingInfo.safetyCenterId
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -1198,7 +1199,8 @@ export default {
|
|||||||
id: record.id,
|
id: record.id,
|
||||||
meetingId: this.$route.query.id,
|
meetingId: this.$route.query.id,
|
||||||
meetingType: this.currentMeetingInfo.meetingType,
|
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]"
|
<add-meeting-company @change="changeCompany" v-decorator="['companyId',validatorRules.companyId]"
|
||||||
placeholder="请选择参会企业"
|
placeholder="请选择参会企业"
|
||||||
full-company-info
|
full-company-info
|
||||||
|
:customListUrl="safetyCenterId ? companyList : ''"
|
||||||
|
:customListParams="safetyCenterId ? customListParams : {}"
|
||||||
:disabled="model.checkResult === 1"
|
:disabled="model.checkResult === 1"
|
||||||
:maxLength='50'>
|
:maxLength='50'>
|
||||||
</add-meeting-company>
|
</add-meeting-company>
|
||||||
@@ -25,8 +27,11 @@
|
|||||||
placeholder="请选择参会人"
|
placeholder="请选择参会人"
|
||||||
v-decorator="['companyContactId',validatorRules.companyContactId]"
|
v-decorator="['companyContactId',validatorRules.companyContactId]"
|
||||||
:maxLength='50'
|
:maxLength='50'
|
||||||
|
:can-add="!safetyCenterId"
|
||||||
:disabled="model.checkResult === 1"
|
:disabled="model.checkResult === 1"
|
||||||
:init-contacts="selectPerson"
|
:init-contacts="selectPerson"
|
||||||
|
:customListFn="safetyCenterId ? getContactsByCompanyBySafetyCenter : null"
|
||||||
|
:customListParams="safetyCenterId ? customListParams : {}"
|
||||||
@change="changeContact"
|
@change="changeContact"
|
||||||
ref="selectMailContacts"
|
ref="selectMailContacts"
|
||||||
@ok="addContactsOk"></select-contacts>
|
@ok="addContactsOk"></select-contacts>
|
||||||
@@ -170,7 +175,7 @@ import OtherMeetingForm from '@views/incomePayments/meetManage/OtherMeetingForm'
|
|||||||
import SeminarVipForm from '@views/incomePayments/meetManage/modules/SeminarVipForm'
|
import SeminarVipForm from '@views/incomePayments/meetManage/modules/SeminarVipForm'
|
||||||
import SeminarPartnerForm from '@views/incomePayments/meetManage/modules/SeminarPartnerForm'
|
import SeminarPartnerForm from '@views/incomePayments/meetManage/modules/SeminarPartnerForm'
|
||||||
import AddMeetingCompany from '@comp/company/AddMeetingCompany'
|
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 {getSingUpUserInfo, validateStandard, getMeetInfoById, getLinkTopics} from '@api/incomeMeetingApi'
|
||||||
import {judgeCompanyIsPackaged, judgeInternalEnterprise} from '../../../api/incomePaymentsApi'
|
import {judgeCompanyIsPackaged, judgeInternalEnterprise} from '../../../api/incomePaymentsApi'
|
||||||
import {httpAction} from '@api/manage'
|
import {httpAction} from '@api/manage'
|
||||||
@@ -319,7 +324,17 @@ export default {
|
|||||||
// 可选会议名称的数组
|
// 可选会议名称的数组
|
||||||
linkTopicsOptionArr: [],
|
linkTopicsOptionArr: [],
|
||||||
// WASIC可选会议的数组-前端写死
|
// 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() {
|
created() {
|
||||||
@@ -372,6 +387,7 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getContactsByCompanyBySafetyCenter,
|
||||||
// 验证选择会议名称的情况
|
// 验证选择会议名称的情况
|
||||||
checkChoiceTopic(rules, value, callback) {
|
checkChoiceTopic(rules, value, callback) {
|
||||||
console.log(value)
|
console.log(value)
|
||||||
|
|||||||
Reference in New Issue
Block a user