@vef-framework-react/approval 2.30.0 → 2.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/dist/cjs/api/admin-api.cjs +1 -1
  2. package/dist/cjs/api/flow-api.cjs +1 -1
  3. package/dist/cjs/api/instance-api.cjs +1 -1
  4. package/dist/cjs/api/my-api.cjs +1 -1
  5. package/dist/cjs/components/action-dialog/index.cjs +1 -1
  6. package/dist/cjs/components/action-dialog/user-selection.cjs +1 -0
  7. package/dist/cjs/components/annotations/composers.cjs +1 -0
  8. package/dist/cjs/components/annotations/field-anchor.cjs +1 -0
  9. package/dist/cjs/components/annotations/index.cjs +1 -0
  10. package/dist/cjs/components/annotations/use-annotations.cjs +1 -0
  11. package/dist/cjs/components/business-form.cjs +1 -0
  12. package/dist/cjs/components/capped-modal.cjs +1 -0
  13. package/dist/cjs/components/detail/action-modals.cjs +1 -1
  14. package/dist/cjs/components/detail/admin.cjs +1 -1
  15. package/dist/cjs/components/detail/index.cjs +1 -1
  16. package/dist/cjs/components/flow-graph/node.cjs +1 -1
  17. package/dist/cjs/components/flow-graph/people-overlay.cjs +1 -1
  18. package/dist/cjs/components/form-panel/index.cjs +1 -1
  19. package/dist/cjs/components/format.cjs +1 -1
  20. package/dist/cjs/components/index.cjs +1 -1
  21. package/dist/cjs/components/instance-list-title.cjs +1 -0
  22. package/dist/cjs/components/principal/index.cjs +1 -1
  23. package/dist/cjs/components/status/colors.cjs +1 -1
  24. package/dist/cjs/components/status/index.cjs +1 -1
  25. package/dist/cjs/components/status/labels.cjs +1 -1
  26. package/dist/cjs/components/timeline/index.cjs +1 -1
  27. package/dist/cjs/components/user/index.cjs +1 -1
  28. package/dist/cjs/components/void/direct-dialog.cjs +1 -0
  29. package/dist/cjs/components/void/form.cjs +1 -0
  30. package/dist/cjs/components/void/request-renderer.cjs +1 -0
  31. package/dist/cjs/components/void/summary.cjs +1 -0
  32. package/dist/cjs/components/void/use-refresh.cjs +1 -0
  33. package/dist/cjs/index.cjs +1 -1
  34. package/dist/cjs/pages/admin-page/apply-handovers.cjs +1 -0
  35. package/dist/cjs/pages/admin-page/index.cjs +1 -1
  36. package/dist/cjs/pages/admin-page/instances.cjs +1 -1
  37. package/dist/cjs/pages/admin-page/metrics.cjs +1 -1
  38. package/dist/cjs/pages/admin-page/tasks.cjs +1 -1
  39. package/dist/cjs/pages/category-page/index.cjs +1 -1
  40. package/dist/cjs/pages/delegation-page/index.cjs +1 -1
  41. package/dist/cjs/pages/flow-page/columns.cjs +1 -1
  42. package/dist/cjs/pages/flow-page/designer/basic-step.cjs +1 -1
  43. package/dist/cjs/pages/flow-page/designer/field-catalog.cjs +1 -0
  44. package/dist/cjs/pages/flow-page/designer/form-step.cjs +1 -1
  45. package/dist/cjs/pages/flow-page/designer/index.cjs +1 -1
  46. package/dist/cjs/pages/flow-page/designer/review-step.cjs +1 -1
  47. package/dist/cjs/pages/flow-page/designer/types.cjs +1 -1
  48. package/dist/cjs/pages/flow-page/designer/void-policy.cjs +1 -0
  49. package/dist/cjs/pages/flow-page/index.cjs +1 -1
  50. package/dist/cjs/pages/index.cjs +1 -1
  51. package/dist/cjs/pages/initiate-page/index.cjs +1 -1
  52. package/dist/cjs/pages/initiate-page/start-drawer.cjs +1 -1
  53. package/dist/cjs/pages/my-instances-page/index.cjs +1 -1
  54. package/dist/cjs/pages/task-center-page/index.cjs +1 -1
  55. package/dist/cjs/permissions.cjs +1 -1
  56. package/dist/cjs/plugins/index.cjs +1 -1
  57. package/dist/cjs/types/annotation.cjs +1 -0
  58. package/dist/cjs/types/detail.cjs +1 -0
  59. package/dist/cjs/types/enums.cjs +1 -1
  60. package/dist/cjs/types/index.cjs +1 -1
  61. package/dist/cjs/types/void.cjs +1 -0
  62. package/dist/es/api/admin-api.js +5 -2
  63. package/dist/es/api/category-api.js +1 -1
  64. package/dist/es/api/delegation-api.js +1 -1
  65. package/dist/es/api/flow-api.js +19 -15
  66. package/dist/es/api/index.js +1 -1
  67. package/dist/es/api/instance-api.js +3 -1
  68. package/dist/es/api/my-api.js +2 -1
  69. package/dist/es/api/query.js +1 -1
  70. package/dist/es/components/action-dialog/index.js +64 -41
  71. package/dist/es/components/action-dialog/user-selection.js +48 -0
  72. package/dist/es/components/annotations/composers.js +231 -0
  73. package/dist/es/components/annotations/field-anchor.js +18 -0
  74. package/dist/es/components/annotations/index.js +271 -0
  75. package/dist/es/components/annotations/use-annotations.js +77 -0
  76. package/dist/es/components/business-form.js +36 -0
  77. package/dist/es/components/capped-modal.js +27 -0
  78. package/dist/es/components/detail/action-modals.js +120 -132
  79. package/dist/es/components/detail/admin.js +109 -74
  80. package/dist/es/components/detail/drawer.js +1 -1
  81. package/dist/es/components/detail/index.js +298 -233
  82. package/dist/es/components/flow-graph/index.js +1 -1
  83. package/dist/es/components/flow-graph/node.js +26 -26
  84. package/dist/es/components/flow-graph/people-overlay.js +104 -100
  85. package/dist/es/components/flow-graph/people.js +1 -1
  86. package/dist/es/components/form-panel/index.js +10 -9
  87. package/dist/es/components/format.js +7 -4
  88. package/dist/es/components/icon.js +1 -1
  89. package/dist/es/components/index.js +11 -8
  90. package/dist/es/components/instance-list-title.js +31 -0
  91. package/dist/es/components/principal/index.js +4 -2
  92. package/dist/es/components/status/colors.js +3 -2
  93. package/dist/es/components/status/index.js +14 -14
  94. package/dist/es/components/status/labels.js +7 -3
  95. package/dist/es/components/timeline/index.js +79 -69
  96. package/dist/es/components/user/index.js +32 -25
  97. package/dist/es/components/void/direct-dialog.js +62 -0
  98. package/dist/es/components/void/form.js +100 -0
  99. package/dist/es/components/void/request-renderer.js +91 -0
  100. package/dist/es/components/void/summary.js +142 -0
  101. package/dist/es/components/void/use-refresh.js +22 -0
  102. package/dist/es/index.js +33 -27
  103. package/dist/es/pages/admin-page/apply-handovers.js +185 -0
  104. package/dist/es/pages/admin-page/index.js +50 -43
  105. package/dist/es/pages/admin-page/instances.js +50 -52
  106. package/dist/es/pages/admin-page/metrics.js +34 -33
  107. package/dist/es/pages/admin-page/projections.js +1 -1
  108. package/dist/es/pages/admin-page/tasks.js +59 -57
  109. package/dist/es/pages/category-page/columns.js +1 -1
  110. package/dist/es/pages/category-page/form.js +1 -1
  111. package/dist/es/pages/category-page/index.js +21 -21
  112. package/dist/es/pages/delegation-page/columns.js +1 -1
  113. package/dist/es/pages/delegation-page/form.js +1 -1
  114. package/dist/es/pages/delegation-page/index.js +19 -19
  115. package/dist/es/pages/flow-page/columns.js +6 -6
  116. package/dist/es/pages/flow-page/designer/basic-step.js +202 -146
  117. package/dist/es/pages/flow-page/designer/field-catalog.js +47 -0
  118. package/dist/es/pages/flow-page/designer/flow-step.js +1 -1
  119. package/dist/es/pages/flow-page/designer/form-step.js +14 -14
  120. package/dist/es/pages/flow-page/designer/index.js +248 -202
  121. package/dist/es/pages/flow-page/designer/review-step.js +38 -60
  122. package/dist/es/pages/flow-page/designer/types.js +13 -5
  123. package/dist/es/pages/flow-page/designer/void-policy.js +135 -0
  124. package/dist/es/pages/flow-page/index.js +18 -18
  125. package/dist/es/pages/flow-page/search.js +1 -1
  126. package/dist/es/pages/flow-page/versions.js +1 -1
  127. package/dist/es/pages/index.js +9 -9
  128. package/dist/es/pages/initiate-page/index.js +133 -86
  129. package/dist/es/pages/initiate-page/start-drawer.js +153 -64
  130. package/dist/es/pages/my-instances-page/index.js +57 -77
  131. package/dist/es/pages/task-center-page/index.js +73 -68
  132. package/dist/es/pages/task-center-page/search.js +1 -1
  133. package/dist/es/permissions.js +6 -3
  134. package/dist/es/plugins/form-context.js +1 -1
  135. package/dist/es/plugins/index.js +32 -21
  136. package/dist/es/types/annotation.js +18 -0
  137. package/dist/es/types/detail.js +7 -0
  138. package/dist/es/types/enums.js +3 -2
  139. package/dist/es/types/index.js +6 -3
  140. package/dist/es/types/void.js +5 -0
  141. package/dist/types/api/admin-api.d.ts +4 -1
  142. package/dist/types/api/flow-api.d.ts +4 -2
  143. package/dist/types/api/instance-api.d.ts +5 -1
  144. package/dist/types/api/my-api.d.ts +2 -1
  145. package/dist/types/components/action-dialog/index.d.ts +8 -2
  146. package/dist/types/components/action-dialog/user-selection.d.ts +18 -0
  147. package/dist/types/components/annotations/composers.d.ts +14 -0
  148. package/dist/types/components/annotations/field-anchor.d.ts +3 -0
  149. package/dist/types/components/annotations/index.d.ts +22 -0
  150. package/dist/types/components/annotations/use-annotations.d.ts +24 -0
  151. package/dist/types/components/business-form.d.ts +14 -0
  152. package/dist/types/components/capped-modal.d.ts +2 -0
  153. package/dist/types/components/detail/admin.d.ts +2 -1
  154. package/dist/types/components/form-panel/index.d.ts +3 -2
  155. package/dist/types/components/format.d.ts +1 -0
  156. package/dist/types/components/index.d.ts +1 -0
  157. package/dist/types/components/instance-list-title.d.ts +5 -0
  158. package/dist/types/components/timeline/index.d.ts +3 -1
  159. package/dist/types/components/user/index.d.ts +4 -0
  160. package/dist/types/components/void/direct-dialog.d.ts +8 -0
  161. package/dist/types/components/void/form.d.ts +27 -0
  162. package/dist/types/components/void/request-renderer.d.ts +3 -0
  163. package/dist/types/components/void/summary.d.ts +16 -0
  164. package/dist/types/components/void/use-refresh.d.ts +4 -0
  165. package/dist/types/index.d.ts +2 -2
  166. package/dist/types/pages/admin-page/apply-handovers.d.ts +3 -0
  167. package/dist/types/pages/admin-page/index.d.ts +2 -0
  168. package/dist/types/pages/admin-page/instances.d.ts +2 -1
  169. package/dist/types/pages/flow-page/designer/basic-step.d.ts +7 -2
  170. package/dist/types/pages/flow-page/designer/field-catalog.d.ts +5 -0
  171. package/dist/types/pages/flow-page/designer/review-step.d.ts +2 -1
  172. package/dist/types/pages/flow-page/designer/types.d.ts +13 -2
  173. package/dist/types/pages/flow-page/designer/void-policy.d.ts +14 -0
  174. package/dist/types/pages/initiate-page/start-drawer.d.ts +7 -1
  175. package/dist/types/permissions.d.ts +8 -0
  176. package/dist/types/plugins/index.d.ts +28 -3
  177. package/dist/types/types/admin.d.ts +27 -0
  178. package/dist/types/types/annotation.d.ts +60 -0
  179. package/dist/types/types/detail.d.ts +8 -1
  180. package/dist/types/types/enums.d.ts +5 -10
  181. package/dist/types/types/flow.d.ts +25 -5
  182. package/dist/types/types/index.d.ts +3 -1
  183. package/dist/types/types/instance.d.ts +1 -2
  184. package/dist/types/types/my.d.ts +16 -0
  185. package/dist/types/types/void.d.ts +58 -0
  186. package/package.json +8 -7
@@ -0,0 +1,100 @@
1
+ /*! @vef-framework-react/approval v2.31.0 made by Venus | 2026-11-19T01:43:39.549Z */
2
+ import { useAdminApprovalApi as e } from "../../api/admin-api.js";
3
+ import { useMyApprovalApi as t } from "../../api/my-api.js";
4
+ import { PlanSummary as n } from "./summary.js";
5
+ import { resolveBusinessRenderer as r, useApprovalPlugins as i } from "../../plugins/index.js";
6
+ import { useQuery as a } from "@vef-framework-react/core";
7
+ import { useState as o } from "react";
8
+ import { Alert as s, FileUpload as c, Input as l, Labeled as u, Stack as d, StoredFileUpload as f, Text as p } from "@vef-framework-react/components";
9
+ import { jsx as m, jsxs as h } from "@emotion/react/jsx-runtime";
10
+ //#region src/components/void/form.tsx
11
+ function g(n, r, i) {
12
+ let s = e(), c = t(), [l, u] = o(i?.reason ?? ""), [d, f] = o(i?.options ?? {}), [p, m] = o(i?.attachments ?? []), [h, g] = o([]), _ = r === "admin" ? s.planVoid : c.planVoidAsRequester, v = a({
13
+ queryFn: _,
14
+ queryKey: [_.key, {
15
+ instanceId: n.instanceId,
16
+ options: d
17
+ }],
18
+ staleTime: 0,
19
+ refetchOnMount: "always",
20
+ retry: !1
21
+ }), y = v.data?.plan, b = [...p, ...h.filter((e) => e.status === "done").map((e) => e.key).filter((e) => !!e)], x = h.some((e) => e.status === "error") ? "附件上传失败,请移除后重新上传" : h.some((e) => e.status !== "done" || !e.key) ? "请等待附件上传完成" : void 0, S = v.error?.message ?? (v.isFetching || !y ? "正在获取作废计划" : void 0);
22
+ return {
23
+ reason: l,
24
+ setReason: u,
25
+ options: d,
26
+ setOptions: f,
27
+ existing: p,
28
+ setExisting: m,
29
+ files: h,
30
+ setFiles: g,
31
+ preview: v,
32
+ plan: y,
33
+ previewIssue: S,
34
+ uploadIssue: x,
35
+ issue: S ?? (y?.blockers.length ? "请先处理阻止事项" : void 0) ?? x ?? (l.trim() ? [...l.trim()].length > 2e3 ? "作废原因最多 2000 字" : void 0 : "请填写作废原因"),
36
+ attachments: b
37
+ };
38
+ }
39
+ function _({ target: e, draft: t }) {
40
+ let { businessKinds: a } = i(), o = r(a, e.businessKind)?.VoidOptions;
41
+ return /* @__PURE__ */ h(d, {
42
+ gap: 16,
43
+ children: [
44
+ o && /* @__PURE__ */ m(u, {
45
+ label: "作废选项",
46
+ children: /* @__PURE__ */ m(o, {
47
+ value: t.options,
48
+ onChange: t.setOptions
49
+ })
50
+ }),
51
+ t.preview.error ? /* @__PURE__ */ m(s, {
52
+ showIcon: !0,
53
+ description: t.preview.error.message,
54
+ title: "无法获取作废计划",
55
+ type: "error"
56
+ }) : t.previewIssue ? /* @__PURE__ */ m(p, {
57
+ role: "status",
58
+ children: t.previewIssue
59
+ }) : t.plan && /* @__PURE__ */ m(n, { plan: t.plan }),
60
+ /* @__PURE__ */ m(u, {
61
+ required: !0,
62
+ label: "作废原因",
63
+ children: /* @__PURE__ */ m(l.TextArea, {
64
+ "aria-label": "作废原因",
65
+ maxLength: 2e3,
66
+ placeholder: "说明为什么需要作废这张审批单",
67
+ rows: 3,
68
+ value: t.reason,
69
+ onChange: (e) => t.setReason(e.target.value)
70
+ })
71
+ }),
72
+ /* @__PURE__ */ m(u, {
73
+ label: "附件",
74
+ children: /* @__PURE__ */ h(d, {
75
+ gap: 4,
76
+ children: [
77
+ t.existing.length > 0 && /* @__PURE__ */ m(f, {
78
+ maxCount: t.existing.length,
79
+ value: t.existing,
80
+ onChange: (e) => t.setExisting(Array.isArray(e) ? e : []),
81
+ children: /* @__PURE__ */ m("span", {})
82
+ }),
83
+ t.existing.length < 20 && /* @__PURE__ */ m(c, {
84
+ multiple: !0,
85
+ fileList: t.files,
86
+ maxCount: 20 - t.existing.length,
87
+ onChange: ({ fileList: e }) => t.setFiles(e)
88
+ }),
89
+ t.uploadIssue && /* @__PURE__ */ m(p, {
90
+ type: "secondary",
91
+ children: t.uploadIssue
92
+ })
93
+ ]
94
+ })
95
+ })
96
+ ]
97
+ });
98
+ }
99
+ //#endregion
100
+ export { _ as VoidFormFields, g as useVoidDraft };
@@ -0,0 +1,91 @@
1
+ /*! @vef-framework-react/approval v2.31.0 made by Venus | 2026-11-19T01:43:39.549Z */
2
+ import { isMyInstanceDetail as e } from "../../types/detail.js";
3
+ import { PlanSummary as t, TargetSummary as n, VoidRecordSummary as r } from "./summary.js";
4
+ import { InstanceDetailPanel as i } from "../detail/index.js";
5
+ import { VoidFormFields as a, useVoidDraft as o } from "./form.js";
6
+ import { AdminInstanceDetailPanel as s } from "../detail/admin.js";
7
+ import { useEffect as c, useImperativeHandle as l, useState as u } from "react";
8
+ import { Alert as d, Button as f, Drawer as p, Stack as m } from "@vef-framework-react/components";
9
+ import { Fragment as h, jsx as g, jsxs as _ } from "@emotion/react/jsx-runtime";
10
+ //#region src/components/void/request-renderer.tsx
11
+ function v({ target: e, record: t, handle: r, onAvailabilityChange: i }) {
12
+ let s = o(e, "requester", t);
13
+ return c(() => {
14
+ i?.(!s.issue, s.issue);
15
+ }, [s.issue, i]), l(r, () => ({ collect() {
16
+ return s.issue ? Promise.reject(Error(s.issue)) : Promise.resolve({
17
+ targetInstanceId: e.instanceId,
18
+ reason: s.reason.trim(),
19
+ attachments: s.attachments,
20
+ options: s.options
21
+ });
22
+ } }), [s, e.instanceId]), /* @__PURE__ */ _(m, {
23
+ gap: 16,
24
+ children: [/* @__PURE__ */ g(n, { target: e }), /* @__PURE__ */ g(a, {
25
+ draft: s,
26
+ target: e
27
+ })]
28
+ });
29
+ }
30
+ var y = ({ voidTarget: e, handle: t, onAvailabilityChange: n }) => (c(() => {
31
+ e?.instanceId || n?.(!1, "请从需要作废的审批单详情申请作废");
32
+ }, [e, n]), e?.instanceId ? /* @__PURE__ */ g(v, {
33
+ handle: t,
34
+ target: {
35
+ ...e,
36
+ instanceId: e.instanceId
37
+ },
38
+ onAvailabilityChange: n
39
+ }) : /* @__PURE__ */ g(d, {
40
+ showIcon: !0,
41
+ title: "请从需要作废的审批单详情申请作废",
42
+ type: "info"
43
+ })), b = ({ detail: a, view: o, handle: y, onAvailabilityChange: b }) => {
44
+ let x = o, [S, C] = u(!1), w = e(a) && a.availableActions.includes("resubmit"), T = x?.target.instanceId, E = w && !!T && x?.record.reason !== void 0;
45
+ return c(() => {
46
+ w && !E && b?.(!1, "当前可见信息不足,无法重新提交作废申请");
47
+ }, [
48
+ E,
49
+ w,
50
+ b
51
+ ]), l(E ? null : y, () => ({ collect: () => w ? Promise.reject(/* @__PURE__ */ Error("当前可见信息不足,无法重新提交作废申请")) : Promise.resolve({}) }), [w]), x ? E && T ? /* @__PURE__ */ g(v, {
52
+ handle: y,
53
+ record: x.record,
54
+ target: {
55
+ ...x.target,
56
+ instanceId: T
57
+ },
58
+ onAvailabilityChange: b
59
+ }, x.record.id) : /* @__PURE__ */ _(m, {
60
+ gap: 16,
61
+ children: [
62
+ /* @__PURE__ */ g(n, { target: x.target }),
63
+ T && /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(f, {
64
+ style: { alignSelf: "flex-start" },
65
+ type: "link",
66
+ onClick: () => C(!0),
67
+ children: "查看原审批单"
68
+ }), /* @__PURE__ */ g(p, {
69
+ destroyOnHidden: !0,
70
+ open: S,
71
+ size: 880,
72
+ title: "原审批单",
73
+ onClose: () => C(!1),
74
+ children: S && (e(a) ? /* @__PURE__ */ g(i, { instanceId: T }) : /* @__PURE__ */ g(s, { instanceId: T }))
75
+ })] }),
76
+ w && !E && /* @__PURE__ */ g(d, {
77
+ showIcon: !0,
78
+ title: "当前可见信息不足,无法重新提交作废申请",
79
+ type: "warning"
80
+ }),
81
+ x.record.status === "requested" && /* @__PURE__ */ g(t, { plan: x.plan }),
82
+ /* @__PURE__ */ g(r, { record: x.record })
83
+ ]
84
+ }) : /* @__PURE__ */ g(d, {
85
+ showIcon: !0,
86
+ title: "无法读取作废申请详情",
87
+ type: "warning"
88
+ });
89
+ };
90
+ //#endregion
91
+ export { b as VoidRequestDetailView, y as VoidRequestStartForm };
@@ -0,0 +1,142 @@
1
+ /*! @vef-framework-react/approval v2.31.0 made by Venus | 2026-11-19T01:43:39.549Z */
2
+ import { displayInstanceTitle as e, formatTimestamp as t } from "../format.js";
3
+ import { useState as n } from "react";
4
+ import { Alert as r, Button as i, Drawer as a, Flex as o, Stack as s, StoredFileUpload as c, Text as l } from "@vef-framework-react/components";
5
+ import { Fragment as u, jsx as d, jsxs as f } from "@emotion/react/jsx-runtime";
6
+ //#region src/components/void/summary.tsx
7
+ function p({ title: e, items: t }) {
8
+ return t.length === 0 ? null : /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d(l, {
9
+ strong: !0,
10
+ children: e
11
+ }), /* @__PURE__ */ d("ul", {
12
+ style: {
13
+ marginBlock: 4,
14
+ paddingInlineStart: 20
15
+ },
16
+ children: t.map((e, t) => /* @__PURE__ */ d("li", { children: e }, t))
17
+ })] });
18
+ }
19
+ function m({ plan: e }) {
20
+ return /* @__PURE__ */ f(s, {
21
+ gap: 8,
22
+ children: [
23
+ e.blockers.length > 0 && /* @__PURE__ */ d(r, {
24
+ showIcon: !0,
25
+ description: /* @__PURE__ */ d("ul", {
26
+ style: {
27
+ margin: 0,
28
+ paddingInlineStart: 18
29
+ },
30
+ children: e.blockers.map((e, t) => /* @__PURE__ */ d("li", { children: e }, t))
31
+ }),
32
+ title: "目前无法作废",
33
+ type: "warning"
34
+ }),
35
+ /* @__PURE__ */ d(p, {
36
+ items: e.reversals,
37
+ title: "将撤销的事项"
38
+ }),
39
+ /* @__PURE__ */ d(p, {
40
+ items: e.followUps,
41
+ title: "需要人工跟进"
42
+ }),
43
+ e.blockers.length === 0 && e.reversals.length === 0 && e.followUps.length === 0 && /* @__PURE__ */ d(l, {
44
+ type: "secondary",
45
+ children: "本次作废没有需撤销或跟进的事项。"
46
+ })
47
+ ]
48
+ });
49
+ }
50
+ function h({ target: n }) {
51
+ let r = e(n.title, n.instanceNo);
52
+ return /* @__PURE__ */ f(s, {
53
+ gap: 4,
54
+ children: [r && /* @__PURE__ */ d(l, {
55
+ strong: !0,
56
+ children: r
57
+ }), /* @__PURE__ */ f(o, {
58
+ gap: "small",
59
+ wrap: "wrap",
60
+ children: [
61
+ n.instanceNo && n.instanceNo !== r && /* @__PURE__ */ d(l, { children: n.instanceNo }),
62
+ n.flowName && /* @__PURE__ */ d(l, { children: n.flowName }),
63
+ n.applicant && /* @__PURE__ */ d(l, { children: `申请人 ${n.applicant.name}` }),
64
+ n.applicant?.departmentName && /* @__PURE__ */ d(l, { children: n.applicant.departmentName }),
65
+ n.finishedAt && /* @__PURE__ */ d(l, { children: `完成于 ${t(n.finishedAt)}` })
66
+ ]
67
+ })]
68
+ });
69
+ }
70
+ var g = {
71
+ requested: "作废申请中",
72
+ dismissed: "作废申请已结束",
73
+ voided: "已作废"
74
+ };
75
+ function _({ record: e }) {
76
+ return /* @__PURE__ */ f(s, {
77
+ gap: 8,
78
+ children: [
79
+ /* @__PURE__ */ f(o, {
80
+ gap: "small",
81
+ wrap: "wrap",
82
+ children: [
83
+ /* @__PURE__ */ d(l, {
84
+ strong: !0,
85
+ children: g[e.status]
86
+ }),
87
+ /* @__PURE__ */ d(l, { children: `${e.status === "voided" ? "作废人" : "申请人"} ${e.operator.name}` }),
88
+ e.voidedAt && /* @__PURE__ */ d(l, { children: t(e.voidedAt) })
89
+ ]
90
+ }),
91
+ e.reason !== void 0 && /* @__PURE__ */ d(l, {
92
+ style: {
93
+ whiteSpace: "pre-wrap",
94
+ overflowWrap: "anywhere"
95
+ },
96
+ children: `作废原因:${e.reason}`
97
+ }),
98
+ !!e.attachments?.length && /* @__PURE__ */ d(c, {
99
+ disabled: !0,
100
+ maxCount: e.attachments.length,
101
+ value: e.attachments,
102
+ onChange: () => void 0
103
+ }),
104
+ e.status === "voided" && /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(p, {
105
+ items: e.reversals,
106
+ title: "已撤销的事项"
107
+ }), /* @__PURE__ */ d(p, {
108
+ items: e.followUps,
109
+ title: "需要人工跟进"
110
+ })] })
111
+ ]
112
+ });
113
+ }
114
+ function v({ record: e, request: s, renderRequest: c }) {
115
+ let [p, m] = n(!1);
116
+ return /* @__PURE__ */ f(u, { children: [e && /* @__PURE__ */ d(r, {
117
+ title: /* @__PURE__ */ d(_, { record: e }),
118
+ type: "info"
119
+ }), s && /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(r, {
120
+ title: s.requestStatus === "returned" ? "作废申请已退回修改" : "作废申请审批中",
121
+ type: "info",
122
+ description: /* @__PURE__ */ f(o, {
123
+ align: "baseline",
124
+ gap: "small",
125
+ wrap: "wrap",
126
+ children: [/* @__PURE__ */ d(l, { children: `${s.applicant.name} · ${t(s.createdAt)}` }), /* @__PURE__ */ d(i, {
127
+ type: "link",
128
+ onClick: () => m(!0),
129
+ children: `查看作废申请 ${s.requestInstanceNo}`
130
+ })]
131
+ })
132
+ }), /* @__PURE__ */ d(a, {
133
+ destroyOnHidden: !0,
134
+ open: p,
135
+ size: 880,
136
+ title: "作废申请详情",
137
+ onClose: () => m(!1),
138
+ children: p && c(s.requestInstanceId)
139
+ })] })] });
140
+ }
141
+ //#endregion
142
+ export { m as PlanSummary, h as TargetSummary, v as VoidBanners, _ as VoidRecordSummary };
@@ -0,0 +1,22 @@
1
+ /*! @vef-framework-react/approval v2.31.0 made by Venus | 2026-11-19T01:43:39.549Z */
2
+ import { useAdminApprovalApi as e } from "../../api/admin-api.js";
3
+ import { useMyApprovalApi as t } from "../../api/my-api.js";
4
+ import { useQueryClient as n } from "@vef-framework-react/core";
5
+ //#region src/components/void/use-refresh.ts
6
+ function r() {
7
+ let r = n(), i = e(), a = t();
8
+ return (e) => Promise.all([
9
+ r.invalidateQueries({ queryKey: [i.getInstanceDetail.key, { instanceId: e }] }),
10
+ r.invalidateQueries({ queryKey: [a.getInstanceDetail.key, { instanceId: e }] }),
11
+ ...[
12
+ i.findInstances.key,
13
+ i.findActionLogs.key,
14
+ i.findBusinessProjections.key,
15
+ i.getMetrics.key,
16
+ a.findInitiated.key,
17
+ a.findCompletedTasks.key
18
+ ].map((e) => r.invalidateQueries({ queryKey: [e] }))
19
+ ]);
20
+ }
21
+ //#endregion
22
+ export { r as useRefreshVoidTarget };
package/dist/es/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @vef-framework-react/approval v2.30.0 made by Venus | 2026-10-16T04:17:33.743Z */
1
+ /*! @vef-framework-react/approval v2.31.0 made by Venus | 2026-11-19T01:43:39.549Z */
2
2
  import { API_PATH as e, toPagedParams as t } from "./api/query.js";
3
3
  import { useAdminApprovalApi as n } from "./api/admin-api.js";
4
4
  import { useCategoryApi as r } from "./api/category-api.js";
@@ -6,29 +6,35 @@ import { useDelegationApi as i } from "./api/delegation-api.js";
6
6
  import { useFlowApi as a } from "./api/flow-api.js";
7
7
  import { useInstanceApi as o } from "./api/instance-api.js";
8
8
  import { useMyApprovalApi as s } from "./api/my-api.js";
9
- import { ApprovalProvider as c, toEditorPlugins as l, useApprovalPlugins as u } from "./plugins/index.js";
10
- import { formatDurationSeconds as d, formatTimestamp as f } from "./components/format.js";
11
- import { ACTIVITY_ACTION_LABELS as p, BINDING_PROJECTION_STATUS_LABELS as m, BINDING_PROJECTION_STATUS_OPTIONS as h, INSTANCE_STATUS_LABELS as g, INSTANCE_STATUS_OPTIONS as _, NODE_PROGRESS_LABELS as v, PROCESS_TASK_ACTION_LABELS as y, TASK_STATUS_LABELS as b, TASK_STATUS_OPTIONS as x, VERSION_STATUS_LABELS as S } from "./components/status/labels.js";
12
- import { BINDING_PROJECTION_STATUS_COLORS as C, INSTANCE_STATUS_COLORS as w, NODE_PROGRESS_COLORS as T, TASK_STATUS_COLORS as E, VERSION_STATUS_COLORS as D } from "./components/status/colors.js";
13
- import { InstanceStatusTag as O, NodeProgressTag as k, ProjectionStatusTag as A, TaskStatusTag as j, VersionStatusTag as M } from "./components/status/index.js";
14
- import { UserGroup as N, UserLabel as P } from "./components/user/index.js";
15
- import { InstanceFlowGraphViewer as F } from "./components/flow-graph/index.js";
16
- import { InstanceFormPanel as I } from "./components/form-panel/index.js";
17
- import { InstanceTimeline as L } from "./components/timeline/index.js";
18
- import { PrincipalSelect as R } from "./components/principal/index.js";
19
- import { InstanceDetailPanel as z, InstanceHeader as B } from "./components/detail/index.js";
20
- import { AdminInstanceDetailPanel as V } from "./components/detail/admin.js";
21
- import { InstanceDetailDrawer as H } from "./components/detail/drawer.js";
22
- import { APPROVAL_PERMISSIONS as U } from "./permissions.js";
23
- import { ApprovalAdminPage as W } from "./pages/admin-page/index.js";
24
- import { ApprovalCategoryPage as G } from "./pages/category-page/index.js";
25
- import { ApprovalDelegationPage as K } from "./pages/delegation-page/index.js";
26
- import { BUILTIN_INITIATOR_KINDS as q, FINAL_INSTANCE_STATUSES as J, isFinalInstanceStatus as Y } from "./types/enums.js";
27
- import { FlowDesignerDrawer as X } from "./pages/flow-page/designer/index.js";
28
- import { FlowVersionsDrawer as Z } from "./pages/flow-page/versions.js";
29
- import { ApprovalFlowPage as Q } from "./pages/flow-page/index.js";
30
- import { StartInstanceDrawer as $ } from "./pages/initiate-page/start-drawer.js";
31
- import { ApprovalInitiatePage as ee } from "./pages/initiate-page/index.js";
32
- import { ApprovalMyInstancesPage as te } from "./pages/my-instances-page/index.js";
33
- import { ApprovalTaskCenterPage as ne } from "./pages/task-center-page/index.js";
34
- export { p as ACTIVITY_ACTION_LABELS, e as API_PATH, U as APPROVAL_PERMISSIONS, V as AdminInstanceDetailPanel, W as ApprovalAdminPage, G as ApprovalCategoryPage, K as ApprovalDelegationPage, Q as ApprovalFlowPage, ee as ApprovalInitiatePage, te as ApprovalMyInstancesPage, c as ApprovalProvider, ne as ApprovalTaskCenterPage, C as BINDING_PROJECTION_STATUS_COLORS, m as BINDING_PROJECTION_STATUS_LABELS, h as BINDING_PROJECTION_STATUS_OPTIONS, q as BUILTIN_INITIATOR_KINDS, J as FINAL_INSTANCE_STATUSES, X as FlowDesignerDrawer, Z as FlowVersionsDrawer, w as INSTANCE_STATUS_COLORS, g as INSTANCE_STATUS_LABELS, _ as INSTANCE_STATUS_OPTIONS, H as InstanceDetailDrawer, z as InstanceDetailPanel, F as InstanceFlowGraphViewer, I as InstanceFormPanel, B as InstanceHeader, O as InstanceStatusTag, L as InstanceTimeline, T as NODE_PROGRESS_COLORS, v as NODE_PROGRESS_LABELS, k as NodeProgressTag, y as PROCESS_TASK_ACTION_LABELS, R as PrincipalSelect, A as ProjectionStatusTag, $ as StartInstanceDrawer, E as TASK_STATUS_COLORS, b as TASK_STATUS_LABELS, x as TASK_STATUS_OPTIONS, j as TaskStatusTag, N as UserGroup, P as UserLabel, D as VERSION_STATUS_COLORS, S as VERSION_STATUS_LABELS, M as VersionStatusTag, d as formatDurationSeconds, f as formatTimestamp, Y as isFinalInstanceStatus, l as toEditorPlugins, t as toPagedParams, n as useAdminApprovalApi, u as useApprovalPlugins, r as useCategoryApi, i as useDelegationApi, a as useFlowApi, o as useInstanceApi, s as useMyApprovalApi };
9
+ import { formatDurationSeconds as c, formatTimestamp as l } from "./components/format.js";
10
+ import { BINDING_PROJECTION_STATUS_COLORS as u, INSTANCE_STATUS_COLORS as d, NODE_PROGRESS_COLORS as f, TASK_STATUS_COLORS as p, VERSION_STATUS_COLORS as m } from "./components/status/colors.js";
11
+ import { ACTIVITY_ACTION_LABELS as h, BINDING_PROJECTION_STATUS_LABELS as g, BINDING_PROJECTION_STATUS_OPTIONS as _, INSTANCE_STATUS_LABELS as v, INSTANCE_STATUS_OPTIONS as y, NODE_PROGRESS_LABELS as b, PROCESS_TASK_ACTION_LABELS as x, TASK_STATUS_LABELS as S, TASK_STATUS_OPTIONS as C, VERSION_STATUS_LABELS as w } from "./components/status/labels.js";
12
+ import { InstanceStatusTag as T, NodeProgressTag as E, ProjectionStatusTag as D, TaskStatusTag as O, VersionStatusTag as k } from "./components/status/index.js";
13
+ import { UserGroup as A, UserLabel as j } from "./components/user/index.js";
14
+ import { InstanceTimeline as M } from "./components/timeline/index.js";
15
+ import { APPROVAL_ERROR_CODES as N } from "./types/annotation.js";
16
+ import { isMyInstanceDetail as P } from "./types/detail.js";
17
+ import { BUILTIN_INITIATOR_KINDS as F, FINAL_INSTANCE_STATUSES as I, isFinalInstanceStatus as L } from "./types/enums.js";
18
+ import { VOID_REQUEST_KIND as R } from "./types/void.js";
19
+ import { StartInstanceDrawer as z } from "./pages/initiate-page/start-drawer.js";
20
+ import { InstanceFlowGraphViewer as B } from "./components/flow-graph/index.js";
21
+ import { InstanceFormPanel as V } from "./components/form-panel/index.js";
22
+ import { PrincipalSelect as H } from "./components/principal/index.js";
23
+ import { InstanceDetailPanel as U, InstanceHeader as W } from "./components/detail/index.js";
24
+ import { APPROVAL_PERMISSIONS as G } from "./permissions.js";
25
+ import { AdminInstanceDetailPanel as K } from "./components/detail/admin.js";
26
+ import { ApprovalProvider as q, toEditorPlugins as J, useApprovalPlugins as Y } from "./plugins/index.js";
27
+ import { useAnnotations as X } from "./components/annotations/use-annotations.js";
28
+ import { AnnotationComposer as Z, AnnotationResponseComposer as Q } from "./components/annotations/composers.js";
29
+ import { AnnotationList as $ } from "./components/annotations/index.js";
30
+ import { InstanceDetailDrawer as ee } from "./components/detail/drawer.js";
31
+ import { ApprovalAdminPage as te } from "./pages/admin-page/index.js";
32
+ import { ApprovalCategoryPage as ne } from "./pages/category-page/index.js";
33
+ import { ApprovalDelegationPage as re } from "./pages/delegation-page/index.js";
34
+ import { FlowDesignerDrawer as ie } from "./pages/flow-page/designer/index.js";
35
+ import { FlowVersionsDrawer as ae } from "./pages/flow-page/versions.js";
36
+ import { ApprovalFlowPage as oe } from "./pages/flow-page/index.js";
37
+ import { ApprovalInitiatePage as se } from "./pages/initiate-page/index.js";
38
+ import { ApprovalMyInstancesPage as ce } from "./pages/my-instances-page/index.js";
39
+ import { ApprovalTaskCenterPage as le } from "./pages/task-center-page/index.js";
40
+ export { h as ACTIVITY_ACTION_LABELS, e as API_PATH, N as APPROVAL_ERROR_CODES, G as APPROVAL_PERMISSIONS, K as AdminInstanceDetailPanel, Z as AnnotationComposer, $ as AnnotationList, Q as AnnotationResponseComposer, te as ApprovalAdminPage, ne as ApprovalCategoryPage, re as ApprovalDelegationPage, oe as ApprovalFlowPage, se as ApprovalInitiatePage, ce as ApprovalMyInstancesPage, q as ApprovalProvider, le as ApprovalTaskCenterPage, u as BINDING_PROJECTION_STATUS_COLORS, g as BINDING_PROJECTION_STATUS_LABELS, _ as BINDING_PROJECTION_STATUS_OPTIONS, F as BUILTIN_INITIATOR_KINDS, I as FINAL_INSTANCE_STATUSES, ie as FlowDesignerDrawer, ae as FlowVersionsDrawer, d as INSTANCE_STATUS_COLORS, v as INSTANCE_STATUS_LABELS, y as INSTANCE_STATUS_OPTIONS, ee as InstanceDetailDrawer, U as InstanceDetailPanel, B as InstanceFlowGraphViewer, V as InstanceFormPanel, W as InstanceHeader, T as InstanceStatusTag, M as InstanceTimeline, f as NODE_PROGRESS_COLORS, b as NODE_PROGRESS_LABELS, E as NodeProgressTag, x as PROCESS_TASK_ACTION_LABELS, H as PrincipalSelect, D as ProjectionStatusTag, z as StartInstanceDrawer, p as TASK_STATUS_COLORS, S as TASK_STATUS_LABELS, C as TASK_STATUS_OPTIONS, O as TaskStatusTag, A as UserGroup, j as UserLabel, m as VERSION_STATUS_COLORS, w as VERSION_STATUS_LABELS, R as VOID_REQUEST_KIND, k as VersionStatusTag, c as formatDurationSeconds, l as formatTimestamp, L as isFinalInstanceStatus, P as isMyInstanceDetail, J as toEditorPlugins, t as toPagedParams, n as useAdminApprovalApi, X as useAnnotations, Y as useApprovalPlugins, r as useCategoryApi, i as useDelegationApi, a as useFlowApi, o as useInstanceApi, s as useMyApprovalApi };
@@ -0,0 +1,185 @@
1
+ /*! @vef-framework-react/approval v2.31.0 made by Venus | 2026-11-19T01:43:39.549Z */
2
+ import { useAdminApprovalApi as e } from "../../api/admin-api.js";
3
+ import { useMyApprovalApi as t } from "../../api/my-api.js";
4
+ import { CappedModal as n } from "../../components/capped-modal.js";
5
+ import { displayInstanceTitle as r } from "../../components/format.js";
6
+ import { PrincipalSelect as i } from "../../components/principal/index.js";
7
+ import { AdminInstanceDetailPanel as a } from "../../components/detail/admin.js";
8
+ import { useInView as o, useMutation as s, useQuery as c, useQueryClient as l } from "@vef-framework-react/core";
9
+ import { useId as u, useRef as d, useState as f } from "react";
10
+ import { Alert as p, Button as m, Drawer as h, Flex as g, Labeled as _, PermissionGate as v, Stack as y, Text as b, Title as x } from "@vef-framework-react/components";
11
+ import { Fragment as S, jsx as C, jsxs as w } from "@emotion/react/jsx-runtime";
12
+ //#region src/pages/admin-page/apply-handovers.tsx
13
+ function T({ title: e, count: t, children: n }) {
14
+ let r = u();
15
+ return /* @__PURE__ */ w("section", {
16
+ "aria-labelledby": r,
17
+ children: [/* @__PURE__ */ C(x, {
18
+ id: r,
19
+ level: 5,
20
+ style: { marginBlock: "0 6px" },
21
+ children: `${e}(${t})`
22
+ }), t > 0 ? /* @__PURE__ */ C("ul", {
23
+ style: {
24
+ listStyle: "none",
25
+ padding: 0,
26
+ margin: 0
27
+ },
28
+ children: n
29
+ }) : /* @__PURE__ */ C(b, {
30
+ type: "secondary",
31
+ children: "无"
32
+ })]
33
+ });
34
+ }
35
+ function E({ instanceId: t }) {
36
+ let n = d(null), i = o(n, { once: !0 }), a = e(), { data: s } = c({
37
+ queryFn: a.getInstanceDetail,
38
+ queryKey: [a.getInstanceDetail.key, { instanceId: t }],
39
+ enabled: i
40
+ });
41
+ return /* @__PURE__ */ C("span", {
42
+ ref: n,
43
+ children: r(s?.instance.title, s?.instance.instanceNo) || `查看审批单(${t})`
44
+ });
45
+ }
46
+ function D({ report: t, canViewDetail: n }) {
47
+ let i = e(), o = l(), [s, c] = f(null), u = t.transferred ?? [], d = t.unassigned ?? [], p = t.awaitingApplicant ?? [], _ = /* @__PURE__ */ new Map(), v = o.getQueriesData({ queryKey: [i.findInstances.key] });
48
+ for (let [, e] of v) {
49
+ let t = e?.items ?? [];
50
+ for (let e of t) _.set(e.instanceId, r(e.title, e.instanceNo));
51
+ }
52
+ function x(e) {
53
+ let t = _.get(e);
54
+ return n ? /* @__PURE__ */ C(m, {
55
+ size: "small",
56
+ type: "link",
57
+ onClick: () => c(e),
58
+ children: t || /* @__PURE__ */ C(E, { instanceId: e })
59
+ }) : /* @__PURE__ */ C(b, { children: t || `审批单 ${e}(无详情权限)` });
60
+ }
61
+ function S(e) {
62
+ let t = e.predecessor.name || e.predecessor.id, n = e.successor && (e.successor.name || e.successor.id);
63
+ return /* @__PURE__ */ C("li", { children: /* @__PURE__ */ w(g, {
64
+ align: "baseline",
65
+ gap: 8,
66
+ wrap: "wrap",
67
+ children: [
68
+ /* @__PURE__ */ C(b, {
69
+ type: "secondary",
70
+ children: e.ccRecordId ? "抄送回执" : "待办"
71
+ }),
72
+ /* @__PURE__ */ C(b, { children: n ? `${t} → ${n}` : t }),
73
+ x(e.instanceId)
74
+ ]
75
+ }) }, e.taskId ? `task:${e.taskId}` : `cc:${e.ccRecordId}`);
76
+ }
77
+ return /* @__PURE__ */ w(y, {
78
+ gap: 16,
79
+ children: [
80
+ /* @__PURE__ */ C(T, {
81
+ count: u.length,
82
+ title: "已转移",
83
+ children: u.map((e) => S(e))
84
+ }),
85
+ /* @__PURE__ */ C(T, {
86
+ count: d.length,
87
+ title: "无接手人待处理",
88
+ children: d.map((e) => S(e))
89
+ }),
90
+ /* @__PURE__ */ C(T, {
91
+ count: p.length,
92
+ title: "待申请人处理的实例",
93
+ children: p.map((e) => /* @__PURE__ */ C("li", { children: x(e) }, e))
94
+ }),
95
+ /* @__PURE__ */ C(h, {
96
+ destroyOnHidden: !0,
97
+ open: s !== null,
98
+ size: 880,
99
+ title: "审批详情",
100
+ onClose: () => c(null),
101
+ children: s !== null && /* @__PURE__ */ C(a, { instanceId: s })
102
+ })
103
+ ]
104
+ });
105
+ }
106
+ function O({ detailPermission: r, onClose: a }) {
107
+ let o = e(), c = t(), u = l(), [d, h] = f([]), g = s({
108
+ mutationFn: o.applyHandovers,
109
+ meta: { shouldShowSuccessFeedback: !1 },
110
+ onSuccess() {
111
+ let e = [
112
+ o.findInstances,
113
+ o.findTasks,
114
+ o.getInstanceDetail,
115
+ o.findActionLogs,
116
+ o.getMetrics,
117
+ c.findPendingTasks,
118
+ c.findCompletedTasks,
119
+ c.findCCRecords,
120
+ c.getPendingCounts,
121
+ c.findInitiated,
122
+ c.getInstanceDetail
123
+ ];
124
+ for (let t of e) u.invalidateQueries({ queryKey: [t.key] });
125
+ }
126
+ });
127
+ return /* @__PURE__ */ C(n, {
128
+ open: !0,
129
+ closable: !g.isPending,
130
+ keyboard: !g.isPending,
131
+ mask: { closable: !g.isPending },
132
+ title: g.data ? "交接处理结果" : "按交接转移待办",
133
+ footer: g.data ? /* @__PURE__ */ C(m, {
134
+ type: "primary",
135
+ onClick: a,
136
+ children: "完成"
137
+ }) : /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(m, {
138
+ disabled: g.isPending,
139
+ onClick: a,
140
+ children: "取消"
141
+ }), /* @__PURE__ */ C(m, {
142
+ disabled: d.length === 0,
143
+ loading: g.isPending,
144
+ type: "primary",
145
+ onClick: () => g.mutate({ userIds: d }),
146
+ children: "执行交接"
147
+ })] }),
148
+ onCancel: a,
149
+ children: g.data ? /* @__PURE__ */ C(v, {
150
+ requiredPermissions: r,
151
+ children: (e) => /* @__PURE__ */ C(D, {
152
+ canViewDetail: e,
153
+ report: g.data
154
+ })
155
+ }) : /* @__PURE__ */ w(y, {
156
+ gap: 12,
157
+ children: [/* @__PURE__ */ C(_, {
158
+ hint: "按所选人员的交接记录转移待办和待确认的抄送回执。",
159
+ label: "已交接工作的人员",
160
+ children: /* @__PURE__ */ C(i, {
161
+ disabled: g.isPending,
162
+ kind: "user",
163
+ value: d,
164
+ onChange: h
165
+ })
166
+ }), g.error && /* @__PURE__ */ C(p, {
167
+ showIcon: !0,
168
+ title: g.error.message,
169
+ type: "error"
170
+ })]
171
+ })
172
+ });
173
+ }
174
+ function k({ detailPermission: e }) {
175
+ let [t, n] = f(!1);
176
+ return /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(m, {
177
+ onClick: () => n(!0),
178
+ children: "按交接转移待办"
179
+ }), t && /* @__PURE__ */ C(O, {
180
+ detailPermission: e,
181
+ onClose: () => n(!1)
182
+ })] });
183
+ }
184
+ //#endregion
185
+ export { k as ApplyHandoversAction };