|
|
|
|
@ -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>
|
|
|
|
|
@ -602,19 +602,19 @@ 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)
|
|
|
|
|
// 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);
|
|
|
|
|
app.setContentFull(false);
|
|
|
|
|
this.initData();
|
|
|
|
|
this.handleScreenAuto();
|
|
|
|
|
// 绑定自适应函数 ---防止浏览器栏变化后不再适配
|
|
|
|
|
@ -664,7 +664,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];
|
|
|
|
|
}
|
|
|
|
|
@ -749,7 +749,7 @@ export default defineComponent({
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
<style scoped>
|
|
|
|
|
.screen-wrapper {
|
|
|
|
|
width: 100vw;
|
|
|
|
|
height: 100vh;
|
|
|
|
|
|