|
|
@@ -0,0 +1,126 @@
|
|
|
+/*******************************************************************************
|
|
|
+ * Copyright(c) 2022 dongke All rights reserved. / Confidential
|
|
|
+ * 类的信息:
|
|
|
+ * 1.程序名称:
|
|
|
+ * 2.员工资料列表
|
|
|
+ * 编辑履历:
|
|
|
+ * 作者 日期 版本 修改内容
|
|
|
+ * 于继渤 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: {
|
|
|
+ // 查询条件
|
|
|
+ searchContent: [{ code: 'createtime', title: '近30天', defaultValue: 5, searchType: Constants.searchType.date }, { code: 'org', title: '业务部门', dropType: 'org' }, { code: 'status', title: '订单状态', searchType: Constants.searchType.switch, list: [{ code: '审-异常', title: '异常' }, { code: '审-待审', title: '待审' }] }, { code: 'choose', title: '筛选', searchType: Constants.searchType.pick }],
|
|
|
+
|
|
|
+ // 查询条件-筛选
|
|
|
+ pullMenuList: [{ code: 'outStatus', pullType: 'mSelect', typeName: 'outStatus' }, { code: 'receiveStatus', pullType: 'mSelect', typeName: 'receiveStatus' }, { code: 'followCount', dataType: 'number' }, { code: 'nextFollowTime', dataType: 'date' }],
|
|
|
+
|
|
|
+ // 列表区(内容)
|
|
|
+ contentList: [{ name: 'staffCode', title: '员工编码' }, { name: 'staffPhone', title: '员工电话' }, { name: 'orgName', title: '业务部门' }],
|
|
|
+
|
|
|
+ // 列表区(脚部金额)
|
|
|
+ footerAmount: { name: 'cpId', title: '合计金额' },
|
|
|
+ // 列表区(脚部信息)
|
|
|
+ footerInfo: [{ name: 'cpId', title: '跟进 共' }, { name: 'cpId', title: '件' }],
|
|
|
+
|
|
|
+ // 列表区(内容变动-如果没有删除属性)
|
|
|
+ contentObj: {
|
|
|
+ 'false': [{ name: 'staffCode', title: '员工编码1' }, { name: 'staffPhone', title: '员工电话1', phone: true }, { name: 'orgName', title: '业务部门' }],
|
|
|
+ 'true': [{ name: 'staffCode', title: '员工编码2' }, { name: 'staffPhone', title: '员工电话2', phone: true }, { name: 'orgName', title: '业务部门' }]
|
|
|
+ },
|
|
|
+
|
|
|
+ // 弹出按钮
|
|
|
+ buttonList: [ { name: 'order', title: '销售订单' },
|
|
|
+ { name: 'collection', title: '客户收款' }, { name: 'merge', title: '客户合并' }],
|
|
|
+
|
|
|
+ totallength: 0, //视图下方提醒数量
|
|
|
+
|
|
|
+ // 路由
|
|
|
+ routeObjName: 'staff',
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ * 跳转客户详细
|
|
|
+ */
|
|
|
+ toDetail(e) {
|
|
|
+ let ID = e.currentTarget.dataset.item.staffId
|
|
|
+ this.setData({
|
|
|
+ selectflag: true
|
|
|
+ })
|
|
|
+ wx.navigateTo({
|
|
|
+ url: './detail/detail?ID=' + ID,
|
|
|
+ })
|
|
|
+ },
|
|
|
+ toTitle(e) {
|
|
|
+ console.log('t1', e);
|
|
|
+ },
|
|
|
+ toStatus(e) {
|
|
|
+ console.log('t2', e);
|
|
|
+ },
|
|
|
+ toPoint(e) {
|
|
|
+ console.log('t3', e);
|
|
|
+ this.setData({
|
|
|
+ showShare: true
|
|
|
+ })
|
|
|
+ },
|
|
|
+ toAdd() {
|
|
|
+ wx.navigateTo({
|
|
|
+ url: './add/add',
|
|
|
+ })
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ * @desc : 校验
|
|
|
+ * @date : 2024/2/1 15:49
|
|
|
+ * @author : 周兴
|
|
|
+ */
|
|
|
+ openValidData(item, name) {
|
|
|
+ console.log('item', item, name, item.staffId);
|
|
|
+ if (!item.staffId) {
|
|
|
+ wx.showToast({
|
|
|
+ title: '无此联系人,或陌生接待',
|
|
|
+ icon: 'none'
|
|
|
+ })
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ },
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @desc : 查询
|
|
|
+ * @date : 2024/2/1 15:49
|
|
|
+ * @author : 周兴
|
|
|
+ */
|
|
|
+ getData(params) {
|
|
|
+ return this.excute(this.data.service, this.data.service.selectByCond, params);
|
|
|
+ },
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 如果页面需要后续处理,再进行处理
|
|
|
+ */
|
|
|
+ handleData(data) {
|
|
|
+ // 员工的数量
|
|
|
+ this.setData({
|
|
|
+ totallength: data.length
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 生命周期函数--监听页面加载
|
|
|
+ */
|
|
|
+ onLoad: function (options) {
|
|
|
+ //按钮权限
|
|
|
+ },
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 生命周期函数--监听页面显示
|
|
|
+ */
|
|
|
+ onShow: function () {
|
|
|
+ },
|
|
|
+})
|