const mockDataList = { // 获取个人中心数据 '/personCenter/getPersonCards': { method: 'get', params: { userId: '', }, url: '/prod-api/crm/personCenter/getPersonCards', delay: 300, response: { code: 200, msg: 'success', data: { todayConsume: 1234.56,//今日消耗 todayPerformance: 56789.01,//今日业绩 countTypeA: 25,//条数统计A类 countTypeB: 12,//条数统计B类 countTypeC: 8,//条数统计C类 visitCount: 15,//上门 visitRate: 85.5,//上门率 dealRate: 42.3,//成交率 roi: 3.25,//投产比 beatRate: 78.9,//击败率 level: '高级',//等级 score: 'A'//评分 } } }, // 个人中心-获取最新线索 '/personCenter/getPersonLatestClue': { method: 'get', params: { userId: '', }, url: '/prod-api/crm/personCenter/getPersonLatestClue', delay: 300, response: { code: 200, msg: 'success', data: [ { id:1, name:'张三',//客户名称 star:3,//客户等级 prodTitle:'LV 发财桶',//产品名称 desc:'客户说价格有点低'//客户描述 }, { id:2, name:'李四',//客户名称 star:3,//客户等级 prodTitle:'LV 发财桶',//产品名称 desc:'客户说价格有点低'//客户描述 }, { id:3, name:'张三',//客户名称 star:3,//客户等级 prodTitle:'LV 发财桶',//产品名称 desc:'客户说价格有点低'//客户描述 }, ] } }, // 个人中心-近七天排名折线图 '/personCenter/getPersonRanking': { method: 'get', params: { userId: '', }, url: '/prod-api/crm/personCenter/getPersonRanking', delay: 300, response: { code: 200, msg: 'success', data: [ { x: '2026-1-1',//x轴日期 y: 80,//y轴value }, { x: '2026-1-2', y: 12, }, { x: '2026-1-3', y: 33, }, { x: '2026-1-4',//日期 y: 94, }, { x: '2026-1-5',//日期 y: 45, }, ] } }, // 询价-新增 '/inquiryCenter/addInquiry': { method: 'post', data: { clueId:'',//线索公海id dictValue:'',//品牌id dictLabel:'',//品牌名称 model:'',//型号 code:'',//编码 id:'',//询价id,新增为'',编辑传值 price:'',//询价价格,新增为'',编辑传值 imgsUrl:[]//询价图片数组,比如 // [ // "https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg", // "https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677342956-1767677338014.jpg" // ] }, url: '/prod-api/crm/inquiryCenter/addInquiry', delay: 300, response: { code: 200, msg: 'success' } }, // 询价-核价-列表 '/inquiryCenter/inquiryVerificationList': { method: 'post', params: { pageSize:'',//每页条数 pageNum:'',//当前页 }, data:{ type:1,//1-询价列表 2-核价列表 }, url: '/prod-api/crm/inquiryCenter/inquiryVerificationList', delay: 300, response: { code: 200, msg: 'success', rows: [ { clueId:'',//线索公海id id:'',//询价id dictValue:'2',//品牌id dictLabel:'Rolex',//品牌名称 model:'Submariner Date 126610LN',//型号 code:'123',//编码 price:'12345',//询价价格 desc:'意向', date:'2026-2-1 10:00:00',//询价日期 status:'1',//询价列表:1-待询价 2-询价完成; 核价列表:1-待核价 2-核价完成 imgsUrl:['https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg','https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg']//询价图片数组 }, { clueId:'',//线索公海id id:'',//询价id dictValue:'2',//品牌id dictLabel:'Rolex',//品牌名称 model:'Submariner Date 126610LN',//型号 code:'123',//编码 price:'12345',//询价价格 desc:'意向', date:'2026-2-1 10:00:00',//询价日期 status:'1',//询价列表:1-待询价 2-询价完成; 核价列表:1-待核价 2-核价完成 imgsUrl:['https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg','https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg']//询价图片数组 }, { clueId:'',//线索公海id id:'',//询价id dictValue:'2',//品牌id dictLabel:'Rolex',//品牌名称 model:'Submariner Date 126610LN',//型号 code:'123',//编码 price:'12345',//询价价格 desc:'意向', date:'2026-2-1 10:00:00',//询价日期 status:'1',//询价列表:1-待询价 2-询价完成; 核价列表:1-待核价 2-核价完成 imgsUrl:['https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg','https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg']//询价图片数组 }, { clueId:'',//线索公海id id:'',//询价id dictValue:'2',//品牌id dictLabel:'Rolex',//品牌名称 model:'Submariner Date 126610LN',//型号 code:'123',//编码 price:'12345',//询价价格 desc:'意向', date:'2026-2-1 10:00:00',//询价日期 status:'1',//询价列表:1-待询价 2-询价完成; 核价列表:1-待核价 2-核价完成 imgsUrl:['https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg','https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg']//询价图片数组 }, { clueId:'',//线索公海id id:'',//询价id dictValue:'2',//品牌id dictLabel:'Rolex',//品牌名称 model:'Submariner Date 126610LN',//型号 code:'123',//编码 price:'12345',//询价价格 desc:'意向', date:'2026-2-1 10:00:00',//询价日期 status:'1',//询价列表:1-待询价 2-询价完成; 核价列表:1-待核价 2-核价完成 imgsUrl:['https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg','https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg']//询价图片数组 }, { clueId:'',//线索公海id id:'',//询价id dictValue:'2',//品牌id dictLabel:'Rolex',//品牌名称 model:'Submariner Date 126610LN',//型号 code:'123',//编码 price:'12345',//询价价格 desc:'意向', date:'2026-2-1 10:00:00',//询价日期 status:'1',//询价列表:1-待询价 2-询价完成; 核价列表:1-待核价 2-核价完成 imgsUrl:['https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg','https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg']//询价图片数组 }, { clueId:'',//线索公海id id:'',//询价id dictValue:'2',//品牌id dictLabel:'Rolex',//品牌名称 model:'Submariner Date 126610LN',//型号 code:'123',//编码 price:'12345',//询价价格 desc:'意向', date:'2026-2-1 10:00:00',//询价日期 status:'1',//询价列表:1-待询价 2-询价完成; 核价列表:1-待核价 2-核价完成 imgsUrl:['https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg','https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg']//询价图片数组 }, ], total: 14,//总条数 } }, // 仓库模块-卡片数据 '/warehouse/getWareHouseCard': { method: 'get', params: { userId: '', }, url: '/prod-api/crm/warehouse/getWareHouseCard', delay: 300, response: { code: 200, msg: 'success', data: { totalCost: 12456.5,//总资产成本 uploadCostToday: 5678,//今日上传 outStockToday: 12,//今日出库 totalNum: 1235,//总条数 } } }, // 仓库模块-列表 '/warehouse/wareHouseList': { method: 'post', params: { pageSize: 10, pageNum: 1, }, data:{ searchString:'',//搜索编号、名称、品牌... category:1,//品类:1-全部 2-腕表 3-箱包 4-珠宝 5-鞋靴 6-配饰 7-服饰 8-其它 sortType:4,// 排序方式:1-按最久未下载 2-按最近更新 3-按最久更新 4-按入库最新 5-按入库最久 6-按价格最高 7-按价格最低 dictLabel:'Rolex',//品牌名称 dictValue:'2',//品牌id priceMin:'1000',//价格范围:最小价格 priceMax:'10000',//价格范围:最大价格 location:'',//位置 recycleTime:'2026-01-09',//回收时间,比如2026-02-01 recyclePerson:'张三',//回收人员 recyclePersonId:'',//回收人员id identifyingPerson:'李四',//鉴定人员 identifyingPersonId:'',//鉴定人员id productAttribute:['1','2'],//产品属性 多选:1-自有商品 2-寄卖商品 3-质押商品 4-其它 }, url: '/prod-api/crm/warehouse/wareHouseList', delay: 300, response: { code: 200, msg: 'success', rows:[ { id:'123456754',//商品库存id name:'Rolex',//商品名称 model:'Submariner Date 126610LN',//型号 costPrice:'12345',//成本价格 salesPrice:'12345',//销售价格 peerPrice:'12345',//同行价格 agentPrice:'12345',//代理价格 stock:'12345',//库存数量 imgUrl:'https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg',//商品图片 platform:[],//同步平台,此功能暂时不做,先定义一个字段 downStatus:'1',//下架状态 0:已下架 1:已上架 }, { id:'123456754',//商品库存id name:'Rolex',//商品名称 model:'Submariner Date 126610LN',//型号 costPrice:'12345',//成本价格 salesPrice:'12345',//销售价格 peerPrice:'12345',//同行价格 agentPrice:'12345',//代理价格 stock:'12345',//库存数量 imgUrl:'https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg',//商品图片 platform:[],//同步平台,此功能暂时不做,先定义一个字段 downStatus:'0',//下架状态 0:已下架 1:已上架 }, { id:'123456754',//商品库存id name:'Rolex',//商品名称 model:'Submariner Date 126610LN',//型号 costPrice:'12345',//成本价格 salesPrice:'12345',//销售价格 peerPrice:'12345',//同行价格 agentPrice:'12345',//代理价格 stock:'12345',//库存数量 imgUrl:'https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg',//商品图片 platform:[],//同步平台,此功能暂时不做,先定义一个字段 downStatus:'1',//下架状态 0:已下架 1:已上架 }, { id:'123456754',//商品库存id name:'Rolex',//商品名称 model:'Submariner Date 126610LN',//型号 costPrice:'12345',//成本价格 salesPrice:'12345',//销售价格 peerPrice:'12345',//同行价格 agentPrice:'12345',//代理价格 stock:'12345',//库存数量 imgUrl:'https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg',//商品图片 platform:[],//同步平台,此功能暂时不做,先定义一个字段 downStatus:'0',//下架状态 0:已下架 1:已上架 }, { id:'123456754',//商品库存id name:'Rolex',//商品名称 model:'Submariner Date 126610LN',//型号 costPrice:'12345',//成本价格 salesPrice:'12345',//销售价格 peerPrice:'12345',//同行价格 agentPrice:'12345',//代理价格 stock:'12345',//库存数量 imgUrl:'https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg',//商品图片 platform:[],//同步平台,此功能暂时不做,先定义一个字段 downStatus:'1',//下架状态 0:已下架 1:已上架 }, { id:'123456754',//商品库存id name:'Rolex',//商品名称 model:'Submariner Date 126610LN',//型号 costPrice:'12345',//成本价格 salesPrice:'12345',//销售价格 peerPrice:'12345',//同行价格 agentPrice:'12345',//代理价格 stock:'12345',//库存数量 imgUrl:'https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg',//商品图片 platform:[],//同步平台,此功能暂时不做,先定义一个字段 downStatus:'1',//下架状态 0:已下架 1:已上架 }, { id:'123456754',//商品库存id name:'Rolex',//商品名称 model:'Submariner Date 126610LN',//型号 costPrice:'12345',//成本价格 salesPrice:'12345',//销售价格 peerPrice:'12345',//同行价格 agentPrice:'12345',//代理价格 stock:'12345',//库存数量 imgUrl:'https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg',//商品图片 platform:[],//同步平台,此功能暂时不做,先定义一个字段 downStatus:'1',//下架状态 0:已下架 1:已上架 }, { id:'123456754',//商品库存id name:'Rolex',//商品名称 model:'Submariner Date 126610LN',//型号 costPrice:'12345',//成本价格 salesPrice:'12345',//销售价格 peerPrice:'12345',//同行价格 agentPrice:'12345',//代理价格 stock:'12345',//库存数量 imgUrl:'https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg',//商品图片 platform:[],//同步平台,此功能暂时不做,先定义一个字段 downStatus:'1',//下架状态 0:已下架 1:已上架 }, { id:'123456754',//商品库存id name:'Rolex',//商品名称 model:'Submariner Date 126610LN',//型号 costPrice:'12345',//成本价格 salesPrice:'12345',//销售价格 peerPrice:'12345',//同行价格 agentPrice:'12345',//代理价格 stock:'12345',//库存数量 imgUrl:'https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg',//商品图片 platform:[],//同步平台,此功能暂时不做,先定义一个字段 downStatus:'1',//下架状态 0:已下架 1:已上架 }, { id:'123456754',//商品库存id name:'Rolex',//商品名称 model:'Submariner Date 126610LN',//型号 costPrice:'12345',//成本价格 salesPrice:'12345',//销售价格 peerPrice:'12345',//同行价格 agentPrice:'12345',//代理价格 stock:'12345',//库存数量 imgUrl:'https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg',//商品图片 platform:[],//同步平台,此功能暂时不做,先定义一个字段 downStatus:'1',//下架状态 0:已下架 1:已上架 }, { id:'123456754',//商品库存id name:'Rolex',//商品名称 model:'Submariner Date 126610LN',//型号 costPrice:'12345',//成本价格 salesPrice:'12345',//销售价格 peerPrice:'12345',//同行价格 agentPrice:'12345',//代理价格 stock:'12345',//库存数量 imgUrl:'https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg',//商品图片 platform:[],//同步平台,此功能暂时不做,先定义一个字段 downStatus:'1',//下架状态 0:已下架 1:已上架 }, { id:'123456754',//商品库存id name:'Rolex',//商品名称 model:'Submariner Date 126610LN',//型号 costPrice:'12345',//成本价格 salesPrice:'12345',//销售价格 peerPrice:'12345',//同行价格 agentPrice:'12345',//代理价格 stock:'12345',//库存数量 imgUrl:'https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg',//商品图片 platform:[],//同步平台,此功能暂时不做,先定义一个字段 downStatus:'1',//下架状态 0:已下架 1:已上架 }, { id:'123456754',//商品库存id name:'Rolex',//商品名称 model:'Submariner Date 126610LN',//型号 costPrice:'12345',//成本价格 salesPrice:'12345',//销售价格 peerPrice:'12345',//同行价格 agentPrice:'12345',//代理价格 stock:'12345',//库存数量 imgUrl:'https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg',//商品图片 platform:[],//同步平台,此功能暂时不做,先定义一个字段 downStatus:'1',//下架状态 0:已下架 1:已上架 }, { id:'123456754',//商品库存id name:'Rolex',//商品名称 model:'Submariner Date 126610LN',//型号 costPrice:'12345',//成本价格 salesPrice:'12345',//销售价格 peerPrice:'12345',//同行价格 agentPrice:'12345',//代理价格 stock:'12345',//库存数量 imgUrl:'https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg',//商品图片 platform:[],//同步平台,此功能暂时不做,先定义一个字段 downStatus:'1',//下架状态 0:已下架 1:已上架 }, { id:'123456754',//商品库存id name:'Rolex',//商品名称 model:'Submariner Date 126610LN',//型号 costPrice:'12345',//成本价格 salesPrice:'12345',//销售价格 peerPrice:'12345',//同行价格 agentPrice:'12345',//代理价格 stock:'12345',//库存数量 imgUrl:'https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg',//商品图片 platform:[],//同步平台,此功能暂时不做,先定义一个字段 downStatus:'1',//下架状态 0:已下架 1:已上架 }, { id:'123456754',//商品库存id name:'Rolex',//商品名称 model:'Submariner Date 126610LN',//型号 costPrice:'12345',//成本价格 salesPrice:'12345',//销售价格 peerPrice:'12345',//同行价格 agentPrice:'12345',//代理价格 stock:'12345',//库存数量 imgUrl:'https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg',//商品图片 platform:[],//同步平台,此功能暂时不做,先定义一个字段 downStatus:'1',//下架状态 0:已下架 1:已上架 }, { id:'123456754',//商品库存id name:'Rolex',//商品名称 model:'Submariner Date 126610LN',//型号 costPrice:'12345',//成本价格 salesPrice:'12345',//销售价格 peerPrice:'12345',//同行价格 agentPrice:'12345',//代理价格 stock:'12345',//库存数量 imgUrl:'https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg',//商品图片 platform:[],//同步平台,此功能暂时不做,先定义一个字段 downStatus:'1',//下架状态 0:已下架 1:已上架 }, { id:'123456754',//商品库存id name:'Rolex',//商品名称 model:'Submariner Date 126610LN',//型号 costPrice:'12345',//成本价格 salesPrice:'12345',//销售价格 peerPrice:'12345',//同行价格 agentPrice:'12345',//代理价格 stock:'12345',//库存数量 imgUrl:'https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg',//商品图片 platform:[],//同步平台,此功能暂时不做,先定义一个字段 downStatus:'1',//下架状态 0:已下架 1:已上架 }, { id:'123456754',//商品库存id name:'Rolex',//商品名称 model:'Submariner Date 126610LN',//型号 costPrice:'12345',//成本价格 salesPrice:'12345',//销售价格 peerPrice:'12345',//同行价格 agentPrice:'12345',//代理价格 stock:'12345',//库存数量 imgUrl:'https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg',//商品图片 platform:[],//同步平台,此功能暂时不做,先定义一个字段 downStatus:'1',//下架状态 0:已下架 1:已上架 }, { id:'123456754',//商品库存id name:'Rolex',//商品名称 model:'Submariner Date 126610LN',//型号 costPrice:'12345',//成本价格 salesPrice:'12345',//销售价格 peerPrice:'12345',//同行价格 agentPrice:'12345',//代理价格 stock:'12345',//库存数量 imgUrl:'https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg',//商品图片 platform:[],//同步平台,此功能暂时不做,先定义一个字段 downStatus:'1',//下架状态 0:已下架 1:已上架 }, ], total: 20,//总条数 } }, // 仓库模块-详情 '/warehouse/wareHouseDetail': { method: 'get', params: { id: '', userId:'12345',//用户id }, url: '/prod-api/crm/warehouse/wareHouseDetail', delay: 300, response: { code: 200, msg: 'success', data: { id:'12345',//商品库存id imgsUrl:[{ url:'https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg',//商品图片 }, { url:'https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg',//商品图片 }],//商品图片 dictLabel:'Rolex',//商品名称 dictValue:'12345',//商品名称id model:'Submariner Date 126610LN',//型号 code:'12345',//独立编码 warehouseDate:'2026-01-06',//入库日期 payType:'1',//付款方式 1:微信 2:支付宝 3:银行卡 4:现金 5:数字货币 6:挂账 note:'单包 附件齐全 成色极好',//备注 originalCost:'12345',//原始成本 additionalCost:'12345',//附加成本 agentPrice:'12345',//代理价格 suggestedPrice:'12345',//建议价格 location:'上海',//商品位置 recyclePerson:'张三',//回收人员 recyclePersonId:'12345',//回收人员id identifyingPerson:'张三',//鉴定人员 identifyingPersonId:'12345',//鉴定人员id logTotal:12,//操作日志总数 lockStatus:'0',//锁单状态 0:未锁单 1:已锁单 downStatus:'1',//下架状态 0:已下架 1:已上架 } } }, // 仓库模块-详情-操作日志-列表 '/warehouse/wareHouseLog': { method: 'get', params: { id: '',//商品库存id userId:'12345',//用户id }, url: '/prod-api/crm/warehouse/wareHouseLog', delay: 300, response: { code: 200, msg: 'success', data: [ { id:1,//操作日志id name:'张三',//操作人 createTime:'2026-01-06 12:00:00',//操作时间 operation:'修改名称为Rolex',//操作内容 }, { id:2,//操作日志id name:'张三',//操作人 createTime:'2026-01-06 12:00:00',//操作时间 operation:'修改型号为Submariner Date 126610LN',//操作内容 }, { id:3,//操作日志id name:'张三',//操作人 createTime:'2026-01-06 12:00:00',//操作时间 operation:'修改名称为Rolex',//操作内容 }, { id:4,//操作日志id name:'张三',//操作人 createTime:'2026-01-06 12:00:00',//操作时间 operation:'修改型号为Submariner Date 126610LN',//操作内容 }, ] } }, // 仓库模块-详情-编辑 '/warehouse/wareHouseUpdate': { method: 'post', data:{ id:'',//商品库存id imgsUrl:[{ url:'https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg',//商品图片 }, { url:'https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg',//商品图片 }],//商品图片 dictLabel:'Rolex',//商品名称 dictValue:'12345',//商品名称id model:'Submariner Date 126610LN',//型号 code:'12345',//独立编码 warehouseDate:'2026-01-06',//入库日期 payType:'1',//付款方式 1:微信 2:支付宝 3:银行卡 4:现金 5:数字货币 6:挂账 note:'单包 附件齐全 成色极好',//备注 originalCost:'12345',//原始成本 additionalCost:'12345',//附加成本 agentPrice:'12345',//代理价格 suggestedPrice:'12345',//建议价格 location:'上海',//商品位置 recyclePerson:'张三',//回收人员 recyclePersonId:'12345',//回收人员id identifyingPerson:'张三',//鉴定人员 identifyingPersonId:'12345',//鉴定人员id }, url: '/prod-api/crm/warehouse/wareHouseUpdate', delay: 300, response: { code: 200, msg: 'success' } }, // 仓库模块-详情-锁单/解锁 '/warehouse/wareHouseLock': { method: 'post', data:{ id:'',//商品库存id lockStatus:'1',//锁单状态 0:解锁 1:锁单 }, url: '/prod-api/crm/warehouse/wareHouseLock', delay: 300, response: { code: 200, msg: 'success' } }, // 仓库模块-详情-上架/下架 '/warehouse/wareHouseDown': { method: 'post', data:{ id:'',//商品库存id downStatus:'1',//下架状态 0:下架 1:上架 }, url: '/prod-api/crm/warehouse/wareHouseDown', delay: 300, response: { code: 200, msg: 'success' } }, // 仓库模块-新增 '/warehouse/wareHouseAdd': { method: 'post', data:{ goodPicFileList:['https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg'],//商品图片 desc:'',//商品描述 type:'1',//商品分类 1-腕表 2-箱包 3-珠宝 4-鞋靴 5-配饰 6-服饰 7-其他 dictLabel:'Rolex',//商品名称 dictValue:'12345',//商品名称id series:'',//系列 model:'',//型号 dialType:'',//机芯类型 caseMaterial:'',//表壳材质 dialDiameter:'',//表盘直径 material:'',//材质 size:'',//尺寸 yardage:'',//尺码 price:'',//官方指导价 productCondition:'',//商品成色 1-闲置未使用 2-二手 detailPicFileList:['https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg'],//细节图片 title:'',//商品标题 productNo:'',//商品货号 productAttribute:'1',//商品属性 1-自有商品 2-寄卖商品 3-质押商品 4-其它 stock:'',//库存数量 costPrice:'',//总成本价 samePrice:'',//同行价格 agentPrice:'',//代理价格 salePrice:'',//销售价格 productPosition:'',//商品位置 watchYear:'',//手表年份 identifyingPerson:'',//鉴定人员 identifyingPersonId:'',//鉴定人员id recycleType:'1',//回收类型 1-线上 2-同行 3-门店 4-其它 recyclePerson:'',//回收人员 recyclePersonId:'',//回收人员id recycleBottomDesc:'',//回收留底图描述 recycleBottomFileList:['https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg'],//回收留底图 recycleTime:'2026-01-06',//回收时间 indentifyCode:'',//独立编码 targetAudience:'general',// general-通用 man-男 woman-女 productCard:'',//商品保卡 has-有 no-无 cardYear:'',//保卡年份 如果有商品保卡就有这个字段,如果没有商品保卡,这个字段为空 productCardPicFileList:['https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg'],//商品保卡图片留底 productTag:'',//商品标签 productAttachment:'',//商品附件 productDesc:'',//商品备注 productDescPicFileList:['https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg'],//商品备注图片 payType:'1',//付款方式 1:微信 2:支付宝 3:银行卡 4:现金 5:数字货币 6:挂账 submitType:'inAndUp',//提交类型 onlyIn:仅入库 inAndUp:入库并上架 continuousWarehousing:'0',//是否连续入库 1:是 0:否 }, url: '/prod-api/crm/warehouse/wareHouseAdd', delay: 300, response: { code: 200, msg: 'success' } }, // 仓库模块-详情-开单 '/warehouse/wareHouseOpenOrder': { method: 'post', data:{ id:'',//商品库存id url:'',//商品图片 dictLabel:'Rolex',//商品名称 dictValue:'12345',//商品名称id model:'',//型号 totalCost:'',//总成本价 suggestedPrice:'',//建议价格 price:'',//成交金额 quantity:'',//开单数量 orderType:1,//订单类型 1-零售 2-寄卖 3-同行 4-退货 5-质押 warehouseDate:'2026-01-06',//开单日期 recyclePerson:'',//销售人员 recyclePersonId:'',//销售人员id payType:1,//付款方式 1:微信 2:支付宝 3:银行卡 4:现金 5:数字货币 6:挂账 afterSaleTab:[1,2],//售后保障配置 多选 1-假一赔三 2-一年质保 3-一年内八折回收 4-送保养一次 5-原厂配件保证 payTypeProofPicFileList:['https://xiaohulu-crm.oss-cn-shanghai.aliyuncs.com/crm/2026/01/06/1767677335839-1767677330379.jpg'],//支付凭证上传图片 remark:'',//备注 address:'',//收货地址 amountReceived:'',//实收 }, url: '/prod-api/crm/warehouse/wareHouseOpenOrder', delay: 300, response: { code: 200, msg: 'success' } }, // 仓库模块-假货新增 '/warehouse/wareHouseFakeAdd': { method: 'post', data:{ name:'',//姓名 idCard:'',//身份证号 phone:'',//电话 itemName:'',//物品 remark:'',//备注 }, url: '/prod-api/crm/warehouse/wareHouseFakeAdd', delay: 300, response: { code: 200, msg: 'success' } }, // 仓库模块-假货编辑 '/warehouse/wareHouseFakeEdit': { method: 'post', data:{ id:'', name:'',//姓名 idCard:'',//身份证号 phone:'',//电话 itemName:'',//物品 remark:'',//备注 }, url: '/prod-api/crm/warehouse/wareHouseFakeEdit', delay: 300, response: { code: 200, msg: 'success' } }, // 仓库模块-假货列表 '/warehouse/wareHouseFakeList': { method: 'post', params:{ pageNum:1,//当前页码 pageSize:10,//每页数量 }, url: '/prod-api/crm/warehouse/wareHouseFakeList', delay: 300, response: { code: 200, msg: 'success', rows:[ { id:'1',//主键 name:'张三',//姓名 idCard:'44030419900101001X',//身份证号 phone:'13800000000',//电话 itemName:' Rolex',//物品 remark:'123456123456123456123456123456',//备注 }, { id:'1',//主键 name:'张三',//姓名 idCard:'44030419900101001X',//身份证号 phone:'13800000000',//电话 itemName:' Rolex',//物品 remark:'123456',//备注 }, { id:'1',//主键 name:'张三',//姓名 idCard:'44030419900101001X',//身份证号 phone:'13800000000',//电话 itemName:' Rolex',//物品 remark:'123456',//备注 }, { id:'1',//主键 name:'张三',//姓名 idCard:'44030419900101001X',//身份证号 phone:'13800000000',//电话 itemName:' Rolex',//物品 remark:'123456',//备注 }, { id:'1',//主键 name:'张三',//姓名 idCard:'44030419900101001X',//身份证号 phone:'13800000000',//电话 itemName:' Rolex',//物品 remark:'123456',//备注 }, { id:'1',//主键 name:'张三',//姓名 idCard:'44030419900101001X',//身份证号 phone:'13800000000',//电话 itemName:' Rolex',//物品 remark:'123456',//备注 }, { id:'1',//主键 name:'张三',//姓名 idCard:'44030419900101001X',//身份证号 phone:'13800000000',//电话 itemName:' Rolex',//物品 remark:'123456',//备注 }, { id:'1',//主键 name:'张三',//姓名 idCard:'44030419900101001X',//身份证号 phone:'13800000000',//电话 itemName:' Rolex',//物品 remark:'123456',//备注 }, { id:'1',//主键 name:'张三',//姓名 idCard:'44030419900101001X',//身份证号 phone:'13800000000',//电话 itemName:' Rolex',//物品 remark:'123456',//备注 }, { id:'1',//主键 name:'张三',//姓名 idCard:'44030419900101001X',//身份证号 phone:'13800000000',//电话 itemName:' Rolex',//物品 remark:'123456',//备注 }, { id:'1',//主键 name:'张三',//姓名 idCard:'44030419900101001X',//身份证号 phone:'13800000000',//电话 itemName:' Rolex',//物品 remark:'123456123456123456123456123456',//备注 }, { id:'1',//主键 name:'张三',//姓名 idCard:'44030419900101001X',//身份证号 phone:'13800000000',//电话 itemName:' Rolex',//物品 remark:'123456',//备注 }, { id:'1',//主键 name:'张三',//姓名 idCard:'44030419900101001X',//身份证号 phone:'13800000000',//电话 itemName:' Rolex',//物品 remark:'123456',//备注 }, { id:'1',//主键 name:'张三',//姓名 idCard:'44030419900101001X',//身份证号 phone:'13800000000',//电话 itemName:' Rolex',//物品 remark:'123456',//备注 }, { id:'1',//主键 name:'张三',//姓名 idCard:'44030419900101001X',//身份证号 phone:'13800000000',//电话 itemName:' Rolex',//物品 remark:'123456',//备注 }, { id:'1',//主键 name:'张三',//姓名 idCard:'44030419900101001X',//身份证号 phone:'13800000000',//电话 itemName:' Rolex',//物品 remark:'123456',//备注 }, { id:'1',//主键 name:'张三',//姓名 idCard:'44030419900101001X',//身份证号 phone:'13800000000',//电话 itemName:' Rolex',//物品 remark:'123456',//备注 }, { id:'1',//主键 name:'张三',//姓名 idCard:'44030419900101001X',//身份证号 phone:'13800000000',//电话 itemName:' Rolex',//物品 remark:'123456',//备注 }, { id:'1',//主键 name:'张三',//姓名 idCard:'44030419900101001X',//身份证号 phone:'13800000000',//电话 itemName:' Rolex',//物品 remark:'123456',//备注 }, { id:'1',//主键 name:'张三00',//姓名 idCard:'44030419900101001X',//身份证号 phone:'13800000000',//电话 itemName:' Rolex',//物品 remark:'123456',//备注 }, ], total:30,//总条数 } }, }; function getMockDataList() { return mockDataList; } function addMockData(key, config) { mockDataList[key] = config; console.log(`[Mock] 新增Mock接口: ${key}`); return true; } function removeMockData(key) { if (mockDataList[key]) { delete mockDataList[key]; console.log(`[Mock] 删除Mock接口: ${key}`); return true; } return false; } function getMockData(key) { return mockDataList[key] || null; } module.exports = { getMockDataList, addMockData, removeMockData, getMockData, mockDataList };