|
|
@@ -36,10 +36,10 @@
|
|
|
{{ detail.abbrName }}
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item content-class-name="my-content" label="客户级别" label-class-name="my-label">
|
|
|
- {{ detail.custLevel }}
|
|
|
+ {{ selectDictLabel(levelOptions, detail.custLevel) }}
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item content-class-name="my-content" label="客户类型" label-class-name="my-label">
|
|
|
- {{ detail.custIndustry }}
|
|
|
+ {{ selectDictLabel(industryOptions, detail.custIndustry) }}
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item content-class-name="my-content" label="客户状态" label-class-name="my-label">
|
|
|
{{ detail.custStatus == 10 ? '正常' : '异常' }}
|
|
|
@@ -50,6 +50,69 @@
|
|
|
</el-descriptions>
|
|
|
</header>
|
|
|
<el-tabs v-model="activeName" @tab-click="handleClick">
|
|
|
+ <el-tab-pane label="详细信息" name="detail">
|
|
|
+ <el-descriptions
|
|
|
+ border
|
|
|
+ :column="2"
|
|
|
+ :content-style="{ width: '25%', 'word-break': 'break-all' }"
|
|
|
+ :label-style="{ width: '25%' }"
|
|
|
+ size="medium">
|
|
|
+ <el-descriptions-item label="客户级别">
|
|
|
+ {{ selectDictLabel(levelOptions, detail.custLevel) }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="下次联系时间">
|
|
|
+ {{ detail.followUpDate }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="所在省">
|
|
|
+ {{ detail.custProvince }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="所在市">
|
|
|
+ {{ detail.custCity }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="所在区">
|
|
|
+ {{ detail.custRegion }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="详细地址">
|
|
|
+ {{ detail.custAddress }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="创建人">
|
|
|
+ {{ detail.createdName }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="创建时间">
|
|
|
+ {{ detail.createdTime }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="跟进次数">
|
|
|
+ {{ abstract.followContent }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="未跟进时长">
|
|
|
+ {{ abstract.notFollowDay }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="项目数量">
|
|
|
+ {{ abstract.business }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="项目总额">
|
|
|
+ {{ formatPrice(abstract.businessTotal) }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="成交次数">
|
|
|
+ {{ abstract.dealCotal }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="成交总额">
|
|
|
+ {{ formatPrice(abstract.dealTotal) }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="回款总额">
|
|
|
+ {{ formatPrice(abstract.paymentTotal) }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="未回款总额">
|
|
|
+ {{ formatPrice(abstract.notPaymentTotal) }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="开票总额" :span="24">
|
|
|
+ {{ formatPrice(abstract.drawTotal) }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="备注" :span="24">
|
|
|
+ {{ detail.remark }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ </el-descriptions>
|
|
|
+ </el-tab-pane>
|
|
|
<el-tab-pane label="跟进记录" name="follow">
|
|
|
<ul v-if="followList.length" class="follow">
|
|
|
<li v-for="(date, index) in followList" :key="index">
|
|
|
@@ -107,73 +170,6 @@
|
|
|
</ul>
|
|
|
<div v-else class="no-follow">暂无跟进记录</div>
|
|
|
</el-tab-pane>
|
|
|
- <el-tab-pane label="详细信息" name="detail">
|
|
|
- <!-- <div class="detail-container">
|
|
|
- <ul>
|
|
|
- <li>客户级别</li>
|
|
|
- <li>下次联系时间</li>
|
|
|
- <li>所在地区</li>
|
|
|
- <li>详细地址</li>
|
|
|
- <li>客户级别</li>
|
|
|
- <li>客户级别</li>
|
|
|
- </ul>
|
|
|
- </div> -->
|
|
|
- <el-descriptions
|
|
|
- border
|
|
|
- :column="2"
|
|
|
- :content-style="{ width: '25%', 'word-break': 'break-all' }"
|
|
|
- :label-style="{ width: '25%' }"
|
|
|
- size="medium">
|
|
|
- <el-descriptions-item label="客户级别">
|
|
|
- {{ detail.custLevel }}
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item label="下次联系时间">
|
|
|
- {{ detail.followUpDate }}
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item label="所在地区">
|
|
|
- {{ detail.custLocation }}
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item label="详细地址">
|
|
|
- {{ detail.custAddress }}
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item label="创建人">
|
|
|
- {{ detail.createdName }}
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item label="创建时间">
|
|
|
- {{ detail.createdTime }}
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item label="跟进次数">
|
|
|
- {{ abstract.followContent }}
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item label="未跟进时长">
|
|
|
- {{ abstract.notFollowDay }}
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item label="项目数量">
|
|
|
- {{ abstract.business }}
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item label="项目总额">
|
|
|
- {{ formatPrice(abstract.businessTotal) }}
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item label="成交次数">
|
|
|
- {{ abstract.dealCotal }}
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item label="成交总额">
|
|
|
- {{ formatPrice(abstract.dealTotal) }}
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item label="回款总额">
|
|
|
- {{ formatPrice(abstract.paymentTotal) }}
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item label="未回款总额">
|
|
|
- {{ formatPrice(abstract.notPaymentTotal) }}
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item label="开票总额" :span="24">
|
|
|
- {{ formatPrice(abstract.drawTotal) }}
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item label="备注" :span="24">
|
|
|
- {{ detail.remark }}
|
|
|
- </el-descriptions-item>
|
|
|
- </el-descriptions>
|
|
|
- </el-tab-pane>
|
|
|
<el-tab-pane label="联系人" name="contact">
|
|
|
<vab-query-form>
|
|
|
<vab-query-form-left-panel :span="12">
|
|
|
@@ -217,18 +213,22 @@
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="项目记录" name="item">
|
|
|
<el-table border :data="items" height="calc(100% - 42px)">
|
|
|
- <el-table-column align="center" label="商机标题" prop="nboName" width="120px" />
|
|
|
- <el-table-column align="center" label="关联客户" prop="custName" width="200px" />
|
|
|
- <el-table-column align="center" label="审批状态" prop="approStatus" width="320px">
|
|
|
+ <el-table-column align="center" label="项目编号" prop="nboCode" width="120px" />
|
|
|
+ <el-table-column align="center" label="项目名称" prop="nboName" width="200px" />
|
|
|
+ <el-table-column align="center" label="审批状态" prop="approStatus" width="120px">
|
|
|
<template slot-scope="scope">
|
|
|
{{ getStatus(scope.row.approStatus) }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" label="商机状态" prop="nboPhase" width="320px" />
|
|
|
- <el-table-column align="center" label="商机类别" prop="nboType" width="320px" />
|
|
|
- <el-table-column align="center" label="商机金额" prop="estTransPrice" width="320px" />
|
|
|
- <el-table-column align="center" label="最后跟进时间" prop="finalFollowTime" width="320px" />
|
|
|
- <el-table-column align="center" label="下次跟进时间" prop="nextFollowTime " width="320px" />
|
|
|
+ <!-- <el-table-column align="center" label="项目级别" prop="nboType" width="80px" />-->
|
|
|
+ <!-- <el-table-column align="center" label="产品线" prop="productLine" width="120px" />-->
|
|
|
+ <el-table-column align="center" label="经销商/代理商" prop="distributorName" width="200px" />
|
|
|
+ <el-table-column align="center" label="项目预算(万元)" prop="nboBudget" width="120px" />
|
|
|
+ <el-table-column align="center" label="项目备案时间" prop="filingTime" width="160px" />
|
|
|
+ <!-- <el-table-column align="center" label="项目来源" prop="nboSource" width="160px" />-->
|
|
|
+ <!-- <el-table-column align="center" label="销售模式" prop="salesModel" width="160px" />-->
|
|
|
+ <el-table-column align="center" label="最后跟进时间" prop="finalFollowTime" width="160px" />
|
|
|
+ <el-table-column align="center" label="下次跟进时间" prop="nextFollowTime " width="160px" />
|
|
|
</el-table>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="合同记录" name="contract">
|
|
|
@@ -377,7 +377,7 @@
|
|
|
notPaymentTotal: '', //未回款总额
|
|
|
drawTotal: '', //开票总额
|
|
|
},
|
|
|
- activeName: 'follow',
|
|
|
+ activeName: 'detail',
|
|
|
cuctName: '',
|
|
|
contactList: [],
|
|
|
selectRows: [],
|
|
|
@@ -388,6 +388,8 @@
|
|
|
contracts: [], //合同
|
|
|
appro: [],
|
|
|
custInfo: {},
|
|
|
+ levelOptions: [],
|
|
|
+ industryOptions: [],
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -399,10 +401,19 @@
|
|
|
mounted() {
|
|
|
this.id = this.$route.query.id
|
|
|
this.init()
|
|
|
+ this.getOptions()
|
|
|
this.getDynamics()
|
|
|
this.handleClick({ name: 'follow' })
|
|
|
},
|
|
|
methods: {
|
|
|
+ getOptions() {
|
|
|
+ Promise.all([this.getDicts('cust_level'), this.getDicts('cust_idy')])
|
|
|
+ .then(([level, industry]) => {
|
|
|
+ this.levelOptions = level.data.values || []
|
|
|
+ this.industryOptions = industry.data.values || []
|
|
|
+ })
|
|
|
+ .catch((err) => console.log(err))
|
|
|
+ },
|
|
|
checkPermi(val) {
|
|
|
let str = 'cust:'
|
|
|
if (this.detail.salesId) str += 'list:'
|
|
|
@@ -680,6 +691,9 @@
|
|
|
font-size: 14px;
|
|
|
font-weight: 600;
|
|
|
color: #333;
|
|
|
+ white-space: nowrap;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
}
|
|
|
}
|
|
|
|