Commit 47d37cf9 authored by zhengyi's avatar zhengyi

客户相关列表补充最新跟进记录和最新跟进时间

parent 12d1ca7d
...@@ -228,14 +228,25 @@ ...@@ -228,14 +228,25 @@
--> -->
<el-table-column :label="$t('主联系人')" prop="defaultContactName"></el-table-column> <el-table-column :label="$t('主联系人')" prop="defaultContactName"></el-table-column>
<el-table-column :label="$t('主联系方式')" prop="defaultContactPhone"> <!-- <el-table-column :label="$t('主联系方式')" prop="defaultContactPhone">-->
<template v-slot="{ row }"> <!-- <template v-slot="{ row }">-->
+{{ row.defaultContactPhone }} <br /> <!-- +{{ row.defaultContactPhone }} <br />-->
<contacts :id="row.id"> <!-- <contacts :id="row.id">-->
<el-button type="text">更多</el-button> <!-- <el-button type="text">更多</el-button>-->
</contacts> <!-- </contacts>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column :label="$t('最新跟进时间')" width="120">
<template slot-scope="scope" v-if= "scope.row.followupBackVO">
{{ parseTime(scope.row.followupBackVO.followTime) }}
</template>
</el-table-column>
<el-table-column :label="$t('最新跟进记录')" width="120">
<template slot-scope="scope" v-if= "scope.row.followupBackVO">
<a href="javascript:void(0)" @click="handleCustomerFollowLink(scope.row.followupBackVO)" class="link-type">{{ scope.row.followupBackVO.number }}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('客户类别')" align="center" prop="status"> <el-table-column :label="$t('客户类别')" align="center" prop="status">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
{{ {{
...@@ -656,6 +667,7 @@ ...@@ -656,6 +667,7 @@
</div> </div>
</el-dialog> </el-dialog>
<customer-follow-list :customer-id="customerId" :id="customerId" :customer-service="customerService" :customer-number="customerNumber" ref="CustomerFollowList" v-if="customerFollowVisible"></customer-follow-list> <customer-follow-list :customer-id="customerId" :id="customerId" :customer-service="customerService" :customer-number="customerNumber" ref="CustomerFollowList" v-if="customerFollowVisible"></customer-follow-list>
<customer-follow ref="customerFollow" @refresh="handleQuery" v-if="customerFollowVisible"/>
<customer-complaints :customer-id="customerId" ref="customerComplaints"></customer-complaints> <customer-complaints :customer-id="customerId" ref="customerComplaints"></customer-complaints>
<transfer-customer :show.sync="transferShow" :customer-ids.sync="selectCustomerList"></transfer-customer> <transfer-customer :show.sync="transferShow" :customer-ids.sync="selectCustomerList"></transfer-customer>
<add-potential-custom ref="potentialCustom" @change="getList"></add-potential-custom> <add-potential-custom ref="potentialCustom" @change="getList"></add-potential-custom>
...@@ -707,6 +719,8 @@ import { getCustomerSelect } from "@/api/ecw/customer" ...@@ -707,6 +719,8 @@ import { getCustomerSelect } from "@/api/ecw/customer"
import { getProductTypeList } from "@/api/ecw/productType" import { getProductTypeList } from "@/api/ecw/productType"
import { getProductList } from "@/api/ecw/product" import { getProductList } from "@/api/ecw/product"
import { listMySimpleDepts } from "@/api/system/dept" import { listMySimpleDepts } from "@/api/system/dept"
import UserSelector from "@/components/UserSelector/index.vue";
import CustomerFollow from "@/views/ecw/customer/components/customerFollow.vue";
export default { export default {
name: "EcwCustomerIndex", name: "EcwCustomerIndex",
components: { components: {
...@@ -719,10 +733,12 @@ export default { ...@@ -719,10 +733,12 @@ export default {
transferCustomer, transferCustomer,
AreaCodeSelector, AreaCodeSelector,
CustomerSetting, CustomerSetting,
CustomerMerge CustomerMerge,
CustomerFollow
}, },
data() { data() {
return { return {
customerFollowVisible: false,
env: process.env.NODE_ENV, env: process.env.NODE_ENV,
getDictDatas, getDictDatas,
getDictDatas2, getDictDatas2,
...@@ -1000,6 +1016,12 @@ export default { ...@@ -1000,6 +1016,12 @@ export default {
this.$refs["customerMerge"].dialogVisible = true this.$refs["customerMerge"].dialogVisible = true
}) })
}, },
handleCustomerFollowLink(row) {
this.customerFollowVisible = true
this.$nextTick((_) => {
this.$refs["customerFollow"].handleView(row)
})
},
recovery(row) { recovery(row) {
this.$confirm(this.$t("是否要回收当前{name}", row), "提示", { this.$confirm(this.$t("是否要回收当前{name}", row), "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
......
...@@ -445,14 +445,25 @@ ...@@ -445,14 +445,25 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('主联系人')" prop="defaultContactName"></el-table-column> <el-table-column :label="$t('主联系人')" prop="defaultContactName"></el-table-column>
<el-table-column :label="$t('主联系方式')" prop="defaultContactPhone"> <!-- <el-table-column :label="$t('主联系方式')" prop="defaultContactPhone">-->
<template v-slot="{row}"> <!-- <template v-slot="{row}">-->
+{{row.defaultContactPhone}} <br/> <!-- +{{row.defaultContactPhone}} <br/>-->
<contacts :id="row.id" > <!-- <contacts :id="row.id" >-->
<el-button type="text">更多</el-button> <!-- <el-button type="text">更多</el-button>-->
</contacts> <!-- </contacts>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column :label="$t('最新跟进时间')" width="120">
<template slot-scope="scope" v-if= "scope.row.followupBackVO">
{{ parseTime(scope.row.followupBackVO.followTime) }}
</template>
</el-table-column>
<el-table-column :label="$t('最新跟进记录')" width="120">
<template slot-scope="scope" v-if= "scope.row.followupBackVO">
<a href="javascript:void(0)" @click="handleCustomerFollowLink(scope.row.followupBackVO)" class="link-type">{{ scope.row.followupBackVO.number }}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('客户类别')" align="center" prop="status"> <el-table-column :label="$t('客户类别')" align="center" prop="status">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
{{ getDictDatas2(DICT_TYPE.CUSTOMER_TYPE, (row.type||'').split(',')).map(e => isChinese ? e.label : e.labelEn).join(', ')}} {{ getDictDatas2(DICT_TYPE.CUSTOMER_TYPE, (row.type||'').split(',')).map(e => isChinese ? e.label : e.labelEn).join(', ')}}
...@@ -814,6 +825,7 @@ ...@@ -814,6 +825,7 @@
</div> </div>
</el-dialog> </el-dialog>
<transfer-customer :show.sync="openHandOver" :customer-ids.sync="handOverForm.customerIdList"></transfer-customer> <transfer-customer :show.sync="openHandOver" :customer-ids.sync="handOverForm.customerIdList"></transfer-customer>
<customer-follow ref="customerFollow" @refresh="handleQuery" v-if="customerFollowVisible"/>
<customer-setting <customer-setting
ref="customerSetting" ref="customerSetting"
@refresh="getList" @refresh="getList"
...@@ -847,6 +859,7 @@ import { getProductTypeList } from "@/api/ecw/productType"; ...@@ -847,6 +859,7 @@ import { getProductTypeList } from "@/api/ecw/productType";
import { getProductList } from "@/api/ecw/product"; import { getProductList } from "@/api/ecw/product";
import { listMySimpleDepts } from "@/api/system/dept"; import { listMySimpleDepts } from "@/api/system/dept";
import Template from "@/views/cms/template/index.vue"; import Template from "@/views/cms/template/index.vue";
import CustomerFollow from "@/views/ecw/customer/components/customerFollow.vue";
export default { export default {
name: "EcwCustomerconfirmIndex", name: "EcwCustomerconfirmIndex",
activated() { activated() {
...@@ -927,10 +940,12 @@ export default { ...@@ -927,10 +940,12 @@ export default {
Contacts, Contacts,
transferCustomer, transferCustomer,
AreaCodeSelector, AreaCodeSelector,
CustomerSetting CustomerSetting,
customerFollow
}, },
data() { data() {
return { return {
customerFollowVisible: false,
// 遮罩层 // 遮罩层
loading: true, loading: true,
// 导出遮罩层 // 导出遮罩层
...@@ -1049,6 +1064,12 @@ export default { ...@@ -1049,6 +1064,12 @@ export default {
// this.$message.info(this.$t('已取消')) // this.$message.info(this.$t('已取消'))
// }); // });
// }, // },
handleCustomerFollowLink(row) {
this.customerFollowVisible = true
this.$nextTick((_) => {
this.$refs["customerFollow"].handleView(row)
})
},
getDictDatas, getDictDatas,
countryFormatter(row, column, cellValue) { countryFormatter(row, column, cellValue) {
const country = this.countryList.find((e) => e.id === cellValue) const country = this.countryList.find((e) => e.id === cellValue)
......
...@@ -442,14 +442,25 @@ ...@@ -442,14 +442,25 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('主联系人')" prop="defaultContactName"></el-table-column> <el-table-column :label="$t('主联系人')" prop="defaultContactName"></el-table-column>
<el-table-column :label="$t('主联系方式')" prop="defaultContactPhone"> <!-- <el-table-column :label="$t('主联系方式')" prop="defaultContactPhone">-->
<template v-slot="{row}"> <!-- <template v-slot="{row}">-->
+{{row.defaultContactPhone}} <br/> <!-- +{{row.defaultContactPhone}} <br/>-->
<contacts :id="row.id" > <!-- <contacts :id="row.id" >-->
<el-button type="text">更多</el-button> <!-- <el-button type="text">更多</el-button>-->
</contacts> <!-- </contacts>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column :label="$t('最新跟进时间')" width="120">
<template slot-scope="scope" v-if= "scope.row.followupBackVO">
{{ parseTime(scope.row.followupBackVO.followTime) }}
</template>
</el-table-column>
<el-table-column :label="$t('最新跟进记录')" width="120">
<template slot-scope="scope" v-if= "scope.row.followupBackVO">
<a href="javascript:void(0)" @click="handleCustomerFollowLink(scope.row.followupBackVO)" class="link-type">{{ scope.row.followupBackVO.number }}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('客户类别')" align="center" prop="status"> <el-table-column :label="$t('客户类别')" align="center" prop="status">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
{{ getDictDatas2(DICT_TYPE.CUSTOMER_TYPE, (row.type||'').split(',')).map(e => isChinese ? e.label : e.labelEn).join(', ')}} {{ getDictDatas2(DICT_TYPE.CUSTOMER_TYPE, (row.type||'').split(',')).map(e => isChinese ? e.label : e.labelEn).join(', ')}}
...@@ -611,6 +622,7 @@ ...@@ -611,6 +622,7 @@
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNo" :limit.sync="queryParams.pageSize" <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNo" :limit.sync="queryParams.pageSize"
@pagination="getList"/> @pagination="getList"/>
<transfer-customer :show.sync="batchTransferShow" :customer-ids.sync="selectCustomerList"></transfer-customer> <transfer-customer :show.sync="batchTransferShow" :customer-ids.sync="selectCustomerList"></transfer-customer>
<customer-follow ref="customerFollow" @refresh="handleQuery" v-if="customerFollowVisible"/>
<customer-setting <customer-setting
ref="customerSetting" ref="customerSetting"
@refresh="getList" @refresh="getList"
...@@ -634,6 +646,7 @@ import Template from "@/views/cms/template/index.vue"; ...@@ -634,6 +646,7 @@ import Template from "@/views/cms/template/index.vue";
import Contacts from "@/views/ecw/customer/components/contacts.vue"; import Contacts from "@/views/ecw/customer/components/contacts.vue";
import CustomerSetting from "../customer/components/customerSetting.vue"; import CustomerSetting from "../customer/components/customerSetting.vue";
import AreaCodeSelector from "@/components/AreaCodeSelector/index.vue"; import AreaCodeSelector from "@/components/AreaCodeSelector/index.vue";
import CustomerFollow from "@/views/ecw/customer/components/customerFollow.vue";
import { getNodeList } from "@/api/ecw/node"; import { getNodeList } from "@/api/ecw/node";
import { getCustomerSelect, changeCustomerDefaultPay, changeCustomerNoConsignee,changeCustomerDefaultBilling } from "@/api/ecw/customer"; import { getCustomerSelect, changeCustomerDefaultPay, changeCustomerNoConsignee,changeCustomerDefaultBilling } from "@/api/ecw/customer";
import { getProductTypeList } from "@/api/ecw/productType"; import { getProductTypeList } from "@/api/ecw/productType";
...@@ -651,10 +664,12 @@ export default { ...@@ -651,10 +664,12 @@ export default {
upload, upload,
transferCustomer, transferCustomer,
AreaCodeSelector, AreaCodeSelector,
CustomerFollow,
CustomerSetting CustomerSetting
}, },
data() { data() {
return { return {
customerFollowVisible: false,
batchTransferShow:false, batchTransferShow:false,
getDictDatas, getDictDatas,
getDictDatas2, getDictDatas2,
...@@ -784,6 +799,12 @@ export default { ...@@ -784,6 +799,12 @@ export default {
handleSelectionChange(val){ handleSelectionChange(val){
this.selectCustomerList = val.map(i => i.id); this.selectCustomerList = val.map(i => i.id);
}, },
handleCustomerFollowLink(row) {
this.customerFollowVisible = true
this.$nextTick((_) => {
this.$refs["customerFollow"].handleView(row)
})
},
/** 查询列表 */ /** 查询列表 */
getList() { getList() {
this.loading = true; this.loading = true;
......
...@@ -220,12 +220,22 @@ ...@@ -220,12 +220,22 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('主联系人')" prop="defaultContactName"></el-table-column> <el-table-column :label="$t('主联系人')" prop="defaultContactName"></el-table-column>
<el-table-column :label="$t('主联系方式')" prop="defaultContactPhone"> <!-- <el-table-column :label="$t('主联系方式')" prop="defaultContactPhone">-->
<template v-slot="{ row }"> <!-- <template v-slot="{ row }">-->
+{{ row.defaultContactPhone }} <br /> <!-- +{{ row.defaultContactPhone }} <br />-->
<contacts :id="row.id"> <!-- <contacts :id="row.id">-->
<el-button type="text">更多</el-button> <!-- <el-button type="text">更多</el-button>-->
</contacts> <!-- </contacts>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column :label="$t('最新跟进时间')" width="120">
<template slot-scope="scope" v-if= "scope.row.followupBackVO">
{{ parseTime(scope.row.followupBackVO.followTime) }}
</template>
</el-table-column>
<el-table-column :label="$t('最新跟进记录')" width="120">
<template slot-scope="scope" v-if= "scope.row.followupBackVO">
<a href="javascript:void(0)" @click="handleCustomerFollowLink(scope.row.followupBackVO)" class="link-type">{{ scope.row.followupBackVO.number }}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('客户类别')" align="center" prop="status"> <el-table-column :label="$t('客户类别')" align="center" prop="status">
...@@ -361,6 +371,7 @@ ...@@ -361,6 +371,7 @@
<!-- 分页组件 --> <!-- 分页组件 -->
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNo" :limit.sync="queryParams.pageSize" @pagination="getList" /> <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNo" :limit.sync="queryParams.pageSize" @pagination="getList" />
<customer-follow-list :customer-id="customerId" :id="customerId" :customer-service="customerService" :customer-number="customerNumber" ref="CustomerFollowList" v-if="customerFollowVisible"></customer-follow-list> <customer-follow-list :customer-id="customerId" :id="customerId" :customer-service="customerService" :customer-number="customerNumber" ref="CustomerFollowList" v-if="customerFollowVisible"></customer-follow-list>
<customer-follow ref="customerFollow" @refresh="handleQuery" v-if="customerFollowVisible"/>
<customer-complaints ref="customerComplaint" :customer-id.sync="customerId"></customer-complaints> <customer-complaints ref="customerComplaint" :customer-id.sync="customerId"></customer-complaints>
<transfer-customer :show.sync="show" :customer-ids.sync="selectCustomerList"></transfer-customer> <transfer-customer :show.sync="show" :customer-ids.sync="selectCustomerList"></transfer-customer>
<customer-setting ref="customerSetting" @refresh="getList"></customer-setting> <customer-setting ref="customerSetting" @refresh="getList"></customer-setting>
...@@ -372,6 +383,7 @@ import { createCustomer, updateCustomer, deleteCustomer, getMyCustomerService, m ...@@ -372,6 +383,7 @@ import { createCustomer, updateCustomer, deleteCustomer, getMyCustomerService, m
import { getDictDatas, DICT_TYPE, getDictDatas2 } from "@/utils/dict" import { getDictDatas, DICT_TYPE, getDictDatas2 } from "@/utils/dict"
import upload from "@/components/ImageUpload" import upload from "@/components/ImageUpload"
import customerFollowList from "../customer/components/customerFollow" import customerFollowList from "../customer/components/customerFollow"
import customerFollow from "../customer/components/customerFollow"
import customerComplaints from "@/components/customerComplaints" import customerComplaints from "@/components/customerComplaints"
import { listServiceUser, getUserProfile, listAllSimpl } from "@/api/system/user" import { listServiceUser, getUserProfile, listAllSimpl } from "@/api/system/user"
import { getCountryListAll } from "@/api/ecw/country" import { getCountryListAll } from "@/api/ecw/country"
...@@ -392,6 +404,7 @@ export default { ...@@ -392,6 +404,7 @@ export default {
Template, Template,
upload, upload,
customerFollowList, customerFollowList,
customerFollow,
customerComplaints, customerComplaints,
transferCustomer, transferCustomer,
AreaCodeSelector, AreaCodeSelector,
...@@ -464,6 +477,7 @@ export default { ...@@ -464,6 +477,7 @@ export default {
}, },
data() { data() {
return { return {
customerFollowVisible: false,
show: false, show: false,
creditList: [], creditList: [],
countryList: [], countryList: [],
...@@ -563,7 +577,6 @@ export default { ...@@ -563,7 +577,6 @@ export default {
userId: undefined, userId: undefined,
customerService: undefined, customerService: undefined,
customerNumber: undefined, customerNumber: undefined,
customerFollowVisible: false,
enterOpenSeaTime: [], enterOpenSeaTime: [],
customerServiceConfirmedTime: [], customerServiceConfirmedTime: [],
firstDealTime: [], firstDealTime: [],
...@@ -669,6 +682,12 @@ export default { ...@@ -669,6 +682,12 @@ export default {
this.productList = [] this.productList = []
} }
}, },
handleCustomerFollowLink(row) {
this.customerFollowVisible = true
this.$nextTick((_) => {
this.$refs["customerFollow"].handleView(row)
})
},
/** 取消按钮 */ /** 取消按钮 */
cancel() { cancel() {
this.open = false this.open = false
......
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