| | |
| | | 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) |
| | | }) |
| | |
| | | handleSelectionChange (selectedRows) { |
| | | // console.log(selectedRows) |
| | | this.selectedAllMaterails[this.pagination.pageIndex] = selectedRows |
| | | console.log(this.selectedMaterails); |
| | | }, |
| | | selectData () { |
| | | console.log(this.selectedAllMaterails) |
| | |
| | | stockNum: item.num, |
| | | unitName: item.unitName, |
| | | locationName: item.locationName, |
| | | locationId: item.locationId, |
| | | procedureName: item.procedureName, |
| | | id: item.id, |
| | | // 需传参数 |
| | |
| | | }) |
| | | } |
| | | } |
| | | // console.log('确定', this.form.woutBoundDetailBeans) |
| | | // console.log('确定', this.form.wtransferDetailBeanList) |
| | | this.isSelectMaterial = false |
| | | this.pagination.pageIndex = 1 |
| | | }, |