云
8 天以前 78caa769e452f63288743b8997f7b4c21bb06ce5
src/views/crm/customer/data.ts
@@ -10,6 +10,7 @@
import { getSimpleUserList } from '#/api/system/user';
import { AreaCascader } from '#/components/area';
import CrmCustomerSelect from '#/components/crm-customer-select.vue';
import { getRangePickerDefaultProps } from '#/utils';
/** 新增/修改的表单 */
@@ -31,6 +32,69 @@
      rules: 'required',
      componentProps: {
        placeholder: '请输入客户名称',
        allowClear: true,
      },
    },
    {
      fieldName: 'customerName',
      label: '客户姓名',
      component: 'Input',
      componentProps: {
        placeholder: '请输入客户姓名',
        allowClear: true,
      },
    },
    {
      fieldName: 'socialCreditCode',
      label: '社会信用代码',
      component: 'Input',
      componentProps: {
        placeholder: '请输入社会信用代码',
        allowClear: true,
      },
    },
    {
      fieldName: 'idCardNo',
      label: '身份证号',
      component: 'Input',
      componentProps: {
        placeholder: '请输入身份证号',
        allowClear: true,
      },
    },
    {
      fieldName: 'filingSerialNo',
      label: '备案流水号',
      component: 'Input',
      componentProps: {
        placeholder: '请输入备案流水号',
        allowClear: true,
      },
    },
    {
      fieldName: 'bankAccountName',
      label: '银行账户名称',
      component: 'Input',
      componentProps: {
        placeholder: '请输入银行账户名称',
        allowClear: true,
      },
    },
    {
      fieldName: 'region',
      label: '所属区域',
      component: 'Input',
      componentProps: {
        placeholder: '请输入所属区域',
        allowClear: true,
      },
    },
    {
      fieldName: 'parentDealerId',
      label: '所属上级经销商',
      component: markRaw(CrmCustomerSelect),
      componentProps: {
        placeholder: '请选择所属上级经销商',
        allowClear: true,
      },
    },
@@ -184,6 +248,60 @@
      },
    },
    {
      fieldName: 'customerName',
      label: '客户姓名',
      component: 'Input',
      componentProps: {
        placeholder: '请输入客户姓名',
        allowClear: true,
      },
    },
    {
      fieldName: 'socialCreditCode',
      label: '社会信用代码',
      component: 'Input',
      componentProps: {
        placeholder: '请输入社会信用代码',
        allowClear: true,
      },
    },
    {
      fieldName: 'idCardNo',
      label: '身份证号',
      component: 'Input',
      componentProps: {
        placeholder: '请输入身份证号',
        allowClear: true,
      },
    },
    {
      fieldName: 'filingSerialNo',
      label: '备案流水号',
      component: 'Input',
      componentProps: {
        placeholder: '请输入备案流水号',
        allowClear: true,
      },
    },
    {
      fieldName: 'region',
      label: '所属区域',
      component: 'Input',
      componentProps: {
        placeholder: '请输入所属区域',
        allowClear: true,
      },
    },
    {
      fieldName: 'parentDealerId',
      label: '所属上级经销商',
      component: markRaw(CrmCustomerSelect),
      componentProps: {
        placeholder: '请选择所属上级经销商',
        allowClear: true,
      },
    },
    {
      fieldName: 'mobile',
      label: '手机号',
      component: 'Input',
@@ -267,6 +385,48 @@
      slots: { default: 'name' },
    },
    {
      field: 'customerName',
      title: '客户姓名',
      minWidth: 120,
      formatter: ({ cellValue }) => cellValue || '-',
    },
    {
      field: 'socialCreditCode',
      title: '社会信用代码',
      minWidth: 180,
      formatter: ({ cellValue }) => cellValue || '-',
    },
    {
      field: 'idCardNo',
      title: '身份证号',
      minWidth: 180,
      formatter: ({ cellValue }) => cellValue || '-',
    },
    {
      field: 'filingSerialNo',
      title: '备案流水号',
      minWidth: 160,
      formatter: ({ cellValue }) => cellValue || '-',
    },
    {
      field: 'bankAccountName',
      title: '银行账户名称',
      minWidth: 180,
      formatter: ({ cellValue }) => cellValue || '-',
    },
    {
      field: 'region',
      title: '所属区域',
      minWidth: 120,
      formatter: ({ cellValue }) => cellValue || '-',
    },
    {
      field: 'parentDealerName',
      title: '所属上级经销商',
      minWidth: 160,
      formatter: ({ cellValue }) => cellValue || '-',
    },
    {
      field: 'source',
      title: '客户来源',
      minWidth: 100,