月生产完成率修改

This commit is contained in:
17630416519 2026-01-26 11:34:32 +08:00
parent 46f9e42b52
commit 84a938afeb
2 changed files with 16 additions and 3 deletions

View File

@ -6,4 +6,12 @@ export function ProPlanAchievementrate(data) {
method: 'get',
params: data
})
}
//月生产完成率
export function getProductdatatable(query) {
return request({
url: '/mes/reportManagement/report/monthlyProductionCompletionRate',
method: 'get',
params: query
})
}

View File

@ -123,7 +123,7 @@
import { ref, reactive, onMounted, computed } from 'vue'
import { Loading } from '@element-plus/icons-vue'
import { Vue3SeamlessScroll } from 'vue3-seamless-scroll'
import { ProPlanAchievementrate } from "@/api/productManagement/analysisOfProductionCompletionRate"
import { ProPlanAchievementrate, getProductdatatable } from "@/api/productManagement/analysisOfProductionCompletionRate"
const activeTab = ref('day')
const loading = ref(false)
const hourlyProductionList = ref([])
@ -204,11 +204,16 @@ const getProductionData = () => {
const switchTab = (tab) => {
activeTab.value = tab
if (tab === 'day') {
getProductionData()
} else {
console.log('切换到周视图')
hourlyProductionList.value = []
// getProductdatatable().then(res => {
// if (res.code === 200) {
// console.log('', res);
// }
// })
}
}