|
@ -378,12 +378,18 @@ const getProcessBom=async (code:any) => { |
|
|
let res = await orderDayconfigApi.getOrderDayBomByOrder(queryParams) |
|
|
let res = await orderDayconfigApi.getOrderDayBomByOrder(queryParams) |
|
|
materialsData.value=res |
|
|
materialsData.value=res |
|
|
} |
|
|
} |
|
|
|
|
|
const currentStartNode = ref({ |
|
|
|
|
|
id:'' |
|
|
|
|
|
}) |
|
|
//获取配置的工艺路线信息 |
|
|
//获取配置的工艺路线信息 |
|
|
const getProcessroute = async () => { |
|
|
const getProcessroute = async () => { |
|
|
let res = await orderDayconfigApi.getConfigProcessRoute(queryParams) |
|
|
let res = await orderDayconfigApi.getConfigProcessRoute(queryParams) |
|
|
//console.log('ddddd',res) |
|
|
|
|
|
graphJson.value=JSON.parse(res.newGraphData) |
|
|
graphJson.value=JSON.parse(res.newGraphData) |
|
|
|
|
|
//首次打开弹窗,默认打开一个工序的数据 |
|
|
|
|
|
currentStartNode.value.id = graphJson.value.cells[0].id |
|
|
|
|
|
// 手动触发点击事件 |
|
|
|
|
|
nodeClick('','','',currentStartNode.value,'') |
|
|
|
|
|
currentNode.value = graphJson.value.cells[0] |
|
|
graph.value?.fromJSON(graphJson.value.cells) |
|
|
graph.value?.fromJSON(graphJson.value.cells) |
|
|
} |
|
|
} |
|
|
//获取配置的工序信息 |
|
|
//获取配置的工序信息 |
|
@ -407,6 +413,7 @@ const getConfigProcessEquipment= async (code:any) => { |
|
|
equipmentData.value = await orderDayconfigApi.getConfigProcessEquipment(queryParams) |
|
|
equipmentData.value = await orderDayconfigApi.getConfigProcessEquipment(queryParams) |
|
|
} |
|
|
} |
|
|
const nodeClick = (e, x, y, node, view) => { |
|
|
const nodeClick = (e, x, y, node, view) => { |
|
|
|
|
|
console.log(node.id) |
|
|
getProcessBom(node.id) |
|
|
getProcessBom(node.id) |
|
|
getConfigProcessWorkstation(node.id) |
|
|
getConfigProcessWorkstation(node.id) |
|
|
getConfigProcessWorker(node.id) |
|
|
getConfigProcessWorker(node.id) |
|
|