Commit 2e1a38ad by liimin

2

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