// 授信管理(贷款申请)模块种子数据:个人贷款申请2条 + 企业贷款申请1条, // 覆盖 DRAFT(可编辑)/SUBMITTED 两种状态。字段严格对齐 // CreatePersonalLoanApplicationDraftBto / CreateEnterpriseLoanDraftBto 及对应表单实际提交字段。 import { initCounter } from '../utils/id.js' function loanApplicationId(seq) { return `LA${String(seq).padStart(8, '0')}` } const now = '2026-06-15 10:00:00' export const loanApplications = [ // ---- 个人贷款申请1:已提交(SUBMITTED),客户陈建国(PC0001) ---- { id: 1, loanApplicationId: loanApplicationId(1), applicationType: 'PERSONAL', applicationStatus: 'SUBMITTED', organizationId: 1, channel: 'CE0001', loanProductCode: 'LP-PERSONAL-001', customerName: '陈建国', phoneNo: '13700000001', registeredCity: '上海市', permanentAddress: '上海市黄浦区人民路100号', goodsCategory: 'GENERAL_GOODS', paymentCycle: 'DAY_30', singleOrderLimit: '500000.00', financingRatio: 80, estimatedReturnRate: 5, loanTerm: 180, orderFinancingTerm: 30, loanAmount: '300000.00', applicationInterestRate: '5.80', loanPurpose: '经营周转', enterpriseName: '上海凡荣贸易有限公司', businessStartDate: '2015-01-01 00:00:00', businessScope: '国内贸易、电子商务、供应链管理', ethnicity: 'HAN', educationLevel: 'BACHELOR', maritalStatus: 'MARRIED', annualPersonalIncome: '350000.00', annualFamilyIncome: '600000.00', emergencyContactName: '陈建军', emergencyContactPhone: '13700000011', emergencyContactRelation: 'SIBLING', spouseName: '王丽', spousePhone: '13700000012', spouseGender: 'FEMALE', spouseCertType: '身份证', spouseCertId: '310101198203031234', loanApplicationImageBtoList: [ { fileType: '身份证正面', fileNo: 'FILE00000001' }, { fileType: '身份证反面', fileNo: 'FILE00000002' } ], createdBy: 'admin', createTime: now, updateTime: now }, // ---- 个人贷款申请2:草稿(DRAFT,可编辑),客户林晓丽(PC0002) ---- { id: 2, loanApplicationId: loanApplicationId(2), applicationType: 'PERSONAL', applicationStatus: 'DRAFT', organizationId: 1, channel: 'CE0001', loanProductCode: 'LP-PERSONAL-002', customerName: '林晓丽', phoneNo: '13700000002', registeredCity: '上海市', permanentAddress: '上海市静安区南京西路200号', goodsCategory: 'GENERAL_GOODS', paymentCycle: 'DAY_25', singleOrderLimit: '200000.00', financingRatio: 70, estimatedReturnRate: 3, loanTerm: 90, orderFinancingTerm: 25, loanAmount: '150000.00', applicationInterestRate: '6.20', loanPurpose: '备货采购', enterpriseName: '', businessStartDate: '', businessScope: '日用百货零售', ethnicity: 'HAN', educationLevel: 'MASTER', maritalStatus: 'UNMARRIED', annualPersonalIncome: '280000.00', annualFamilyIncome: '280000.00', emergencyContactName: '林晓东', emergencyContactPhone: '13700000021', emergencyContactRelation: 'SIBLING', spouseName: '', spousePhone: '', spouseGender: undefined, spouseCertType: '', spouseCertId: '', loanApplicationImageBtoList: [ { fileType: '身份证正面', fileNo: 'FILE00000003' }, { fileType: '身份证反面', fileNo: 'FILE00000004' } ], createdBy: 'admin', createTime: now, updateTime: now }, // ---- 企业贷款申请1:已提交(SUBMITTED),客户上海凡荣贸易有限公司(EC0001) ---- { id: 3, loanApplicationId: loanApplicationId(3), applicationType: 'BUSINESS', applicationStatus: 'SUBMITTED', organizationId: 1, channel: 'CE0001', loanProductCode: 'LP-ENTERPRISE-001', customerType: 'ENTERPRISE', customerId: 1, customerName: '上海凡荣贸易有限公司', enterpriseName: '上海凡荣贸易有限公司', accountNo: '6220000000000001', phoneNo: '021-88880001', businessScope: '国内贸易、电子商务、供应链管理', goodsCategory: 'BIG_ECOMMERCE', paymentCycle: 'DAY_30', singleOrderLimit: '2000000.00', financingRatio: 85, estimatedReturnRate: 4, loanTerm: 270, orderFinancingTerm: 30, loanAmount: '1500000.00', applicationInterestRate: '4.90', loanPurpose: '供应链融资', registeredCapital: '5000000.00', registeredCapitalCurrency: 'CNY', enterpriseType: '有限责任公司', businessLicenseDate: '2015-01-01 00:00:00', businessLicenseExpiry: '长期', enterpriseOrgType: '有限责任公司(非自然人投资或控股的法人独资)', enterpriseEconomyType: '批发和零售业', industryCategory: 'F51 批发业', annualEmployeeCount: 68, annualRevenue: '38000000.00', annualTotalAssets: '22000000.00', isMarketOperator: 'N', isListedCompany: 'N', isPrivateControlled: 'Y', isGovernmentPlatform: 'N', repayFundSource: '经营回款', acceptAgricultureType: '', industryAdjustType: '', industryUpgradeFlag: false, newIndustryType: '', legalPersonName: '陈建国', legalPersonCertType: '身份证', legalPersonCertId: '310101198001011234', legalPersonGender: 'MALE', legalPersonBirthday: '1980-01-01 00:00:00', legalPersonCertExpiry: '2035-01-01 00:00:00', legalPersonEducation: 'BACHELOR', legalPersonMarital: 'MARRIED', legalPersonNationality: 'HAN', legalPersonResidence: '上海市黄浦区人民路100号', legalPersonAnnualIncome: '350000.00', legalPersonMobile: '13700000001', legalPersonEmail: 'chenjianguo@fanrong.com', spouseName: '王丽', spousePhone: '13700000012', spouseGender: 'FEMALE', spouseCertType: '身份证', spouseCertId: '310101198203031234', emergencyContactName: '陈建军', emergencyContactPhone: '13700000011', loanApplicationImageBtoList: [ { fileType: '营业执照', fileNo: 'FILE00000007' }, { fileType: '身份证正面', fileNo: 'FILE00000001' }, { fileType: '身份证反面', fileNo: 'FILE00000002' } ], createdBy: 'admin', createTime: now, updateTime: now } ] initCounter('loanApplication', 4)