Commit 2e1a38ad by liimin

2

1 parent d94c020f
......@@ -7,7 +7,7 @@ export const Constants = {
GENDER_OPTION: [
{
label: '全部',
value: 0
value: null
},
{
label: '男',
......
......@@ -4,7 +4,7 @@
<!-- <p class="pageTitle">客户管理</p> -->
<!-- :style="{ 'min-height': heightBox + 'px' }" -->
<div class="pageContent">
<GLCombiForm ref="combiForm" :formObj="searchForm" :formData="clientManageFormList" @handleOk="searchTable" @handleRest="resetTable"></GLCombiForm>
<GLCombiForm ref="combiForm" :rowNumber="1" :formObj="searchForm" :formData="clientManageFormList" @handleOk="searchTable" @handleRest="resetTable"></GLCombiForm>
<div class="leadList">
<div>
<span></span>
......@@ -18,7 +18,7 @@
</span>
<!-- <span slot="customerSex" slot-scope="scope" >-->
<span slot="customerSex" slot-scope="scope">
<span>{{ scope.scope.customerSex == 0 ? '全部' : scope.scope.customerSex == 1 ? '男' : scope.scope.customerSex == 2 ? '女' : '' }}</span>
<span>{{ ['-', '男', '女'][scope.scope.customerSex] }}</span>
</span>
<!-- 企微名称 -->
<div slot="nickNameList" slot-scope="scope" class="expandImg">
......@@ -118,87 +118,87 @@ export default {
},
searchFormTable: {},
clientManageFormList: [
{
type: 'input',
inputType: 'text',
// prop: 'customerPhone',
name: 'customerPhone',
label: '联系电话',
placeholder: '联系电话'
},
{
type: 'select',
name: 'followStaff',
// prop: 'followStaff',
noFilter: false,
optionLabel: 'label',
optionId: 'value',
label: '跟进员工',
placeholder: '请输入跟进员工',
optionList: []
},
{
type: 'input',
inputType: 'text',
// prop: 'customerName',
name: 'customerName',
label: '客户名称',
placeholder: '请输入客户名称'
},
{
type: 'input',
inputType: 'text',
// prop: 'nickName',
name: 'nickName',
label: '企微名称',
placeholder: '请输入企微名称'
},
{
type: 'select',
// prop: 'isJoin',
name: 'isJoin',
label: '是否已加企微',
placeholder: '请选择',
optionLabel: 'label',
optionId: 'value',
optionList: [
{
label: '全部',
value: null
},
{
label: '是',
value: 1
},
{
label: '否',
value: 0
}
]
},
{
type: 'select',
// prop: 'status',
name: 'status',
label: '当前状态',
placeholder: '请选择当前状态',
optionLabel: 'optionLabel',
optionId: 'optionId',
optionList: [
{
optionLabel: '全部',
optionId: null
},
{
optionLabel: '正常',
optionId: 0
},
{
optionLabel: '删除好友',
optionId: -1
}
]
},
// {
// type: 'input',
// inputType: 'text',
// // prop: 'customerPhone',
// name: 'customerPhone',
// label: '联系电话',
// placeholder: '联系电话'
// },
// {
// type: 'select',
// name: 'followStaff',
// // prop: 'followStaff',
// noFilter: false,
// optionLabel: 'label',
// optionId: 'value',
// label: '跟进员工',
// placeholder: '请输入跟进员工',
// optionList: []
// },
// {
// type: 'input',
// inputType: 'text',
// // prop: 'customerName',
// name: 'customerName',
// label: '客户名称',
// placeholder: '请输入客户名称'
// },
// {
// type: 'input',
// inputType: 'text',
// // prop: 'nickName',
// name: 'nickName',
// label: '企微名称',
// placeholder: '请输入企微名称'
// },
// {
// type: 'select',
// // prop: 'isJoin',
// name: 'isJoin',
// label: '是否已加企微',
// placeholder: '请选择',
// optionLabel: 'label',
// optionId: 'value',
// optionList: [
// {
// label: '全部',
// value: null
// },
// {
// label: '是',
// value: 1
// },
// {
// label: '否',
// value: 0
// }
// ]
// },
// {
// type: 'select',
// // prop: 'status',
// name: 'status',
// label: '当前状态',
// placeholder: '请选择当前状态',
// optionLabel: 'optionLabel',
// optionId: 'optionId',
// optionList: [
// {
// optionLabel: '全部',
// optionId: null
// },
// {
// optionLabel: '正常',
// optionId: 0
// },
// {
// optionLabel: '删除好友',
// optionId: -1
// }
// ]
// },
{
type: 'datePicker',
// prop: 'daterange',
......@@ -212,16 +212,16 @@ export default {
}
},
{
type: 'select',
// prop: 'addWay',
name: 'addWay',
label: '添加来源',
optionLabel: 'label',
optionId: 'value',
placeholder: '请选择当前来源',
optionList: [] //this.$Constants.SOURCE_OPTION
},
// {
// type: 'select',
// // prop: 'addWay',
// name: 'addWay',
// label: '添加来源',
// optionLabel: 'label',
// optionId: 'value',
// placeholder: '请选择当前来源',
// optionList: [] //this.$Constants.SOURCE_OPTION
// },
{
type: 'select',
// prop: 'customerSex',
......@@ -243,12 +243,12 @@ export default {
}
}
},
{
type: 'input',
inputType: 'text',
name: 'carVin',
label: '车架号'
},
// {
// type: 'input',
// inputType: 'text',
// name: 'carVin',
// label: '车架号'
// },
{
type: 'input',
inputType: 'text',
......@@ -302,12 +302,12 @@ export default {
// // addHtml: 'followStaff',
// width: 320
// },
{
label: '是否加企微', //1. 加入,0.未加入
prop: 'isJoin',
addHtml: 'isJoin',
width: 120
},
// {
// label: '是否加企微', //1. 加入,0.未加入
// prop: 'isJoin',
// addHtml: 'isJoin',
// width: 120
// },
// {
// label: '当前状态',
// prop: 'status',
......@@ -336,11 +336,11 @@ export default {
// width: 250,
// line: 1
// },
{
label: '车架号',
prop: 'carVin',
line: 1
},
// {
// label: '车架号',
// prop: 'carVin',
// line: 1
// },
{
label: '车牌号',
prop: 'carNumber',
......@@ -665,7 +665,7 @@ export default {
提取出营销文案关键字,命名为subject;
提取出节日,命名为festival,如果是数字,转化成大写,例如:五一节;
提取出联系电话(手机号),命名为customerPhone,不用补全;
提取出车牌号,命名为carNumber,不用补全;
提取出车主归属地或者车牌号,命名为carNumber,如广东的车主,则取值为"粤";
提取出客户名称,命名为customerName;
提取出车架号,命名为carVin;
提取出性别,命名为customerSex,取值范围:"0,1,2",0表示全部,1表示男,2表示女;
......@@ -690,7 +690,7 @@ export default {
const { subject, festival, ...others } = data
this.keys = { subject, festival }
//searchForm
this.searchForm = { ...others, customerSex: Number(data.customerSex) }
this.searchForm = { ...others, customerSex: data.customerSex == 0 || data.customerSex == null ? null : Number(data.customerSex) }
console.log(this.searchForm)
// 设置 searchForm
this.searchTable()
......@@ -722,7 +722,7 @@ export default {
return element
})
// let content = '我有一批客户,资料(id,customerName,customerSex,customerPhone,buyDate,carVin,carNumber) 分别是:'
let content = `忽略之前的上下文,我有${list.length}个客户资料分别是:`
let content = `忽略之前的上下文,现在是2023年,我有${list.length}个客户资料分别是:`
let cutomerInfo = []
for (let index = 0; index < list.length; index++) {
let { customerName, customerSex, customerPhone, buyDate, carVin, carNumber } = list[index]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!