| | |
| | | this.outLoading = true |
| | | exportOutManageRecordCancel(this.queryParams).then(res => { |
| | | this.outLoading = false |
| | | if (res.code == 201) return this.$message.error('导出失败') |
| | | let url = this.javaApi + '/word/' + res.data |
| | | this.$download.saveAs(url, "作废文件销毁记录"); |
| | | this.$download.downloadFileFromUrl(res.data, "作废文件销毁记录"); |
| | | }) |
| | | }, |
| | | getList() { |
| | |
| | | if (this.title == '新增') { |
| | | addManageRecordCancel(obj).then(res => { |
| | | this.addLoading = false |
| | | if (res.code == 201) { |
| | | return |
| | | } |
| | | this.addDialogVisible = false |
| | | this.$message({ |
| | | type: 'success', |
| | |
| | | } else { |
| | | doManageRecordCancel(obj).then(res => { |
| | | this.addLoading = false |
| | | if (res.code == 201) { |
| | | return |
| | | } |
| | | this.addDialogVisible = false |
| | | this.$message({ |
| | | type: 'success', |
| | |
| | | if (action === 'confirm') { |
| | | // 点击“确定”按钮,允许关闭 |
| | | ratifyManageRecordCancel({ id: row.id, ratifyState: '通过' }).then(res => { |
| | | if (res.code === 201) return |
| | | this.refreshTable() |
| | | done(); |
| | | this.$message({ |
| | |
| | | } else if (action === 'cancel') { |
| | | // 点击“取消”按钮,不允许关闭 |
| | | ratifyManageRecordCancel({ id: row.id, ratifyState: '不通过' }).then(res => { |
| | | if (res.code === 201) return |
| | | this.refreshTable() |
| | | done(); |
| | | this.$message({ |
| | |
| | | }) |
| | | .then(() => { |
| | | delManageRecordCancel({ id: row.id }).then((res) => { |
| | | if (res.code == 201) return; |
| | | this.$message.success("删除成功"); |
| | | this.refresh(); |
| | | }); |