From 5e2996c9e53f125323042b7cb9c56d540d8075d8 Mon Sep 17 00:00:00 2001 From: weiwei Date: Tue, 25 Feb 2025 16:15:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E5=AE=A1=E6=89=B9=E6=8A=BD?= =?UTF-8?q?=E5=B1=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supermarketerp/smErpInventoryRecords.ts | 1 + .../taskDrawer}/agree.vue | 0 src/components/taskDrawer/index.vue | 123 ++++++++++++++++++ .../taskDrawer}/refuse.vue | 0 .../taskDrawer}/transfer.vue | 0 src/components/taskDrawer/types.ts | 24 ++++ src/views/flow/task/handler/types.ts | 22 ---- src/views/flow/task/pending.vue | 113 +++------------- src/views/supermarket/smSpu/form.vue | 39 ++---- .../smErpCgPlan/cgPlanOption.vue | 1 + .../wallet/wallet-recharge-apply/index.vue | 34 +++++ 11 files changed, 207 insertions(+), 150 deletions(-) rename src/{views/flow/task/handler => components/taskDrawer}/agree.vue (100%) create mode 100644 src/components/taskDrawer/index.vue rename src/{views/flow/task/handler => components/taskDrawer}/refuse.vue (100%) rename src/{views/flow/task/handler => components/taskDrawer}/transfer.vue (100%) create mode 100644 src/components/taskDrawer/types.ts delete mode 100644 src/views/flow/task/handler/types.ts diff --git a/src/api/supermarketerp/smErpInventoryRecords.ts b/src/api/supermarketerp/smErpInventoryRecords.ts index 49db3e5..f1657a9 100644 --- a/src/api/supermarketerp/smErpInventoryRecords.ts +++ b/src/api/supermarketerp/smErpInventoryRecords.ts @@ -1,4 +1,5 @@ import request from "/@/utils/request" + export function fetchList(query?: Object) { return request({ url: "/supermarket/smErpInventoryRecords/page", diff --git a/src/views/flow/task/handler/agree.vue b/src/components/taskDrawer/agree.vue similarity index 100% rename from src/views/flow/task/handler/agree.vue rename to src/components/taskDrawer/agree.vue diff --git a/src/components/taskDrawer/index.vue b/src/components/taskDrawer/index.vue new file mode 100644 index 0000000..4279c3d --- /dev/null +++ b/src/components/taskDrawer/index.vue @@ -0,0 +1,123 @@ + + + diff --git a/src/views/flow/task/handler/refuse.vue b/src/components/taskDrawer/refuse.vue similarity index 100% rename from src/views/flow/task/handler/refuse.vue rename to src/components/taskDrawer/refuse.vue diff --git a/src/views/flow/task/handler/transfer.vue b/src/components/taskDrawer/transfer.vue similarity index 100% rename from src/views/flow/task/handler/transfer.vue rename to src/components/taskDrawer/transfer.vue diff --git a/src/components/taskDrawer/types.ts b/src/components/taskDrawer/types.ts new file mode 100644 index 0000000..50b91d3 --- /dev/null +++ b/src/components/taskDrawer/types.ts @@ -0,0 +1,24 @@ +// First let's create types for our form data +export interface FlowFormItem { + id: string + type: string + props: { + value: any + [key: string]: any + } +} + +export interface TaskData { + processName: string + taskId: string + processInstanceId: string + flowId: string +} + +export interface TaskSubmitParam { + paramMap: Record + taskId: string + taskLocalParamMap: { + approveDesc: string + } +} diff --git a/src/views/flow/task/handler/types.ts b/src/views/flow/task/handler/types.ts deleted file mode 100644 index 32cbeeb..0000000 --- a/src/views/flow/task/handler/types.ts +++ /dev/null @@ -1,22 +0,0 @@ -// First let's create types for our form data -export interface FlowFormItem { - id: string - type: string - props: { - value: any - [key: string]: any - } -} - -export interface TaskData { - taskId: string - nodeId: string -} - -export interface TaskSubmitParam { - paramMap: Record - taskId: string - taskLocalParamMap: { - approveDesc: string - } -} \ No newline at end of file diff --git a/src/views/flow/task/pending.vue b/src/views/flow/task/pending.vue index 5296a68..5c64ea4 100644 --- a/src/views/flow/task/pending.vue +++ b/src/views/flow/task/pending.vue @@ -52,73 +52,35 @@ - - - - - - - - - - - - - - - + +