| | |
| | | slot='action' |
| | | slot-scope='text, record,index' |
| | | > |
| | | <a @click="handleDeleteFake(index)">删除</a> |
| | | <a @click="handleDelete(index)">删除</a> |
| | | </span> |
| | | </a-table> |
| | | <a-button |
| | |
| | | }, |
| | | methods: { |
| | | addHour() { |
| | | this.dataSource.push({ id:this.getUuiD(16),userId: '', maintenanceOrderId: this.dailyMaintenanceOrderId, actualWorkingHourQuota: 0, username: '', realname: '' }) |
| | | this.dataSource.push({ id: this.getUuiD(16), userId: '', maintenanceOrderId: this.dailyMaintenanceOrderId, actualWorkingHourQuota: 0, username: '', realname: '' }) |
| | | }, |
| | | handleCancel() { |
| | | this.$bus.$emit('closeDrawer'); |
| | |
| | | this.disableSubmit = false; |
| | | this.visible = false; |
| | | }, |
| | | handleDeleteFake(index) { |
| | | this.dataSource.splice(index,1); |
| | | // handleDeleteFake(index) { |
| | | // this.dataSource.splice(index,1); |
| | | // }, |
| | | handleDelete(text, record, index) { |
| | | this.dataSource.splice(index, 1); |
| | | }, |
| | | |
| | | handleOk(saveStatus) { |
| | | const that = this |
| | | if (saveStatus == 0) { |
| | |
| | | if (!err) { |
| | | that.confirmLoading = true |
| | | let formData = {} |
| | | formData.maintenanceOrderId = that. specialyMaintenanceOrderId; |
| | | formData.maintenanceOrderId = that.specialyMaintenanceOrderId; |
| | | formData.maintenanceOrderActualWorkingHourList = that.dataSource; |
| | | formData.equipmentId = that.equipmentId; |
| | | let obj = obj = postAction(this.url.confirmHour, formData) |
| | |
| | | this.dataSource = []; |
| | | this.ipagination.current = 1 |
| | | }, |
| | | getUuiD(randomLength){ |
| | | getUuiD(randomLength) { |
| | | return Number( |
| | | Math.random() |
| | | .toString() |