| | |
| | | ...item, |
| | | isSet: false, |
| | | isEdit: true, |
| | | editable: true |
| | | editable: true, |
| | | adjustAmount: 0 |
| | | } |
| | | }) |
| | | this.tableList.tableData = list || [] |
| | |
| | | this.operationId = 0 |
| | | this.currentRowId = 0 |
| | | this.countId++ |
| | | this.tableData.push({ |
| | | this.tableData.unshift({ |
| | | countId: this.countId, |
| | | amount: 0, |
| | | adjustAmount: 0, |
| | |
| | | item.isEdit = true |
| | | }) |
| | | } else { |
| | | this.tableData.splice(this.tableData.length - 1, 1) |
| | | this.tableData.splice(0, 1) |
| | | } |
| | | this.addTitle = "新建" |
| | | this.showDiscard = false |
| | |
| | | this.isRowClick = false |
| | | this.currentRowId = 0 |
| | | this.countId++ |
| | | this.tableData.push({ |
| | | this.tableData.unshift({ |
| | | countId: this.countId, |
| | | areaId: 0, |
| | | areaName: "", |
| | |
| | | item.isEdit = true |
| | | }) |
| | | } else { |
| | | this.tableData.splice(this.tableData.length - 1, 1) |
| | | this.tableData.splice(0, 1) |
| | | } |
| | | this.addTitle = "新建" |
| | | this.showDiscard = false |