Commit 8d98f569 by chenwq

fix(allocation): 修复编辑调拨时表格数据未正确刷新的问题

调整表单合并逻辑,显式指定字段避免属性覆盖。同时将表格刷新操作移至数据准备完成后,确保渲染正确的数据。
1 parent ec85fc3c
...@@ -434,7 +434,12 @@ export default { ...@@ -434,7 +434,12 @@ export default {
this.editAllocationForm.merchantId = this.editAllocationForm.callOutMerchantId this.editAllocationForm.merchantId = this.editAllocationForm.callOutMerchantId
let _form = { let _form = {
...this.searchForm, ...this.searchForm,
...this.editAllocationForm yqMerchantId: this.editAllocationForm.yqMerchantId,
merchantId: this.editAllocationForm.merchantId,
callOutMerchantId: this.editAllocationForm.callOutMerchantId,
callOutYqMerchantId: this.editAllocationForm.callOutYqMerchantId,
callInMerchantId: this.editAllocationForm.callInMerchantId,
callInYqMerchantId: this.editAllocationForm.callInYqMerchantId
} }
this.searchFormSearch = this.$common.utils.deepClone(_form) this.searchFormSearch = this.$common.utils.deepClone(_form)
resolve() resolve()
...@@ -576,7 +581,6 @@ export default { ...@@ -576,7 +581,6 @@ export default {
this.editAllocationForm.callInMerchantId = this.editAllocationForm.callInMerchantId + '' this.editAllocationForm.callInMerchantId = this.editAllocationForm.callInMerchantId + ''
this.chooseDataList = res.stockAllocateDetailList this.chooseDataList = res.stockAllocateDetailList
// this.getListApi = this.$apis.stockManage.stockRemainPage // this.getListApi = this.$apis.stockManage.stockRemainPage
this.$refs.allocationTable.refreshTable()
this.chooseDataList.forEach((item, idx) => { this.chooseDataList.forEach((item, idx) => {
this.setDisabled(item) this.setDisabled(item)
}) })
...@@ -588,6 +592,7 @@ export default { ...@@ -588,6 +592,7 @@ export default {
// console.log(this.editData, 'this.editData') // console.log(this.editData, 'this.editData')
this.getServicemerchantrefList(this.editAllocationForm.callOutYqMerchantId, 'out') this.getServicemerchantrefList(this.editAllocationForm.callOutYqMerchantId, 'out')
this.getServicemerchantrefList(this.editAllocationForm.callInYqMerchantId, 'in') this.getServicemerchantrefList(this.editAllocationForm.callInYqMerchantId, 'in')
this.$refs.allocationTable.refreshTable()
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!