From c0aa814aec657022c1fcab9e43524f6ebfea095b Mon Sep 17 00:00:00 2001 From: lizijiee <562949697@qq.com> Date: Tue, 2 Apr 2024 21:52:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BB=BB=E5=8A=A1=E5=8C=85=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E7=82=B9=E5=87=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{PhotoWall.vue => PictureWall.vue} | 0 src/views/worksheet/content/Content.vue | 54 ++++++++++++++++++- 2 files changed, 52 insertions(+), 2 deletions(-) rename src/views/worksheet/components/{PhotoWall.vue => PictureWall.vue} (100%) diff --git a/src/views/worksheet/components/PhotoWall.vue b/src/views/worksheet/components/PictureWall.vue similarity index 100% rename from src/views/worksheet/components/PhotoWall.vue rename to src/views/worksheet/components/PictureWall.vue diff --git a/src/views/worksheet/content/Content.vue b/src/views/worksheet/content/Content.vue index 0737451..6072447 100644 --- a/src/views/worksheet/content/Content.vue +++ b/src/views/worksheet/content/Content.vue @@ -320,7 +320,7 @@ function reject(idOrDesc: string, backId: string, isOther: boolean) { doAudit(param) } -function approvalHandler(items?: any) { +function detailApprovalHandler(items?: any){ let cloneItem: any if (batch.value) { processItems = selectItems.value @@ -371,6 +371,56 @@ function approvalHandler(items?: any) { onNegativeClick: () => { }, }) } +function approvalHandler(items?: any) { + let cloneItem: any + if (batch.value) { + processItems = selectItems.value + } + else if (overTask.value) { + cloneItem = clone(overTask.value) + processItems = [cloneItem] + } + // 任务包图片 => 点击 => 通过/不通过按钮 + if (items !== undefined && !(items instanceof PointerEvent)) + processItems = [items] + + const msg = validate(processItems) + + if (msg !== null) { + message.error(msg) + return + } + + const list: any = [] + processItems.forEach((item) => { + list.push({ + formId: item.id, + taskId: item.taskId, + taskName: item.fromTaskName, + }) + }) + + const param = { + result: true, + comment: '', + disposeType: '', + disposeTypeId: '', + failCauseId: '', + failCauseName: '', + flowTaskInfoList: list, + } + + dialog.info({ + title: '确认提示', + content: '确认给该任务审批为【通过】吗?', + positiveText: '确定', + negativeText: '取消', + onPositiveClick: () => { + doAudit(param) + }, + onNegativeClick: () => { }, + }) +} function doAudit(param: any) { audit(param).then((res) => { @@ -489,7 +539,7 @@ function reloadList() {
- +