{{ scope.row.cityName }} {{ scope.row.countyName }}
@@ -193,7 +194,6 @@
-
启用
@@ -316,16 +316,7 @@ export default {
/** 查询快递客户用户列表 */
getList() {
this.loading = true;
- this.queryParams.params = {};
- if (null != this.daterangeCreateTime && '' != this.daterangeCreateTime) {
- this.queryParams.params["beginCreateTime"] = this.daterangeCreateTime[0];
- this.queryParams.params["endCreateTime"] = this.daterangeCreateTime[1];
- }
- if (null != this.daterangeUpdateTime && '' != this.daterangeUpdateTime) {
- this.queryParams.params["beginUpdateTime"] = this.daterangeUpdateTime[0];
- this.queryParams.params["endUpdateTime"] = this.daterangeUpdateTime[1];
- }
- listMoneyUser(this.addDateRange(this.queryParams, this.dateTimeRange)).then(response => {
+ listMoneyUser(this.queryParams).then(response => {
this.emisCustomerUserList = response.rows;
this.total = response.total;
this.loading = false;
@@ -410,35 +401,35 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
- // this.download('emis/emisCustomerUser/export', {
- // ...this.queryParams
- // }, `emisCustomerUser_${new Date().getTime()}.xlsx`)
- const loadingInstance = this.$loading({
- text: '正在导出...'
- })
- var qParam = {...this.queryParams};
- qParam.pageNum=1;
- qParam.pageSize=5000;
+ const loadingInstance = this.$loading({
+ text: '正在导出...'
+ })
+ var qParam = { ...this.queryParams };
+ qParam.pageNum = 1;
+ qParam.pageSize = 5000;
- listEmisCustomerUser(this.addDateRange(qParam, this.dateTimeRange)).then(response => {
- this.downloadLoading = false
+ listMoneyUser(qParam).then(response => {
if (response.code === 200) {
- const curList = response.rows
- import('@/vendor/Export2Excel').then(excel => {
- const tHeader = ['id','客户编码','客户名称','英文简称','电话','手机号','客户类型','结算类型','用户类型','所属公司','部门id','头像','性别','邀请人','最后登录ip','最后登录日期','称呼','union_id','wxopenid','主月结卡号','登录账号','登录密码','归属站点','国家','省份','城市','区县','镇','地址','email','发件国','发件省','发件区','发件区','发件镇','邮编','启用状态','真实姓名','身份证号','回款联系人','销售联系人','是否开通oms','是否短信','专属业务员','排序','备注','删除标志(0代表存在','创建者','创建时间','更新者','更新时间','创建网点','修改站点代码',];
- const filterVal = ['id','customerCode','customerName','customerNameEn','phone','mobile','customerType','settledType','userType','company','deptId','avatar','sex','invitationInfo','loginIp','loginDate','nickName','unionId','openid','monthlyPayCode','userName','password','ownerSite','country','province','city','county','town','address','email','sendCountry','sendProvince','sendCity','sendCounty','sendTown','postCode','status','realName','idNo','payee','salesmen','blOpenOms','blSms','opEmpCode','orderNum','remark','delFlag','createBy','createTime','updateBy','updateTime','createSite','updateSite',];
- const data = this.formatJson(filterVal, curList, response.rows)
- excel.export_json_to_excel({
- header: tHeader,
- data,
- filename: '快递客户用户',
- autoWidth: true
- })
- loadingInstance.close()
- })
+ this.exportData(response.rows, loadingInstance);
}
});
},
+ exportData(selData, loadingInstance) {
+ const curList = selData
+ import('@/vendor/Export2Excel').then(excel => {
+ const exportParam = this.$refs.refTable.getExportParam();
+ const tHeader = exportParam.header;
+ const filterVal = exportParam.filter;
+ const data = this.formatJson(filterVal, curList, selData)
+ excel.export_json_to_excel({
+ header: tHeader,
+ data,
+ filename: '注册用户列表',
+ autoWidth: true
+ })
+ loadingInstance.close()
+ })
+ },
formatJson(filterVal, jsonData, resData) {
let index = 0
return jsonData.map(v => filterVal.map(j => {
@@ -446,12 +437,17 @@ export default {
return ++index
}
if (j === 'status') {
- var statusStr='xxx'
- if(v[j] == 10){
- statusStr='xxx'
+ let statusStr = ''
+ if (v[j] == 0) {
+ statusStr = '停用'
+ } else if (v[j] == 1) {
+ statusStr = '启用'
}
return statusStr;
}
+ if (j === 'cityName') {
+ return (v[j]||'')+(v['countyName']||'')
+ }
return v[j]
}))
},
diff --git a/src/views/emis/emisCustomerUser/moneyUserListNew.vue b/src/views/emis/emisCustomerUser/moneyUserListNew.vue
index e7c5b6ee..91f6ce21 100644
--- a/src/views/emis/emisCustomerUser/moneyUserListNew.vue
+++ b/src/views/emis/emisCustomerUser/moneyUserListNew.vue
@@ -297,14 +297,6 @@ export default {
const loadingInstance = this.$loading({
text: '正在导出...'
})
- var qParam = {...this.queryParams};
- // 增加导出记录
- let postExportRecord={
- menuName: '寄件运单查询',
- dateRange: qParam.params.beginSendDate+"~"+qParam.params.endSendDate,
- }
-
- this.addExportAuditRecord(postExportRecord);
if(this.selectionList&&this.selectionList.length>0){
this.exportData(this.selectionList,loadingInstance);