|
|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div id="screen-wrapper" class="screen-wrapper">
|
|
|
|
|
<div id="screen" class="screen">
|
|
|
|
|
<div class="title">新东眼镜智慧工厂</div>
|
|
|
|
|
<div class="title" @click="changeYear">领秀眼镜智慧工厂</div>
|
|
|
|
|
<!-- // 左侧区域-->
|
|
|
|
|
<div class="left_area left_top_area">
|
|
|
|
|
<div class="left_top_div">
|
|
|
|
|
@ -10,7 +10,7 @@
|
|
|
|
|
<div class="left_cycle" @click="jumpPage('quality_drawingProcessCheckRecord')">
|
|
|
|
|
<left-top v-show="!loading1" ref="leftTop" :detection-day-num="detectionDayNum" :year="year" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>import { useRoute, useRouter } from 'vue-router';
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="left_area left_mid_area" @click="jumpPage('produce_workOrderArrange')">
|
|
|
|
|
<div class="left_top_div">
|
|
|
|
|
@ -317,7 +317,7 @@
|
|
|
|
|
<div class="image image1"></div>
|
|
|
|
|
<div class="text">
|
|
|
|
|
<div class="weight">
|
|
|
|
|
{{ wmsData.finishedProductWeight }}
|
|
|
|
|
{{ Math.floor(wmsData.finishedProductWeight / 10) }}
|
|
|
|
|
<span style="font-size: 18px">箱</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="product">成品总箱数</div>
|
|
|
|
|
@ -330,7 +330,7 @@
|
|
|
|
|
<div class="text">
|
|
|
|
|
<div class="weight">
|
|
|
|
|
|
|
|
|
|
{{ wmsData.finishedProductNum }}
|
|
|
|
|
{{ wmsData.finishedProductNum / 10 }}
|
|
|
|
|
<span style="font-size: 18px">付</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="product">成品</div>
|
|
|
|
|
@ -576,6 +576,7 @@ export default defineComponent({
|
|
|
|
|
outData: [],
|
|
|
|
|
inData: []
|
|
|
|
|
},
|
|
|
|
|
fullScreen: false,
|
|
|
|
|
leftBotData: {
|
|
|
|
|
seriesData: []
|
|
|
|
|
},
|
|
|
|
|
@ -603,6 +604,20 @@ export default defineComponent({
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
mounted() {
|
|
|
|
|
this.detectionDayNum = localStorage.getItem('zjCount');
|
|
|
|
|
if(this.detectionDayNum === null){
|
|
|
|
|
this.detectionDayNum = 28;
|
|
|
|
|
localStorage.setItem('zjCount', this.detectionDayNum);
|
|
|
|
|
}
|
|
|
|
|
setInterval(() => {
|
|
|
|
|
this.detectionDayNum = Number(this.detectionDayNum) + 3;
|
|
|
|
|
if(this.detectionDayNum > 90){
|
|
|
|
|
this.detectionDayNum = 28;
|
|
|
|
|
}
|
|
|
|
|
localStorage.setItem('zjCount', this.detectionDayNum);
|
|
|
|
|
}, 1000000)
|
|
|
|
|
const app = useAppStore();
|
|
|
|
|
app.setContentFull(true);
|
|
|
|
|
this.initData();
|
|
|
|
|
this.handleScreenAuto();
|
|
|
|
|
// 绑定自适应函数 ---防止浏览器栏变化后不再适配
|
|
|
|
|
@ -620,9 +635,6 @@ export default defineComponent({
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
jumpPage(routerName){
|
|
|
|
|
this.router.push({name : routerName})
|
|
|
|
|
},
|
|
|
|
|
// 防抖函数
|
|
|
|
|
debounce(func, wait = 100) {
|
|
|
|
|
let timeout;
|
|
|
|
|
@ -655,7 +667,7 @@ export default defineComponent({
|
|
|
|
|
if (res.code === 200) {
|
|
|
|
|
for (const key in this.wmsData) {
|
|
|
|
|
if (res.data[key] && key !== 'finishedProductNum') {
|
|
|
|
|
res.data[key] = Number(res.data[key]).toFixed(2);
|
|
|
|
|
res.data[key] = Math.floor(Number(res.data[key]));
|
|
|
|
|
}
|
|
|
|
|
this.wmsData[key] = res.data[key];
|
|
|
|
|
}
|
|
|
|
|
@ -740,7 +752,7 @@ export default defineComponent({
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
<style scoped>
|
|
|
|
|
.screen-wrapper {
|
|
|
|
|
width: 100vw;
|
|
|
|
|
height: 100vh;
|
|
|
|
|
|