From 1f4e7d0f73a73e7350cf5a1df279d5f30904c5d5 Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期三, 06 十二月 2023 08:41:32 +0800 Subject: [PATCH] bug --- web_standard/src/components/ext/OperaWrollOutStore.vue | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/web_standard/src/components/ext/OperaWrollOutStore.vue b/web_standard/src/components/ext/OperaWrollOutStore.vue index 6b4f08e..f5445a0 100644 --- a/web_standard/src/components/ext/OperaWrollOutStore.vue +++ b/web_standard/src/components/ext/OperaWrollOutStore.vue @@ -581,6 +581,18 @@ this.pagination.pageIndex = res.page this.tempMaterials = res.records this.isSelectMaterial = true + if (this.selectedAllMaterails[this.pagination.pageIndex]) { + for (const item of this.selectedAllMaterails[this.pagination.pageIndex]) { + this.$nextTick(() => { + this.tempMaterials.forEach(tempItem => { + if (tempItem.id === item.id) { + console.log(tempItem.mmodelUnionName); + this.$refs.materials.toggleRowSelection(tempItem, true) + } + }) + }) + } + } }).catch(err => { this.$tip.error(err) }) @@ -592,6 +604,7 @@ handleSelectionChange (selectedRows) { // console.log(selectedRows) this.selectedAllMaterails[this.pagination.pageIndex] = selectedRows + console.log(this.selectedMaterails); }, selectData () { console.log(this.selectedAllMaterails) @@ -604,6 +617,7 @@ stockNum: item.num, unitName: item.unitName, locationName: item.locationName, + locationId: item.locationId, procedureName: item.procedureName, id: item.id, // 闇�浼犲弬鏁� @@ -618,7 +632,7 @@ }) } } - // console.log('纭畾', this.form.woutBoundDetailBeans) + // console.log('纭畾', this.form.wtransferDetailBeanList) this.isSelectMaterial = false this.pagination.pageIndex = 1 }, -- Gitblit v1.9.3