|
@@ -18,6 +18,7 @@
|
|
|
clearable
|
|
|
filterable
|
|
|
@change="getTableData"
|
|
|
+ v-if="roleType!=='ficc_seller'"
|
|
|
/>
|
|
|
<el-select v-model="sales" placeholder="请选择分配销售" style="width: 214px; margin-right: 20px;"
|
|
|
clearable filterable multiple collapse-tags @change="getTableData">
|
|
@@ -324,7 +325,7 @@
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
<el-dropdown-item :command="{type:item.type,data:scope.row}"
|
|
|
v-for="item in getToolBtnList(scope.row).slice(3)" :key="item.type">
|
|
|
- <span>{{item.type}}</span>
|
|
|
+ <span>{{item.type=='设置共享'&&scope.row.IsShare==1?'取消共享':item.type}}</span>
|
|
|
</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</span>
|
|
@@ -488,6 +489,9 @@ export default {
|
|
|
}else{
|
|
|
return 'thisSeller';
|
|
|
}
|
|
|
+ },
|
|
|
+ roleType(){
|
|
|
+ return localStorage.getItem('Role') || ''
|
|
|
}
|
|
|
},
|
|
|
data () {
|
|
@@ -529,7 +533,8 @@ export default {
|
|
|
BtnAddAgreement: '补充协议',
|
|
|
BtnTryOut: '增开试用',
|
|
|
BtnServiceRecord:'服务记录',
|
|
|
- BtnRemarkView:'备注'
|
|
|
+ BtnRemarkView:'备注',
|
|
|
+ BtnShare:'设置共享',
|
|
|
}, // 按钮命令列表
|
|
|
accumulativeFrequencyDlg:false,//路演业阅读的弹框
|
|
|
accumulativeFrequencyItem:{},
|
|
@@ -588,7 +593,7 @@ export default {
|
|
|
this.tableData = res.Data.List || [];
|
|
|
this.isShowloadding = false;
|
|
|
this.IsShareGroup=res.Data.IsShareGroup||false
|
|
|
- this.status=res.Data.Status||2
|
|
|
+ this.status=res.Data.Status
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -633,10 +638,21 @@ export default {
|
|
|
this.handleShowRemark(query.data)
|
|
|
}else if(["续约申请","补充协议"].includes(query.type)){
|
|
|
this.handleOpenContractChoose(query.type,query.data)
|
|
|
- }else if("增开试用"){
|
|
|
+ }else if(query.type=="增开试用"){
|
|
|
this.addTrialHandle(query.data)
|
|
|
+ }else if(query.type=='设置共享' || query.type=='取消共享'){
|
|
|
+ this.shareSetting(query.data)
|
|
|
}
|
|
|
},
|
|
|
+ // 设置/取消 共享
|
|
|
+ shareSetting(row){
|
|
|
+ customInterence.setCustomShare({CompanyId:row.CompanyId,IsShare:row.IsShare==0?1:0}).then(res=>{
|
|
|
+ if(res.Ret==200){
|
|
|
+ this.$message.success(row.IsShare==0?'设置共享成功':'取消共享成功')
|
|
|
+ this.getTableData()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
/* 查看权限 */
|
|
|
lookHandle(item) {
|
|
|
this.lookTitle = item.CompanyName;
|