|
@@ -20,7 +20,6 @@
|
|
|
v-model="formData.activityType"
|
|
|
placeholder="请选择活动类型"
|
|
|
@change="activityTypeChange"
|
|
|
- :disabled="edit_id"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="(type, index) in permission.activityTypeList"
|
|
@@ -52,34 +51,37 @@
|
|
|
:options="telTypeList">
|
|
|
</el-cascader>
|
|
|
</el-form-item>
|
|
|
- <el-form-item
|
|
|
- label="路演形式"
|
|
|
- v-if="formData.activityType === '路演'"
|
|
|
- prop="roadshowType"
|
|
|
- >
|
|
|
- <el-select
|
|
|
- v-model="formData.roadshowType"
|
|
|
- placeholder="请先选择路演形式"
|
|
|
+ <el-form-item
|
|
|
+ :label="`${formData.activityType}形式`"
|
|
|
+ v-if="formData.activityType === '路演' || formData.activityType === '沙龙'"
|
|
|
+ prop="roadshowType"
|
|
|
+ :rules="{ required: true, message: `请选择${formData.activityType}形式`, trigger: 'change' }"
|
|
|
>
|
|
|
- <el-option value="线上"></el-option>
|
|
|
- <el-option value="线下"></el-option>
|
|
|
- </el-select>
|
|
|
+ <el-select
|
|
|
+ v-model="formData.roadshowType"
|
|
|
+ :placeholder="`请先选择${formData.activityType}形式`"
|
|
|
+ >
|
|
|
+ <el-option value="线上"></el-option>
|
|
|
+ <el-option value="线下"></el-option>
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item
|
|
|
- label="路演平台"
|
|
|
- v-if="formData.roadshowType === '线上' && formData.activityType === '路演'"
|
|
|
+ :label="`${formData.activityType}平台`"
|
|
|
+ v-if="formData.roadshowType === '线上' && (formData.activityType === '路演' || formData.activityType === '沙龙')"
|
|
|
prop="roadshowPlatform"
|
|
|
+ :rules="{ required: true, message: `请选择${formData.activityType}平台`, trigger: blur }"
|
|
|
>
|
|
|
<el-input
|
|
|
v-model="formData.roadshowPlatform"
|
|
|
- placeholder="请输入路演平台(eg:进门财经、腾讯会议)"
|
|
|
+ :placeholder="`请输入${formData.activityType}平台(eg:进门财经、腾讯会议)`"
|
|
|
>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item
|
|
|
- label="路演城市"
|
|
|
- v-if="formData.roadshowType === '线下' && formData.activityType === '路演'"
|
|
|
+ :label="`${formData.activityType}城市`"
|
|
|
+ v-if="formData.roadshowType === '线下' && (formData.activityType === '路演' || formData.activityType === '沙龙')"
|
|
|
prop="roadshowCity"
|
|
|
+ :rules="{ required: true, message: `请选择${formData.activityType}城市`, trigger: blur }"
|
|
|
>
|
|
|
<!-- <v-distpicker
|
|
|
ref="roadshowCity"
|
|
@@ -93,6 +95,8 @@
|
|
|
<search-dist-picker
|
|
|
:provinceInfo="formData.roadshowCity[0]"
|
|
|
:cityInfo="formData.roadshowCity[1]"
|
|
|
+ :areaInfo="formData.District||''"
|
|
|
+ :showArea="isRaiRole"
|
|
|
@selected="onChangeCity($event,'roadshow')"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item
|
|
@@ -123,16 +127,26 @@
|
|
|
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>
|
|
|
<el-form-item
|
|
|
label="会议形式"
|
|
@@ -174,7 +188,7 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item
|
|
|
label="会议主题"
|
|
|
- v-if="formData.activityType === '公开会议'"
|
|
|
+ v-if="formData.activityType === '公开会议' || formData.activityType === '沙龙'"
|
|
|
prop="meetingTheme"
|
|
|
>
|
|
|
<el-input
|
|
@@ -420,7 +434,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { roadshowInterence, ficcManageInterface } from '@/api/api.js';
|
|
|
-import { activityBtnDiaConfig, confirmDiaLink } from '../roleConfig';
|
|
|
+import { activityBtnDiaConfig, confirmDiaLink,confirmDiaRai } from '../roleConfig';
|
|
|
import publicMixins from '../roleConfig/mixins';
|
|
|
//自定义省市数据
|
|
|
//import{province_sorce,city_sorce} from '@/utils/distpicker';
|
|
@@ -486,6 +500,9 @@ export default {
|
|
|
isShow(newval) {
|
|
|
newval && this.getResearcherList();
|
|
|
newval && this.getTypeList();
|
|
|
+ if(this.isRaiRole){
|
|
|
+ this.formData.activityType = "路演"
|
|
|
+ }
|
|
|
},
|
|
|
start_date(value){
|
|
|
this.formData.selectResearchers[0].startDate = activityBtnDiaConfig.defaultStartTime(value)
|
|
@@ -495,7 +512,6 @@ export default {
|
|
|
},
|
|
|
initData(val){
|
|
|
this.formData={...this.formData,...val}
|
|
|
- console.log(this.formData)
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -583,15 +599,16 @@ export default {
|
|
|
await this.$refs.form.validate();
|
|
|
|
|
|
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;
|
|
|
|
|
|
- const param_research = ['公开会议', '路演'].includes(
|
|
|
+ const param_research = ['公开会议', '路演','沙龙'].includes(
|
|
|
this.formData.activityType
|
|
|
)
|
|
|
? this.formData.selectResearchers.map((item) => ({
|
|
|
ResearcherId: Number(item.researcherId),
|
|
|
- ResearcherName: this.findName(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'),
|
|
@@ -601,7 +618,7 @@ export default {
|
|
|
}))
|
|
|
: this.formData.selectResearchers[0].researcherId.map((item) => ({
|
|
|
ResearcherId: Number(item),
|
|
|
- ResearcherName: item === 99 ? 'ficc全体' : this.findName(item),
|
|
|
+ ResearcherName: item === 99 ? 'ficc全体' : this.findResearcherName(item),
|
|
|
StartDate: this.$moment(
|
|
|
this.formData.selectResearchers[0].startDate
|
|
|
).format('YYYY-MM-DD'),
|
|
@@ -625,22 +642,24 @@ export default {
|
|
|
const dynaic_city_param = {
|
|
|
公开会议: this.formData.meetingCity,
|
|
|
路演: this.formData.roadshowCity,
|
|
|
+ '沙龙': this.formData.roadshowCity,
|
|
|
};
|
|
|
|
|
|
parmas = {
|
|
|
ActivityType: this.formData.activityType,
|
|
|
ActivityCategory: this.formData.activityClass[this.formData.activityClass.length-1],
|
|
|
- City: ['公开会议', '路演'].includes(this.formData.activityType)
|
|
|
+ City: ['公开会议', '路演','沙龙'].includes(this.formData.activityType)
|
|
|
? dynaic_city_param[this.formData.activityType][1]
|
|
|
: '',
|
|
|
- Province: ['公开会议', '路演'].includes(this.formData.activityType)
|
|
|
+ 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 === '路演' ?
|
|
|
+ RoadshowType:['路演','沙龙'].includes(this.formData.activityType) ?
|
|
|
this.formData.roadshowType : this.formData.meetingType,
|
|
|
- RoadshowPlatform: this.formData.activityType === '路演' ?
|
|
|
+ RoadshowPlatform:['路演','沙龙'].includes(this.formData.activityType) ?
|
|
|
this.formData.roadshowPlatform : this.formData.meetingPlatform,
|
|
|
CompanyId: this.formData.companyId || 0,
|
|
|
CompanyName: this.formData.companyName || '',
|
|
@@ -648,8 +667,6 @@ export default {
|
|
|
EnglishCompany:this.formData.englishCompany
|
|
|
};
|
|
|
|
|
|
- console.log(parmas);
|
|
|
-
|
|
|
const res = this.edit_id
|
|
|
? await roadshowInterence.editRoadshow({
|
|
|
...parmas,
|
|
@@ -659,11 +676,36 @@ export default {
|
|
|
}) : await roadshowInterence.addRoadshow(parmas);
|
|
|
|
|
|
if (res.Ret !== 200) return;
|
|
|
-
|
|
|
const { text, content, query } = this.setDynamicLink(
|
|
|
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!=='路演'&& 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))
|
|
|
+ //既有权益研究员的路演,又有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.cancel();
|
|
@@ -675,7 +717,15 @@ export default {
|
|
|
const res = await roadshowInterence.getResearcherList();
|
|
|
if (res.Ret === 200) {
|
|
|
// 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 +747,7 @@ export default {
|
|
|
});
|
|
|
return list;
|
|
|
},
|
|
|
+
|
|
|
// 选择的研究员发生改变
|
|
|
removeResearchersChange(val) {
|
|
|
this.formData.selectResearchers[0].researcherId = this.formData.selectResearchers[0].researcherId.filter(item => item !== val)
|
|
@@ -750,7 +801,6 @@ export default {
|
|
|
});
|
|
|
if (res.Ret === 200) {
|
|
|
let arr = res.Data || [];
|
|
|
- console.log(arr);
|
|
|
if (!arr.length) {
|
|
|
cb([{ nodata: true }]);
|
|
|
} else {
|