173 lines
5.1 KiB
JavaScript
173 lines
5.1 KiB
JavaScript
// 客户管理模块种子数据:个人客户(3) + 企业客户(2) + 企业关联人(股东/高管)
|
|
import { initCounter } from '../utils/id.js'
|
|
|
|
const now = '2026-06-01 10:00:00'
|
|
|
|
export const individualCustomers = [
|
|
{
|
|
id: 1,
|
|
customerCode: 'PC0001',
|
|
organizationId: 1,
|
|
customerName: '陈建国',
|
|
certificateType: 'ID_CARD',
|
|
certificateNumber: '310101198001011234',
|
|
birthDate: '1980-01-01 00:00:00',
|
|
gender: 'MALE',
|
|
ethnicity: '汉族',
|
|
certificateEffectiveDate: '2015-01-01 00:00:00',
|
|
certificateExpiryDate: '2035-01-01 00:00:00',
|
|
issuingAuthority: '上海市公安局黄浦分局',
|
|
certificateAddress: '上海市黄浦区人民路100号',
|
|
mobilePhone: '13700000001',
|
|
idCardFrontFileNo: 'FILE00000001',
|
|
idCardBackFileNo: 'FILE00000002',
|
|
ocrStatus: 'SUCCESS',
|
|
occupation: '企业法定代表人',
|
|
creatorId: 1,
|
|
createTime: now,
|
|
updateTime: now
|
|
},
|
|
{
|
|
id: 2,
|
|
customerCode: 'PC0002',
|
|
organizationId: 1,
|
|
customerName: '林晓丽',
|
|
certificateType: 'ID_CARD',
|
|
certificateNumber: '310101198505054567',
|
|
birthDate: '1985-05-05 00:00:00',
|
|
gender: 'FEMALE',
|
|
ethnicity: '汉族',
|
|
certificateEffectiveDate: '2018-03-01 00:00:00',
|
|
certificateExpiryDate: '2038-03-01 00:00:00',
|
|
issuingAuthority: '上海市公安局静安分局',
|
|
certificateAddress: '上海市静安区南京西路200号',
|
|
mobilePhone: '13700000002',
|
|
idCardFrontFileNo: 'FILE00000003',
|
|
idCardBackFileNo: 'FILE00000004',
|
|
ocrStatus: 'SUCCESS',
|
|
occupation: '企业高级管理人员',
|
|
creatorId: 1,
|
|
createTime: now,
|
|
updateTime: now
|
|
},
|
|
{
|
|
id: 3,
|
|
customerCode: 'PC0003',
|
|
organizationId: 2,
|
|
customerName: '黄志明',
|
|
certificateType: 'ID_CARD',
|
|
certificateNumber: '440101199203038901',
|
|
birthDate: '1992-03-03 00:00:00',
|
|
gender: 'MALE',
|
|
ethnicity: '汉族',
|
|
certificateEffectiveDate: '2016-06-01 00:00:00',
|
|
certificateExpiryDate: '2036-06-01 00:00:00',
|
|
issuingAuthority: '广州市公安局天河分局',
|
|
certificateAddress: '广州市天河区体育西路50号',
|
|
mobilePhone: '13700000003',
|
|
idCardFrontFileNo: 'FILE00000005',
|
|
idCardBackFileNo: 'FILE00000006',
|
|
ocrStatus: 'SUCCESS',
|
|
occupation: '企业法定代表人',
|
|
creatorId: 1,
|
|
createTime: now,
|
|
updateTime: now
|
|
}
|
|
]
|
|
initCounter('individualCustomer', 4)
|
|
|
|
export const enterpriseCustomers = [
|
|
{
|
|
id: 1,
|
|
enterpriseCode: 'EC0001',
|
|
organizationId: 1,
|
|
enterpriseName: '上海凡荣贸易有限公司',
|
|
businessLicense: '91310000MA1EC0001A',
|
|
certificateType: 'BUSINESS_LICENSE',
|
|
certificateNumber: '91310000MA1EC0001A',
|
|
certificateEffectiveDate: '2015-01-01 00:00:00',
|
|
certificateExpiryDate: '长期',
|
|
mobilePhone: '021-88880001',
|
|
certificateAddress: '上海市黄浦区人民路100号',
|
|
businessScope: '国内贸易、电子商务、供应链管理',
|
|
businessLicenseFileNo: 'FILE00000007',
|
|
legalRepresentativeId: 1,
|
|
ocrStatus: 'SUCCESS',
|
|
creatorId: 1,
|
|
createTime: now
|
|
},
|
|
{
|
|
id: 2,
|
|
enterpriseCode: 'EC0002',
|
|
organizationId: 2,
|
|
enterpriseName: '广州荣泰电子商务有限公司',
|
|
businessLicense: '91440101MA1EC0002B',
|
|
certificateType: 'BUSINESS_LICENSE',
|
|
certificateNumber: '91440101MA1EC0002B',
|
|
certificateEffectiveDate: '2018-06-01 00:00:00',
|
|
certificateExpiryDate: '长期',
|
|
mobilePhone: '020-88880002',
|
|
certificateAddress: '广州市天河区体育西路50号',
|
|
businessScope: '电子商务、日用百货销售',
|
|
businessLicenseFileNo: 'FILE00000008',
|
|
legalRepresentativeId: 3,
|
|
ocrStatus: 'SUCCESS',
|
|
creatorId: 1,
|
|
createTime: now
|
|
}
|
|
]
|
|
initCounter('enterpriseCustomer', 3)
|
|
|
|
export const enterpriseRelatedPersons = [
|
|
{
|
|
id: 1,
|
|
enterpriseId: 1,
|
|
individualId: 1,
|
|
relatedType: 'SHAREHOLDER',
|
|
position: '法定代表人/股东',
|
|
shareholdingRatio: '60',
|
|
certificateType: 'ID_CARD',
|
|
certificateNumber: '310101198001011234',
|
|
certificateEffectiveDate: '2015-01-01 00:00:00',
|
|
certificateExpiryDate: '2035-01-01 00:00:00',
|
|
nationality: '中国',
|
|
isShareholder: true,
|
|
contactPhone: '13700000001',
|
|
email: ''
|
|
},
|
|
{
|
|
id: 2,
|
|
enterpriseId: 1,
|
|
individualId: 2,
|
|
relatedType: 'EXECUTIVE',
|
|
position: '总经理',
|
|
shareholdingRatio: '10',
|
|
certificateType: 'ID_CARD',
|
|
certificateNumber: '310101198505054567',
|
|
certificateEffectiveDate: '2018-03-01 00:00:00',
|
|
certificateExpiryDate: '2038-03-01 00:00:00',
|
|
nationality: '中国',
|
|
isShareholder: false,
|
|
contactPhone: '13700000002',
|
|
email: ''
|
|
},
|
|
{
|
|
id: 3,
|
|
enterpriseId: 2,
|
|
individualId: 3,
|
|
relatedType: 'SHAREHOLDER',
|
|
position: '法定代表人/股东',
|
|
shareholdingRatio: '80',
|
|
certificateType: 'ID_CARD',
|
|
certificateNumber: '440101199203038901',
|
|
certificateEffectiveDate: '2016-06-01 00:00:00',
|
|
certificateExpiryDate: '2036-06-01 00:00:00',
|
|
nationality: '中国',
|
|
isShareholder: true,
|
|
contactPhone: '13700000003',
|
|
email: ''
|
|
}
|
|
]
|
|
initCounter('enterpriseRelatedPerson', 4)
|
|
initCounter('file', 9)
|