Browse Source

打开弹窗,默认展示第一个工序的数据

master_hella_20240701
TengXF 6 months ago
parent
commit
75b6214f16
  1. 15
      src/views/mes/orderDay/components/schedule.vue

15
src/views/mes/orderDay/components/schedule.vue

@ -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("计划发布失败!")
})
}
//

Loading…
Cancel
Save