snow il y a 10 mois
Parent
commit
a0b69483c1

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/index.html


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/static/css/app.2afed481.css


BIN
dist/static/css/app.2afed481.css.gz


BIN
dist/static/css/app.8d733eb3.css.gz


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/static/js/app.c0360005.js


BIN
dist/static/js/app.c0360005.js.gz


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/static/js/app.c931d63c.js


BIN
dist/static/js/app.c931d63c.js.gz


+ 4 - 4
src/ccomponents/reports/src/WanyuCompletion.vue

@@ -230,10 +230,10 @@ export default {
           }
         })
         
-        this.tableData.forEach(item => {
-          console.log(item.monthinfo.monthNetSales);
-          console.log(item.depart);
-        })
+        // this.tableData.forEach(item => {
+        //   console.log(item.monthinfo.monthNetSales);
+        //   console.log(item.depart);
+        // })
 
         this.total = {
           /* 月完成额 **/

+ 8 - 3
src/components/newResults/company-bu.vue

@@ -327,7 +327,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 === "北京普润心堂商贸有限公司");
@@ -355,7 +355,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' : '物流费用'}
 
@@ -410,6 +410,7 @@ export default {
           this.tableData = [
             ...this.tableData,
             {
+              companyNo,
               companyName,  // 公司名称
               cost_tips, // 当月成本指标
               total_tips, // 当月营收目标
@@ -428,9 +429,13 @@ export default {
 
         let i = ["北京百辰荣达国际科贸有限公司", '北京泓源广诚国际商贸有限公司' ,"北京普润心堂商贸有限公司"];
         const l = this.tableData.map(item => item.companyName);
+
+        const values = this.plat_cp_companies.map(({value}) => value)
+
+
         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 = [];
       }

+ 9 - 3
src/components/newResults/company.vue

@@ -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 = [];
       }

+ 0 - 3
src/components/newResults/department.vue

@@ -196,7 +196,6 @@ export default {
     this.isEmpty = this.companies.length === 0;
     if (this.isEmpty) return;
 
-    console.log(this.companies)
     this.cp_companies = this.companies.map(item => ({
       ...item,
       label:
@@ -230,7 +229,6 @@ export default {
       this.cp_companies.find(cp_item => cp_item.label === item)
     );
 
-    console.log(list,'Ji')
     this.companyNo = this.cp_companies[0].value;
 
     this.daytime = this.transformTime();
@@ -503,7 +501,6 @@ export default {
         let l = [ "百辰", "泓源", "普润",'泰文创'];
         const cl = this.list.map(item => item.depart);
 
-        console.log(cl)
         l = l.filter(item => {
           return cl.findIndex(i => i.indexOf(item)) !== -1;
         });

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff