| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- /*******************************************************************************
- * Copyright(c) 2022 dongke All rights reserved. / Confidential
- * 类的信息:
- * 1.程序名称:
- * 2.新增接待
- * 编辑履历:
- * 作者 日期 版本 修改内容
- * yjb 2022-0-12 1.00
- *******************************************************************************/
- const Constants = require('@/utils/Constants.js');
- const util = require('@/utils/util.js')
- const mixins = require('@/mixins/index.js')
- const app = getApp()
- Page({
- mixins: [mixins],
- /**
- * 页面的初始数据
- */
- data: {
- tagList: [{ title: "所有接待", code: 'all' }, { title: "跟进任务", code: '跟进状态-跟进' }, { title: "邀约进店", code: '跟进状态-邀约' }, { title: "预约量尺", code: '跟进状态-约尺' }],
- buttonSaveList:[{code:'add',title:'新建',width:'120rpx',color:'#1B365D'}],
- contentSaveList:[{code:'need',title:'共条接待信息',type:'str',color:'#1B365D'}],
- // 查询条件
- searchContent: [{
- code: 'createtime',
- title: '近30天',
- defaultValue: 5,
- searchType: Constants.searchType.date
- }, {
- code: 'staff',
- title: '业务员',
- dropType: 'staff'
- }, {
- code: 'orderStatus',
- title: '订单状态',
- searchType: Constants.searchType.switch,
- list: [
- {
- checked: true,
- text: "异常",
- value: "审-异常"
- },
- {
- checked: true,
- text: "待审",
- value: "审-待审"
- },
- {
- checked: true,
- text: "审批中",
- value: "审-审中"
- },
- {
- checked: true,
- text: "通过",
- value: "审-通过"
- },
- {
- checked: true,
- text: "拒绝",
- value: "审-拒绝"
- },
- {
- checked: false,
- text: "冲正",
- value: "订单状态-冲正"
- }
- ]
- }, {
- code: 'choose',
- title: '筛选',
- searchType: Constants.searchType.pick
- }],
- // 查询条件-筛选
- pullMenuList: [{
- code: 'customerFrom',
- pullType: 'mSelect',
- typeName: 'customerFrom'
- }, {
- code: 'fitupType',
- pullType: 'mSelect',
- typeName: 'fitupType'
- }, {
- code: 'houseType',
- pullType: 'mSelect',
- typeName: 'houseType'
- }, {
- code: 'ageComposition',
- pullType: 'mSelect',
- typeName: 'ageComposition'
- }],
- // 列表区(内容)
- contentList: [
- { name: 'cusPhone', title: '客户电话', phone: true },
- { name: 'addressFull', title: '客户地址' },
- { name: [{ name: 'orgName', title: '' }, { name: 'staffName', title: '业务员 ' }], title: '门店信息' },
- { name: 'nextFollowTime', title: '提醒时间' }
- ],
- // 列表区(脚部信息)
- footerInfo: [{
- prefix: '跟进 ',
- name: 'followCount',
- title: ' 次'
- },],
- // 弹出按钮
- buttonList: [
- { name: 'followUp', title: '客户跟进' },
- { name: 'followUpTasks', title: '跟进任务' },
- { name: 'customerRefundList', title: '销售订单' },
- { name: 'customerRefundList', title: '客户收款' },
- { name: 'customerRefundList', title: '量尺回执' }
- ],
- totallength: 0, //视图下方提醒数量
- // 路由
- routeObjName: 'cusFollow',
- followStatus: 'all',
- active: 0
- },
- /**
- * @desc : 切换
- * @date : 2024/2/1 15:49
- * @author : 于继渤
- */
- onChangeTabs(e) {
- let code = e.detail.detail.code
- this.setData({
- followStatus: code,
- })
- this.searchData()
- },
- /**
- * @desc : 设置查询参数
- * @date : 2024/2/1 15:49
- * @author : 于继渤
- */
- setSearchParams(params) {
- //销售状态
- params.followStatus = this.data.followStatus == 'all' ? '' : this.data.followStatus
- return params
- },
- /**
- * @desc : 查询
- * @date : 2024/2/1 15:49
- * @author : 于继渤
- */
- getData(params) {
- return this.excute(this.data.service, this.data.service.selectByCond, params);
- },
- })
|