| | |
| | | } |
| | | }) |
| | | } else { |
| | | console.log(this.selProductData) |
| | | getUpdateSalesDetails(params).then((res) => { |
| | | console.log(res) |
| | | this.editConfig.visible = false |
| | |
| | | this.tableData = item.products |
| | | this.tableData.map((item, index) => { |
| | | item.productId = index + 1 |
| | | this.selProductData.forEach((key) => { |
| | | if (item.number === key.number) { |
| | | item.amount = key.amount |
| | | item.id = key.id |
| | | } |
| | | }) |
| | | this.productTableList.tableData = item.products |
| | | }) |
| | | this.productTableList.tableData = this.tableData |
| | | this.selProductData.forEach((key) => { |
| | | this.tableData.forEach((row) => { |
| | | if (key.number === row.number) { |