|
@@ -20,7 +20,7 @@
|
|
v-model="formData.activityType"
|
|
v-model="formData.activityType"
|
|
placeholder="请选择活动类型"
|
|
placeholder="请选择活动类型"
|
|
@change="activityTypeChange"
|
|
@change="activityTypeChange"
|
|
- :disabled="edit_id"
|
|
|
|
|
|
+ :disabled="edit_id||isRaiRole"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
v-for="(type, index) in permission.activityTypeList"
|
|
v-for="(type, index) in permission.activityTypeList"
|
|
@@ -93,6 +93,8 @@
|
|
<search-dist-picker
|
|
<search-dist-picker
|
|
:provinceInfo="formData.roadshowCity[0]"
|
|
:provinceInfo="formData.roadshowCity[0]"
|
|
:cityInfo="formData.roadshowCity[1]"
|
|
:cityInfo="formData.roadshowCity[1]"
|
|
|
|
+ :areaInfo="formData.District||''"
|
|
|
|
+ :showArea="isRaiRole"
|
|
@selected="onChangeCity($event,'roadshow')"/>
|
|
@selected="onChangeCity($event,'roadshow')"/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item
|
|
<el-form-item
|
|
@@ -123,16 +125,26 @@
|
|
companyInfo
|
|
companyInfo
|
|
"
|
|
"
|
|
>
|
|
>
|
|
- <template v-if="companyInfo.EnglishCompany===1">
|
|
|
|
- <p>所属国家:{{companyInfo.EnglishCountry}}</p>
|
|
|
|
- <p>累计点击量:{{companyInfo.EnglishViewTotal}}</p>
|
|
|
|
- </template>
|
|
|
|
- <template v-else>
|
|
|
|
- <p>客户状态:{{ companyInfo.Status }}</p>
|
|
|
|
- <p>所属行业:{{ companyInfo.IndustryName }}</p>
|
|
|
|
- <p>开通品种:{{ companyInfo.PermissionName }}</p>
|
|
|
|
- <p>累计报告阅读次数:{{ companyInfo.ReportReadTotal }}</p>
|
|
|
|
- </template>
|
|
|
|
|
|
+ <!-- ficc角色看ficc信息 -->
|
|
|
|
+ <template v-if="!isRaiRole">
|
|
|
|
+ <template v-if="companyInfo.EnglishCompany===1">
|
|
|
|
+ <p>所属国家:{{companyInfo.EnglishCountry}}</p>
|
|
|
|
+ <p>累计点击量:{{companyInfo.EnglishViewTotal}}</p>
|
|
|
|
+ </template>
|
|
|
|
+ <template v-else>
|
|
|
|
+ <p>客户状态:{{ companyInfo.Status }}</p>
|
|
|
|
+ <p>所属行业:{{ companyInfo.IndustryName }}</p>
|
|
|
|
+ <p>开通品种:{{ companyInfo.PermissionName }}</p>
|
|
|
|
+ <p>累计报告阅读次数:{{ companyInfo.ReportReadTotal }}</p>
|
|
|
|
+ </template>
|
|
|
|
+ </template>
|
|
|
|
+ <!-- 权益角色看权益信息 -->
|
|
|
|
+ <template v-else>
|
|
|
|
+ <p>客户状态:{{companyInfo.Status}}</p>
|
|
|
|
+ <p>所属行业:{{companyInfo.IndustryName}}</p>
|
|
|
|
+ <p>行业权限:{{companyInfo.PermissionName}}</p>
|
|
|
|
+ <p>累计互动次数:{{companyInfo.ReportReadTotal}}</p>
|
|
|
|
+ </template>
|
|
</div>
|
|
</div>
|
|
<el-form-item
|
|
<el-form-item
|
|
label="会议形式"
|
|
label="会议形式"
|
|
@@ -420,7 +432,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { roadshowInterence, ficcManageInterface } from '@/api/api.js';
|
|
import { roadshowInterence, ficcManageInterface } from '@/api/api.js';
|
|
-import { activityBtnDiaConfig, confirmDiaLink } from '../roleConfig';
|
|
|
|
|
|
+import { activityBtnDiaConfig, confirmDiaLink,confirmDiaRai } from '../roleConfig';
|
|
import publicMixins from '../roleConfig/mixins';
|
|
import publicMixins from '../roleConfig/mixins';
|
|
//自定义省市数据
|
|
//自定义省市数据
|
|
//import{province_sorce,city_sorce} from '@/utils/distpicker';
|
|
//import{province_sorce,city_sorce} from '@/utils/distpicker';
|
|
@@ -486,6 +498,9 @@ export default {
|
|
isShow(newval) {
|
|
isShow(newval) {
|
|
newval && this.getResearcherList();
|
|
newval && this.getResearcherList();
|
|
newval && this.getTypeList();
|
|
newval && this.getTypeList();
|
|
|
|
+ if(this.isRaiRole){
|
|
|
|
+ this.formData.activityType = "路演"
|
|
|
|
+ }
|
|
},
|
|
},
|
|
start_date(value){
|
|
start_date(value){
|
|
this.formData.selectResearchers[0].startDate = activityBtnDiaConfig.defaultStartTime(value)
|
|
this.formData.selectResearchers[0].startDate = activityBtnDiaConfig.defaultStartTime(value)
|
|
@@ -583,6 +598,7 @@ export default {
|
|
await this.$refs.form.validate();
|
|
await this.$refs.form.validate();
|
|
|
|
|
|
if(this.formData.companyName && !this.formData.companyId) return this.$message.warning('请选择客户');
|
|
if(this.formData.companyName && !this.formData.companyId) return this.$message.warning('请选择客户');
|
|
|
|
+ if(this.isRaiRole&&this.formData.roadshowType==='线下'&&!this.formData.District) return this.$message.warning('请选择路演城市')
|
|
|
|
|
|
let parmas;
|
|
let parmas;
|
|
|
|
|
|
@@ -591,7 +607,7 @@ export default {
|
|
)
|
|
)
|
|
? this.formData.selectResearchers.map((item) => ({
|
|
? this.formData.selectResearchers.map((item) => ({
|
|
ResearcherId: Number(item.researcherId),
|
|
ResearcherId: Number(item.researcherId),
|
|
- ResearcherName: this.findName(item.researcherId),
|
|
|
|
|
|
+ ResearcherName: this.findResearcherName(item.researcherId),
|
|
StartDate: this.$moment(item.startDate).format('YYYY-MM-DD'),
|
|
StartDate: this.$moment(item.startDate).format('YYYY-MM-DD'),
|
|
EndDate: this.$moment(item.endDate).format('YYYY-MM-DD'),
|
|
EndDate: this.$moment(item.endDate).format('YYYY-MM-DD'),
|
|
StartTime: this.$moment(item.startTime).format('HH:mm:ss'),
|
|
StartTime: this.$moment(item.startTime).format('HH:mm:ss'),
|
|
@@ -601,7 +617,7 @@ export default {
|
|
}))
|
|
}))
|
|
: this.formData.selectResearchers[0].researcherId.map((item) => ({
|
|
: this.formData.selectResearchers[0].researcherId.map((item) => ({
|
|
ResearcherId: Number(item),
|
|
ResearcherId: Number(item),
|
|
- ResearcherName: item === 99 ? 'ficc全体' : this.findName(item),
|
|
|
|
|
|
+ ResearcherName: item === 99 ? 'ficc全体' : this.findResearcherName(item),
|
|
StartDate: this.$moment(
|
|
StartDate: this.$moment(
|
|
this.formData.selectResearchers[0].startDate
|
|
this.formData.selectResearchers[0].startDate
|
|
).format('YYYY-MM-DD'),
|
|
).format('YYYY-MM-DD'),
|
|
@@ -636,6 +652,7 @@ export default {
|
|
Province: ['公开会议', '路演'].includes(this.formData.activityType)
|
|
Province: ['公开会议', '路演'].includes(this.formData.activityType)
|
|
? dynaic_city_param[this.formData.activityType][0]
|
|
? dynaic_city_param[this.formData.activityType][0]
|
|
: '',
|
|
: '',
|
|
|
|
+ District:this.formData.District||'',
|
|
CooperationName: this.formData.partnersName,
|
|
CooperationName: this.formData.partnersName,
|
|
Theme: this.formData.meetingTheme,
|
|
Theme: this.formData.meetingTheme,
|
|
RoadshowType: this.formData.activityType === '路演' ?
|
|
RoadshowType: this.formData.activityType === '路演' ?
|
|
@@ -649,7 +666,6 @@ export default {
|
|
};
|
|
};
|
|
|
|
|
|
console.log(parmas);
|
|
console.log(parmas);
|
|
-
|
|
|
|
const res = this.edit_id
|
|
const res = this.edit_id
|
|
? await roadshowInterence.editRoadshow({
|
|
? await roadshowInterence.editRoadshow({
|
|
...parmas,
|
|
...parmas,
|
|
@@ -663,7 +679,34 @@ export default {
|
|
const { text, content, query } = this.setDynamicLink(
|
|
const { text, content, query } = this.setDynamicLink(
|
|
this.formData.activityType
|
|
this.formData.activityType
|
|
);
|
|
);
|
|
- this.edit_id ? this.$message.warning('提交成功') : confirmDiaLink(text, content, query);
|
|
|
|
|
|
+ //this.edit_id ? this.$message.warning('提交成功') : confirmDiaLink(text, content, query);
|
|
|
|
+ if(this.edit_id){
|
|
|
|
+ this.$message.warning('提交成功')
|
|
|
|
+ }else{
|
|
|
|
+ if(this.formData.activityType!=='路演'){
|
|
|
|
+ confirmDiaLink(text, content, query)
|
|
|
|
+ this.$emit('ensureCallback');
|
|
|
|
+ this.cancel();
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ //判断所选研究员是否有权益
|
|
|
|
+ const ResearcherIds = this.formData.selectResearchers.map(i=>i.researcherId)
|
|
|
|
+ const ResearcherTypes = ResearcherIds.map(i=>this.findType(i))
|
|
|
|
+ console.log('types',ResearcherTypes)
|
|
|
|
+ //既有权益研究员的路演,又有ficc研究员路演时,提示弹窗
|
|
|
|
+ if(ResearcherTypes.includes('rai')&&ResearcherTypes.includes('ficc')){
|
|
|
|
+ const { text, content, query } = this.setDynamicLink(
|
|
|
|
+ 'ficc&rai路演'
|
|
|
|
+ );
|
|
|
|
+ confirmDiaLink(text, content, query)
|
|
|
|
+ //只提交权益研究员的路演时,提示弹窗:
|
|
|
|
+ }else if(ResearcherTypes.includes('rai')){
|
|
|
|
+ confirmDiaRai()
|
|
|
|
+ //只提交ficc研究员的路演时,提示弹窗:(维持原来的不变)
|
|
|
|
+ }else{
|
|
|
|
+ confirmDiaLink(text, content, query)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
this.$emit('ensureCallback');
|
|
this.$emit('ensureCallback');
|
|
this.cancel();
|
|
this.cancel();
|
|
@@ -675,7 +718,15 @@ export default {
|
|
const res = await roadshowInterence.getResearcherList();
|
|
const res = await roadshowInterence.getResearcherList();
|
|
if (res.Ret === 200) {
|
|
if (res.Ret === 200) {
|
|
// this.researcherList=res.Data
|
|
// this.researcherList=res.Data
|
|
- this.researcherList = this.formatResearcherList(res.Data);
|
|
|
|
|
|
+ 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
|
|
|
|
+ }]
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 对获取到的研究员列表做处理
|
|
// 对获取到的研究员列表做处理
|
|
@@ -697,6 +748,7 @@ export default {
|
|
});
|
|
});
|
|
return list;
|
|
return list;
|
|
},
|
|
},
|
|
|
|
+
|
|
// 选择的研究员发生改变
|
|
// 选择的研究员发生改变
|
|
removeResearchersChange(val) {
|
|
removeResearchersChange(val) {
|
|
this.formData.selectResearchers[0].researcherId = this.formData.selectResearchers[0].researcherId.filter(item => item !== val)
|
|
this.formData.selectResearchers[0].researcherId = this.formData.selectResearchers[0].researcherId.filter(item => item !== val)
|