From 78caa769e452f63288743b8997f7b4c21bb06ce5 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期五, 06 十一月 2026 19:00:38 +0800
Subject: [PATCH] feat(crm,mes): 扩展客户字段与重构批次号生成逻辑
---
src/views/crm/customer/data.ts | 160 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 160 insertions(+), 0 deletions(-)
diff --git a/src/views/crm/customer/data.ts b/src/views/crm/customer/data.ts
index d3372ee..a3603db 100644
--- a/src/views/crm/customer/data.ts
+++ b/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: '绀句細淇$敤浠g爜',
+ 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: '绀句細淇$敤浠g爜',
+ 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: '绀句細淇$敤浠g爜',
+ 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,
--
Gitblit v1.9.3