| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- 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();
- },
- }
- }
|