|
|
@ -378,12 +378,18 @@ const getProcessBom=async (code:any) => { |
|
|
|
let res = await orderDayconfigApi.getOrderDayBomByOrder(queryParams) |
|
|
|
materialsData.value=res |
|
|
|
} |
|
|
|
const currentStartNode = ref({ |
|
|
|
id:'' |
|
|
|
}) |
|
|
|
//获取配置的工艺路线信息 |
|
|
|
const getProcessroute = async () => { |
|
|
|
let res = await orderDayconfigApi.getConfigProcessRoute(queryParams) |
|
|
|
//console.log('ddddd',res) |
|
|
|
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) |
|
|
|
} |
|
|
|
//获取配置的工序信息 |
|
|
@ -407,6 +413,7 @@ const getConfigProcessEquipment= async (code:any) => { |
|
|
|
equipmentData.value = await orderDayconfigApi.getConfigProcessEquipment(queryParams) |
|
|
|
} |
|
|
|
const nodeClick = (e, x, y, node, view) => { |
|
|
|
console.log(node.id) |
|
|
|
getProcessBom(node.id) |
|
|
|
getConfigProcessWorkstation(node.id) |
|
|
|
getConfigProcessWorker(node.id) |
|
|
@ -481,14 +488,14 @@ const doPublishPlan= ()=>{ |
|
|
|
} |
|
|
|
|
|
|
|
let res = OrderDayApi.publishPlan(data) |
|
|
|
|
|
|
|
|
|
|
|
res.then(()=>{ |
|
|
|
message.success("计划发布成功") |
|
|
|
}).catch(()=>{ |
|
|
|
//console.log("---doPublishPlan-- 458--",res.msg) |
|
|
|
message.error("计划发布失败!") |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
// 弹层确定返回所选数据 |
|
|
|