Commit d2d652e7 authored by yht15023815643's avatar yht15023815643

取消认领客户

parent af903d1b
...@@ -51,6 +51,14 @@ let claim= function claim(param) { ...@@ -51,6 +51,14 @@ let claim= function claim(param) {
data: param data: param
}) })
} }
// 取消认领用户
let cancelClaim= function cancelClaim(data) {
return request({
url: '/customer/cancelClaim/'+data,
method: 'put',
// data: data
})
}
// 查建筑企业 // 查建筑企业
let enterprisePage= function enterprisePage(param) { let enterprisePage= function enterprisePage(param) {
...@@ -72,4 +80,4 @@ let infoHeader= function infoHeader(param) { ...@@ -72,4 +80,4 @@ let infoHeader= function infoHeader(param) {
export default {aptitudeCode,personCert,searchDic,regionWebList,uipGroupData,uipSerach,claim,enterprisePage,infoHeader} export default {aptitudeCode,personCert,searchDic,regionWebList,uipGroupData,uipSerach,claim,cancelClaim,enterprisePage,infoHeader}
\ No newline at end of file \ No newline at end of file
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
</div> </div>
</div> </div>
<div class="company-menu"> <div class="company-menu">
<el-button v-if="ifClaim==1" class="hasClaim"><i class="el-ico-claim" alt="已认领" title="已认领"></i> 已认领</el-button> <el-button v-if="companyInfo.claimStatus==1" @click="cancelClaimClick()" class="hasClaim"><i class="el-ico-claim" alt="已认领" title="已认领"></i> 已认领</el-button>
<el-button @click="handleClaim" v-else class="claim" v-loading="claimLoading"><i class="el-ico-claim" alt="认领客户" title="认领客户"></i> 认领客户</el-button> <el-button @click="handleClaim" v-else class="claim" v-loading="claimLoading"><i class="el-ico-claim" alt="认领客户" title="认领客户"></i> 认领客户</el-button>
</div> </div>
...@@ -134,6 +134,21 @@ ...@@ -134,6 +134,21 @@
<span class="dialog-footer-btn2" @click="renHide()">稍后</span> <span class="dialog-footer-btn2" @click="renHide()">稍后</span>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog
title="取消认领"
:visible.sync="dialogVisible1"
:modal="false"
custom-class='dialog-renlin'
:show-close="false"
width="344px">
<span>是否取消认领客户?客户信息将放入“历史客户”。</span>
<div slot="footer" class="dialog-footer">
<span class="dialog-footer-btn1" type="primary" @click="confirm()" >
确认
</span>
<span class="dialog-footer-btn2" @click="dialogVisible1 = false">关闭</span>
</div>
</el-dialog>
</div> </div>
</template> </template>
...@@ -142,6 +157,7 @@ import { changePath } from '@/assets/js/common' ...@@ -142,6 +157,7 @@ import { changePath } from '@/assets/js/common'
var Swiper = require('@/assets/lib/swiper/swiper-bundle.min.js') var Swiper = require('@/assets/lib/swiper/swiper-bundle.min.js')
import "@/assets/lib/swiper/swiper-bundle.css" import "@/assets/lib/swiper/swiper-bundle.css"
import { claim } from "@/api/common" import { claim } from "@/api/common"
import api from "@/api/enterpriseData/enterpriseData.js"
export default { export default {
name: 'Infoheader', name: 'Infoheader',
props: ['companyId', 'companyInfo', 'statistic'], props: ['companyId', 'companyInfo', 'statistic'],
...@@ -165,7 +181,8 @@ export default { ...@@ -165,7 +181,8 @@ export default {
//风险扫描 //风险扫描
labelArr:['失信联合惩戒企业','司法纠纷','注销'], //负向经营状态 labelArr:['失信联合惩戒企业','司法纠纷','注销'], //负向经营状态
enterpriseLabel:[],//企业标签 enterpriseLabel:[],//企业标签
dialogVisible: false dialogVisible: false,
dialogVisible1: false,
} }
}, },
created() { created() {
...@@ -202,6 +219,22 @@ export default { ...@@ -202,6 +219,22 @@ export default {
this.$message.warning('对不起,当前不能认领') this.$message.warning('对不起,当前不能认领')
} }
}, },
//取消认领
cancelClaimClick(){
this.dialogVisible1 = true;
},
async confirm(){
let res = await api.cancelClaim(this.companyInfo.companyName)
if(res.code==200){
this.dialogVisible1 = false;
this.getClaimStatus();
}else{
this.$message.error(res.msg)
}
// api.cancelClaim(this.companyInfo.companyName).then(res=>{
// })
},
companySwiper(){ companySwiper(){
new Swiper('.swiper-info', { new Swiper('.swiper-info', {
slidesPerView: 6, slidesPerView: 6,
......
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
<div class="item-jf-text">建议调整关键词或筛选条件,重新搜索!</div> <div class="item-jf-text">建议调整关键词或筛选条件,重新搜索!</div>
</div> </div>
<div class=" table-item-jf" v-if="tableData.length>0"> <div class=" table-item-jf" v-if="tableData.length>0">
<el-table :data="tableData" :header-cell-style="{ background:'#f0f3fa',color: 'rgba(35,35,35,0.8)'}" class="table-item1" element-loading-text="Loading" border highlight-current-row> <el-table :data="tableData" v-loading="loading" :header-cell-style="{ background:'#f0f3fa',color: 'rgba(35,35,35,0.8)'}" element-loading-text="Loading" height="500" class="table-item1" border highlight-current-row>
<el-table-column type="index" label="序号" fixed width="60"> <el-table-column type="index" label="序号" fixed width="60">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{(pageNum - 1) *20 + scope.$index + 1}}</span> <span>{{(pageNum - 1) *20 + scope.$index + 1}}</span>
...@@ -160,7 +160,7 @@ ...@@ -160,7 +160,7 @@
<p v-else class="renling-img-false"> <p v-else class="renling-img-false">
</p> </p>
<span v-if="scope.row.claimStatus" class="renling-hui"> <span v-if="scope.row.claimStatus" @click="cancelClaim(scope.row.companyName)" class="renling-hui">
已认领 已认领
</span> </span>
<span v-else class="renling-hei"> <span v-else class="renling-hei">
...@@ -210,7 +210,7 @@ ...@@ -210,7 +210,7 @@
</el-table-column> </el-table-column>
<el-table-column label="债券余额(亿元)" width="124" > <el-table-column label="债券余额(亿元)" width="124" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.bondBalance||"--"}} {{scope.row.bondBalance?scope.row.bondBalance.toFixed(2):"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="行政级别" width="72" > <el-table-column label="行政级别" width="72" >
...@@ -255,127 +255,127 @@ ...@@ -255,127 +255,127 @@
</el-table-column> </el-table-column>
<el-table-column label="总资产(亿元)" width="112" > <el-table-column label="总资产(亿元)" width="112" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.totalAssets||"--"}} {{scope.row.totalAssets?scope.row.totalAssets.toFixed(2):"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="归母净资产(亿元)" width="132" > <el-table-column label="归母净资产(亿元)" width="132" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.belongNetAssets||"--"}} {{scope.row.belongNetAssets?scope.row.belongNetAssets.toFixed(2):"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="货币资金(亿元)" width="120" > <el-table-column label="货币资金(亿元)" width="120" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.monetaryFunds||"--"}} {{scope.row.monetaryFunds?scope.row.monetaryFunds.toFixed(2):"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="土地资产(亿元)" width="120" > <el-table-column label="土地资产(亿元)" width="120" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.landAssets||"--"}} {{scope.row.landAssets?scope.row.landAssets.toFixed(2):"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="受限资产(亿元)" width="120" > <el-table-column label="受限资产(亿元)" width="120" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.restrictedAssets||"--"}} {{scope.row.restrictedAssets?scope.row.restrictedAssets.toFixed(2):"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="应收账款(亿元)" width="120" > <el-table-column label="应收账款(亿元)" width="120" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.accountsReceivable||"--"}} {{scope.row.accountsReceivable?scope.row.accountsReceivable.toFixed(2):"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="其他应收款(亿元)" width="132" > <el-table-column label="其他应收款(亿元)" width="132" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.otherReceivable||"--"}} {{scope.row.otherReceivable?scope.row.otherReceivable.toFixed(2):"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="公益性&准公益性主营占比(%)" width="188" > <el-table-column label="公益性&准公益性主营占比(%)" width="188" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.econData_001||"--"}} {{scope.row.econData_001?scope.row.econData_001.toFixed(2):"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="政府补助(亿元)" width="120" > <el-table-column label="政府补助(亿元)" width="120" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.govSubsidy||"--"}} {{scope.row.govSubsidy?scope.row.govSubsidy.toFixed(2):"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="专项应付款(亿元)" width="132" > <el-table-column label="专项应付款(亿元)" width="132" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.specialPayable||"--"}} {{scope.row.specialPayable?scope.row.specialPayable.toFixed(2):"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="营业收入(亿元)" width="120" > <el-table-column label="营业收入(亿元)" width="120" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.operatingIncome||"--"}} {{scope.row.operatingIncome?scope.row.operatingIncome.toFixed(2):"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="归母净利润(亿元)" width="132" > <el-table-column label="归母净利润(亿元)" width="132" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.belongNetProfit||"--"}} {{scope.row.belongNetProfit?scope.row.belongNetProfit.toFixed(2):"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="净资产收益率(%)" width="136" > <el-table-column label="净资产收益率(%)" width="136" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.roe||"--"}} {{scope.row.roe?scope.row.roe.toFixed(2):"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="经营现金流量净额(亿元)" width="168" > <el-table-column label="经营现金流量净额(亿元)" width="168" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.netOperatingCashFlow||"--"}} {{scope.row.netOperatingCashFlow?scope.row.netOperatingCashFlow.toFixed(2):"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="筹资现金流量净额(亿元)" width="168" > <el-table-column label="筹资现金流量净额(亿元)" width="168" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.netFinancingCashFlow||"--"}} {{scope.row.netFinancingCashFlow?scope.row.netFinancingCashFlow.toFixed(2):"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="投资现金流量净额(亿元)" width="168" > <el-table-column label="投资现金流量净额(亿元)" width="168" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.netInvestmentCashFlow||"--"}} {{scope.row.netInvestmentCashFlow?scope.row.netInvestmentCashFlow.toFixed(2):"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="总负债 (亿元)" width="112" > <el-table-column label="总负债 (亿元)" width="112" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.totalLiabilities||"--"}} {{scope.row.totalLiabilities?scope.row.totalLiabilities.toFixed(2):"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="有息债务 (亿元)" width="124" > <el-table-column label="有息债务 (亿元)" width="124" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.uipInterestBearingDebt||"--"}} {{scope.row.uipInterestBearingDebt?scope.row.uipInterestBearingDebt.toFixed(2):"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="有息债务/总负债(%)" width="134" > <el-table-column label="有息债务/总负债(%)" width="134" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.econData_002||"--"}} {{scope.row.econData_002?scope.row.econData_002.toFixed(2):"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="综合融资成本(%)" width="116" > <el-table-column label="综合融资成本(%)" width="116" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.ofcb||"--"}} {{scope.row.ofcb?scope.row.ofcb.toFixed(2):"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="现金比率(%)" width="92" > <el-table-column label="现金比率(%)" width="92" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.cashRatio||"--"}} {{scope.row.cashRatio?scope.row.cashRatio.toFixed(2):"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="现金流量比率(%)" width="116" > <el-table-column label="现金流量比率(%)" width="116" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.cashFlowRatio||"--"}} {{scope.row.cashFlowRatio?scope.row.cashFlowRatio.toFixed(2):"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="现金到期债务比(%)" width="132" > <el-table-column label="现金到期债务比(%)" width="132" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.cashDebtRatio||"--"}} {{scope.row.cashDebtRatio?scope.row.cashDebtRatio.toFixed(2):"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="授信余额(亿元)" width="124" > <el-table-column label="授信余额(亿元)" width="124" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.creditBalance||"--"}} {{scope.row.creditBalance?scope.row.creditBalance.toFixed(2):"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="授信余额/全部债务(%)" width="146" > <el-table-column label="授信余额/全部债务(%)" width="146" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.econData_003||"--"}} {{scope.row.econData_003?scope.row.econData_003.toFixed(2):"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="EBITDA保障倍数" width="116" > <el-table-column label="EBITDA保障倍数" width="116" >
...@@ -383,49 +383,49 @@ ...@@ -383,49 +383,49 @@
{{scope.row.ebitdaIcr||"--"}} {{scope.row.ebitdaIcr||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="私募债余额占比(%)" width="128" > <el-table-column label="私募债余额占比(%)" width="128" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.ppnBalanceProp||"--"}} {{scope.row.ppnBalanceProp?scope.row.ppnBalanceProp.toFixed(2):"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="一年内到期债权占比(%)" width="152" > <el-table-column label="一年内到期债权占比(%)" width="152" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.econData_004||"--"}} {{scope.row.econData_004?scope.row.econData_004.toFixed(2):"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="债券余额/有息债务(%)" width="152" > <el-table-column label="债券余额/有息债务(%)" width="152" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.econData_005||"--"}} {{scope.row.econData_005?scope.row.econData_005.toFixed(2):"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="借款余额(亿元)" width="124" > <el-table-column label="借款余额(亿元)" width="124" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.loan||"--"}} {{scope.row.loan?scope.row.loan.toFixed(2):"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="借款/有息债务(%)" width="122" > <el-table-column label="借款/有息债务(%)" width="122" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.econData_006||"--"}} {{scope.row.econData_006?scope.row.econData_006.toFixed(2):"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="非标余额(亿元)" width="124" > <el-table-column label="非标余额(亿元)" width="124" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.nonStandardBalance||"--"}} {{scope.row.nonStandardBalance?scope.row.nonStandardBalance.toFixed(2):"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="非标余额/有息债务(%)" width="152" > <el-table-column label="非标余额/有息债务(%)" width="152" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.nonStandardRatio||"--"}} {{scope.row.nonStandardRatio?scope.row.nonStandardRatio.toFixed(2):"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="对外担保金额(亿元)" width="144" > <el-table-column label="对外担保金额(亿元)" width="144" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.guaranteeAmount||"--"}} {{scope.row.guaranteeAmount?scope.row.guaranteeAmount.toFixed(2):"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="对外担保比例(%)" width="116" > <el-table-column label="对外担保比例(%)" width="116" >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.guaranteeRatio||"--"}} {{scope.row.guaranteeRatio?scope.row.guaranteeRatio.toFixed(2):"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="所属开发区" width="84" > <el-table-column label="所属开发区" width="84" >
...@@ -463,6 +463,21 @@ ...@@ -463,6 +463,21 @@
<span class="dialog-footer-btn2" @click="search(pageNum, pageSize)">稍后</span> <span class="dialog-footer-btn2" @click="search(pageNum, pageSize)">稍后</span>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog
title="取消认领"
:visible.sync="dialogVisible1"
:modal="false"
custom-class='dialog-renlin'
:show-close="false"
width="344px">
<span>是否取消认领客户?客户信息将放入“历史客户”。</span>
<div slot="footer" class="dialog-footer">
<span class="dialog-footer-btn1" type="primary" @click="confirm()" >
确认
</span>
<span class="dialog-footer-btn2" @click="dialogVisible1 = false">关闭</span>
</div>
</el-dialog>
</div> </div>
</template> </template>
...@@ -484,7 +499,7 @@ export default { ...@@ -484,7 +499,7 @@ export default {
value: "id", value: "id",
}, },
loading:false,
pageSize: 20, pageSize: 20,
jskBidQueryDto: { jskBidQueryDto: {
...@@ -527,8 +542,8 @@ export default { ...@@ -527,8 +542,8 @@ export default {
}, },
{ {
key: "3", key: "5",
value: "拟建项目从多少", value: "招标数量从多到少",
status: false, status: false,
}, },
...@@ -541,9 +556,10 @@ export default { ...@@ -541,9 +556,10 @@ export default {
], ],
companyId:'', companyId:'',
companyName:'',
customerId:'', customerId:'',
dialogVisible: false, dialogVisible: false,
dialogVisible1: false,
tableData:[], tableData:[],
total:0, total:0,
pageNum:1, pageNum:1,
...@@ -815,6 +831,20 @@ export default { ...@@ -815,6 +831,20 @@ export default {
}); });
}, },
cancelClaim(companyName){
this.dialogVisible1 = true;
this.companyName = companyName;
},
confirm(){
api.cancelClaim(this.companyName).then(res=>{
if(res.code==200){
this.dialogVisible1 = false;
this.search();
}else{
this.$message.error(res.msg)
}
})
},
claimopen(companyId,customerId){ claimopen(companyId,customerId){
this.$router.push({ this.$router.push({
path: '/enterprise/'+encodeStr(companyId), path: '/enterprise/'+encodeStr(companyId),
...@@ -888,7 +918,9 @@ export default { ...@@ -888,7 +918,9 @@ export default {
}else{ }else{
delete params.equityRelationship delete params.equityRelationship
} }
this.loading = true;
api.uipSerach(params).then(res=>{ api.uipSerach(params).then(res=>{
this.loading = false;
// console.log(res) // console.log(res)
if (res.code==200) { if (res.code==200) {
this.tableData=res.rows; this.tableData=res.rows;
...@@ -896,7 +928,7 @@ export default { ...@@ -896,7 +928,7 @@ export default {
} }
}).catch(error=>{ }).catch(error=>{
this.loading = false;
}); });
}, },
...@@ -1153,6 +1185,9 @@ export default { ...@@ -1153,6 +1185,9 @@ export default {
::v-deep .el-table--border .el-table__cell{ ::v-deep .el-table--border .el-table__cell{
border-right:1px solid #E6EAF1; border-right:1px solid #E6EAF1;
} }
::v-deep.el-table__fixed::before{
height: 0;
}
.renling{ .renling{
display: flex; display: flex;
align-items: center; align-items: center;
......
...@@ -160,7 +160,7 @@ ...@@ -160,7 +160,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<router-link :to="`/enterprise/${encodeStr(scope.row.companyId)}`" tag="a" class="a-link companyName" v-html="scope.row.companyName" ></router-link> <router-link :to="`/enterprise/${encodeStr(scope.row.companyId)}`" tag="a" class="a-link companyName" v-html="scope.row.companyName" ></router-link>
<span @click="handleClick(scope.row)" class="table-span" style="color: #3D3D3D;cursor: pointer;" v-if="scope.row.claimStatus === 0"><img src="@/assets/images/urban/rl_icon1.png"/>认领</span> <span @click="handleClick(scope.row)" class="table-span" style="color: #3D3D3D;cursor: pointer;" v-if="scope.row.claimStatus === 0"><img src="@/assets/images/urban/rl_icon1.png"/>认领</span>
<span class="table-span" style="color: rgba(35,35,35,0.4);" v-if="scope.row.claimStatus === 1"><img src="@/assets/images/urban/rl_icon2.png"/>已认领</span> <span @click="cancelClaim(scope.row.companyName)" class="table-span" style="color: rgba(35,35,35,0.4);cursor: pointer;" v-if="scope.row.claimStatus === 1"><img src="@/assets/images/urban/rl_icon2.png"/>已认领</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="city" label="区域" :formatter="formatStatus" width="150"> <el-table-column prop="city" label="区域" :formatter="formatStatus" width="150">
...@@ -252,6 +252,21 @@ ...@@ -252,6 +252,21 @@
<el-button @click="claimVisible = false">稍后</el-button> <el-button @click="claimVisible = false">稍后</el-button>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog
title="取消认领"
:visible.sync="dialogVisible1"
:modal="false"
custom-class='dialog-renlin'
:show-close="false"
width="344px">
<span>是否取消认领客户?客户信息将放入“历史客户”。</span>
<div slot="footer" class="dialog-footer">
<span class="dialog-footer-btn1" type="primary" @click="confirm()" >
确认
</span>
<span class="dialog-footer-btn2" @click="dialogVisible1 = false">关闭</span>
</div>
</el-dialog>
</div> </div>
</template> </template>
...@@ -259,6 +274,7 @@ ...@@ -259,6 +274,7 @@
import {encodeStr} from "@/assets/js/common.js" import {encodeStr} from "@/assets/js/common.js"
import dataRegion from '@/assets/json/dataRegion' import dataRegion from '@/assets/json/dataRegion'
import { uipGroupData,urbanInvestmentPage,urbanInvestmentStatistics,claim } from '@/api/macro/macro' import { uipGroupData,urbanInvestmentPage,urbanInvestmentStatistics,claim } from '@/api/macro/macro'
import api from '@/api/enterpriseData/enterpriseData.js';
import { infoHeader } from '@/api/detail/party-a/index' import { infoHeader } from '@/api/detail/party-a/index'
export default { export default {
name: 'Urban', name: 'Urban',
...@@ -293,6 +309,7 @@ export default { ...@@ -293,6 +309,7 @@ export default {
typeList:[], typeList:[],
statistics:{}, statistics:{},
claimVisible:false, claimVisible:false,
dialogVisible1: false,
customerId:'', customerId:'',
companyId:'', companyId:'',
show_page:true, show_page:true,
...@@ -609,6 +626,18 @@ export default { ...@@ -609,6 +626,18 @@ export default {
type: 'warning' type: 'warning'
}); });
}, },
cancelClaim(companyName){
this.dialogVisible1 = true;
this.companyName = companyName;
},
confirm(){
api.cancelClaim(this.companyName).then(res=>{
if(res.code==200){
this.dialogVisible1 = false;
this.handleSearch();
}
})
},
handleClick(item){ handleClick(item){
this.companyId=item.companyId; this.companyId=item.companyId;
infoHeader({companyId:this.companyId}).then(res => { infoHeader({companyId:this.companyId}).then(res => {
...@@ -882,5 +911,50 @@ export default { ...@@ -882,5 +911,50 @@ export default {
} }
} }
} }
::v-deep .dialog-renlin{
.el-dialog__header{
display: block;
}
.el-dialog__body{
padding: 0;
text-align: center;
padding-bottom: 24px;
}
.el-dialog__footer{
padding: 0px;
padding-bottom: 24px;
.dialog-footer{
display: inline-flex;
align-items: center;
justify-content: center;
width: 100%;
.dialog-footer-btn1{
cursor: pointer;
width: 72px;
height: 28px;
background: #0081FF;
border-radius: 2px 2px 2px 2px;
font-size: 12px;
font-weight: 400;
color: #FFFFFF;
line-height: 28px;
text-align: center;
margin-right: 8px;
}
.dialog-footer-btn2{
cursor: pointer;
width: 72px;
height: 28px;
border-radius: 2px 2px 2px 2px;
border: 1px solid #CCCCCC;
line-height: 28px;
text-align: center;
font-size: 12px;
font-weight: 400;
color: rgba(35,35,35,0.8);
}
}
}
}
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment