|
@@ -324,7 +324,7 @@ export default {
|
|
|
this.loading = true;
|
|
|
this.tableData = [];
|
|
|
|
|
|
- const res = await asyncRequest.companyEveryMonth({ daytime: this.daytime, companyNo: this.companyNo });
|
|
|
+ const res = await asyncRequest.companyEveryMonth({ daytime: this.daytime });
|
|
|
|
|
|
// const jxIndex = res.data.findIndex((item) => item.companyName === "北京锦兴弘昌科技有限公司");
|
|
|
// let prIndex = res.data.findIndex((item) => item.companyName === "北京普润心堂商贸有限公司");
|
|
@@ -352,7 +352,7 @@ export default {
|
|
|
// const isBeforeDate = this.getDiffDay() < 0 && this.companyNo === "GS2302231323386950"
|
|
|
|
|
|
if (res.code === 0 && res.data && res.data.length > 0) {
|
|
|
- res.data.forEach(({ companyName, monthinfo, dayinfo, total_tips, cost_tips }) => {
|
|
|
+ res.data.forEach(({ companyName,companyNo ,monthinfo, dayinfo, total_tips, cost_tips }) => {
|
|
|
|
|
|
const mapResponseType = { '1': '自营', '2': '渠道', '3': '供应商端' ,'4' : '物流费用'}
|
|
|
|
|
@@ -407,6 +407,7 @@ export default {
|
|
|
this.tableData = [
|
|
|
...this.tableData,
|
|
|
{
|
|
|
+ companyNo,
|
|
|
companyName, // 公司名称
|
|
|
cost_tips, // 当月成本指标
|
|
|
total_tips, // 当月营收目标
|
|
@@ -423,11 +424,16 @@ export default {
|
|
|
]
|
|
|
})
|
|
|
|
|
|
+
|
|
|
let i = ["北京万宇恒通国际科贸有限公司", '北京泰文创供应链管理有限公司' ,"北京元隆雅图文化传播股份有限公司", "结算单E企购"];
|
|
|
+ const values = this.plat_cp_companies.map(({value}) => value)
|
|
|
+
|
|
|
+
|
|
|
const l = this.tableData.map(item => item.companyName);
|
|
|
i = i.filter(item => l.includes(item));
|
|
|
this.tableData = i.map(item => this.tableData.find(l => l.companyName === item));
|
|
|
- console.log(this.tableData,'----');
|
|
|
+
|
|
|
+ this.tableData = this.tableData.filter(({companyNo}) => values.includes(companyNo))
|
|
|
} else {
|
|
|
this.tableData = [];
|
|
|
}
|