|
|
@@ -304,7 +304,7 @@
|
|
|
v-if="scope.row.attritionLevel !== null && scope.row.attritionLevel !== undefined"
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
- @click="toDetailPage(scope.row)"
|
|
|
+ @click="openAiDrawer(scope.row)"
|
|
|
v-hasPermi="['crm:analyze:list']"
|
|
|
>AI 分析</el-button>
|
|
|
<el-button
|
|
|
@@ -338,6 +338,19 @@
|
|
|
<customer-details ref="customerDetails" />
|
|
|
</el-drawer>
|
|
|
|
|
|
+ <el-drawer
|
|
|
+ size="75%"
|
|
|
+ :title="aiAnalyze.title"
|
|
|
+ :visible.sync="aiAnalyze.open"
|
|
|
+ append-to-body
|
|
|
+ >
|
|
|
+ <customer-detail
|
|
|
+ ref="customerAiDetail"
|
|
|
+ :customer-id="aiAnalyze.customerId"
|
|
|
+ :customer-row="aiAnalyze.customerRow"
|
|
|
+ />
|
|
|
+ </el-drawer>
|
|
|
+
|
|
|
|
|
|
|
|
|
<el-dialog :title="addSms.title" :visible.sync="addSms.open" width="1000px" append-to-body>
|
|
|
@@ -385,6 +398,7 @@
|
|
|
import { assignToUser,recover,receive,getCustomerList ,addCustomer,updateCustomer,getCustomerDetails,exportCustomer,importVisitTemplate } from "@/api/crm/customer";
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
import customerDetails from '../components/customerDetails.vue';
|
|
|
+import customerDetail from './customerDetail.vue';
|
|
|
import {getCitys} from "@/api/store/city";
|
|
|
import { treeselect } from "@/api/company/companyDept";
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
|
@@ -396,7 +410,7 @@ import customerAssignList from '../components/customerAssignList.vue';
|
|
|
import assignUser from '../components/assignUser.vue';
|
|
|
export default {
|
|
|
name: "Customer",
|
|
|
- components: {assignUser,customerAssignList,addBatchSms,editSource, customerDetails,Treeselect,customerSource },
|
|
|
+ components: {assignUser,customerAssignList,addBatchSms,editSource, customerDetails, customerDetail, Treeselect,customerSource },
|
|
|
data() {
|
|
|
return {
|
|
|
upload: {
|
|
|
@@ -462,6 +476,12 @@ export default {
|
|
|
title:"客户详情",
|
|
|
open:false,
|
|
|
},
|
|
|
+ aiAnalyze: {
|
|
|
+ title: "AI 分析",
|
|
|
+ open: false,
|
|
|
+ customerId: null,
|
|
|
+ customerRow: null,
|
|
|
+ },
|
|
|
// 遮罩层
|
|
|
loading: true,
|
|
|
// 选中数组
|
|
|
@@ -579,13 +599,10 @@ export default {
|
|
|
this.getList();
|
|
|
},
|
|
|
methods: {
|
|
|
- toDetailPage(row) {
|
|
|
- this.$router.push({
|
|
|
- path: '/crm/customer/detail/' + row.customerId,
|
|
|
- query: {
|
|
|
- customerData: JSON.stringify(row)
|
|
|
- }
|
|
|
- });
|
|
|
+ openAiDrawer(row) {
|
|
|
+ this.aiAnalyze.customerId = row.customerId;
|
|
|
+ this.aiAnalyze.customerRow = row;
|
|
|
+ this.aiAnalyze.open = true;
|
|
|
},
|
|
|
handleShow(row){
|
|
|
this.show.open=true;
|