|
@@ -29,6 +29,10 @@
|
|
|
{{scope.row.CompanyName}}
|
|
|
</span>
|
|
|
<span v-else :class="scope.row.BtnItem.BtnView?'customName':''" :style="{color:scope.row.BtnItem.BtnView?'#409EFF':'#606266',cursor:scope.row.BtnItem.BtnView?'pointer':'text'}" @click="goDetail(scope.row)">{{scope.row.CompanyName}}</span>
|
|
|
+ <el-tooltip content="此客户存在长期且反复申请试用,但从未签约的情况,请谨慎领取" placement="top" :open-delay="500"
|
|
|
+ v-if="RaiSellerRole && scope.row.IsScrounge == 1">
|
|
|
+ <img width="16" style="cursor: pointer;" src="../../assets/img/icons/warning_triangle_yellow.png" />
|
|
|
+ </el-tooltip>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -478,6 +482,13 @@ export default {
|
|
|
name:'',
|
|
|
components: {Capplydia,Contactdia,Cauthlist,CompleteInfo,ContractInfo,mPage, PermissionDetail},
|
|
|
computed:{
|
|
|
+ Role() {
|
|
|
+ let role = localStorage.getItem('Role') || '';
|
|
|
+ return role;
|
|
|
+ },
|
|
|
+ RaiSellerRole(){
|
|
|
+ return ['rai_seller','rai_admin','admin'].includes(this.Role)
|
|
|
+ },
|
|
|
RoleType() {
|
|
|
let type = localStorage.getItem('RoleType') || '';
|
|
|
return type;
|
|
@@ -784,8 +795,18 @@ export default {
|
|
|
itemclickHandle(query) {
|
|
|
if(query.type == '申请转正') {
|
|
|
this.applyTurn(query.data)
|
|
|
- }else if(query.type == '申请延期' || query.type == '申请解冻' || query.type == '申请领取') {
|
|
|
+ }else if(query.type == '申请延期' || query.type == '申请解冻') {
|
|
|
this.applyHandle(query.type,query.data)
|
|
|
+ }else if(query.type == '申请领取') {
|
|
|
+ if(this.RaiSellerRole && query.data.IsScrounge == 1){
|
|
|
+ this.$confirm('此客户存在长期且反复申请试用,但从未签约的情况,确定要领取吗?','申请领取',{
|
|
|
+ type:'warning'
|
|
|
+ }).then(() => {
|
|
|
+ this.applyHandle('申请领取',query.data)
|
|
|
+ }).catch(() => {});
|
|
|
+ }else{
|
|
|
+ this.applyHandle('申请领取',query.data)
|
|
|
+ }
|
|
|
}else if(query.type == '修改销售') {
|
|
|
this.updateSale(query.data);
|
|
|
}else if(query.type == '启用' || query.type == '暂停') {
|
|
@@ -808,7 +829,15 @@ export default {
|
|
|
this.addAgreement(query.data)
|
|
|
this.addAgreement(query.data)
|
|
|
}else if(query.type=='领取客户'){
|
|
|
- this.receiveHandle(query.data)
|
|
|
+ if(this.RaiSellerRole && query.data.IsScrounge == 1){
|
|
|
+ this.$confirm('此客户存在长期且反复申请试用,但从未签约的情况,确定要领取吗?','领取客户',{
|
|
|
+ type:'warning'
|
|
|
+ }).then(() => {
|
|
|
+ this.receiveHandle(query.data)
|
|
|
+ }).catch(() => {})
|
|
|
+ }else{
|
|
|
+ this.receiveHandle(query.data)
|
|
|
+ }
|
|
|
}else if(query.type=='备注'){
|
|
|
this.lookRemarkHandle(query.data)
|
|
|
}else if(query.type=='研选详情'){
|
|
@@ -1076,6 +1105,16 @@ export default {
|
|
|
let flag=await this.getCustomerDetail(item.CompanyId,0)
|
|
|
if(flag) return
|
|
|
|
|
|
+ if(this.RaiSellerRole && item.IsScrounge == 1){
|
|
|
+ // 已经弹过二次确认弹窗 避免再一次的弹窗
|
|
|
+ this.isPickLoss = true;
|
|
|
+ this.regionType = item.RegionType;
|
|
|
+ this.addCompanyId = item.CompanyId;
|
|
|
+ this.diaform.telCode='86'
|
|
|
+ this.isAddContact = true;
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
this.$confirm('是否确认领取该客户?','提示',{
|
|
|
type:'warning'
|
|
|
}).then(() => {
|
|
@@ -1084,8 +1123,8 @@ export default {
|
|
|
this.isPickLoss = true;
|
|
|
this.addCompanyId = item.CompanyId;
|
|
|
this.regionType=item.RegionType
|
|
|
+ this.diaform.telCode='86'
|
|
|
this.isAddContact = true;
|
|
|
-
|
|
|
// }else {
|
|
|
// customInterence.Pick({
|
|
|
// CompanyId:item.CompanyId,
|