xyvcard-itsm-flow 0.0.62 → 0.0.63

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 (124) hide show
  1. package/dist/{FileSaver.min-CM8zIWno.mjs → FileSaver.min-DZB5xb7x.mjs} +1 -1
  2. package/dist/dealwith-B2isFxek.mjs +512 -0
  3. package/dist/{done-list-CLd3mYSN.mjs → done-list-BKYQSBzf.mjs} +1 -1
  4. package/dist/{done-list-CaRxlo_o.mjs → done-list-Bxp_c5AS.mjs} +1 -1
  5. package/dist/{done-list-B7Ah_CIE.mjs → done-list-CoPXWudd.mjs} +1 -1
  6. package/dist/{done-list-X8kOg2x6.mjs → done-list-DXlGNgl9.mjs} +2 -2
  7. package/dist/{done-list-B8zBCb4C.mjs → done-list-DjZ_eFTA.mjs} +1 -1
  8. package/dist/done-list-Dpge4-U6.mjs +4 -0
  9. package/dist/{done-list.vue_vue_type_script_setup_true_lang-nuRa3UZe.mjs → done-list.vue_vue_type_script_setup_true_lang-Be7510ro.mjs} +2 -2
  10. package/dist/{done-list.vue_vue_type_script_setup_true_lang-DCHXFSMh.mjs → done-list.vue_vue_type_script_setup_true_lang-Bfxyk6MR.mjs} +2 -2
  11. package/dist/{done-list.vue_vue_type_script_setup_true_lang-BTOEGywI.mjs → done-list.vue_vue_type_script_setup_true_lang-C946QIzs.mjs} +1 -1
  12. package/dist/{done-list.vue_vue_type_script_setup_true_lang-n3qQrppK.mjs → done-list.vue_vue_type_script_setup_true_lang-CjxRYNR_.mjs} +2 -2
  13. package/dist/{done-list.vue_vue_type_script_setup_true_lang-BuFm7zr3.mjs → done-list.vue_vue_type_script_setup_true_lang-N5J18dBB.mjs} +2 -2
  14. package/dist/{edit-AymbzQ_X.mjs → edit-B_t7-led.mjs} +1 -1
  15. package/dist/{edit-BWpAdvCM.mjs → edit-Bt063Cby.mjs} +1 -1
  16. package/dist/{edit-eNy8DUGg.mjs → edit-Bwr4fa6o.mjs} +3 -3
  17. package/dist/{edit-DwUQJSq4.mjs → edit-CNFTsVf_.mjs} +2 -2
  18. package/dist/{edit-C5ECJN-g.mjs → edit-DZc9vpQU.mjs} +1 -1
  19. package/dist/{edit-DoXz3D7L.mjs → edit-Dg83CHVJ.mjs} +1 -1
  20. package/dist/{edit-D99YqJOd.mjs → edit-RH4pSR1T.mjs} +2 -2
  21. package/dist/{edit.vue_vue_type_script_setup_true_lang-C5YpGLFT.mjs → edit.vue_vue_type_script_setup_true_lang-Bh7bIaSW.mjs} +2 -2
  22. package/dist/{edit.vue_vue_type_script_setup_true_lang-qdPOKtwB.mjs → edit.vue_vue_type_script_setup_true_lang-CsLWS_p1.mjs} +2 -2
  23. package/dist/{edit.vue_vue_type_script_setup_true_lang-Uv6akbAE.mjs → edit.vue_vue_type_script_setup_true_lang-De_RZaZU.mjs} +1 -1
  24. package/dist/{edit.vue_vue_type_script_setup_true_lang-BzJ8sT1T.mjs → edit.vue_vue_type_script_setup_true_lang-Dtzf5DO9.mjs} +2 -2
  25. package/dist/{finish-list-BSTbaHuc.mjs → finish-list-BD42gxpY.mjs} +1 -1
  26. package/dist/{finish-list-B-iYev9C.mjs → finish-list-BHqCtrUs.mjs} +2 -2
  27. package/dist/{finish-list-D9xOfMK9.mjs → finish-list-CvMF89Kz.mjs} +1 -1
  28. package/dist/{finish-list-Dfe4qRoX.mjs → finish-list-DinkxBmQ.mjs} +1 -1
  29. package/dist/{finish-list-Ee4fN-XJ.mjs → finish-list-DmURbv1G.mjs} +1 -1
  30. package/dist/finish-list-Z2SHeu_J.mjs +4 -0
  31. package/dist/{finish-list.vue_vue_type_script_setup_true_lang-CXLlXRtO.mjs → finish-list.vue_vue_type_script_setup_true_lang-5KMs9gMm.mjs} +1 -1
  32. package/dist/{finish-list.vue_vue_type_script_setup_true_lang--ZEM0jUj.mjs → finish-list.vue_vue_type_script_setup_true_lang-BfFun54m.mjs} +2 -2
  33. package/dist/{finish-list.vue_vue_type_script_setup_true_lang-BpXBL3wc.mjs → finish-list.vue_vue_type_script_setup_true_lang-C2Ew6Acb.mjs} +2 -2
  34. package/dist/{finish-list.vue_vue_type_script_setup_true_lang-_Sqj5-ro.mjs → finish-list.vue_vue_type_script_setup_true_lang-Tfj84eKn.mjs} +2 -2
  35. package/dist/{finish-list.vue_vue_type_script_setup_true_lang-CuGNGkPa.mjs → finish-list.vue_vue_type_script_setup_true_lang-d0JweWA1.mjs} +2 -2
  36. package/dist/{index-DI_ohizx.mjs → index-1IbM-LFw.mjs} +1 -1
  37. package/dist/{index-B6ywOB96.mjs → index-B2Z025RS.mjs} +1 -1
  38. package/dist/{index-B4vtnRtA.mjs → index-BCSoOFCE.mjs} +2 -2
  39. package/dist/{index-CKYEW-46.mjs → index-BJGN_mHs.mjs} +3 -3
  40. package/dist/{index-BHysVcGJ.mjs → index-BJkzYH2y.mjs} +1 -1
  41. package/dist/{index-EPWoxLQY.mjs → index-BRTDW62j.mjs} +1 -1
  42. package/dist/{index-Cl0p2O4T.mjs → index-B_DGhugx.mjs} +4 -4
  43. package/dist/{index-BE28sw1l.mjs → index-Bf2J0dH3.mjs} +1 -1
  44. package/dist/{index-zYVlHIAx.mjs → index-Brtde0mt.mjs} +2 -2
  45. package/dist/{index-D5ltyxcp.mjs → index-BsOQlM-g.mjs} +6 -6
  46. package/dist/{index--D05AzvS.mjs → index-BxgBQn46.mjs} +2 -2
  47. package/dist/{index-DUmGWWSg.mjs → index-C9WnCDW0.mjs} +1 -1
  48. package/dist/{index-CM23F65S.mjs → index-CCo8zvhI.mjs} +3 -3
  49. package/dist/{index-BJbOPTnR.mjs → index-CKlP7tiv.mjs} +1 -1
  50. package/dist/{index-DXn5qoZ5.mjs → index-CSNMhPkc.mjs} +2 -2
  51. package/dist/{index-Baxdb9wK.mjs → index-CWCzsrCo.mjs} +1 -1
  52. package/dist/index-CgVAbkiF.mjs +4 -0
  53. package/dist/{index-DPGMUqM1.mjs → index-D1BddDLz.mjs} +3 -3
  54. package/dist/{index-BYHaTUB1.mjs → index-D3KUaQ8c.mjs} +2 -2
  55. package/dist/index-D98HkjS8.mjs +4 -0
  56. package/dist/{index-Zc4cl6KD.mjs → index-DIBUCCbM.mjs} +4 -4
  57. package/dist/{index-wB8sjdwh.mjs → index-DIyGQSg3.mjs} +2 -2
  58. package/dist/{index-D4S1BRmp.mjs → index-DPWTox3h.mjs} +2 -2
  59. package/dist/{index-uueTMCM8.mjs → index-DVoHb7BY.mjs} +4 -4
  60. package/dist/{index-DSO_VcCZ.mjs → index-DbgYa9Fi.mjs} +1466 -1448
  61. package/dist/index-DddGjpzz.mjs +4 -0
  62. package/dist/{index-BsQmgtYo.mjs → index-Dehw0RTU.mjs} +3 -3
  63. package/dist/{index-C5C-OMB9.mjs → index-DjRKJDJ7.mjs} +3 -3
  64. package/dist/{index-CvUv7Yeg.mjs → index-DkfwL_mE.mjs} +24 -24
  65. package/dist/{index-CtGLnC2j.mjs → index-DknD9WQ_.mjs} +3 -3
  66. package/dist/index-DkqNMWgR.mjs +4 -0
  67. package/dist/{index-BR6LbofL.mjs → index-Dw40Trwx.mjs} +3 -3
  68. package/dist/index-DxykO73E.mjs +4 -0
  69. package/dist/index-Dzf05cHA.mjs +4 -0
  70. package/dist/{index-mSwhoPez.mjs → index-EjUpH_1X.mjs} +2 -2
  71. package/dist/{index-BuqaGtyz.mjs → index-FgcWIc8d.mjs} +1 -1
  72. package/dist/{index-DcR8T9E9.mjs → index-_jccqGj_.mjs} +2 -2
  73. package/dist/{index-BdFmT6X_.mjs → index-tPn5I-YB.mjs} +2 -2
  74. package/dist/index.mjs +1 -1
  75. package/dist/{index.vue_vue_type_script_setup_true_lang-iuoSb0UI.mjs → index.vue_vue_type_script_setup_true_lang-BMa36ENK.mjs} +4 -4
  76. package/dist/{index.vue_vue_type_script_setup_true_lang-BHcS19AN.mjs → index.vue_vue_type_script_setup_true_lang-BMw7k21F.mjs} +2 -2
  77. package/dist/{index.vue_vue_type_script_setup_true_lang-B23YJ2cy.mjs → index.vue_vue_type_script_setup_true_lang-BQ6H-re0.mjs} +3 -3
  78. package/dist/{index.vue_vue_type_script_setup_true_lang-fpLgGBGr.mjs → index.vue_vue_type_script_setup_true_lang-Bzj8OLKz.mjs} +3 -3
  79. package/dist/{index.vue_vue_type_script_setup_true_lang-BSBixwrA.mjs → index.vue_vue_type_script_setup_true_lang-CiEZz649.mjs} +1 -1
  80. package/dist/{index.vue_vue_type_script_setup_true_lang-CvZZe8Lg.mjs → index.vue_vue_type_script_setup_true_lang-DgtqZICv.mjs} +3 -3
  81. package/dist/{index.vue_vue_type_script_setup_true_lang-CBnjCso_.mjs → index.vue_vue_type_script_setup_true_lang-HSnMXm9H.mjs} +3 -3
  82. package/dist/{index.vue_vue_type_script_setup_true_lang-BYWjtWB2.mjs → index.vue_vue_type_script_setup_true_lang-NYIb4kZE.mjs} +3 -3
  83. package/dist/{index.vue_vue_type_script_setup_true_lang-Cjt2uf0Q.mjs → index.vue_vue_type_script_setup_true_lang-eho-hpSu.mjs} +3 -3
  84. package/dist/{index.vue_vue_type_script_setup_true_lang-CgJIOkw4.mjs → index.vue_vue_type_script_setup_true_lang-uPgUzVPl.mjs} +2 -2
  85. package/dist/{index.vue_vue_type_script_setup_true_lang-CWmhIq-d.mjs → index.vue_vue_type_script_setup_true_lang-xGUWvt4j.mjs} +4 -4
  86. package/dist/{info-8McXpbRe.mjs → info-6GWorLdr.mjs} +1 -1
  87. package/dist/{info-D82wNobG.mjs → info-C0FdNpH7.mjs} +2 -2
  88. package/dist/{info-Ddyc8OT_.mjs → info-CKSnh3CC.mjs} +3 -3
  89. package/dist/{info-Cd-2Ktcb.mjs → info-CLm3Nzrb.mjs} +1 -1
  90. package/dist/{info-DSff0AIo.mjs → info-CX6hgsBe.mjs} +2 -2
  91. package/dist/{info-CtdZis_p.mjs → info-Ciwar3MG.mjs} +1 -1
  92. package/dist/{info-LxoKMcna.mjs → info-DPz5mUJ6.mjs} +2 -2
  93. package/dist/{info-CSJqhgWR.mjs → info-DQyWzVDs.mjs} +2 -2
  94. package/dist/{info-BBoJ6sK9.mjs → info-gFXRTAG5.mjs} +2 -2
  95. package/dist/{info-D-mUmcMO.mjs → info-wetaWpwv.mjs} +1 -1
  96. package/dist/{info.vue_vue_type_script_setup_true_lang-DvAMhhU8.mjs → info.vue_vue_type_script_setup_true_lang-Bb3bS74G.mjs} +3 -3
  97. package/dist/{info.vue_vue_type_script_setup_true_lang-1rk-yQ_V.mjs → info.vue_vue_type_script_setup_true_lang-CiWxyC4a.mjs} +2 -2
  98. package/dist/{info.vue_vue_type_script_setup_true_lang-D1hK_eVk.mjs → info.vue_vue_type_script_setup_true_lang-D3I9wHLE.mjs} +2 -2
  99. package/dist/{sendMessage-CtutTzlp.mjs → sendMessage-DUwa-qnB.mjs} +1 -1
  100. package/dist/style.css +1 -1
  101. package/dist/{todo-list-BSqYF5tv.mjs → todo-list-B9o-47fC.mjs} +1 -1
  102. package/dist/{todo-list-C1NRZsLf.mjs → todo-list-BELZwLqU.mjs} +1 -1
  103. package/dist/{todo-list-CSrhaUw3.mjs → todo-list-CiyPz1gE.mjs} +1 -1
  104. package/dist/{todo-list-D7Mf5kFe.mjs → todo-list-Clm1y-Oi.mjs} +1 -1
  105. package/dist/todo-list-DxqFMaeu.mjs +4 -0
  106. package/dist/{todo-list-DNjs5BvL.mjs → todo-list-ZKDB2WUO.mjs} +1 -1
  107. package/dist/{todo-list.vue_vue_type_script_setup_true_lang-DzQ9-Kej.mjs → todo-list.vue_vue_type_script_setup_true_lang-BAncctc9.mjs} +1 -1
  108. package/dist/{todo-list.vue_vue_type_script_setup_true_lang-630Uzffr.mjs → todo-list.vue_vue_type_script_setup_true_lang-BU7_bXWn.mjs} +1 -1
  109. package/dist/{todo-list.vue_vue_type_script_setup_true_lang-B63aV0oH.mjs → todo-list.vue_vue_type_script_setup_true_lang-CYJQYbb-.mjs} +1 -1
  110. package/dist/{todo-list.vue_vue_type_script_setup_true_lang-BdoR32M7.mjs → todo-list.vue_vue_type_script_setup_true_lang-DPygRhLY.mjs} +1 -1
  111. package/dist/{todo-list.vue_vue_type_script_setup_true_lang-BKPMEUcZ.mjs → todo-list.vue_vue_type_script_setup_true_lang-gnA_Lnuw.mjs} +1 -1
  112. package/dts/api/task/index.d.ts +21 -0
  113. package/dts/api/task/types.d.ts +565 -0
  114. package/package.json +2 -2
  115. package/dist/dealwith-CrNXcX-O.mjs +0 -996
  116. package/dist/done-list-DtX5uwXs.mjs +0 -4
  117. package/dist/finish-list-fK11xCxx.mjs +0 -4
  118. package/dist/index-CYhUWz8T.mjs +0 -4
  119. package/dist/index-CZQt5DTS.mjs +0 -4
  120. package/dist/index-CnCdUAgQ.mjs +0 -4
  121. package/dist/index-DjUwYsve.mjs +0 -4
  122. package/dist/index-Fk5iexBg.mjs +0 -4
  123. package/dist/index-MvFnjsfW.mjs +0 -4
  124. package/dist/todo-list-eBk84CYT.mjs +0 -4
@@ -1,4 +1,4 @@
1
- import { c } from "./index-DSO_VcCZ.mjs";
1
+ import { c } from "./index-DbgYa9Fi.mjs";
2
2
  var E = { exports: {} };
3
3
  (function(h, j) {
4
4
  (function(p, i) {
@@ -0,0 +1,512 @@
1
+ var Y = Object.defineProperty;
2
+ var Z = (_, l, p) => l in _ ? Y(_, l, { enumerable: !0, configurable: !0, writable: !0, value: p }) : _[l] = p;
3
+ var q = (_, l, p) => Z(_, typeof l != "symbol" ? l + "" : l, p);
4
+ import { defineComponent as L, mergeModels as W, ref as v, reactive as x, useModel as z, resolveComponent as u, createElementBlock as T, openBlock as f, createVNode as o, withCtx as e, Fragment as P, renderList as G, createBlock as b, createElementVNode as S, createTextVNode as h, toDisplayString as w, computed as ee, defineAsyncComponent as te, resolveDirective as oe, createCommentVNode as N, withDirectives as le, resolveDynamicComponent as ae } from "vue";
5
+ import { ElMessage as J } from "element-plus";
6
+ import { useI18n as O } from "vue-i18n";
7
+ import { taskApi as E, registeredTaskComponents as M } from "jmash-flow";
8
+ import { useRoute as ne, useRouter as se } from "vue-router";
9
+ import { routerUtil as ue } from "jmash-core";
10
+ import "xyvcard-workflow";
11
+ import { _ as re } from "./index.vue_vue_type_script_setup_true_lang-CiEZz649.mjs";
12
+ import { _ as ie } from "./index.vue_vue_type_script_setup_true_lang-B0uUXNaT.mjs";
13
+ import { E as j } from "./el-message-CmTrXyRV.mjs";
14
+ const me = { class: "dialog-footer" }, ce = /* @__PURE__ */ L({
15
+ __name: "index",
16
+ props: /* @__PURE__ */ W({
17
+ taskId: {
18
+ type: String,
19
+ default: ""
20
+ }
21
+ }, {
22
+ modelValue: { type: Boolean },
23
+ modelModifiers: {}
24
+ }),
25
+ emits: /* @__PURE__ */ W(["refresh"], ["update:modelValue"]),
26
+ setup(_, { emit: l }) {
27
+ const { t: p } = O(), D = v(), C = x({
28
+ taskDefKey: [
29
+ {
30
+ required: !0,
31
+ message: p("task.taskDefKey"),
32
+ trigger: "change"
33
+ }
34
+ ],
35
+ comment: [
36
+ {
37
+ required: !0,
38
+ message: p("task.goBackComment"),
39
+ trigger: "change"
40
+ }
41
+ ]
42
+ }), I = v([]), n = _;
43
+ n.taskId && E.findTaskDefAllowGoback(n.taskId).then(({ data: a }) => {
44
+ I.value.length = 0, console.log(a.results), I.value.push(...a.results), console.log(I);
45
+ });
46
+ const t = v({
47
+ requestId: Math.random() + "task",
48
+ taskId: n.taskId
49
+ }), r = l, R = async () => {
50
+ var a;
51
+ await ((a = D.value) == null ? void 0 : a.validate((s) => {
52
+ s && E.gobackTask(t.value).then((y) => {
53
+ y.status === 200 && (J({
54
+ message: p("common.submitSuccess"),
55
+ type: "success"
56
+ }), r("refresh", y.status === 200), k());
57
+ });
58
+ }));
59
+ }, d = z(_, "modelValue");
60
+ function k() {
61
+ d.value && (d.value = !1);
62
+ }
63
+ return (a, s) => {
64
+ const y = u("el-option"), K = u("el-select"), B = u("el-form-item"), F = u("el-col"), m = u("el-input"), c = u("el-row"), $ = u("el-form"), V = u("el-button"), U = u("el-dialog");
65
+ return f(), T("div", null, [
66
+ o(U, {
67
+ modelValue: d.value,
68
+ "onUpdate:modelValue": s[2] || (s[2] = (i) => d.value = i),
69
+ onClose: k,
70
+ width: "600px",
71
+ title: a.$t("flow.goback")
72
+ }, {
73
+ footer: e(() => [
74
+ S("div", me, [
75
+ o(V, { onClick: k }, {
76
+ default: e(() => [
77
+ h(w(a.$t("common.cancel")), 1)
78
+ ]),
79
+ _: 1
80
+ }),
81
+ o(V, {
82
+ type: "primary",
83
+ onClick: R
84
+ }, {
85
+ default: e(() => [
86
+ h(w(a.$t("common.confirm")), 1)
87
+ ]),
88
+ _: 1
89
+ })
90
+ ])
91
+ ]),
92
+ default: e(() => [
93
+ o($, {
94
+ ref_key: "taskFormRef",
95
+ ref: D,
96
+ model: t.value,
97
+ "label-width": "100px",
98
+ rules: C
99
+ }, {
100
+ default: e(() => [
101
+ o(c, null, {
102
+ default: e(() => [
103
+ o(F, { span: 24 }, {
104
+ default: e(() => [
105
+ o(B, {
106
+ label: a.$t("task.taskDefKey"),
107
+ prop: "taskDefKey"
108
+ }, {
109
+ default: e(() => [
110
+ o(K, {
111
+ modelValue: t.value.taskDefKey,
112
+ "onUpdate:modelValue": s[0] || (s[0] = (i) => t.value.taskDefKey = i),
113
+ placeholder: "请选择退回节点",
114
+ style: { width: "420px" }
115
+ }, {
116
+ default: e(() => [
117
+ (f(!0), T(P, null, G(I.value, (i) => (f(), b(y, {
118
+ key: i.taskDefKey,
119
+ label: i.taskName,
120
+ value: i.taskDefKey
121
+ }, null, 8, ["label", "value"]))), 128))
122
+ ]),
123
+ _: 1
124
+ }, 8, ["modelValue"])
125
+ ]),
126
+ _: 1
127
+ }, 8, ["label"])
128
+ ]),
129
+ _: 1
130
+ }),
131
+ o(F, { span: 24 }, {
132
+ default: e(() => [
133
+ o(B, {
134
+ label: a.$t("task.goBackComment"),
135
+ prop: "comment"
136
+ }, {
137
+ default: e(() => [
138
+ o(m, {
139
+ modelValue: t.value.comment,
140
+ "onUpdate:modelValue": s[1] || (s[1] = (i) => t.value.comment = i),
141
+ style: { width: "420px" },
142
+ rows: 4,
143
+ type: "textarea",
144
+ placeholder: "请输入意见"
145
+ }, null, 8, ["modelValue"])
146
+ ]),
147
+ _: 1
148
+ }, 8, ["label"])
149
+ ]),
150
+ _: 1
151
+ })
152
+ ]),
153
+ _: 1
154
+ })
155
+ ]),
156
+ _: 1
157
+ }, 8, ["model", "rules"])
158
+ ]),
159
+ _: 1
160
+ }, 8, ["modelValue", "title"])
161
+ ]);
162
+ };
163
+ }
164
+ });
165
+ class H {
166
+ constructor(l) {
167
+ q(this, "@type", "type.googleapis.com/google.protobuf.BoolValue");
168
+ q(this, "value", !1);
169
+ l && (this.value = l);
170
+ }
171
+ setValue(l) {
172
+ this.value = l;
173
+ }
174
+ }
175
+ class de {
176
+ constructor(l) {
177
+ q(this, "@type", "type.googleapis.com/google.protobuf.StringValue");
178
+ q(this, "value", "");
179
+ l && (this.value = l);
180
+ }
181
+ setValue(l) {
182
+ this.value = l;
183
+ }
184
+ }
185
+ const fe = { class: "dialog-footer" }, pe = /* @__PURE__ */ L({
186
+ inheritAttrs: !1,
187
+ __name: "index",
188
+ props: {
189
+ modelValue: {},
190
+ modelModifiers: {}
191
+ },
192
+ emits: /* @__PURE__ */ W(["refresh"], ["update:modelValue"]),
193
+ setup(_, { emit: l }) {
194
+ const { t: p } = O(), D = v(), C = x({
195
+ action: [
196
+ {
197
+ required: !0,
198
+ message: p("task.action"),
199
+ trigger: "change"
200
+ }
201
+ ]
202
+ }), I = x({
203
+ comment: [
204
+ {
205
+ required: !0,
206
+ message: "请输入意见",
207
+ trigger: "blur"
208
+ }
209
+ ]
210
+ }), n = z(_, "modelValue"), t = v({
211
+ requestId: Math.random() + "task",
212
+ vars: {}
213
+ }), r = l, R = async () => {
214
+ var a;
215
+ await ((a = D.value) == null ? void 0 : a.validate((s) => {
216
+ s && (n.value && (t.value.module = n.value.module, t.value.taskId = n.value.taskId, n.value.varName && (t.value.action == "true" ? t.value.vars[n.value.varName] = new H(!0) : t.value.action == "false" ? t.value.vars[n.value.varName] = new H(!1) : t.value.vars[n.value.varName] = new de(
217
+ t.value.action
218
+ ))), E.completeTask(t.value).then((y) => {
219
+ y.status === 200 && (J({
220
+ message: p("common.submitSuccess"),
221
+ type: "success"
222
+ }), r("refresh", y.status === 200), k());
223
+ }));
224
+ }));
225
+ }, d = v(!1);
226
+ n.value && (d.value = n.value.visible, t.value.taskId = n.value.taskId, t.value.action = n.value.action, t.value.comment = n.value.comment);
227
+ function k() {
228
+ n.value && (n.value.visible = !1);
229
+ }
230
+ return (a, s) => {
231
+ const y = u("el-radio"), K = u("el-radio-group"), B = u("el-form-item"), F = u("el-col"), m = u("el-input"), c = u("el-row"), $ = u("el-form"), V = u("el-button"), U = u("el-dialog");
232
+ return f(), T("div", null, [
233
+ o(U, {
234
+ modelValue: d.value,
235
+ "onUpdate:modelValue": s[2] || (s[2] = (i) => d.value = i),
236
+ onClose: k,
237
+ width: "600px",
238
+ title: a.$t("flow.handle")
239
+ }, {
240
+ footer: e(() => [
241
+ S("div", fe, [
242
+ o(V, { onClick: k }, {
243
+ default: e(() => [
244
+ h(w(a.$t("common.cancel")), 1)
245
+ ]),
246
+ _: 1
247
+ }),
248
+ o(V, {
249
+ type: "primary",
250
+ onClick: R
251
+ }, {
252
+ default: e(() => [
253
+ h(w(a.$t("common.confirm")), 1)
254
+ ]),
255
+ _: 1
256
+ })
257
+ ])
258
+ ]),
259
+ default: e(() => [
260
+ o($, {
261
+ ref_key: "taskFormRef",
262
+ ref: D,
263
+ model: t.value,
264
+ "label-width": "100px",
265
+ rules: C
266
+ }, {
267
+ default: e(() => [
268
+ o(c, null, {
269
+ default: e(() => [
270
+ o(F, { span: 24 }, {
271
+ default: e(() => [
272
+ o(B, {
273
+ label: a.$t("task.action"),
274
+ prop: "action"
275
+ }, {
276
+ default: e(() => [
277
+ o(K, {
278
+ modelValue: t.value.action,
279
+ "onUpdate:modelValue": s[0] || (s[0] = (i) => t.value.action = i)
280
+ }, {
281
+ default: e(() => {
282
+ var i;
283
+ return [
284
+ (f(!0), T(P, null, G((i = n.value) == null ? void 0 : i.selectActions, (A) => (f(), b(y, {
285
+ key: A.key,
286
+ value: A.key
287
+ }, {
288
+ default: e(() => [
289
+ h(w(A.value), 1)
290
+ ]),
291
+ _: 2
292
+ }, 1032, ["value"]))), 128))
293
+ ];
294
+ }),
295
+ _: 1
296
+ }, 8, ["modelValue"])
297
+ ]),
298
+ _: 1
299
+ }, 8, ["label"])
300
+ ]),
301
+ _: 1
302
+ }),
303
+ o(F, { span: 24 }, {
304
+ default: e(() => [
305
+ o(B, {
306
+ label: a.$t("task.comment"),
307
+ prop: "comment",
308
+ rules: t.value.action === "false" ? I.comment : []
309
+ }, {
310
+ default: e(() => [
311
+ o(m, {
312
+ modelValue: t.value.comment,
313
+ "onUpdate:modelValue": s[1] || (s[1] = (i) => t.value.comment = i),
314
+ style: { width: "420px" },
315
+ rows: 4,
316
+ type: "textarea",
317
+ placeholder: "请输入意见"
318
+ }, null, 8, ["modelValue"])
319
+ ]),
320
+ _: 1
321
+ }, 8, ["label", "rules"])
322
+ ]),
323
+ _: 1
324
+ })
325
+ ]),
326
+ _: 1
327
+ })
328
+ ]),
329
+ _: 1
330
+ }, 8, ["model", "rules"])
331
+ ]),
332
+ _: 1
333
+ }, 8, ["modelValue", "title"])
334
+ ]);
335
+ };
336
+ }
337
+ }), ve = { style: { "margin-bottom": "20px" } }, _e = {
338
+ key: 0,
339
+ style: { "margin-left": "15px" }
340
+ }, ke = { style: { "margin-left": "15px" } }, Fe = /* @__PURE__ */ L({
341
+ __name: "dealwith",
342
+ setup(_) {
343
+ const { t: l } = O(), p = ne(), D = se(), C = v("businessForm"), I = (m, c) => {
344
+ C.value = m.props.name;
345
+ }, n = v(), t = v(M.HolidayRequestTask), r = x({});
346
+ p.query.taskId && E.findTaskById(p.query.taskId).then((m) => {
347
+ var c;
348
+ Object.assign(r, m.data), d.value && (d.value.taskId = r.id), console.log(
349
+ "FormKey:",
350
+ r.formKey,
351
+ M[r.formKey],
352
+ (c = r.formKey) == null ? void 0 : c.includes("Task")
353
+ ), r.formKey && r.formKey.includes("Task") ? t.value = M[r.formKey] : (console.log("FormKey:"), t.value = M.FormDynamicCreate);
354
+ });
355
+ const R = ee(() => te(t.value)), d = v({ visible: !1, vars: {} }), k = v(null);
356
+ function a() {
357
+ k.value && k.value.changeModel().then((m) => {
358
+ m ? d.value.visible = !0 : j.warning("请填写完整信息");
359
+ }).catch((m) => {
360
+ console.error("Form validation failed:", m), j.error("提交失败,请重试");
361
+ });
362
+ }
363
+ const s = v({
364
+ title: l("flow.goback"),
365
+ visible: !1
366
+ });
367
+ function y() {
368
+ s.value.visible = !0;
369
+ }
370
+ v({
371
+ title: l("flow.transfer"),
372
+ visible: !1
373
+ }), v({
374
+ title: l("flow.delegate"),
375
+ visible: !1
376
+ });
377
+ function K() {
378
+ ue.closeTagView(p.fullPath, D, !1);
379
+ }
380
+ function B(m) {
381
+ n.value = m;
382
+ }
383
+ function F(m) {
384
+ var c;
385
+ (c = k.value) == null || c.customButAction(m);
386
+ }
387
+ return (m, c) => {
388
+ const $ = u("el-button"), V = u("el-tab-pane"), U = u("el-tabs"), i = pe, A = ce, Q = u("el-card"), X = oe("hasPerm");
389
+ return f(), b(Q, {
390
+ shadow: "never",
391
+ class: "table-container"
392
+ }, {
393
+ default: e(() => [
394
+ S("div", ve, [
395
+ o($, {
396
+ type: "primary",
397
+ onClick: K
398
+ }, {
399
+ default: e(() => [
400
+ h(w(m.$t("common.back")), 1)
401
+ ]),
402
+ _: 1
403
+ }),
404
+ r.formKey && r.formKey.startsWith("Task") ? (f(), T("span", _e, [
405
+ r.delegationState != "PENDING" ? (f(), b($, {
406
+ key: 0,
407
+ type: "primary",
408
+ onClick: a
409
+ }, {
410
+ default: e(() => [
411
+ h(w(m.$t("flow.handle")), 1)
412
+ ]),
413
+ _: 1
414
+ })) : N("", !0),
415
+ le((f(), b($, {
416
+ type: "primary",
417
+ onClick: y
418
+ }, {
419
+ default: e(() => [
420
+ h(w(m.$t("flow.goback")), 1)
421
+ ]),
422
+ _: 1
423
+ })), [
424
+ [X, ["flow:task:goback"]]
425
+ ])
426
+ ])) : N("", !0),
427
+ S("span", ke, [
428
+ (f(!0), T(P, null, G(n.value, (g) => (f(), b($, {
429
+ key: g.buttonId,
430
+ type: "primary",
431
+ onClick: (ye) => F(g.buttonCode)
432
+ }, {
433
+ default: e(() => [
434
+ h(w(g.buttonName), 1)
435
+ ]),
436
+ _: 2
437
+ }, 1032, ["onClick"]))), 128))
438
+ ])
439
+ ]),
440
+ o(U, {
441
+ type: "border-card",
442
+ modelValue: C.value,
443
+ "onUpdate:modelValue": c[1] || (c[1] = (g) => C.value = g),
444
+ onTabClick: I
445
+ }, {
446
+ default: e(() => [
447
+ o(V, {
448
+ label: "业务表单",
449
+ name: "businessForm"
450
+ }, {
451
+ default: e(() => [
452
+ (f(), b(ae(R.value), {
453
+ ref_key: "taskFromRef",
454
+ ref: k,
455
+ modelValue: d.value,
456
+ "onUpdate:modelValue": c[0] || (c[0] = (g) => d.value = g),
457
+ task: r,
458
+ onNodeButtonList: B,
459
+ onDealWith: a
460
+ }, null, 40, ["modelValue", "task"]))
461
+ ]),
462
+ _: 1
463
+ }),
464
+ o(V, {
465
+ label: "流程办理记录",
466
+ name: "record"
467
+ }, {
468
+ default: e(() => [
469
+ o(re, {
470
+ "proc-inst-id": r.processInstanceId
471
+ }, null, 8, ["proc-inst-id"])
472
+ ]),
473
+ _: 1
474
+ }),
475
+ r.formKey && r.formKey.startsWith("Task") ? (f(), b(V, {
476
+ key: 0,
477
+ label: "流程附件",
478
+ name: "attachment"
479
+ }, {
480
+ default: e(() => [
481
+ C.value === "attachment" ? (f(), b(ie, {
482
+ key: 0,
483
+ "proc-inst-id": r.processInstanceId
484
+ }, null, 8, ["proc-inst-id"])) : N("", !0)
485
+ ]),
486
+ _: 1
487
+ })) : N("", !0)
488
+ ]),
489
+ _: 1
490
+ }, 8, ["modelValue"]),
491
+ d.value.visible ? (f(), b(i, {
492
+ key: 0,
493
+ modelValue: d.value,
494
+ "onUpdate:modelValue": c[2] || (c[2] = (g) => d.value = g),
495
+ onRefresh: K
496
+ }, null, 8, ["modelValue"])) : N("", !0),
497
+ s.value.visible ? (f(), b(A, {
498
+ key: 1,
499
+ modelValue: s.value.visible,
500
+ "onUpdate:modelValue": c[3] || (c[3] = (g) => s.value.visible = g),
501
+ "task-id": r.id,
502
+ onRefresh: K
503
+ }, null, 8, ["modelValue", "task-id"])) : N("", !0)
504
+ ]),
505
+ _: 1
506
+ });
507
+ };
508
+ }
509
+ });
510
+ export {
511
+ Fe as default
512
+ };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./done-list.vue_vue_type_script_setup_true_lang-BTOEGywI.mjs";
1
+ import { _ as f } from "./done-list.vue_vue_type_script_setup_true_lang-Be7510ro.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./done-list.vue_vue_type_script_setup_true_lang-nuRa3UZe.mjs";
1
+ import { _ as f } from "./done-list.vue_vue_type_script_setup_true_lang-Bfxyk6MR.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./done-list.vue_vue_type_script_setup_true_lang-DCHXFSMh.mjs";
1
+ import { _ as f } from "./done-list.vue_vue_type_script_setup_true_lang-C946QIzs.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -2,8 +2,8 @@ import { _ as G } from "./index.vue_vue_type_script_setup_true_lang-ApukGIih.mjs
2
2
  import { defineComponent as J, ref as g, onActivated as X, resolveComponent as n, createElementBlock as F, openBlock as v, createElementVNode as i, createVNode as a, createBlock as k, createCommentVNode as I, withCtx as l, unref as r, withKeys as Y, createTextVNode as T, toDisplayString as u, isRef as $ } from "vue";
3
3
  import { useUserStoreHook as Z, useTableHooks as x } from "jmash-core";
4
4
  import { useI18n as ee } from "vue-i18n";
5
- import { i as te } from "./index-DI_ohizx.mjs";
6
- import { D as m, O as le, C as h } from "./index-BuqaGtyz.mjs";
5
+ import { i as te } from "./index-1IbM-LFw.mjs";
6
+ import { D as m, O as le, C as h } from "./index-FgcWIc8d.mjs";
7
7
  import { useRouter as oe } from "vue-router";
8
8
  import { _ as ae } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
9
9
  const re = { class: "app-container" }, se = { class: "search-container" }, ne = ["onClick"], ue = ["onClick"], pe = /* @__PURE__ */ J({
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./done-list.vue_vue_type_script_setup_true_lang-n3qQrppK.mjs";
1
+ import { _ as f } from "./done-list.vue_vue_type_script_setup_true_lang-N5J18dBB.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./done-list.vue_vue_type_script_setup_true_lang-CjxRYNR_.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -2,10 +2,10 @@ import { _ as X } from "./index.vue_vue_type_script_setup_true_lang-ApukGIih.mjs
2
2
  import { defineComponent as Z, getCurrentInstance as ee, ref as w, onActivated as te, resolveComponent as s, createElementBlock as _, openBlock as y, createElementVNode as m, createVNode as a, createBlock as O, createCommentVNode as I, withCtx as o, unref as r, withKeys as oe, createTextVNode as h, toDisplayString as i, isRef as $ } from "vue";
3
3
  import { useUserStoreHook as le, useTableHooks as ae } from "jmash-core";
4
4
  import { useI18n as re } from "vue-i18n";
5
- import { D as g, O as D, C as f } from "./index-BuqaGtyz.mjs";
5
+ import { D as g, O as D, C as f } from "./index-FgcWIc8d.mjs";
6
6
  import { rbacApi as ne } from "jmash-rbac";
7
7
  import { useRouter as se } from "vue-router";
8
- import { a as ie } from "./index-DSO_VcCZ.mjs";
8
+ import { a as ie } from "./index-DbgYa9Fi.mjs";
9
9
  const ue = { class: "app-container" }, me = { class: "search-container" }, pe = { key: 0 }, de = ["onClick"], ce = ["onClick"], he = /* @__PURE__ */ Z({
10
10
  __name: "done-list",
11
11
  setup(ye) {
@@ -2,10 +2,10 @@ import { _ as W } from "./index.vue_vue_type_script_setup_true_lang-ApukGIih.mjs
2
2
  import { defineComponent as G, getCurrentInstance as J, ref as b, onActivated as X, resolveComponent as n, createElementBlock as g, openBlock as d, createElementVNode as _, createVNode as a, createBlock as S, createCommentVNode as v, withCtx as l, unref as r, withKeys as Z, createTextVNode as T, toDisplayString as m, isRef as B } from "vue";
3
3
  import { useUserStoreHook as ee, useTableHooks as te } from "jmash-core";
4
4
  import { useI18n as oe } from "vue-i18n";
5
- import { D as c, O as le, C as k } from "./index-BuqaGtyz.mjs";
5
+ import { D as c, O as le, C as k } from "./index-FgcWIc8d.mjs";
6
6
  import { rbacApi as ae } from "jmash-rbac";
7
7
  import { useRouter as re } from "vue-router";
8
- import { a as ne } from "./index-DSO_VcCZ.mjs";
8
+ import { a as ne } from "./index-DbgYa9Fi.mjs";
9
9
  const se = { class: "app-container" }, ie = { class: "search-container" }, me = { key: 0 }, ue = ["onClick"], pe = ["onClick"], ke = /* @__PURE__ */ G({
10
10
  __name: "done-list",
11
11
  setup(de) {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as X, ref as y, onActivated as Y, resolveComponent as u, resolveDirective as Z, createElementBlock as S, openBlock as f, createElementVNode as v, createVNode as l, createBlock as k, createCommentVNode as C, withCtx as a, withKeys as b, unref as n, createTextVNode as D, toDisplayString as c, withDirectives as x, isRef as I } from "vue";
2
2
  import { useUserStoreHook as ee, useTableHooks as te } from "jmash-core";
3
3
  import { useI18n as le } from "vue-i18n";
4
- import { D as N, O as oe, C as V, i as ae } from "./index-BuqaGtyz.mjs";
4
+ import { D as N, O as oe, C as V, i as ae } from "./index-FgcWIc8d.mjs";
5
5
  import { useRouter as ne } from "vue-router";
6
6
  import { _ as re } from "./index.vue_vue_type_script_setup_true_lang-ApukGIih.mjs";
7
7
  const se = { class: "app-container" }, ue = { class: "search-container" }, ie = ["onClick"], ce = ["onClick"], ge = /* @__PURE__ */ X({
@@ -2,8 +2,8 @@ import { _ as W } from "./index.vue_vue_type_script_setup_true_lang-ApukGIih.mjs
2
2
  import { defineComponent as X, ref as b, onActivated as Y, resolveComponent as i, resolveDirective as Z, createElementBlock as F, openBlock as f, Fragment as x, createElementVNode as w, createVNode as l, createBlock as N, createCommentVNode as y, withCtx as n, withKeys as k, unref as a, createTextVNode as $, toDisplayString as m, withDirectives as ee, isRef as S } from "vue";
3
3
  import { useUserStoreHook as oe, useTableHooks as te } from "jmash-core";
4
4
  import { useI18n as le } from "vue-i18n";
5
- import { i as ne } from "./index-BE28sw1l.mjs";
6
- import { C as I, D as C } from "./index-BuqaGtyz.mjs";
5
+ import { i as ne } from "./index-Bf2J0dH3.mjs";
6
+ import { C as I, D as C } from "./index-FgcWIc8d.mjs";
7
7
  import { useRouter as ae } from "vue-router";
8
8
  const re = { class: "search-container" }, se = ["onClick"], ie = ["onClick"], be = /* @__PURE__ */ X({
9
9
  __name: "done-list",
@@ -2,8 +2,8 @@ import { _ as X } from "./index.vue_vue_type_script_setup_true_lang-ApukGIih.mjs
2
2
  import { defineComponent as Y, ref as w, onActivated as Z, resolveComponent as s, resolveDirective as x, createElementBlock as S, openBlock as f, Fragment as ee, createElementVNode as m, createVNode as n, createBlock as y, createCommentVNode as _, withCtx as o, withKeys as N, unref as a, createTextVNode as $, toDisplayString as i, withDirectives as te, isRef as D } from "vue";
3
3
  import { useUserStoreHook as oe, useTableHooks as le } from "jmash-core";
4
4
  import { useI18n as ne } from "vue-i18n";
5
- import { i as ae } from "./index-DSO_VcCZ.mjs";
6
- import { C as j, D as p } from "./index-BuqaGtyz.mjs";
5
+ import { i as ae } from "./index-DbgYa9Fi.mjs";
6
+ import { C as j, D as p } from "./index-FgcWIc8d.mjs";
7
7
  import { useRouter as re } from "vue-router";
8
8
  const se = { class: "search-container" }, ue = ["onClick"], ie = ["onClick"], we = /* @__PURE__ */ Y({
9
9
  __name: "done-list",
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-C5YpGLFT.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-Dtzf5DO9.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-Uv6akbAE.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-Bh7bIaSW.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -2,10 +2,10 @@ import { defineComponent as ge, mergeModels as G, ref as $, useModel as be, reac
2
2
  import { ElMessage as y } from "element-plus";
3
3
  import { e as Se, p as Fe } from "./index-D1e4d4N7.mjs";
4
4
  import { useI18n as Pe } from "vue-i18n";
5
- import { i as E } from "./index-DI_ohizx.mjs";
6
- import { D as q, O as Te, C as W } from "./index-BuqaGtyz.mjs";
5
+ import { i as E } from "./index-1IbM-LFw.mjs";
6
+ import { D as q, O as Te, C as W } from "./index-FgcWIc8d.mjs";
7
7
  import { itemBudgetApi as X } from "xyvcard-itsm";
8
- import { i as $e } from "./index-EPWoxLQY.mjs";
8
+ import { i as $e } from "./index-BRTDW62j.mjs";
9
9
  import { useUserStoreHook as qe } from "jmash-core";
10
10
  import { useRoute as Ie } from "vue-router";
11
11
  import { _ as _e } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as ye, mergeModels as j, ref as c, reactive as Y, computed as z, watch as K, useModel as ge, nextTick as Ie, resolveComponent as i, createBlock as I, openBlock as n, withCtx as a, createVNode as o, unref as s, createElementBlock as y, Fragment as v, renderList as V, createCommentVNode as H, createTextVNode as w, toDisplayString as b, createElementVNode as ve } from "vue";
2
2
  import { ElMessage as G } from "element-plus";
3
3
  import { useI18n as we } from "vue-i18n";
4
- import { a as $ } from "./index-DSO_VcCZ.mjs";
5
- import { D as F, O as J, C as U, i as be } from "./index-BuqaGtyz.mjs";
4
+ import { a as $ } from "./index-DbgYa9Fi.mjs";
5
+ import { D as F, O as J, C as U, i as be } from "./index-FgcWIc8d.mjs";
6
6
  import { u as Fe } from "./index-D1e4d4N7.mjs";
7
7
  import { sysUserExtApi as _e } from "xyvcard-itsmsys";
8
8
  import { useUserStoreHook as he } from "jmash-core";