export default { props: { type: { type: Number, default: 1 } }, data() { return { list: [ { 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']//询价图片数组 }, ], editInfo: {}, queryParams: { pageSize: 10, pageNum: 0, }, total: 0, } }, mounted() { this.getList(); }, methods: { getList(){ if (this.list.length > 0 && this.list.length >= this.total) { uni.$u.toast('暂无更多数据'); return; } if (this.queryParams.pageNum === 0) { this.queryParams.pageNum = 1; this.list = []; } else { this.queryParams.pageNum++; } uni.$u.api.inquiryVerificationList(this.queryParams,{ type: this.type, }).then(res => { this.total = res.total; if(this.total === 0){ uni.$u.toast('暂无数据'); return; } if (this.queryParams.pageNum === 1) { this.list = res.rows; } else { this.list = this.list.concat(res.rows); } }) }, formtterStatus(status){ switch(status){ case '1': return this.type == '1' ? '待询价' : '待核价'; case '2': return this.type == '1' ? '询价完成' : '核价完成'; } }, handleClick(item) { this.editInfo = item; this.$refs.addInquiryDialog.showDialog(); }, handleInquirySuccess() { this.$refs.addInquiryDialog.closeDialog(); }, handleInquiryCancel() { this.getList(); this.$refs.addInquiryDialog.closeDialog(); }, } }