|
@@ -192,7 +192,7 @@
|
|
|
<!-- 客户信息 -->
|
|
|
<div class="company-info" v-if="formData.activityType === '路演' && formData.companyId && companyInfo">
|
|
|
<!-- ficc角色看ficc信息 -->
|
|
|
- <template v-if="isRaiRole">
|
|
|
+ <template v-if="!isRaiRole">
|
|
|
<template v-if="companyInfo.EnglishCompany===1">
|
|
|
<p>所属国家:{{companyInfo.EnglishCountry}}</p>
|
|
|
<p>累计点击量:{{companyInfo.EnglishViewTotal}}</p>
|
|
@@ -206,10 +206,10 @@
|
|
|
</template>
|
|
|
<!-- 权益角色看权益信息 -->
|
|
|
<template v-else>
|
|
|
- <p style="margin: 6px 0;">客户状态:{{companyInfo.Status}}</p>
|
|
|
- <p style="margin: 6px 0;">所属行业:{{companyInfo.IndustryName}}</p>
|
|
|
- <p style="margin: 6px 0;text-indent: -70px;margin-left: 70px;">行业权限:{{companyInfo.PermissionName}}</p>
|
|
|
- <p style="margin: 6px 0;">累计互动次数:{{companyInfo.ReportReadTotal}}</p>
|
|
|
+ <p>客户状态:{{companyInfo.Status}}</p>
|
|
|
+ <p>所属行业:{{companyInfo.IndustryName}}</p>
|
|
|
+ <p>行业权限:{{companyInfo.PermissionName}}</p>
|
|
|
+ <p>累计互动次数:{{companyInfo.ReportReadTotal}}</p>
|
|
|
</template>
|
|
|
</div>
|
|
|
<el-form-item
|
|
@@ -506,7 +506,7 @@ export default {
|
|
|
const res = await roadshowInterence.getResearcherList();
|
|
|
if (res.Ret === 200) {
|
|
|
|
|
|
- this.researcherList = res.Data && res.Data.filter(item => item.GroupName !== 'ficc全体').map(group => ({
|
|
|
+ /* this.researcherList = res.Data && res.Data.filter(item => item.GroupName !== 'ficc全体').map(group => ({
|
|
|
...group,
|
|
|
label: group.GroupName,
|
|
|
ResearcherList: group.ResearcherList ? group.ResearcherList.map(child => ({
|
|
@@ -514,12 +514,21 @@ export default {
|
|
|
label: child.RealName,
|
|
|
value: child.AdminId
|
|
|
})) : []
|
|
|
- }))
|
|
|
+ })) */
|
|
|
+ const ficcList = this.formatResearcherList(res.Data.find(i=>i.GroupName==='ficc').ResearcherList||[]);
|
|
|
+ const raiList = this.formatResearcherList(res.Data.find(i=>i.GroupName==='权益').ResearcherList||[]);
|
|
|
+ this.researcherList = [{
|
|
|
+ label:'ficc',
|
|
|
+ ResearcherList:ficcList
|
|
|
+ },{
|
|
|
+ label:'权益',
|
|
|
+ ResearcherList:raiList
|
|
|
+ }]
|
|
|
}
|
|
|
},
|
|
|
// 对获取到的研究员列表做处理
|
|
|
formatResearcherList(list) {
|
|
|
- this.researcherList = list && list.filter(item => item.GroupName !== 'ficc全体').map(group => ({
|
|
|
+ /* this.researcherList = list && list.filter(item => item.GroupName !== 'ficc全体').map(group => ({
|
|
|
...group,
|
|
|
label:group.GroupName,
|
|
|
ResearcherList: group.ResearcherList && group.ResearcherList.map(child => ({
|
|
@@ -527,7 +536,23 @@ export default {
|
|
|
label: child.RealName,
|
|
|
value: child.AdminId
|
|
|
}))
|
|
|
- }))
|
|
|
+ })) */
|
|
|
+ list.forEach((group) => {
|
|
|
+ // 对组做处理
|
|
|
+ group.label = group.GroupName;
|
|
|
+ // 如果有列表
|
|
|
+ if (group.ResearcherList) {
|
|
|
+ group.ResearcherList.forEach((item) => {
|
|
|
+ // 对研究员做处理
|
|
|
+ item.label = item.RealName;
|
|
|
+ item.value = item.AdminId;
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ // 没有列表
|
|
|
+ group.value = group.GroupId;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return list.filter((group) => group.GroupName !== "ficc全体");
|
|
|
|
|
|
},
|
|
|
// 取消按钮
|
|
@@ -547,13 +572,13 @@ export default {
|
|
|
await this.$refs.form.validate();
|
|
|
|
|
|
if(this.formData.companyName && !this.formData.companyId) return this.$message.warning('请选择客户');
|
|
|
- if(this.isRaiRole&&!this.formData.area) return this.$message.warning('请选择路演城市')
|
|
|
+ if(this.isRaiRole&&!this.formData.District) return this.$message.warning('请选择路演城市')
|
|
|
// 设置参数
|
|
|
let parmas = null;
|
|
|
|
|
|
const param_research = this.formData.selectResearchers.map(item=>({
|
|
|
ResearcherId: item.researcherId,
|
|
|
- ResearcherName: this.findResearcherById(item.researcherId),
|
|
|
+ ResearcherName: this.findResearcherName(item.researcherId),
|
|
|
StartDate:this.$moment(item.startDate).format('YYYY-MM-DD'),
|
|
|
EndDate: this.$moment(item.endDate).format('YYYY-MM-DD'),
|
|
|
StartTime: this.$moment(item.startTime).format('HH:mm:ss'),
|
|
@@ -572,6 +597,7 @@ export default {
|
|
|
ActivityCategory: this.formData.activityClass[this.formData.activityClass.length-1],
|
|
|
City: ['公开会议','路演'].includes(this.formData.activityType) ? dynaic_city_param[this.formData.activityType][1] : '',
|
|
|
Province: ['公开会议','路演'].includes(this.formData.activityType) ? dynaic_city_param[this.formData.activityType][0] : '',
|
|
|
+ District:this.formData.District||'',
|
|
|
CooperationName: this.formData.partnersName,
|
|
|
Theme: this.formData.meetingTheme,
|
|
|
RoadshowType: this.formData.activityType === '路演' ? this.formData.roadshowType : this.formData.meetingType,
|
|
@@ -599,7 +625,7 @@ export default {
|
|
|
this.$message.warning('提交成功')
|
|
|
}else{
|
|
|
//判断所选研究员是否有权益
|
|
|
- /* const ResearcherIds = this.formData.selectResearchers.map(i=>i.researcherId)
|
|
|
+ const ResearcherIds = this.formData.selectResearchers.map(i=>i.researcherId)
|
|
|
const ResearcherTypes = ResearcherIds.map(i=>this.findType(i))
|
|
|
console.log('types',ResearcherTypes)
|
|
|
//既有权益研究员的路演,又有ficc研究员路演时,提示弹窗
|
|
@@ -615,8 +641,6 @@ export default {
|
|
|
}else{
|
|
|
confirmDiaLink(text, content, query)
|
|
|
}
|
|
|
- */
|
|
|
- confirmDiaLink(text, content, query)
|
|
|
}
|
|
|
this.$emit('ensureCallback');
|
|
|
this.cancel();
|
|
@@ -698,10 +722,10 @@ export default {
|
|
|
this.companyInfo = Data;
|
|
|
|
|
|
},
|
|
|
- // 研究员id查找研究员名
|
|
|
+ /* // 研究员id查找研究员名
|
|
|
findResearcherById(id){
|
|
|
return this.allResearcher.find(researcher => researcher.AdminId===id).RealName
|
|
|
- }
|
|
|
+ } */
|
|
|
},
|
|
|
created() {
|
|
|
this.permission = activityCellDiaConfig[localStorage.getItem("Role")];
|