Commit 1cca62a7 authored by liudong1993's avatar liudong1993

1

parent 642dee8a
...@@ -267,6 +267,7 @@ ...@@ -267,6 +267,7 @@
</template> </template>
<script> <script>
import moment from 'moment';
import IncomeChange from "./components/oneEchart/IncomeChange.vue"; import IncomeChange from "./components/oneEchart/IncomeChange.vue";
import IncomeShare from "./components/oneEchart/IncomeShare.vue"; import IncomeShare from "./components/oneEchart/IncomeShare.vue";
import WoolRateChange from "./components/oneEchart/WoolRateChange.vue"; import WoolRateChange from "./components/oneEchart/WoolRateChange.vue";
...@@ -399,10 +400,11 @@ export default { ...@@ -399,10 +400,11 @@ export default {
}, },
mounted() { mounted() {
this.getCompanyMsg.RB_Group_Id = this.getLocalStorage().RB_Group_id this.getCompanyMsg.RB_Group_Id = this.getLocalStorage().RB_Group_id
const end = new Date();
const start = new Date(); let sDate = moment().subtract(7, 'months').format('YYYY-MM');
start.setMonth(start.getMonth() - 6); let eDate = moment().subtract(1, 'months').format('YYYY-MM');
this.dateTime = [this.$commonUtils.getFormatDateM(start),this.$commonUtils.getFormatDateM(end)]
this.dateTime = [sDate,eDate]
this.msg.startDate = this.dateTime[0] this.msg.startDate = this.dateTime[0]
this.msg.endDate = this.dateTime[1] this.msg.endDate = this.dateTime[1]
...@@ -524,7 +526,7 @@ export default { ...@@ -524,7 +526,7 @@ export default {
this.msg.LineIdList = [], this.msg.LineIdList = [],
this.msg.LineIdStr = '' this.msg.LineIdStr = ''
this.msg.IsLastData = 2 this.msg.IsLastData = 2
this.msg.OutBranchIdList = [0] this.msg.OutBranchIdList = [0,1,32,33]
this.msg.StandardBranchIds = '0' this.msg.StandardBranchIds = '0'
this.coinGetShow = true this.coinGetShow = true
this.msg.StandardCurrencyId = -1 this.msg.StandardCurrencyId = -1
...@@ -555,10 +557,10 @@ export default { ...@@ -555,10 +557,10 @@ export default {
this.msg.startDate = this.dateTime[0] this.msg.startDate = this.dateTime[0]
this.msg.endDate = this.dateTime[1] this.msg.endDate = this.dateTime[1]
}else{ }else{
const end = new Date(); let sDate = moment().subtract(7, 'months').format('YYYY-MM');
const start = new Date(); let eDate = moment().subtract(1, 'months').format('YYYY-MM');
start.setMonth(start.getMonth() - 6);
this.dateTime = [this.$commonUtils.getFormatDateM(start),this.$commonUtils.getFormatDateM(end)] this.dateTime = [sDate,eDate]
this.msg.startDate = start this.msg.startDate = start
this.msg.endDate = end this.msg.endDate = end
} }
......
<template> <template>
<div class="echartsBox"> <div class="echartsBox">
<div class="titleBox row"> <div class="titleBox row">
<h3>净利润变化趋势图</h3> <h3>净利润变化趋势图(简易报表的净利润)</h3>
<div style="margin-left: 20px;"> <div style="margin-left: 20px;">
......
<template> <template>
<div class="echartsBox"> <div class="echartsBox">
<div class="titleBox row"> <div class="titleBox row">
<h3>实际利润变化趋势图</h3> <h3>实际利润变化趋势图(营收报表的实际利润)</h3>
<div style="margin-left: 20px;"> <div style="margin-left: 20px;">
......
<template> <template>
<div class="echartsBox"> <div class="echartsBox">
<div class="titleBox row"> <div class="titleBox row">
<h3>营业利润变化趋势图</h3> <h3>营业利润变化趋势图(营收报表实际利润+联运收入)</h3>
<div style="margin-left: 20px;"> <div style="margin-left: 20px;">
......
...@@ -177,6 +177,7 @@ ...@@ -177,6 +177,7 @@
</template> </template>
<script> <script>
import moment from 'moment';
import Lines from "./components/line.vue"; import Lines from "./components/line.vue";
import Corporations from "./components/corporation.vue"; import Corporations from "./components/corporation.vue";
import Packets from "./components/packet.vue"; import Packets from "./components/packet.vue";
...@@ -254,10 +255,10 @@ export default { ...@@ -254,10 +255,10 @@ export default {
}, },
mounted() { mounted() {
this.getCompanyMsg.RB_Group_Id = this.getLocalStorage().RB_Group_id this.getCompanyMsg.RB_Group_Id = this.getLocalStorage().RB_Group_id
const end = new Date(); let sDate = moment().subtract(7, 'months').format('YYYY-MM');
const start = new Date(); let eDate = moment().subtract(1, 'months').format('YYYY-MM');
start.setMonth(start.getMonth() - 6);
this.dateTime = [this.$commonUtils.getFormatDateM(start),this.$commonUtils.getFormatDateM(end)] this.dateTime = [sDate,eDate]
this.msg.startDate = this.dateTime[0] this.msg.startDate = this.dateTime[0]
this.msg.endDate = this.dateTime[1] this.msg.endDate = this.dateTime[1]
...@@ -361,10 +362,10 @@ export default { ...@@ -361,10 +362,10 @@ export default {
this.msg.startDate = this.dateTime[0] this.msg.startDate = this.dateTime[0]
this.msg.endDate = this.dateTime[1] this.msg.endDate = this.dateTime[1]
}else{ }else{
const end = new Date(); let sDate = moment().subtract(7, 'months').format('YYYY-MM');
const start = new Date(); let eDate = moment().subtract(1, 'months').format('YYYY-MM');
start.setMonth(start.getMonth() - 6);
this.dateTime = [this.$commonUtils.getFormatDateM(start),this.$commonUtils.getFormatDateM(end)] this.dateTime = [sDate,eDate]
this.msg.startDate = start this.msg.startDate = start
this.msg.endDate = end this.msg.endDate = end
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment