Commit 2e7e86e1 authored by jingnan's avatar jingnan 👀

站位计划维护每个站位计划下发增加转移工作包联调

parent fdbe82eb
......@@ -67,7 +67,7 @@
<dee-as-com
ref="detailCom"
:key="layConfig.typeName"
:basic-data="{activeNodeData}"
:basic-data="{activeNodeData,requestParams}"
:lay-config="layConfig"
table-height="calc(100vh - 200px)"
@row-click="rowClick"
......@@ -77,7 +77,7 @@
<dee-as-com
ref="detailCom2"
:key="layConfig.typeName"
:basic-data="{activeNodeData}"
:basic-data="{activeNodeData,requestParams}"
:lay-config="layConfig1"
table-height="calc(100vh - 200px)"
@row-click="rowClick"
......@@ -190,7 +190,8 @@ export default {
activeTab: '0',
activeNodeData: {},
currentNodekey: '',
areaUpdatingLists: {}
areaUpdatingLists: {},
requestParams: []
}
},
watch: {
......@@ -575,12 +576,12 @@ export default {
this.$nextTick(() => {
if (this.activeTab === '0') {
if (this.$refs.detailCom.$refs.asCom && this.$refs.detailCom.$refs.asCom.getData) {
this.$refs.detailCom.$refs.asCom.getData(this.activeNodeData)
this.$refs.detailCom.$refs.asCom.getData(this.activeNodeData.level !== 4 ? this.activeNodeData : null)
this.$emit('getMissData', null)
}
} else if (this.activeTab === '1') {
if (this.$refs.detailCom2.$refs.asCom && this.$refs.detailCom2.$refs.asCom.getData) {
this.$refs.detailCom2.$refs.asCom.getData(this.activeNodeData)
this.$refs.detailCom2.$refs.asCom.getData(this.activeNodeData.level !== 4 ? this.activeNodeData : null)
this.$emit('getMissData', null)
}
} else if (this.activeTab === '2') {
......@@ -592,6 +593,7 @@ export default {
})
},
handleNodeClick(data, node) {
this.requestParams = []
if (data.name === '转移工作包') {
this.getQueryRetention(data, node)
} else {
......@@ -619,6 +621,30 @@ export default {
}
})
}
if (node.level === 4) {
this.requestParams = [
`sorties=${this.form.sortiesName}`,
`position=${data.parentPosition}`,
`assemblyUnit=${data.serialNumber}`
]
this.$nextTick(() => {
let tableRefName = ''
switch (this.activeTab) {
case '0':
tableRefName = 'detailCom'
break
case '1':
tableRefName = 'detailCom2'
break
default:
break
}
if (this.$refs[tableRefName] && this.$refs[tableRefName].$refs.asCom && this.$refs[tableRefName].$refs.asCom.getData) {
this.$refs[tableRefName].$refs.asCom.getData()
this.$emit('getMissData', null)
}
})
}
}
},
getQueryRetention(data, node) {
......@@ -665,6 +691,7 @@ export default {
.then((res) => {
const newChildren = res.items && res.items.map(item => {
item.leaf = true
item.parentPosition = node.parent.data && node.parent.data.serialNumber || ''
return item
})
if (newChildren) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment