月生产完成率修改
This commit is contained in:
parent
46f9e42b52
commit
84a938afeb
@ -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
|
||||
})
|
||||
}
|
||||
@ -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);
|
||||
// }
|
||||
// })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user