| | |
| | | @tableRowClick="tableRowClick" |
| | | > |
| | | <template slot="tableButton"> |
| | | <el-table-column label="操作" width="180" fixed="right" align="center"> |
| | | <el-table-column label="操作" width="180" align="center"> |
| | | <template slot-scope="scope"> |
| | | <span v-if="scope.row.isEdit" @click.stop="handleHistoryClick(scope.row)" class="yes-cursor"> |
| | | <i class="el-icon-refresh-left"></i> |
| | |
| | | ...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 |