|
|
|
@ -205,6 +205,8 @@
|
|
|
|
|
let entity = data[i];
|
|
|
|
|
that.originAllData.push(entity);
|
|
|
|
|
}
|
|
|
|
|
//过滤客户
|
|
|
|
|
that.filterCustomer("export");
|
|
|
|
|
require.ensure([], () => {
|
|
|
|
|
const { export_json_to_excel } = require('../excel/Export2Excel');
|
|
|
|
|
const tHeader = ['序号', '店铺名称', '店铺编码', '大区', '零售公司', '客户', '推广数'];
|
|
|
|
@ -254,6 +256,8 @@
|
|
|
|
|
//null改--
|
|
|
|
|
that.checkParamBlank(entity);
|
|
|
|
|
}
|
|
|
|
|
//过滤客户
|
|
|
|
|
that.filterCustomer("main");
|
|
|
|
|
}
|
|
|
|
|
if(data == null || data.length === 0){
|
|
|
|
|
that.totalSize = 0;
|
|
|
|
@ -282,6 +286,16 @@
|
|
|
|
|
that.insertAllOption();
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
//过滤客户
|
|
|
|
|
filterCustomer: function(name){
|
|
|
|
|
if(this.customerId){
|
|
|
|
|
switch (name) {
|
|
|
|
|
case "main":this.data1 = this.data1.filter(shop => shop.customerId === this.customerId);break;
|
|
|
|
|
case "export": this.originAllData = this.originAllData.filter(shop => shop.customerId === this.customerId);break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
//切页处理
|
|
|
|
|
handlePage: function (value) {
|
|
|
|
|
this.pageNum = value;
|
|
|
|
|