| | |
| | | } else { |
| | | let selIndex = 0 |
| | | this.tableList.tableData.map((ite, index) => { |
| | | if (ite.id === row.id) { |
| | | // ite.id 是上架规则的, ite.productId是库存调整的 |
| | | if (ite.id === row.id&&ite.id!=undefined&&row.id!=undefined) { |
| | | selIndex = index |
| | | ite.productId = item.id |
| | | ite.productName = item.name |
| | | ite.categoryId = item.categoryId |
| | | ite.productCategory = item.categoryName |
| | | ite.amount = item.amount |
| | | ite.unit = item.unit |
| | | }else if(ite.productId===row.productId){ |
| | | selIndex = index |
| | | ite.productId = item.id |
| | | ite.productName = item.name |
| | |
| | | }, |
| | | // 行点击 |
| | | tableRowClick(row) { |
| | | this.locacionName = row.location.name |
| | | if (this.isReorder) { |
| | | this.locacionName = row.location.name |
| | | } |
| | | this.$emit("tableRowClick", row, row.index) |
| | | }, |
| | | // 单选行相关 |