/** * 客户主数据 Mock 种子数据 * * createSeedData() 每次调用返回全新的深拷贝初始状态。 * 持久化由 storage.ts 管理。 */ export function createSeedData() { return { idSeq: 110, addressIdSeq: 50, // ============================================================ // 集团客户(parent 客户,3条) // ============================================================ groupCustomers: [ { customerId: 100, customerCode: 'CUS-20260601-0100', customerName: '上海汽车集团股份有限公司', shortName: '上汽集团', tradeType: 'DOMESTIC', creditCode: '91310000132200168A', parentId: null, parentCustomerCode: null, parentCustomerName: null, responsibleUserId: 1001, responsibleUserName: '张伟', customerStatus: '正常', creationDate: '2026-06-01 09:00:00', createdBy: 1001, createdByName: '张伟', lastUpdateDate: '2026-06-15 14:30:00', lastUpdatedBy: 1001, deleteFlag: 0, versionNum: 2, }, { customerId: 101, customerCode: 'CUS-20260602-0101', customerName: '广东电子科技集团有限公司', shortName: '广东电子集团', tradeType: 'EXPORT', creditCode: '91440000727878656B', parentId: null, parentCustomerCode: null, parentCustomerName: null, responsibleUserId: 1002, responsibleUserName: '李强', customerStatus: '正常', creationDate: '2026-06-02 10:00:00', createdBy: 1002, createdByName: '李强', lastUpdateDate: '2026-06-10 08:00:00', lastUpdatedBy: 1002, deleteFlag: 0, versionNum: 1, }, { customerId: 102, customerCode: 'CUS-20260603-0102', customerName: '苏州高端制造集团有限公司', shortName: '苏州制造集团', tradeType: 'DOMESTIC', creditCode: '91320500789456123C', parentId: null, parentCustomerCode: null, parentCustomerName: null, responsibleUserId: 1003, responsibleUserName: '王芳', customerStatus: '正常', creationDate: '2026-06-03 11:00:00', createdBy: 1003, createdByName: '王芳', lastUpdateDate: '2026-06-12 16:00:00', lastUpdatedBy: 1003, deleteFlag: 0, versionNum: 3, }, ], // ============================================================ // 客户 — 共 10 条,覆盖内销/外销、正常/停用、有/无集团归属 // ============================================================ customers: [ // ---- 正常 + DOMESTIC + 有集团归属 (3条) ---- { customerId: 1, customerCode: 'CUS-20260610-0001', customerName: '上海汽车零部件有限公司', shortName: '上汽零部件', tradeType: 'DOMESTIC', creditCode: '91310115MA1K3B8C9D', parentId: 100, parentCustomerCode: 'CUS-20260601-0100', parentCustomerName: '上海汽车集团股份有限公司', responsibleUserId: 1001, responsibleUserName: '张伟', customerStatus: '正常', creationDate: '2026-06-10 08:30:00', createdBy: 1001, createdByName: '张伟', lastUpdateDate: '2026-06-15 14:30:00', lastUpdatedBy: 1001, deleteFlag: 0, versionNum: 2, addressList: [ { addressId: 1, customerId: 1, addressDetail: '上海市嘉定区安亭镇安拓路56号1号楼201室', isDefault: 1, creationDate: '2026-06-10 08:35:00' }, { addressId: 2, customerId: 1, addressDetail: '上海市浦东新区金桥经济技术开发区金海路1000号', isDefault: 0, creationDate: '2026-06-12 10:00:00' }, { addressId: 3, customerId: 1, addressDetail: '江苏省苏州市昆山市花桥镇光明路88号', isDefault: 0, creationDate: '2026-06-14 14:20:00' }, ], }, { customerId: 2, customerCode: 'CUS-20260611-0002', customerName: '宁波精密机械有限公司', shortName: '宁波精密', tradeType: 'DOMESTIC', creditCode: '91330200MA2CJ8D5E6', parentId: null, parentCustomerCode: null, parentCustomerName: null, responsibleUserId: 1002, responsibleUserName: '李强', customerStatus: '正常', creationDate: '2026-06-11 09:15:00', createdBy: 1002, createdByName: '李强', lastUpdateDate: '2026-06-20 11:00:00', lastUpdatedBy: 1002, deleteFlag: 0, versionNum: 3, addressList: [ { addressId: 4, customerId: 2, addressDetail: '浙江省宁波市北仑区大碶街道富春江路666号', isDefault: 1, creationDate: '2026-06-11 09:20:00' }, { addressId: 5, customerId: 2, addressDetail: '浙江省宁波市鄞州区中河街道天童北路999号', isDefault: 0, creationDate: '2026-06-15 08:00:00' }, ], }, { customerId: 3, customerCode: 'CUS-20260612-0003', customerName: '江苏新能源科技有限公司', shortName: '江苏新能源', tradeType: 'DOMESTIC', creditCode: '91320115MA1M9F7G8H', parentId: 102, parentCustomerCode: 'CUS-20260603-0102', parentCustomerName: '苏州高端制造集团有限公司', responsibleUserId: 1003, responsibleUserName: '王芳', customerStatus: '正常', creationDate: '2026-06-12 10:00:00', createdBy: 1001, createdByName: '张伟', lastUpdateDate: '2026-06-18 09:30:00', lastUpdatedBy: 1001, deleteFlag: 0, versionNum: 1, addressList: [ { addressId: 6, customerId: 3, addressDetail: '江苏省南京市江宁区秣陵街道将军大道529号', isDefault: 1, creationDate: '2026-06-12 10:05:00' }, { addressId: 7, customerId: 3, addressDetail: '江苏省无锡市新吴区长江路168号', isDefault: 0, creationDate: '2026-06-16 13:00:00' }, { addressId: 8, customerId: 3, addressDetail: '江苏省常州市武进区湖塘镇花园街55号', isDefault: 0, creationDate: '2026-06-19 15:30:00' }, { addressId: 9, customerId: 3, addressDetail: '江苏省苏州市工业园区星湖街328号', isDefault: 0, creationDate: '2026-06-22 09:00:00' }, ], }, // ---- 正常 + EXPORT (3条) ---- { customerId: 4, customerCode: 'CUS-20260613-0004', customerName: '深圳科技有限公司', shortName: '深圳科技', tradeType: 'EXPORT', creditCode: '91440300MA5D8E9F0G', parentId: 101, parentCustomerCode: 'CUS-20260602-0101', parentCustomerName: '广东电子科技集团有限公司', responsibleUserId: 1002, responsibleUserName: '李强', customerStatus: '正常', creationDate: '2026-06-13 08:00:00', createdBy: 1002, createdByName: '李强', lastUpdateDate: '2026-06-21 16:45:00', lastUpdatedBy: 1002, deleteFlag: 0, versionNum: 2, addressList: [ { addressId: 10, customerId: 4, addressDetail: '广东省深圳市南山区粤海街道高新南一道008号', isDefault: 1, creationDate: '2026-06-13 08:10:00' }, { addressId: 11, customerId: 4, addressDetail: '广东省深圳市宝安区福永街道福海工业区B3栋', isDefault: 0, creationDate: '2026-06-17 10:30:00' }, ], }, { customerId: 5, customerCode: 'CUS-20260614-0005', customerName: '泰国工业材料有限公司', shortName: '泰国工业', tradeType: 'EXPORT', creditCode: null, parentId: null, parentCustomerCode: null, parentCustomerName: null, responsibleUserId: 1003, responsibleUserName: '王芳', customerStatus: '正常', creationDate: '2026-06-14 11:20:00', createdBy: 1003, createdByName: '王芳', lastUpdateDate: '2026-06-14 11:20:00', lastUpdatedBy: 1003, deleteFlag: 0, versionNum: 1, addressList: [ { addressId: 12, customerId: 5, addressDetail: '泰国曼谷市素坤逸路1598号工业园区A2厂房', isDefault: 1, creationDate: '2026-06-14 11:25:00' }, ], }, { customerId: 6, customerCode: 'CUS-20260615-0006', customerName: '马来西亚包装有限公司', shortName: '马来包装', tradeType: 'EXPORT', creditCode: null, parentId: null, parentCustomerCode: null, parentCustomerName: null, responsibleUserId: 1001, responsibleUserName: '张伟', customerStatus: '正常', creationDate: '2026-06-15 14:00:00', createdBy: 1001, createdByName: '张伟', lastUpdateDate: '2026-06-22 10:15:00', lastUpdatedBy: 1001, deleteFlag: 0, versionNum: 2, addressList: [ { addressId: 13, customerId: 6, addressDetail: '马来西亚雪兰莪州蒲种工业区TPP 5/12号', isDefault: 1, creationDate: '2026-06-15 14:10:00' }, { addressId: 14, customerId: 6, addressDetail: '马来西亚槟城州峇六拜工业区Phase 4, Plot 88', isDefault: 0, creationDate: '2026-06-20 09:00:00' }, { addressId: 15, customerId: 6, addressDetail: '马来西亚柔佛州新山市巴西古当工业区Jalan Gangsa 3', isDefault: 0, creationDate: '2026-06-25 11:30:00' }, ], }, // ---- 正常 + DOMESTIC + 无集团归属 (2条) ---- { customerId: 7, customerCode: 'CUS-20260616-0007', customerName: '浙江铝业加工有限公司', shortName: '浙江铝业', tradeType: 'DOMESTIC', creditCode: '91330100MA2K8L1M2N', parentId: null, parentCustomerCode: null, parentCustomerName: null, responsibleUserId: 1002, responsibleUserName: '李强', customerStatus: '正常', creationDate: '2026-06-16 07:30:00', createdBy: 1002, createdByName: '李强', lastUpdateDate: '2026-06-23 13:00:00', lastUpdatedBy: 1002, deleteFlag: 0, versionNum: 1, addressList: [ { addressId: 16, customerId: 7, addressDetail: '浙江省杭州市萧山区经济技术开发区建设一路18号', isDefault: 1, creationDate: '2026-06-16 07:35:00' }, { addressId: 17, customerId: 7, addressDetail: '浙江省绍兴市柯桥区滨海工业区兴滨路555号', isDefault: 0, creationDate: '2026-06-18 08:45:00' }, { addressId: 18, customerId: 7, addressDetail: '浙江省湖州市吴兴区八里店镇三里桥路99号', isDefault: 0, creationDate: '2026-06-21 14:00:00' }, ], }, { customerId: 8, customerCode: 'CUS-20260617-0008', customerName: '天津管道工程有限公司', shortName: '天津管道', tradeType: 'DOMESTIC', creditCode: '91120116MA06P3Q4R5', parentId: null, parentCustomerCode: null, parentCustomerName: null, responsibleUserId: 1003, responsibleUserName: '王芳', customerStatus: '正常', creationDate: '2026-06-17 10:45:00', createdBy: 1003, createdByName: '王芳', lastUpdateDate: '2026-06-17 10:45:00', lastUpdatedBy: 1003, deleteFlag: 0, versionNum: 1, addressList: [ { addressId: 19, customerId: 8, addressDetail: '天津市滨海新区经济技术开发区第十三大街78号', isDefault: 1, creationDate: '2026-06-17 10:50:00' }, ], }, // ---- 停用状态 (2条) ---- { customerId: 9, customerCode: 'CUS-20260605-0009', customerName: '广东电子科技有限公司', shortName: '广东电子', tradeType: 'EXPORT', creditCode: '91440101MA5C9D0E1F', parentId: 101, parentCustomerCode: 'CUS-20260602-0101', parentCustomerName: '广东电子科技集团有限公司', responsibleUserId: 1001, responsibleUserName: '张伟', customerStatus: '停用', creationDate: '2026-06-05 15:00:00', createdBy: 1001, createdByName: '张伟', lastUpdateDate: '2026-06-25 09:00:00', lastUpdatedBy: 1001, deleteFlag: 0, versionNum: 5, addressList: [ { addressId: 22, customerId: 9, addressDetail: '广东省广州市天河区珠江新城华夏路16号', isDefault: 1, creationDate: '2026-06-05 15:10:00' }, { addressId: 23, customerId: 9, addressDetail: '广东省东莞市松山湖高新技术产业开发区科技九路1号', isDefault: 0, creationDate: '2026-06-08 11:00:00' }, ], }, { customerId: 10, customerCode: 'CUS-20260606-0010', customerName: '苏州新能源电池有限公司', shortName: '苏州电池', tradeType: 'DOMESTIC', creditCode: '91320500MA1N2O3P4Q', parentId: 102, parentCustomerCode: 'CUS-20260603-0102', parentCustomerName: '苏州高端制造集团有限公司', responsibleUserId: 1002, responsibleUserName: '李强', customerStatus: '停用', creationDate: '2026-06-06 13:30:00', createdBy: 1002, createdByName: '李强', lastUpdateDate: '2026-06-24 17:00:00', lastUpdatedBy: 1002, deleteFlag: 0, versionNum: 4, addressList: [ { addressId: 24, customerId: 10, addressDetail: '江苏省苏州市相城区元和街道嘉元路1018号', isDefault: 1, creationDate: '2026-06-06 13:40:00' }, { addressId: 25, customerId: 10, addressDetail: '江苏省苏州市吴江区松陵镇中山北路258号', isDefault: 0, creationDate: '2026-06-09 16:00:00' }, { addressId: 26, customerId: 10, addressDetail: '江苏省苏州市张家港市杨舍镇人民中路68号', isDefault: 0, creationDate: '2026-06-12 08:30:00' }, ], }, ], // ============================================================ // 独立地址记录(用于 list-by-customer-id,部分已嵌入 customer.addressList) // 此处为额外不带内嵌列表的客户地址(如果需要单独管理) // ============================================================ standaloneAddresses: [ { addressId: 27, customerId: 100, addressDetail: '上海市浦东新区张江高科技园区祖冲之路1500号', isDefault: 1, creationDate: '2026-06-01 09:10:00' }, { addressId: 28, customerId: 101, addressDetail: '广东省广州市黄埔区科学城科翔路11号', isDefault: 1, creationDate: '2026-06-02 10:15:00' }, { addressId: 29, customerId: 102, addressDetail: '江苏省苏州市苏州工业园区苏虹东路188号', isDefault: 1, creationDate: '2026-06-03 11:10:00' }, ], } }