xiaoyi
6 天以前 5c243d9d05da668a32b1bc9a4f543ea081488d11
src/views/crm/customer/data.ts
@@ -3,10 +3,10 @@
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';
@@ -41,6 +41,16 @@
      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,
      },
    },
@@ -154,7 +164,7 @@
      componentProps: {
        showTime: true,
        format: 'YYYY-MM-DD HH:mm:ss',
        valueFormat: 'x',
        valueFormat: 'YYYY-MM-DD HH:mm:ss',
        placeholder: '请选择下次联系时间',
        allowClear: true,
      },
@@ -198,6 +208,26 @@
      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,
      },
    },
@@ -276,6 +306,40 @@
      },
    },
    {
      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,