预算&指标填报

This commit is contained in:
2026-03-05 11:12:34 +08:00
parent babbe98c09
commit 2f3586e2f2
15 changed files with 537 additions and 371 deletions

View File

@@ -16,8 +16,8 @@
gap: 12px;
grid-template-columns:416px 1192px;
">
<indicatorCalendar :calendarList="calendarList" />
<indicatorDetails :timeType="timeType" />
<indicatorCalendar :timeType="timeType" :calendarObj='calendarObj'/>
<indicatorDetails :timeType="timeType" @updateLeft='getData'/>
</div>
</div>
<!-- <div class="top" style="margin-top: -20px; display: flex; gap: 16px">
@@ -53,8 +53,9 @@ import { mapState } from "vuex";
// import operatingLineChart from "../operatingComponents/operatingLineChart";
// import operatingLineChartCumulative from "../operatingComponents/operatingLineChartCumulative.vue";
import { getSalesRevenueGroupData, getCalendar } from '@/api/cockpit'
import { getSalesRevenueGroupData } from '@/api/cockpit'
import moment from "moment";
import {getCalendar, getCalendarYear} from '@/api/cockpit';
export default {
name: "DayReport",
components: {
@@ -78,7 +79,7 @@ export default {
selectDate:{},
monthData: {},
ytdData: {},
calendarList:{},
calendarObj:{}
};
},
@@ -147,34 +148,21 @@ export default {
this.getData()
},
methods: {
// sortChange(value) {
// this.sort = value
// this.getData()
// },
getData() {
getCalendar().then((res) => {
console.log(res, 'res');
this.calendarList = res.data
// this.monthData = res.data.month
// this.ytdData = res.data.ytd
})
// getSalesRevenueGroupData({
// startTime: this.dateData.startTime,
// endTime: this.dateData.endTime,
// sort: this.sort,
// index: undefined,
// factory: undefined
// // timeDim: obj.mode
// }).then((res) => {
// console.log(res);
// this.monthData= res.data.month
// this.ytdData = res.data.ytd
// })
if(this.timeType == 'month'){
getCalendar().then((res) => {
this.calendarObj = res.data
})
}else{
getCalendarYear().then((res) => {
this.calendarObj = res.data
})
}
},
handleTimeChange(obj) {
console.log(obj, 'obj');
this.timeType = obj
// this.getData()
this.getData()
},
handleClickOutside() {
this.$store.dispatch("app/closeSideBar", { withoutAnimation: false });