From 4828b52c73dc3b4a7573ac9eb80547f33e685366 Mon Sep 17 00:00:00 2001 From: new_new_new <8454518+new-twice@user.noreply.gitee.com> Date: Tue, 9 Jun 2026 00:26:43 +0000 Subject: [PATCH] =?UTF-8?q?!24=20feat(bpm):=20=E6=96=B0=E5=A2=9E=E5=8F=91?= =?UTF-8?q?=E8=B5=B7=E9=94=80=E5=8F=B7=E6=B5=81=E7=A8=8B=E5=8A=9F=E8=83=BD?= =?UTF-8?q?,=E6=B5=81=E7=A8=8Bcode=E4=B8=BAdq=5Fdelete=5F01?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(bpm): 新增发起销号流程功能,流程code为dq_delete_01 --- .../dq/inspectTask/DqInspectTaskList.vue | 39 +++++++++++++++++-- 1 file changed, 35 insertions(+), 4 deletions(-) diff --git a/src/views/dq/inspectTask/DqInspectTaskList.vue b/src/views/dq/inspectTask/DqInspectTaskList.vue index 00c2486..52b42c3 100644 --- a/src/views/dq/inspectTask/DqInspectTaskList.vue +++ b/src/views/dq/inspectTask/DqInspectTaskList.vue @@ -261,6 +261,12 @@ onClick: handleProcess.bind(null, record), }); } + if (record.bpmStatus && record.bpmStatus !== '1') { + actions.push({ + label: '发起销号流程', + onClick: handleDeleteProcess.bind(null, record), + }); + } return actions; } /** @@ -298,12 +304,17 @@ const FLOW_CODE = 'inspect_flow_create_01'; const FLOW_NAME = '整改任务'; const BUSINESS_TABLE_NAME = 'dq_inspect_task'; - const FORM_URL = 'dqinspecttask/components/DqInspectTaskBPMForm?showProcessHandle=0&showFeedbackInfo=1'; + const FORM_URL = 'dq/inspectTask/components/DqInspectTaskBPMForm?showProcessHandle=1&showFeedbackInfo=1'; + const DELETE_FLOW_CODE = 'dq_delete_01'; + const DELETE_FLOW_NAME = '销号'; + const DELETE_FORM_URL = 'dq/inspectTask/components/DqInspectTaskBPMForm?showProcessHandle=1&showFeedbackInfo=1'; + const currentScheduleFlowCode = ref(''); /** * 发起流程 */ function handleProcess(record) { + currentScheduleFlowCode.value = FLOW_CODE; flowScheduleModalRef.value?.open({ title: '发起整改任务流程', payload: { record }, @@ -315,11 +326,31 @@ }); } + /** + * 发起销号流程 + */ + function handleDeleteProcess(record) { + currentScheduleFlowCode.value = DELETE_FLOW_CODE; + flowScheduleModalRef.value?.open({ + title: '发起销号流程', + payload: { record }, + deptOptions: getDeptOptions(record), + showSuoleaderFields: true, + isNeedAppro: record.isNeedAppro, + supDeptleaderid: record.supDeptleaderid, + supDeptleaderName: record.supDeptleaderid_dictText, + }); + } + /** * 流程调度确认 */ async function handleFlowScheduleConfirm({ payload, options }) { const record = payload?.record || {}; + const isDeleteFlow = currentScheduleFlowCode.value === DELETE_FLOW_CODE; + const flowCode = isDeleteFlow ? DELETE_FLOW_CODE : FLOW_CODE; + const flowName = isDeleteFlow ? DELETE_FLOW_NAME : FLOW_NAME; + const formUrl = isDeleteFlow ? DELETE_FORM_URL : FORM_URL; const params = { intervalType: options.intervalType, @@ -327,9 +358,9 @@ taskTask: { triggerType: options.triggerType, startTime: options.intervalStartTime, - flowCode: FLOW_CODE, - formUrl: FORM_URL, - flowName: FLOW_NAME, + flowCode, + formUrl, + flowName, jsonData: { ...record }, businessTablename: BUSINESS_TABLE_NAME, businessId: record.id,