diff --git a/src/views/mes/orderDay/components/schedule.vue b/src/views/mes/orderDay/components/schedule.vue
index 3b31342b3..6b32831df 100644
--- a/src/views/mes/orderDay/components/schedule.vue
+++ b/src/views/mes/orderDay/components/schedule.vue
@@ -53,7 +53,7 @@
- 工序编码:{{currentNode.id}} -工序名称:{{currentNode.attrs.title.text }}
+ 工序编码:{{currentNode.id}} -工序名称:{{currentNode.name }}
@@ -70,7 +70,7 @@
-
+
@@ -89,6 +89,17 @@
+
添加人员
@@ -262,13 +273,15 @@ const dialogVisible = ref(false) // 弹窗的是否展示
const dialogTitle = ref('') // 弹窗的标题
const graphJson =ref()
const currentNode = ref({
- attrs:{
- title:{
- text:''
- }
- },
+ name:'',
id:''
})
+const showMaterialsData=ref() //物料信息分页展示
+const page=ref({
+ total:0,
+ current:1,
+ size:5
+})
/*班组数据*/
const teamData = ref([])
/*班组弹窗搜索条件*/
@@ -314,12 +327,15 @@ const searchTeamList = () => {
}
/** 打开弹窗 */
const open = async (type: string, row?: any, titleName?: any) => {
- currentNode.value.attrs.title.text=''
+ currentNode.value.name=''
currentNode.value.id=''
//首次打开页面,将数据清空
workerData.value = []
equipmentData.value = []
materialsData.value = []
+ showMaterialsData.value=[]
+ page.value.total = 0
+ page.value.current = 1
workstationData.value = []
getOptions()
dialogVisible.value = true
@@ -377,20 +393,27 @@ const getProcessBom=async (code:any) => {
queryParams.processCode=code
let res = await orderDayconfigApi.getOrderDayBomByOrder(queryParams)
materialsData.value=res
+ if(materialsData.value.length>0){
+ page.value.total = materialsData.value.length
+ page.value.current = 1
+ showMaterialsData.value=materialsData.value.slice(0,page.value.size)
+ }
}
-const currentStartNode = ref({
- id:''
-})
+// const currentStartNode = ref({
+// id:''
+// })
//获取配置的工艺路线信息
const getProcessroute = async () => {
let res = await orderDayconfigApi.getConfigProcessRoute(queryParams)
graphJson.value=JSON.parse(res.newGraphData)
+ graph.value?.fromJSON(graphJson.value.cells)
//首次打开弹窗,默认打开一个工序的数据
- currentStartNode.value.id = graphJson.value.cells[0].id
- // 手动触发点击事件
- nodeClick('','','',currentStartNode.value,'')
+ //currentStartNode.value = graphJson.value.cells[0]
currentNode.value = graphJson.value.cells[0]
- graph.value?.fromJSON(graphJson.value.cells)
+ // 手动触发点击事件
+ nodeClick('','','',currentNode.value,'')
+
+
}
//获取配置的工序信息
const getConfigProcessRouteNode= async () => {
@@ -419,7 +442,9 @@ const nodeClick = (e, x, y, node, view) => {
getConfigProcessWorker(node.id)
getConfigProcessEquipment(node.id)
processCode.value = node.id
- currentNode.value=node
+ currentNode.value.id=node.id
+ console.log(node)
+ currentNode.value.name=node.attrs.title.text
}
const searchTableRef = ref()
@@ -685,7 +710,25 @@ const saveUser = async () =>{
const getTeamList = async (params:any) => {
return TeamApi.getTeamPage(params)
}
-
+const handleCurrentChangeM=(value: number)=>{
+ let index=(value-1)*page.value.size
+ page.value.current=value
+ showMaterialsData.value=materialsData.value.slice(index,index+page.value.size)
+
+}
+const handlePrevClickM=(value: number)=>{
+ page.value.current=value-1
+ if(page.value.current==0) {
+ page.value.current=1
+ }
+
+}
+const handleNextClickM=(value: number)=>{
+ page.value.current=value+1
+ if(page.value.current>page.value.total/page.value.size) {
+ page.value.current=page.value.total/page.value.size -1
+ }
+}
defineOptions({ name: 'SechledDetail' })
defineExpose({ open }) // 提供 open 方法,用于打开弹窗
// 传递给父类
diff --git a/src/views/mes/processroute/components/configDialog.vue b/src/views/mes/processroute/components/configDialog.vue
index c10f2af27..571e045fb 100644
--- a/src/views/mes/processroute/components/configDialog.vue
+++ b/src/views/mes/processroute/components/configDialog.vue
@@ -12,8 +12,8 @@
- {{ titleValueRef }}
- [{{ titleNameRef }}]
+ {{ titleNameRef }}
+ [{{ titleValueRef }}]
@@ -37,7 +37,7 @@
>添加工序
-
+
@@ -48,6 +48,17 @@
+
@@ -81,8 +92,9 @@
工艺路线基本信息
- 工艺路线名称:{{ productData.name }}
- 工艺路线编码:{{ productData.name }}
+
+ 工艺路线名称:{{titleNameRef}}
+ 工艺路线编码:{{titleValueRef}}
产品名称:{{ productData.name }}
产品编码:{{ productData.code }}
产品描述:{{ productData.desc1 }}
@@ -92,23 +104,34 @@
>