|
|
|
@ -1,7 +1,7 @@ |
|
|
|
import { FormSchema } from '/@/components/Table' |
|
|
|
import { ref } from 'vue' |
|
|
|
import dayjs, { Dayjs } from 'dayjs' |
|
|
|
import { genderList, channelList, clueStatusList, followStatusList, validStatusList } from '/@/enums/customerEnum' |
|
|
|
import { genderList, channelList, clueStatusList, followStatusList, paymentList, marriageList } from '/@/enums/customerEnum' |
|
|
|
import { useAddressData } from '/@/hooks/common' |
|
|
|
import { |
|
|
|
getIncomeList, |
|
|
|
@ -190,21 +190,22 @@ export const modalFormSchema: FormSchema[] = [ |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ field: 'childrenNum', label: '孩子数量', component: 'InputNumber', colProps: { span: 8 }, }, |
|
|
|
{ |
|
|
|
field: 'nationCode', |
|
|
|
label: '民族', |
|
|
|
colProps: { span: 8 }, |
|
|
|
component: 'ApiSelect', |
|
|
|
componentProps: { |
|
|
|
labelField: 'cn', |
|
|
|
valueField: 'id', |
|
|
|
api: getNationList, |
|
|
|
getPopupContainer: () => document.body, |
|
|
|
onChange: (_: any, v: any) => { |
|
|
|
basicInfoData.value.nation = v?.label |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// field: 'nationCode',
|
|
|
|
// label: '民族',
|
|
|
|
// colProps: { span: 8 },
|
|
|
|
// component: 'ApiSelect',
|
|
|
|
// componentProps: {
|
|
|
|
// labelField: 'cn',
|
|
|
|
// valueField: 'id',
|
|
|
|
// api: getNationList,
|
|
|
|
// getPopupContainer: () => document.body,
|
|
|
|
// onChange: (_: any, v: any) => {
|
|
|
|
// basicInfoData.value.nation = v?.label
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
|
|
|
|
// {
|
|
|
|
// field: 'bodilyFormCode',
|
|
|
|
// label: '体型',
|
|
|
|
@ -264,18 +265,18 @@ export const modalFormSchema: FormSchema[] = [ |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
field: 'onlyChild', |
|
|
|
label: '是否独生子女', |
|
|
|
colProps: { span: 8 }, |
|
|
|
component: 'Select', |
|
|
|
componentProps: { |
|
|
|
options: [ |
|
|
|
{ label: '是', value: 1 }, |
|
|
|
{ label: '否', value: 0 }, |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// field: 'onlyChild',
|
|
|
|
// label: '是否独生子女',
|
|
|
|
// colProps: { span: 8 },
|
|
|
|
// component: 'Select',
|
|
|
|
// componentProps: {
|
|
|
|
// options: [
|
|
|
|
// { label: '是', value: 1 },
|
|
|
|
// { label: '否', value: 0 },
|
|
|
|
// ],
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
{ |
|
|
|
field: 'propertyPermitsCode', |
|
|
|
label: '购房情况', |
|
|
|
@ -318,6 +319,24 @@ export const modalFormSchema: FormSchema[] = [ |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
field: 'paymentIntention', |
|
|
|
label: '付费意愿', |
|
|
|
colProps: { span: 8 }, |
|
|
|
component: 'Select', |
|
|
|
componentProps: { |
|
|
|
options: paymentList |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
field: 'marriageIntention', |
|
|
|
label: '结婚意愿', |
|
|
|
colProps: { span: 8 }, |
|
|
|
component: 'Select', |
|
|
|
componentProps: { |
|
|
|
options: marriageList |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
field: 'profilePhoto', |
|
|
|
component: 'Upload', |
|
|
|
|