Commit db9aec71 authored by jingnan's avatar jingnan 👀

验收入库流程切换id未及时更新bug修改

parent 70e4f0d0
...@@ -161,6 +161,12 @@ export default { ...@@ -161,6 +161,12 @@ export default {
this.$set(this.topLayConfig, 'layKey', 'flowView_view') this.$set(this.topLayConfig, 'layKey', 'flowView_view')
} }
} }
},
'basicData.id': {
immediate: true,
handler(val) {
val && this.searchInStorageRequestItem()
}
} }
}, },
created() { created() {
...@@ -168,9 +174,6 @@ export default { ...@@ -168,9 +174,6 @@ export default {
this.$bus.$on('refreshPurchaseData', this.handleCustomEvent) this.$bus.$on('refreshPurchaseData', this.handleCustomEvent)
}, },
mounted() { mounted() {
this.$nextTick(() => {
this.searchInStorageRequestItem()
})
this.$bus.$on('refreshDataAndClose', (data) => { this.$bus.$on('refreshDataAndClose', (data) => {
this.refreshKey++ this.refreshKey++
this.handleCustomEvent() this.handleCustomEvent()
...@@ -246,7 +249,7 @@ export default { ...@@ -246,7 +249,7 @@ export default {
] ]
} }
} }
this.tableData = []
post('InStorageRequestItem/treeSearch', param).then(res => { post('InStorageRequestItem/treeSearch', param).then(res => {
const data = res.items const data = res.items
this.treeTableNoArrange(data) this.treeTableNoArrange(data)
......
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