From 4522d10cfec3d7f110843c74cdb3d2ce77c44451 Mon Sep 17 00:00:00 2001 From: liujun Date: Mon, 5 Feb 2024 16:49:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=8A=A8=E7=81=AB=E6=9C=AA?= =?UTF-8?q?=E9=80=9A=E7=9F=A5app=E7=AB=AFbug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hotwork_cfd/hotwork/components/list.vue | 40 ++++++++++++++++--- 1 file changed, 34 insertions(+), 6 deletions(-) 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: '已取消删除' }) + }) + } } } }