|
@@ -1,20 +1,8 @@
|
|
|
<template>
|
|
|
<div v-loading="loading">
|
|
|
<div class="search clear" style="align-items: center;;">
|
|
|
- <!-- <el-tooltip placement="top" width="50px" trigger="hover" content="平台公司">
|
|
|
- <i
|
|
|
- class="el-icon-warning-outline"
|
|
|
- style="font-size:16px;cursor:pointer;;display:inline-block;padding-right: 5px"
|
|
|
- ></i>
|
|
|
- </el-tooltip> -->
|
|
|
- <span style="font-size: 15px;">平台公司业绩情况</span>
|
|
|
+ <span style="font-size: 15px;">平台公司业绩情况</span>
|
|
|
<div style="float:right">
|
|
|
- <!--
|
|
|
- <el-select size="small" style="margin-right:10px;width:150px" v-model="companyNo" @change="requestData"
|
|
|
- :disabled="isEmpty">
|
|
|
- <el-option v-for="company in plat_cp_companies" :key="company.value" :value="company.value" :label="company.label" />
|
|
|
- </el-select>
|
|
|
- -->
|
|
|
<el-date-picker class="fr picker no-padding" v-model="daytime" style="width:95px" value-format="yyyy-MM-dd"
|
|
|
:editable="false" :disabled="isEmpty" :clearable="false" :size="'small'" format="yyyy-MM-dd" type="date"
|
|
|
align="right" placeholder="选择日期"
|
|
@@ -271,7 +259,7 @@ export default {
|
|
|
|
|
|
let base = ''
|
|
|
|
|
|
- if(row.companyName === "北京万宇恒通国际科贸有限公司") {
|
|
|
+ if(row.companyName === "北京元隆雅图文化传播股份有限公司") {
|
|
|
base += 'font-bold '
|
|
|
}
|
|
|
|
|
@@ -324,31 +312,6 @@ export default {
|
|
|
|
|
|
const res = await asyncRequest.companyEveryMonth({ daytime: this.daytime });
|
|
|
|
|
|
- // const jxIndex = res.data.findIndex((item) => item.companyName === "北京锦兴弘昌科技有限公司");
|
|
|
- // let prIndex = res.data.findIndex((item) => item.companyName === "北京普润心堂商贸有限公司");
|
|
|
- // let zsIndex = res.data.findIndex((item) => item.companyName === "北京知事文化产业发展有限公司")
|
|
|
- // if (jxIndex >= 0 && prIndex >= 0) {
|
|
|
- // const jxItem = res.data[jxIndex];
|
|
|
- // res.data[prIndex] = this.addDataToCompany(jxItem, res.data[prIndex]);
|
|
|
- // res.data.splice(jxIndex, 1);
|
|
|
- // }
|
|
|
- // prIndex = res.data.findIndex((item) => item.companyName === "北京普润心堂商贸有限公司");
|
|
|
- // zsIndex = res.data.findIndex((item) => item.companyName === "北京知事文化产业发展有限公司")
|
|
|
- // if (zsIndex >= 0 && prIndex >= 0) {
|
|
|
- // const zsItem = res.data[zsIndex];
|
|
|
- // res.data[prIndex] = this.addDataToCompany(zsItem, res.data[prIndex]);
|
|
|
- // res.data.splice(zsIndex, 1);
|
|
|
- // }
|
|
|
- // if (this.companyNo === "GS2302231124114965") {
|
|
|
- // const jxResult = await asyncRequest.companyEveryMonth({ daytime: this.daytime, companyNo: "GS2304031312553746" });
|
|
|
- // const zsResult = await asyncRequest.companyEveryMonth({ daytime: this.daytime, companyNo: "GS2401181650538135" });
|
|
|
- // res.data[prIndex] = this.addDataToCompany(jxResult.data[0], res.data[prIndex]);
|
|
|
- // if(zsResult.data.length !== 0) {
|
|
|
- // res.data[prIndex] = this.addDataToCompany(zsResult.data[0], res.data[prIndex]);
|
|
|
- // }
|
|
|
- // }
|
|
|
- // const isBeforeDate = this.getDiffDay() < 0 && this.companyNo === "GS2302231323386950"
|
|
|
-
|
|
|
if (res.code === 0 && res.data && res.data.length > 0) {
|
|
|
res.data.forEach(({ companyName,companyNo ,monthinfo, dayinfo, total_tips, cost_tips }) => {
|
|
|
|
|
@@ -423,7 +386,7 @@ export default {
|
|
|
})
|
|
|
|
|
|
|
|
|
- let i = ["北京万宇恒通国际科贸有限公司", '北京泰文创供应链管理有限公司' ,"北京元隆雅图文化传播股份有限公司", "结算单E企购"];
|
|
|
+ let i = ["北京元隆雅图文化传播股份有限公司","北京万宇恒通国际科贸有限公司", '北京泰文创供应链管理有限公司', "结算单E企购"];
|
|
|
const values = this.plat_cp_companies.map(({value}) => value)
|
|
|
|
|
|
|