inquiryVerificationList.js 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. export default {
  2. props: {
  3. type: {
  4. type: Number,
  5. default: 1
  6. }
  7. },
  8. data() {
  9. return {
  10. list: [
  11. {
  12. clueId:'',//线索公海id
  13. id:'',//询价id
  14. dictValue:'2',//品牌id
  15. dictLabel:'Rolex',//品牌名称
  16. model:'Submariner Date 126610LN',//型号
  17. code:'123',//编码
  18. price:'12345',//询价价格
  19. desc:'意向',
  20. date:'2026-2-1 10:00:00',//询价日期
  21. status:'1',//询价列表:1-待询价 2-询价完成; 核价列表:1-待核价 2-核价完成
  22. 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']//询价图片数组
  23. },
  24. {
  25. clueId:'',//线索公海id
  26. id:'',//询价id
  27. dictValue:'2',//品牌id
  28. dictLabel:'Rolex',//品牌名称
  29. model:'Submariner Date 126610LN',//型号
  30. code:'123',//编码
  31. price:'12345',//询价价格
  32. desc:'意向',
  33. date:'2026-2-1 10:00:00',//询价日期
  34. status:'1',//询价列表:1-待询价 2-询价完成; 核价列表:1-待核价 2-核价完成
  35. 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']//询价图片数组
  36. },
  37. {
  38. clueId:'',//线索公海id
  39. id:'',//询价id
  40. dictValue:'2',//品牌id
  41. dictLabel:'Rolex',//品牌名称
  42. model:'Submariner Date 126610LN',//型号
  43. code:'123',//编码
  44. price:'12345',//询价价格
  45. desc:'意向',
  46. date:'2026-2-1 10:00:00',//询价日期
  47. status:'1',//询价列表:1-待询价 2-询价完成; 核价列表:1-待核价 2-核价完成
  48. 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']//询价图片数组
  49. },
  50. {
  51. clueId:'',//线索公海id
  52. id:'',//询价id
  53. dictValue:'2',//品牌id
  54. dictLabel:'Rolex',//品牌名称
  55. model:'Submariner Date 126610LN',//型号
  56. code:'123',//编码
  57. price:'12345',//询价价格
  58. desc:'意向',
  59. date:'2026-2-1 10:00:00',//询价日期
  60. status:'1',//询价列表:1-待询价 2-询价完成; 核价列表:1-待核价 2-核价完成
  61. 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']//询价图片数组
  62. },
  63. {
  64. clueId:'',//线索公海id
  65. id:'',//询价id
  66. dictValue:'2',//品牌id
  67. dictLabel:'Rolex',//品牌名称
  68. model:'Submariner Date 126610LN',//型号
  69. code:'123',//编码
  70. price:'12345',//询价价格
  71. desc:'意向',
  72. date:'2026-2-1 10:00:00',//询价日期
  73. status:'1',//询价列表:1-待询价 2-询价完成; 核价列表:1-待核价 2-核价完成
  74. 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']//询价图片数组
  75. },
  76. {
  77. clueId:'',//线索公海id
  78. id:'',//询价id
  79. dictValue:'2',//品牌id
  80. dictLabel:'Rolex',//品牌名称
  81. model:'Submariner Date 126610LN',//型号
  82. code:'123',//编码
  83. price:'12345',//询价价格
  84. desc:'意向',
  85. date:'2026-2-1 10:00:00',//询价日期
  86. status:'1',//询价列表:1-待询价 2-询价完成; 核价列表:1-待核价 2-核价完成
  87. 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']//询价图片数组
  88. },
  89. {
  90. clueId:'',//线索公海id
  91. id:'',//询价id
  92. dictValue:'2',//品牌id
  93. dictLabel:'Rolex',//品牌名称
  94. model:'Submariner Date 126610LN',//型号
  95. code:'123',//编码
  96. price:'12345',//询价价格
  97. desc:'意向',
  98. date:'2026-2-1 10:00:00',//询价日期
  99. status:'1',//询价列表:1-待询价 2-询价完成; 核价列表:1-待核价 2-核价完成
  100. 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']//询价图片数组
  101. },
  102. ],
  103. editInfo: {},
  104. queryParams: {
  105. pageSize: 10,
  106. pageNum: 0,
  107. },
  108. total: 0,
  109. }
  110. },
  111. mounted() {
  112. this.getList();
  113. },
  114. methods: {
  115. getList(){
  116. if (this.list.length > 0 && this.list.length >= this.total) {
  117. uni.$u.toast('暂无更多数据');
  118. return;
  119. }
  120. if (this.queryParams.pageNum === 0) {
  121. this.queryParams.pageNum = 1;
  122. this.list = [];
  123. } else {
  124. this.queryParams.pageNum++;
  125. }
  126. uni.$u.api.inquiryVerificationList(this.queryParams,{
  127. type: this.type,
  128. }).then(res => {
  129. this.total = res.total;
  130. if(this.total === 0){
  131. uni.$u.toast('暂无数据');
  132. return;
  133. }
  134. if (this.queryParams.pageNum === 1) {
  135. this.list = res.rows;
  136. } else {
  137. this.list = this.list.concat(res.rows);
  138. }
  139. })
  140. },
  141. formtterStatus(status){
  142. switch(status){
  143. case '1':
  144. return this.type == '1' ? '待询价' : '待核价';
  145. case '2':
  146. return this.type == '1' ? '询价完成' : '核价完成';
  147. }
  148. },
  149. handleClick(item) {
  150. this.editInfo = item;
  151. this.$refs.addInquiryDialog.showDialog();
  152. },
  153. handleInquirySuccess() {
  154. this.$refs.addInquiryDialog.closeDialog();
  155. },
  156. handleInquiryCancel() {
  157. this.getList();
  158. this.$refs.addInquiryDialog.closeDialog();
  159. },
  160. }
  161. }