|
|
@ -26,42 +26,12 @@ |
|
|
|
|
|
|
|
<el-row :gutter="10" style="height: calc(100vh - 300px)"> |
|
|
|
<el-col :span="6"> |
|
|
|
<!-- <el-form> |
|
|
|
<el-form-item label="车间选择"> |
|
|
|
<el-select |
|
|
|
:v-model="processListParmas.workshopCode" |
|
|
|
value-key="code" |
|
|
|
placeholder="Select" |
|
|
|
style="width: 240px" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in workshopCodeOptions" |
|
|
|
:key="item.code" |
|
|
|
:label="item.name" |
|
|
|
:value="item" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="产线选择"> |
|
|
|
<el-select |
|
|
|
:v-model="processListParmas.productionLineCode" |
|
|
|
value-key="code" |
|
|
|
placeholder="Select" |
|
|
|
style="width: 240px" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in productionLineCodeOptions" |
|
|
|
:key="item.code" |
|
|
|
:label="item.name" |
|
|
|
:value="item" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label=""> |
|
|
|
<el-button type="primary" @click="getProcessList">搜索</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-input v-model="processListParmas.name" placeholder="工序名称"> |
|
|
|
<template #append> |
|
|
|
<el-button @click="getProcessList" >查询</el-button> |
|
|
|
</template> |
|
|
|
</el-input> |
|
|
|
|
|
|
|
</el-form> --> |
|
|
|
<el-table :data="processData" ref="tableProcess" style="width: 100%; height: 80%"> |
|
|
|
<el-table-column prop="name" label="工序名称"> |
|
|
|
<template #default="scope"> |
|
|
@ -126,9 +96,8 @@ |
|
|
|
<script lang="ts" setup> |
|
|
|
import { start_node, end_node, createGraph, registerNodes, getNewNode } from './graphbase.data' |
|
|
|
import * as ProcessrouteApi from '@/api/mes/processroute' |
|
|
|
import { Search } from '@/components/Search' |
|
|
|
import { Graph } from '@antv/x6' |
|
|
|
import { table } from 'console' |
|
|
|
|
|
|
|
//import { async } from '@antv/x6/lib/registry/marker/async' |
|
|
|
//import { object } from 'vue-types' |
|
|
|
const graphContainer = ref<HTMLElement | null>(null) |
|
|
@ -180,7 +149,6 @@ const handleDrawerClose = () => { |
|
|
|
if (graph && graph.value != undefined) { |
|
|
|
//console.log(graph.value.toJSON()) |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
//**获取 工序信息 */ |
|
|
|
const getProcessInfo = async (id: number) => { |
|
|
@ -213,13 +181,15 @@ const getWorkerList = async (code: String) => { |
|
|
|
//console.log(productData.value) |
|
|
|
} |
|
|
|
const processListParmas = ref({ |
|
|
|
name: '', |
|
|
|
workshopCode: '', |
|
|
|
productionLineCode: '', |
|
|
|
productionLineCode:'', |
|
|
|
pageNum: 1, |
|
|
|
pageSize: 50 |
|
|
|
}) |
|
|
|
/**获取工序列表 */ |
|
|
|
const getProcessList = async () => { |
|
|
|
//console.log(processListParmas.value) |
|
|
|
const res = await ProcessrouteApi.getProcessList(processListParmas.value) |
|
|
|
|
|
|
|
processData.value = res.list |
|
|
@ -306,9 +276,7 @@ const saveResult = async () => { |
|
|
|
} |
|
|
|
// 验证图形 |
|
|
|
onUnmounted(() => {}) |
|
|
|
const emit = defineEmits([ |
|
|
|
'close', |
|
|
|
]) |
|
|
|
const emit = defineEmits(['close']) |
|
|
|
</script> |
|
|
|
<style lang="scss"> |
|
|
|
.el-drawer__body { |
|
|
|