Browse Source

no message

master
xpz2018 8 months ago
parent
commit
e54a98d463
4 changed files with 32 additions and 18 deletions
  1. 4
      src/enums/customerEnum.ts
  2. 2
      src/locales/lang/zh-CN/routes/clue.ts
  3. 40
      src/views/clue/components/data.ts
  4. 4
      src/views/clue/components/modal.vue

4
src/enums/customerEnum.ts

@ -18,6 +18,10 @@ export const channelList = [
{ label: '线上录入', value: 1 },
{ label: '抖音', value: 2 },
{ label: '小红书', value: 3 },
{ label: 'soul', value: 4 },
{ label: '陌陌', value: 5 },
{ label: '探探', value: 6 },
{ label: '其他', value: 100 },
]
export const educationList = [

2
src/locales/lang/zh-CN/routes/clue.ts

@ -2,7 +2,7 @@ export default {
clue: '线索管理',
cluePool: '待分配线索',
clueList: '已分配线索',
customer: '客户信息',
customer: '线索详情',
poolist: '我的线索',
followlist: '跟进记录'
}

40
src/views/clue/components/data.ts

@ -60,6 +60,16 @@ export const modalFormSchema: FormSchema[] = [
}
},
},
{
field: 'channelType',
label: '渠道来源',
defaultValue: 1,
colProps: { span: 8 },
component: 'Select',
componentProps: {
options: channelList,
},
},
{
field: 'birthYear',
label: '出生年份',
@ -171,21 +181,21 @@ export const modalFormSchema: FormSchema[] = [
},
},
},
{
field: 'domicilePlace',
label: '户口所在地',
colProps: { span: 8 },
component: 'Cascader',
componentProps: () => {
return {
options: domicilePlaceList.value,
onChange: (_: any, v: any) => {
basicInfoData.value.domicilePlaceProvinceName = v?.[0]?.label
basicInfoData.value.domicilePlaceCityName = v?.[1]?.label
},
}
},
},
// {
// field: 'domicilePlace',
// label: '户口所在地',
// colProps: { span: 8 },
// component: 'Cascader',
// componentProps: () => {
// return {
// options: domicilePlaceList.value,
// onChange: (_: any, v: any) => {
// basicInfoData.value.domicilePlaceProvinceName = v?.[0]?.label
// basicInfoData.value.domicilePlaceCityName = v?.[1]?.label
// },
// }
// },
// },
{
field: 'hometown',
label: '家乡',

4
src/views/clue/components/modal.vue

@ -134,7 +134,7 @@
basicInfoData.value = {}
activeKey2.value = '1'
await resetFields()
await resetFields3()
// await resetFields3()
}
setModalProps({ minHeight: 50, confirmLoading: false, title })
})
@ -220,7 +220,7 @@
const param = {
...values,
channelType: 1,
// channelType: 1,
datingClueDemand,
cityCode: address?.[1],
cityName: basicInfoData.value.cityName,

Loading…
Cancel
Save