|
@@ -1,69 +1,76 @@
|
|
|
<template>
|
|
|
<div class="body">
|
|
|
- <div
|
|
|
- class="steps"
|
|
|
- v-for="(item, index) in opsArray"
|
|
|
- :key="index"
|
|
|
- @click="boxClick(item, index)"
|
|
|
- >
|
|
|
+ <TransitionGroup name="list">
|
|
|
<div
|
|
|
- :class="
|
|
|
- item.exists == true
|
|
|
- ? selectStepIndex == index
|
|
|
- ? 'stepBox stepBoxHover'
|
|
|
- : 'stepBox'
|
|
|
- : 'stepBox stepExistsHover'
|
|
|
- "
|
|
|
+ class="steps"
|
|
|
+ v-for="(item, index) in opsArray"
|
|
|
+ :key="index"
|
|
|
+ @click="boxClick(item, index)"
|
|
|
>
|
|
|
- <div style="display: flex; align-items: center">
|
|
|
- <div
|
|
|
- :class="
|
|
|
- selectStepIndex == index
|
|
|
- ? 'stepIndex stepIndexHover'
|
|
|
- : 'stepIndex'
|
|
|
- "
|
|
|
- >
|
|
|
- <span
|
|
|
- :class="
|
|
|
- selectStepIndex == index
|
|
|
- ? 'indexText hoverTextColor'
|
|
|
- : 'indexText'
|
|
|
- "
|
|
|
- >{{ index + 1 }}</span
|
|
|
- >
|
|
|
- </div>
|
|
|
- <div class="midTextBox">
|
|
|
- <div
|
|
|
- :class="
|
|
|
- selectStepIndex == index ? 'stepName stepNameHover' : 'stepName'
|
|
|
- "
|
|
|
- >
|
|
|
- {{ item.operationName }}
|
|
|
- </div>
|
|
|
+ <div
|
|
|
+ :class="
|
|
|
+ item.exists == true
|
|
|
+ ? selectStepIndex == index
|
|
|
+ ? 'stepBox stepBoxHover'
|
|
|
+ : 'stepBox'
|
|
|
+ : 'stepBox stepExistsHover'
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <div style="display: flex; align-items: center">
|
|
|
<div
|
|
|
:class="
|
|
|
selectStepIndex == index
|
|
|
- ? 'stepStation stepStationHover'
|
|
|
- : 'stepStation'
|
|
|
+ ? 'stepIndex stepIndexHover'
|
|
|
+ : 'stepIndex'
|
|
|
"
|
|
|
>
|
|
|
- {{ item.operationCode }}
|
|
|
+ <span
|
|
|
+ :class="
|
|
|
+ selectStepIndex == index
|
|
|
+ ? 'indexText hoverTextColor'
|
|
|
+ : 'indexText'
|
|
|
+ "
|
|
|
+ >{{ index + 1 }}</span
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ <div class="midTextBox">
|
|
|
+ <div
|
|
|
+ :class="
|
|
|
+ selectStepIndex == index
|
|
|
+ ? 'stepName stepNameHover'
|
|
|
+ : 'stepName'
|
|
|
+ "
|
|
|
+ >
|
|
|
+ {{ item.operationName }}
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ :class="
|
|
|
+ selectStepIndex == index
|
|
|
+ ? 'stepStation stepStationHover'
|
|
|
+ : 'stepStation'
|
|
|
+ "
|
|
|
+ >
|
|
|
+ {{ item.operationCode }}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div
|
|
|
+ :class="
|
|
|
+ selectStepIndex == index ? 'timeBox timeBoxHover' : 'timeBox'
|
|
|
+ "
|
|
|
+ >
|
|
|
+ {{ item.completeNum }}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div
|
|
|
- :class="selectStepIndex == index ? 'timeBox timeBoxHover' : 'timeBox'"
|
|
|
- >
|
|
|
- {{ item.completeNum }}
|
|
|
+ <div v-if="item.exists != true" class="existsText">
|
|
|
+ 注:该工位在计划上未分配此工序任务!
|
|
|
</div>
|
|
|
+ <div class="line" v-if="index != opsArray.length - 1"></div>
|
|
|
</div>
|
|
|
- <div v-if="item.exists != true" class="existsText">
|
|
|
- 注:该工位在计划上未分配此工序任务!
|
|
|
- </div>
|
|
|
- <div class="line" v-if="index != opsArray.length - 1"></div>
|
|
|
- </div>
|
|
|
+ </TransitionGroup>
|
|
|
<el-empty v-if="!opsArray" description="暂无数据" />
|
|
|
<!-- 弹窗 -->
|
|
|
+ 、
|
|
|
<el-dialog
|
|
|
v-model="centerDialogVisible"
|
|
|
width="500"
|
|
@@ -88,6 +95,8 @@
|
|
|
import { useProcessStore } from "@/store";
|
|
|
import { emitter, EventsNames } from "@/utils/common";
|
|
|
import { getScan } from "@/api/process";
|
|
|
+import { Transition } from "vue";
|
|
|
+import { Translation } from "vue-i18n";
|
|
|
const store = useProcessStore();
|
|
|
const selectSeqArray = inject("selectSeqArray");
|
|
|
const ordersDataArray = inject("ordersDataArray");
|
|
@@ -200,10 +209,14 @@ onBeforeUnmount(() => {
|
|
|
.stepBoxHover {
|
|
|
box-shadow: 0px 0px 0px 0px;
|
|
|
background-color: $select-hover;
|
|
|
+ animation-name: bodyHover;
|
|
|
+ animation-duration: $animation-duration;
|
|
|
}
|
|
|
|
|
|
.stepExistsHover {
|
|
|
background-color: grey;
|
|
|
+ animation-name: stepHover;
|
|
|
+ animation-duration: $animation-duration;
|
|
|
cursor: not-allowed;
|
|
|
}
|
|
|
|