diff --git a/src/pages/data/CustomerDetail.vue b/src/pages/data/CustomerDetail.vue index 10d310f..fce20c8 100644 --- a/src/pages/data/CustomerDetail.vue +++ b/src/pages/data/CustomerDetail.vue @@ -328,12 +328,18 @@ if (i === 0) that.totalSize = entity.totalSize; let birthday = entity.birthday; let createTime = entity.createTime; + let type = entity.type; if (birthday) { entity.birthday = that.$moment(birthday).format("MM-DD") } if (createTime) { entity.createTime = that.$moment(createTime).format("YYYY-MM-DD") } + if (type && type == 1) { + entity.type = "微信"; + }else if (type && type == 2) { + entity.type = "企业微信微信"; + } that.checkParamBlank(entity); csvdata.push(entity); @@ -350,9 +356,9 @@ let title = "客户明细"; require.ensure([], () => { const {export_json_to_excel} = require('../../excel/Export2Excel'); - const tHeader = ['序号', '好友名称', '所属门店', '店铺编号', '所属导购', '工号', '创建时间', '好友手机号', '关联会员', '会员等级', '会员生日']; + const tHeader = ['序号', '好友名称','好友类型', '所属门店', '店铺编号', '所属导购', '工号', '创建时间', '好友手机号', '关联会员', '会员等级', '会员生日']; // 属性名 - const filterVal = ['number', 'name', 'shopName', 'shopCode', 'sellerName', 'sellerCode', 'createTime', 'phone', 'vipName', 'vipLevel', 'birthday']; + const filterVal = ['number', 'name', 'type', 'shopName', 'shopCode', 'sellerName', 'sellerCode', 'createTime', 'phone', 'vipName', 'vipLevel', 'birthday']; // 数据 const list = csvdata; //把data里的tableData存到list const data = that.formatJson(filterVal, list);