customer-reception.js 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. /*******************************************************************************
  2. * Copyright(c) 2022 dongke All rights reserved. / Confidential
  3. * 类的信息:
  4. * 1.程序名称:
  5. * 2.新增接待
  6. * 编辑履历:
  7. * 作者 日期 版本 修改内容
  8. * yjb 2022-0-12 1.00
  9. *******************************************************************************/
  10. const Constants = require('@/utils/Constants.js');
  11. const util = require('@/utils/util.js')
  12. const mixins = require('@/mixins/index.js')
  13. const app = getApp()
  14. Page({
  15. mixins: [mixins],
  16. /**
  17. * 页面的初始数据
  18. */
  19. data: {
  20. tagList: [{ title: "所有接待", code: 'all' }, { title: "跟进任务", code: '跟进状态-跟进' }, { title: "邀约进店", code: '跟进状态-邀约' }, { title: "预约量尺", code: '跟进状态-约尺' }],
  21. buttonSaveList:[{code:'add',title:'新建',width:'120rpx',color:'#1B365D'}],
  22. contentSaveList:[{code:'need',title:'共条接待信息',type:'str',color:'#1B365D'}],
  23. // 查询条件
  24. searchContent: [{
  25. code: 'createtime',
  26. title: '近30天',
  27. defaultValue: 5,
  28. searchType: Constants.searchType.date
  29. }, {
  30. code: 'staff',
  31. title: '业务员',
  32. dropType: 'staff'
  33. }, {
  34. code: 'orderStatus',
  35. title: '订单状态',
  36. searchType: Constants.searchType.switch,
  37. list: [
  38. {
  39. checked: true,
  40. text: "异常",
  41. value: "审-异常"
  42. },
  43. {
  44. checked: true,
  45. text: "待审",
  46. value: "审-待审"
  47. },
  48. {
  49. checked: true,
  50. text: "审批中",
  51. value: "审-审中"
  52. },
  53. {
  54. checked: true,
  55. text: "通过",
  56. value: "审-通过"
  57. },
  58. {
  59. checked: true,
  60. text: "拒绝",
  61. value: "审-拒绝"
  62. },
  63. {
  64. checked: false,
  65. text: "冲正",
  66. value: "订单状态-冲正"
  67. }
  68. ]
  69. }, {
  70. code: 'choose',
  71. title: '筛选',
  72. searchType: Constants.searchType.pick
  73. }],
  74. // 查询条件-筛选
  75. pullMenuList: [{
  76. code: 'customerFrom',
  77. pullType: 'mSelect',
  78. typeName: 'customerFrom'
  79. }, {
  80. code: 'fitupType',
  81. pullType: 'mSelect',
  82. typeName: 'fitupType'
  83. }, {
  84. code: 'houseType',
  85. pullType: 'mSelect',
  86. typeName: 'houseType'
  87. }, {
  88. code: 'ageComposition',
  89. pullType: 'mSelect',
  90. typeName: 'ageComposition'
  91. }],
  92. // 列表区(内容)
  93. contentList: [
  94. { name: 'cusPhone', title: '客户电话', phone: true },
  95. { name: 'addressFull', title: '客户地址' },
  96. { name: [{ name: 'orgName', title: '' }, { name: 'staffName', title: '业务员 ' }], title: '门店信息' },
  97. { name: 'nextFollowTime', title: '提醒时间' }
  98. ],
  99. // 列表区(脚部信息)
  100. footerInfo: [{
  101. prefix: '跟进 ',
  102. name: 'followCount',
  103. title: ' 次'
  104. },],
  105. // 弹出按钮
  106. buttonList: [
  107. { name: 'followUp', title: '客户跟进' },
  108. { name: 'followUpTasks', title: '跟进任务' },
  109. { name: 'customerRefundList', title: '销售订单' },
  110. { name: 'customerRefundList', title: '客户收款' },
  111. { name: 'customerRefundList', title: '量尺回执' }
  112. ],
  113. totallength: 0, //视图下方提醒数量
  114. // 路由
  115. routeObjName: 'cusFollow',
  116. followStatus: 'all',
  117. active: 0
  118. },
  119. /**
  120. * @desc : 切换
  121. * @date : 2024/2/1 15:49
  122. * @author : 于继渤
  123. */
  124. onChangeTabs(e) {
  125. let code = e.detail.detail.code
  126. this.setData({
  127. followStatus: code,
  128. })
  129. this.searchData()
  130. },
  131. /**
  132. * @desc : 设置查询参数
  133. * @date : 2024/2/1 15:49
  134. * @author : 于继渤
  135. */
  136. setSearchParams(params) {
  137. //销售状态
  138. params.followStatus = this.data.followStatus == 'all' ? '' : this.data.followStatus
  139. return params
  140. },
  141. /**
  142. * @desc : 查询
  143. * @date : 2024/2/1 15:49
  144. * @author : 于继渤
  145. */
  146. getData(params) {
  147. return this.excute(this.data.service, this.data.service.selectByCond, params);
  148. },
  149. })