|
@@ -132,7 +132,9 @@
|
|
|
<div class="detailInfo">
|
|
|
<el-scrollbar>
|
|
|
<div class="opBox">
|
|
|
- <el-text class="mx-1" type="warning">切换之前记得先保存</el-text>
|
|
|
+ <el-text class="mx-1" type="warning"
|
|
|
+ >切换和排序之前记得先保存</el-text
|
|
|
+ >
|
|
|
<el-button type="primary" @click="changeEditStatus">{{
|
|
|
!editStatus ? "切换为工序信息编辑模式" : "切换为工序路线编辑模式"
|
|
|
}}</el-button>
|
|
@@ -141,7 +143,13 @@
|
|
|
<!-- <el-button type="success" @click="changeStyle">
|
|
|
按钮风格切换
|
|
|
</el-button> -->
|
|
|
- <el-button type="success" @click="startGroup"> 进行分组 </el-button>
|
|
|
+ <div style="display: flex">
|
|
|
+ <el-button type="success" @click="startGroup">
|
|
|
+ 进行分组
|
|
|
+ </el-button>
|
|
|
+
|
|
|
+ <el-button @click="toSort"> 分支排序 </el-button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
|
|
|
<!-- 工艺路线编辑模式 -->
|
|
@@ -234,6 +242,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<GroupProcess ref="GroupProcessRef" @success="groupFinish"></GroupProcess>
|
|
|
+ <GroupSort ref="GroupSortRef" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -267,13 +276,17 @@ import { useScreenshot } from "./screenshot.ts";
|
|
|
import { useLayout } from "@/hooks/useLayout";
|
|
|
import { useSnakeLayoutHook } from "@/hooks/vueflowHooks";
|
|
|
import GroupProcess from "./components/groupProcess.vue";
|
|
|
+import GroupSort from "./components/groupSort.vue";
|
|
|
|
|
|
defineOptions({
|
|
|
name: "bindProcess/:id/:prodtCode",
|
|
|
});
|
|
|
|
|
|
const styleStatus = ref(false);
|
|
|
-
|
|
|
+const GroupSortRef = ref(null);
|
|
|
+const toSort = () => {
|
|
|
+ GroupSortRef.value.drawer = true;
|
|
|
+};
|
|
|
const changeStyle = () => {
|
|
|
styleStatus.value = !styleStatus.value;
|
|
|
};
|
|
@@ -354,7 +367,6 @@ const edgeClick = (event) => {
|
|
|
// 工序分组功能模块
|
|
|
const GroupProcessRef = ref(null);
|
|
|
const startGroup = () => {
|
|
|
- console.log("startGroup", flowData.nodes);
|
|
|
GroupProcessRef.value &&
|
|
|
GroupProcessRef.value.startGroup(
|
|
|
flowData.nodes,
|
|
@@ -362,7 +374,6 @@ const startGroup = () => {
|
|
|
);
|
|
|
};
|
|
|
const groupFinish = () => {
|
|
|
- console.log("groupFinish");
|
|
|
loadProcessesFlow();
|
|
|
};
|
|
|
|