Commit 1bb7646b authored by jingnan's avatar jingnan 👀

采购入库新增完成后主界面未刷新bug修改

parent b68b9da2
...@@ -89,7 +89,6 @@ export default { ...@@ -89,7 +89,6 @@ export default {
if ((!query || query.length < 3) && !id) return if ((!query || query.length < 3) && !id) return
if (this.remoteFlag) { if (this.remoteFlag) {
this.remoteFlag = false this.remoteFlag = false
const requestUrl = 'ExtDxProductWorkUnit'
const params = { const params = {
'pageFrom': 1, 'pageFrom': 1,
'pageSize': 10, 'pageSize': 10,
...@@ -107,7 +106,7 @@ export default { ...@@ -107,7 +106,7 @@ export default {
} }
this.loading = true this.loading = true
this.options = [] this.options = []
this.$api.searchApi(requestUrl, params).then(res => { this.$api.searchApi('ExtDxProductWorkUnit', params).then(res => {
if (res.items && res.items.content.length) { if (res.items && res.items.content.length) {
this.options = res.items.content.map((item) => { this.options = res.items.content.map((item) => {
return { return {
......
...@@ -488,6 +488,7 @@ export default { ...@@ -488,6 +488,7 @@ export default {
// query: { title: '采购入库', menuRootAppId: '1626781924331' } // query: { title: '采购入库', menuRootAppId: '1626781924331' }
// }) // })
this.$emit('cancel') this.$emit('cancel')
this.$bus.$emit('refreshPurchaseData')
}, },
initData() { initData() {
this.getInventoryRequest() this.getInventoryRequest()
......
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