diff --git a/src/views/hotwork_cfd/hotwork/components/list.vue b/src/views/hotwork_cfd/hotwork/components/list.vue index 969c5bf..d12291b 100644 --- a/src/views/hotwork_cfd/hotwork/components/list.vue +++ b/src/views/hotwork_cfd/hotwork/components/list.vue @@ -67,18 +67,16 @@ 已作废(未进行气体检测) - +
-
- - -
+
@@ -168,7 +166,6 @@
@@ -394,6 +391,37 @@ export default { goDetail(id) { this.$parent.activeName = 'Detail' this.$parent.HOTWORK_ID = id + }, + handleDelete(row) { + if ((+row.APPLY_STATUS) >= 7) { + this.$message({ + message: '数据已到验收阶段,暂不支持删除', + type: 'error' + }) + } else { + this.$confirm('是否确定删除此条数据', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.$message({ + type: 'success', + message: '删除成功!' + }) + this.listLoading = true + requestFN( + '/hotwork/cfd/deleteInFlow', { HOTWORK_ID: row.HOTWORK_ID } + ).then((data) => { + this.$message.error('删除成功') + this.listLoading = false + this.getList() + }).catch((e) => { + this.listLoading = false + }) + }).catch(() => { + this.$message({ type: 'info', message: '已取消删除' }) + }) + } } } }