From 26f53ab96bc6a8f709dee5e36d65c13ec9aa4d1e Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Thu, 20 Mar 2025 09:56:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base-vue/src/views/modules/tickets/detail.vue | 28 ++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/base-vue/src/views/modules/tickets/detail.vue b/base-vue/src/views/modules/tickets/detail.vue index 2a9ef3f..43d1356 100644 --- a/base-vue/src/views/modules/tickets/detail.vue +++ b/base-vue/src/views/modules/tickets/detail.vue @@ -2,7 +2,7 @@
{{ ticketsData.ticketsId }} @@ -81,6 +81,32 @@ currentChangeHandle (val) { this.pageIndex = val this.getDataList() + }, + doOperate () { + this.$confirm(`确定进行审批操作?`, '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.$http({ + url: this.$http.adornUrl('/flw/instance/completeFlow'), + method: 'post', + data: this.$http.adornData({ticketsId: this.ticketsData.ticketsId, processInstance: this.ticketsData.processInstance}) + }).then(({data}) => { + if (data && data.code === 0) { + this.$message({ + message: '操作成功', + type: 'success', + duration: 1500, + onClose: () => { + this.$router.push('/tickets-tickets') + } + }) + } else { + this.$message.error(data.msg) + } + }) + }).catch(() => {}) } } }