Commit c85e83b4 authored by 我在何方's avatar 我在何方

跟进记录修复

parent af7a6288
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('跟进类型')" align="center" prop="type" > <el-table-column :label="$t('跟进类型')" align="center" prop="type" >
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :type="DICT_TYPE.ECW_OFFER_TYPE" :value="scope.row.type"></dict-tag> <dict-tag :type="DICT_TYPE.CUSTOMER_FOLLOW_TYPE" :value="scope.row.type"></dict-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('联系人')" align="center" prop="contactName" /> <el-table-column :label="$t('联系人')" align="center" prop="contactName" />
...@@ -34,8 +34,11 @@ ...@@ -34,8 +34,11 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('客户反馈')" align="center" prop="customerFeedback" /> <el-table-column :label="$t('客户反馈')" align="center" prop="customerFeedback" />
<el-table-column :label="$t('处理结果')" align="center" prop="processingResults" /> <el-table-column :label="$t('处理结果')" align="center" prop="processingResults" />
<el-table-column :label="$t('客户经理')" align="center" prop="followUpSalesmanName" /> <el-table-column :label="$t('客户经理')" align="center" prop="followUpSalesmanName">
<template slot-scope="scope">
<span>{{getCustomerService(scope.row.followUpSalesmanId)}}</span>
</template>
</el-table-column>
</el-table> </el-table>
<pagination v-show="total > 0" :total="total" :page.sync="params.page" :limit.sync="params.rows" <pagination v-show="total > 0" :total="total" :page.sync="params.page" :limit.sync="params.rows"
@pagination="getList"/> @pagination="getList"/>
...@@ -47,6 +50,7 @@ ...@@ -47,6 +50,7 @@
import {getOfferLogPage} from "@/api/ecw/offerLog"; import {getOfferLogPage} from "@/api/ecw/offerLog";
import {DICT_TYPE} from '@/utils/dict' import {DICT_TYPE} from '@/utils/dict'
import {getOffer} from '@/api/ecw/offer' import {getOffer} from '@/api/ecw/offer'
import { userList } from "@/api/system/user"
export default { export default {
name: "OfferLog", name: "OfferLog",
components: { components: {
...@@ -67,6 +71,7 @@ export default { ...@@ -67,6 +71,7 @@ export default {
number:'', number:'',
relationId:0, relationId:0,
creatorName:'test', creatorName:'test',
creatorData:[]
}; };
}, },
created() { created() {
...@@ -75,6 +80,7 @@ export default { ...@@ -75,6 +80,7 @@ export default {
this.getList(); this.getList();
this.getRelationID() this.getRelationID()
} }
userList('customer service').then(res =>this.creatorData = res.data)
}, },
methods: { methods: {
/** 查询列表 */ /** 查询列表 */
...@@ -89,6 +95,11 @@ export default { ...@@ -89,6 +95,11 @@ export default {
}); });
}, },
getCustomerService(id){
var user = this.creatorData.find(item=>item.id==id)
if(user) return user.nickname
return ''
},
getRelationID(){ getRelationID(){
getOffer(this.params.offerId).then(response => { getOffer(this.params.offerId).then(response => {
this.relationId = response.data.consignorId; this.relationId = response.data.consignorId;
......
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