| | |
| | | |
| | | import { markRaw } from 'vue'; |
| | | |
| | | import { z } from '..\..\..\packages\effects\common-ui\src'; |
| | | import { DICT_TYPE } from '..\..\..\packages\constants\src'; |
| | | import { getDictOptions } from '..\..\..\packages\effects\hooks\src'; |
| | | import { useUserStore } from '..\..\..\packages\stores\src'; |
| | | import { z } from '@vben/common-ui'; |
| | | import { DICT_TYPE } from '@vben/constants'; |
| | | import { getDictOptions } from '@vben/hooks'; |
| | | import { useUserStore } from '@vben/stores'; |
| | | |
| | | import { getSimpleUserList } from '#/api/system/user'; |
| | | import { AreaCascader } from '#/components/area'; |
| | |
| | | componentProps: { |
| | | options: getDictOptions(DICT_TYPE.CRM_CUSTOMER_SOURCE, 'number'), |
| | | placeholder: '请选择客户来源', |
| | | allowClear: true, |
| | | }, |
| | | }, |
| | | { |
| | | fieldName: 'customerType', |
| | | label: '客户分类', |
| | | component: 'Select', |
| | | componentProps: { |
| | | options: getDictOptions(DICT_TYPE.CRM_CUSTOMER_TYPE), |
| | | placeholder: '请选择客户分类', |
| | | allowClear: true, |
| | | }, |
| | | }, |
| | |
| | | componentProps: { |
| | | showTime: true, |
| | | format: 'YYYY-MM-DD HH:mm:ss', |
| | | valueFormat: 'x', |
| | | valueFormat: 'YYYY-MM-DD HH:mm:ss', |
| | | placeholder: '请选择下次联系时间', |
| | | allowClear: true, |
| | | }, |
| | |
| | | component: 'Input', |
| | | componentProps: { |
| | | placeholder: '请输入电话', |
| | | allowClear: true, |
| | | }, |
| | | }, |
| | | { |
| | | fieldName: 'customerType', |
| | | label: '客户分类', |
| | | component: 'Select', |
| | | componentProps: { |
| | | options: getDictOptions(DICT_TYPE.CRM_CUSTOMER_TYPE), |
| | | placeholder: '请选择客户分类', |
| | | allowClear: true, |
| | | }, |
| | | }, |
| | | { |
| | | fieldName: 'creditLevel', |
| | | label: '信用等级', |
| | | component: 'Select', |
| | | componentProps: { |
| | | options: getDictOptions(DICT_TYPE.CRM_CREDIT_LEVEL), |
| | | placeholder: '请选择信用等级', |
| | | allowClear: true, |
| | | }, |
| | | }, |
| | |
| | | }, |
| | | }, |
| | | { |
| | | field: 'customerType', |
| | | title: '客户分类', |
| | | minWidth: 100, |
| | | cellRender: { |
| | | name: 'CellDict', |
| | | props: { type: DICT_TYPE.CRM_CUSTOMER_TYPE }, |
| | | }, |
| | | }, |
| | | { |
| | | field: 'creditLevel', |
| | | title: '信用等级', |
| | | minWidth: 100, |
| | | cellRender: { |
| | | name: 'CellDict', |
| | | props: { type: DICT_TYPE.CRM_CREDIT_LEVEL }, |
| | | }, |
| | | }, |
| | | { |
| | | field: 'creditScore', |
| | | title: '信用分', |
| | | minWidth: 90, |
| | | }, |
| | | { |
| | | field: 'overdueAmount', |
| | | title: '欠费金额', |
| | | minWidth: 110, |
| | | formatter: 'formatAmount2', |
| | | }, |
| | | { |
| | | field: 'overdueCount', |
| | | title: '欠费笔数', |
| | | minWidth: 90, |
| | | }, |
| | | { |
| | | field: 'mobile', |
| | | title: '手机', |
| | | minWidth: 120, |