xiaoyi
3 天以前 5c243d9d05da668a32b1bc9a4f543ea081488d11
src/views/crm/customer/data.ts
@@ -45,6 +45,16 @@
      },
    },
    {
      fieldName: 'customerType',
      label: '客户分类',
      component: 'Select',
      componentProps: {
        options: getDictOptions(DICT_TYPE.CRM_CUSTOMER_TYPE),
        placeholder: '请选择客户分类',
        allowClear: true,
      },
    },
    {
      fieldName: 'mobile',
      label: '手机',
      component: 'Input',
@@ -202,6 +212,26 @@
      },
    },
    {
      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,
      },
    },
    {
      fieldName: 'createTime',
      label: '创建时间',
      component: 'RangePicker',
@@ -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,