xyvcard-itsm-flow 0.0.16 → 0.0.18
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.
- package/dist/{edit-BKYkA5db.mjs → edit-DIh0NEYf.mjs} +1 -1
- package/dist/{edit-BeFLJLv1.mjs → edit-DdzFTqhg.mjs} +1 -1
- package/dist/{edit-BrIptvPg.mjs → edit-Vw2XQ1u6.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CjjtZ0-a.mjs → edit.vue_vue_type_script_setup_true_lang-BjhcvEHi.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BiWjf5y2.mjs → edit.vue_vue_type_script_setup_true_lang-m73-ejk7.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BhTKkYft.mjs → edit.vue_vue_type_script_setup_true_lang-prup6BHU.mjs} +1 -1
- package/dist/{index-CZw5m3rz.mjs → index-7_pEehBt.mjs} +4 -8
- package/dist/{index-B9enSHLF.mjs → index-BI1uXq1f.mjs} +1 -1
- package/dist/index-C54FcKfo.mjs +424 -0
- package/dist/{index-DY017z-s.mjs → index-C7_kMdm5.mjs} +2 -2
- package/dist/index-C7nUkCbR.mjs +361 -0
- package/dist/{index-B7xhs2Eg.mjs → index-CITy8Hqm.mjs} +1 -1
- package/dist/{index-DVDOqO_3.mjs → index-Cgbv4Ijf.mjs} +16 -13
- package/dist/{index-B7M3zSyM.mjs → index-CxyHtsq2.mjs} +2 -2
- package/dist/{index-C0CZrR-1.mjs → index-DaSMRndr.mjs} +2 -2
- package/dist/{index-BcD1DAF_.mjs → index-DcpiD-9M.mjs} +102 -77
- package/dist/{index-Clc9EA6r.mjs → index-Dooa5UH_.mjs} +1 -1
- package/dist/{index-IG9HKXxJ.mjs → index-g0KiWDPW.mjs} +35 -38
- package/dist/{index-d_oBTW1A.mjs → index-tnTugnqa.mjs} +51 -54
- package/dist/index.mjs +193 -187
- package/dist/{info-D6GMiIlG.mjs → info-8NydJYfB.mjs} +1 -1
- package/dist/{info-DxYNokk4.mjs → info-BbMCDfFR.mjs} +1 -1
- package/dist/{info-CFSSXb0f.mjs → info-l0eP5Tw1.mjs} +1 -1
- package/dist/{info.vue_vue_type_script_setup_true_lang-BFT23MNt.mjs → info.vue_vue_type_script_setup_true_lang-BnDpoavn.mjs} +17 -13
- package/dist/{info.vue_vue_type_script_setup_true_lang-CSn1JLZG.mjs → info.vue_vue_type_script_setup_true_lang-DMw-pPEW.mjs} +1 -1
- package/dist/{info.vue_vue_type_script_setup_true_lang-CYmFW8We.mjs → info.vue_vue_type_script_setup_true_lang-wuHB-S6l.mjs} +1 -1
- package/dts/api/itsm-flow-acceptance/types.d.ts +2 -0
- package/dts/api/itsm-flow-entrust/types.d.ts +4 -0
- package/dts/api/itsm-flow-reckoning/types.d.ts +1 -0
- package/dts/constant.d.ts +1 -0
- package/dts/lang/itsm-flow/zh-cn.d.ts +6 -0
- package/package.json +2 -2
- package/dist/index-DTKFEGFs.mjs +0 -339
- package/dist/index-rnfNatQ1.mjs +0 -315
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as be, mergeModels as ge, ref as f, useModel as Ie, reactive as H, resolveComponent as d, createElementBlock as k, openBlock as w, Fragment as $, createVNode as l, withCtx as o, createElementVNode as u, unref as r, renderList as K, createBlock as q, toDisplayString as W, createCommentVNode as he, createTextVNode as O } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { p as
|
|
5
|
-
import { c as
|
|
6
|
-
import { E as
|
|
7
|
-
const Re = /* @__PURE__ */
|
|
3
|
+
import { useI18n as we } from "vue-i18n";
|
|
4
|
+
import { p as Ee } from "./index-PafaMNgK.mjs";
|
|
5
|
+
import { c as Ve, C as v, d as _e, e as Ne, D as E, a as J, f as R, b as Fe } from "./index-Cgbv4Ijf.mjs";
|
|
6
|
+
import { E as Ue } from "./el-message-DawVzOVQ.mjs";
|
|
7
|
+
const Re = /* @__PURE__ */ be({
|
|
8
8
|
__name: "index",
|
|
9
|
-
props: /* @__PURE__ */
|
|
9
|
+
props: /* @__PURE__ */ ge({
|
|
10
10
|
task: {
|
|
11
11
|
type: Object,
|
|
12
12
|
default: () => {
|
|
@@ -17,24 +17,24 @@ const Re = /* @__PURE__ */ ge({
|
|
|
17
17
|
modelModifiers: {}
|
|
18
18
|
}),
|
|
19
19
|
emits: ["update:modelValue"],
|
|
20
|
-
setup(D, { expose:
|
|
21
|
-
const { t: I } =
|
|
20
|
+
setup(D, { expose: G }) {
|
|
21
|
+
const { t: I } = we(), B = f([]), z = f([]), M = f([]), V = f([]), p = f({}), _ = f([]), U = new Ve({
|
|
22
22
|
contractSort: v.contractSort.manpower,
|
|
23
23
|
contractType: v.contractType.outsource
|
|
24
24
|
});
|
|
25
25
|
U.useValues();
|
|
26
|
-
const y = new
|
|
26
|
+
const y = new _e({
|
|
27
27
|
contractSort: v.contractSort.manpower,
|
|
28
28
|
contractType: v.contractType.outsource
|
|
29
29
|
});
|
|
30
30
|
y.useValues();
|
|
31
|
-
const N = new
|
|
31
|
+
const N = new Ne({});
|
|
32
32
|
N.useValues(), E.parentIdBizDict.useValues(), E.orgIdBizDict.useValues();
|
|
33
33
|
const S = D, T = f({
|
|
34
34
|
curPage: 1,
|
|
35
35
|
pageSize: 10,
|
|
36
36
|
entrustId: S.task.businessKey
|
|
37
|
-
}), b =
|
|
37
|
+
}), b = Ie(D, "modelValue"), A = f();
|
|
38
38
|
let s = H({
|
|
39
39
|
requestId: Math.random() * 10 + ""
|
|
40
40
|
});
|
|
@@ -46,7 +46,7 @@ const Re = /* @__PURE__ */ ge({
|
|
|
46
46
|
duration: []
|
|
47
47
|
}
|
|
48
48
|
]);
|
|
49
|
-
function
|
|
49
|
+
function Q() {
|
|
50
50
|
g.value.push({
|
|
51
51
|
contractUserId: "",
|
|
52
52
|
idNo: "",
|
|
@@ -54,11 +54,11 @@ const Re = /* @__PURE__ */ ge({
|
|
|
54
54
|
duration: []
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function X(e) {
|
|
58
58
|
const t = g.value.indexOf(e.row);
|
|
59
59
|
t !== 0 && g.value.splice(t, 1);
|
|
60
60
|
}
|
|
61
|
-
const
|
|
61
|
+
const Y = H({
|
|
62
62
|
contractId: [
|
|
63
63
|
{
|
|
64
64
|
required: !0,
|
|
@@ -88,11 +88,11 @@ const Re = /* @__PURE__ */ ge({
|
|
|
88
88
|
}
|
|
89
89
|
]
|
|
90
90
|
});
|
|
91
|
-
S.task.businessKey &&
|
|
92
|
-
changeModel: () =>
|
|
91
|
+
S.task.businessKey && x(), G({
|
|
92
|
+
changeModel: () => se()
|
|
93
93
|
});
|
|
94
|
-
function
|
|
95
|
-
|
|
94
|
+
function Z() {
|
|
95
|
+
Fe.findList({ actionId: T.value.entrustId }).then(({ data: e }) => {
|
|
96
96
|
const t = e.results.map((a) => ({
|
|
97
97
|
...a,
|
|
98
98
|
contractUserId: a.userId,
|
|
@@ -101,9 +101,9 @@ const Re = /* @__PURE__ */ ge({
|
|
|
101
101
|
g.value = t;
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function x() {
|
|
105
105
|
J.findById({ entrustId: T.value.entrustId }).then(({ data: e }) => {
|
|
106
|
-
Object.assign(s, e),
|
|
106
|
+
Object.assign(s, e), Z(), p.value = new R({
|
|
107
107
|
contractId: e.contractId
|
|
108
108
|
}), p.value.useValues(), _.value = typeof e.entrustItsmId == "string" ? e.entrustItsmId.split(",") || [] : [], V.value = typeof e.belongOrgId == "string" ? e.belongOrgId.split(",") || [] : [];
|
|
109
109
|
});
|
|
@@ -113,7 +113,7 @@ const Re = /* @__PURE__ */ ge({
|
|
|
113
113
|
e.contractUserId = "", e.idNo = "", e.cost = 0, e.duration = [];
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function ee(e) {
|
|
117
117
|
const t = U.values.find(
|
|
118
118
|
(a) => a.key === e
|
|
119
119
|
);
|
|
@@ -121,7 +121,7 @@ const Re = /* @__PURE__ */ ge({
|
|
|
121
121
|
contractId: e
|
|
122
122
|
}), p.value.useValues();
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function te(e) {
|
|
125
125
|
const t = y.values.find(
|
|
126
126
|
(a) => a.key === e
|
|
127
127
|
);
|
|
@@ -129,13 +129,13 @@ const Re = /* @__PURE__ */ ge({
|
|
|
129
129
|
contractId: t.contractId
|
|
130
130
|
}), p.value.useValues();
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function le(e, t) {
|
|
133
133
|
const a = p.value.values.find(
|
|
134
134
|
(m) => m.key === e
|
|
135
135
|
);
|
|
136
136
|
a ? (t.userName = a.value ?? "", t.idNo = a.idNo ?? "", t.cost = Number(a.cost) || 0) : (t.userName = "", t.idNo = "", t.cost = 0);
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function ae(e) {
|
|
139
139
|
const t = e.map((a) => {
|
|
140
140
|
const m = N.values.find(
|
|
141
141
|
(c) => c.key === a
|
|
@@ -144,7 +144,7 @@ const Re = /* @__PURE__ */ ge({
|
|
|
144
144
|
}).filter((a) => a !== null);
|
|
145
145
|
V.value = Array.from(new Set(t));
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function ne() {
|
|
148
148
|
z.value = _.value.map((e) => {
|
|
149
149
|
const t = N.values.find(
|
|
150
150
|
(a) => a.key === e
|
|
@@ -155,7 +155,7 @@ const Re = /* @__PURE__ */ ge({
|
|
|
155
155
|
};
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function oe() {
|
|
159
159
|
M.value = V.value.map((e) => {
|
|
160
160
|
const t = E.parentIdBizDict.values.find(
|
|
161
161
|
(a) => a.value === e
|
|
@@ -166,7 +166,7 @@ const Re = /* @__PURE__ */ ge({
|
|
|
166
166
|
};
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function re() {
|
|
170
170
|
B.value = g.value.map((e) => {
|
|
171
171
|
console.log(e);
|
|
172
172
|
const { duration: t, ...a } = e;
|
|
@@ -177,9 +177,9 @@ const Re = /* @__PURE__ */ ge({
|
|
|
177
177
|
};
|
|
178
178
|
}).filter(
|
|
179
179
|
(e) => !(e.cost === 0 && !e.contractUserId)
|
|
180
|
-
),
|
|
180
|
+
), ne(), oe();
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function se() {
|
|
183
183
|
return b.value && (b.value.selectActions = [
|
|
184
184
|
{ key: "true", value: "同意" },
|
|
185
185
|
{ key: "false", value: "不同意" }
|
|
@@ -188,18 +188,15 @@ const Re = /* @__PURE__ */ ge({
|
|
|
188
188
|
(a = A.value) == null || a.validate((m) => {
|
|
189
189
|
if (m) {
|
|
190
190
|
if (b.value) {
|
|
191
|
-
if (b.value.comment = "",
|
|
192
|
-
return
|
|
191
|
+
if (b.value.comment = "", re(), _.value.length === 0)
|
|
192
|
+
return Ue.warning(I("itsmFlowEntrust.entrustItsmIdRequired")), t(!1);
|
|
193
193
|
s.requestId = Math.random() * 10 + "", J.save({
|
|
194
194
|
...s,
|
|
195
195
|
entrustUser: B.value,
|
|
196
196
|
belongOrg: M.value,
|
|
197
197
|
entrustItsm: z.value
|
|
198
198
|
}).then((c) => {
|
|
199
|
-
c.status === 200 ? e(!0) : (
|
|
200
|
-
message: "保存失败,请联系管理员!",
|
|
201
|
-
type: "error"
|
|
202
|
-
}), t(!1));
|
|
199
|
+
c.status === 200 ? e(!0) : t(!1);
|
|
203
200
|
});
|
|
204
201
|
}
|
|
205
202
|
} else
|
|
@@ -208,7 +205,7 @@ const Re = /* @__PURE__ */ ge({
|
|
|
208
205
|
});
|
|
209
206
|
}
|
|
210
207
|
return (e, t) => {
|
|
211
|
-
const a = d("el-col"), m = d("jmash-select"), c = d("el-form-item"),
|
|
208
|
+
const a = d("el-col"), m = d("jmash-select"), c = d("el-form-item"), ue = d("jmash-dict-select"), j = d("el-option"), P = d("el-select"), de = d("el-tree-select"), C = d("el-row"), F = d("el-input"), h = d("el-table-column"), ie = d("el-date-picker"), ce = d("DeleteFilled"), me = d("el-icon"), pe = d("el-table"), fe = d("el-button"), ve = d("el-form");
|
|
212
209
|
return w(), k($, null, [
|
|
213
210
|
l(a, { span: 24 }, {
|
|
214
211
|
default: o(() => t[9] || (t[9] = [
|
|
@@ -217,12 +214,12 @@ const Re = /* @__PURE__ */ ge({
|
|
|
217
214
|
_: 1,
|
|
218
215
|
__: [9]
|
|
219
216
|
}),
|
|
220
|
-
l(
|
|
217
|
+
l(ve, {
|
|
221
218
|
ref_key: "taskFormRef",
|
|
222
219
|
ref: A,
|
|
223
220
|
model: r(s),
|
|
224
221
|
"label-width": "150px",
|
|
225
|
-
rules:
|
|
222
|
+
rules: Y,
|
|
226
223
|
class: "custom-table-form custom-form"
|
|
227
224
|
}, {
|
|
228
225
|
default: o(() => [
|
|
@@ -241,7 +238,7 @@ const Re = /* @__PURE__ */ ge({
|
|
|
241
238
|
clearable: "",
|
|
242
239
|
filterable: "",
|
|
243
240
|
class: "w-full",
|
|
244
|
-
onChange:
|
|
241
|
+
onChange: ee
|
|
245
242
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
246
243
|
]),
|
|
247
244
|
_: 1
|
|
@@ -264,7 +261,7 @@ const Re = /* @__PURE__ */ ge({
|
|
|
264
261
|
clearable: "",
|
|
265
262
|
filterable: "",
|
|
266
263
|
class: "w-full",
|
|
267
|
-
onChange:
|
|
264
|
+
onChange: te
|
|
268
265
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
269
266
|
]),
|
|
270
267
|
_: 1
|
|
@@ -279,7 +276,7 @@ const Re = /* @__PURE__ */ ge({
|
|
|
279
276
|
prop: "entrustName"
|
|
280
277
|
}, {
|
|
281
278
|
default: o(() => [
|
|
282
|
-
l(
|
|
279
|
+
l(ue, {
|
|
283
280
|
modelValue: r(s).entrustName,
|
|
284
281
|
"onUpdate:modelValue": t[2] || (t[2] = (n) => r(s).entrustName = n),
|
|
285
282
|
placeholder: e.$t("itsmFlowEntrust.entrustNameRequired"),
|
|
@@ -309,7 +306,7 @@ const Re = /* @__PURE__ */ ge({
|
|
|
309
306
|
filterable: "",
|
|
310
307
|
clearable: "",
|
|
311
308
|
multiple: "",
|
|
312
|
-
onChange:
|
|
309
|
+
onChange: ae
|
|
313
310
|
}, {
|
|
314
311
|
default: o(() => [
|
|
315
312
|
(w(!0), k($, null, K(r(N).values, (n) => (w(), q(j, {
|
|
@@ -334,7 +331,7 @@ const Re = /* @__PURE__ */ ge({
|
|
|
334
331
|
prop: "belongOrg"
|
|
335
332
|
}, {
|
|
336
333
|
default: o(() => [
|
|
337
|
-
l(
|
|
334
|
+
l(de, {
|
|
338
335
|
modelValue: V.value,
|
|
339
336
|
"onUpdate:modelValue": t[4] || (t[4] = (n) => V.value = n),
|
|
340
337
|
data: r(E).parentIdBizDict.values,
|
|
@@ -445,7 +442,7 @@ const Re = /* @__PURE__ */ ge({
|
|
|
445
442
|
}),
|
|
446
443
|
l(C, null, {
|
|
447
444
|
default: o(() => [
|
|
448
|
-
l(
|
|
445
|
+
l(pe, {
|
|
449
446
|
data: g.value,
|
|
450
447
|
border: "",
|
|
451
448
|
style: { width: "100%" }
|
|
@@ -471,7 +468,7 @@ const Re = /* @__PURE__ */ ge({
|
|
|
471
468
|
class: "w-full",
|
|
472
469
|
filterable: "",
|
|
473
470
|
clearable: "",
|
|
474
|
-
onChange: (i) =>
|
|
471
|
+
onChange: (i) => le(i, n)
|
|
475
472
|
}, {
|
|
476
473
|
default: o(() => [
|
|
477
474
|
(w(!0), k($, null, K(p.value.values, (i) => (w(), q(j, {
|
|
@@ -526,7 +523,7 @@ const Re = /* @__PURE__ */ ge({
|
|
|
526
523
|
u("span", null, W(e.$t("itsmFlowEntrustUser.duration")), 1)
|
|
527
524
|
]),
|
|
528
525
|
default: o(({ row: n }) => [
|
|
529
|
-
l(
|
|
526
|
+
l(ie, {
|
|
530
527
|
modelValue: n.duration,
|
|
531
528
|
"onUpdate:modelValue": (i) => n.duration = i,
|
|
532
529
|
type: "monthrange",
|
|
@@ -545,28 +542,28 @@ const Re = /* @__PURE__ */ ge({
|
|
|
545
542
|
align: "center"
|
|
546
543
|
}, {
|
|
547
544
|
default: o((n) => [
|
|
548
|
-
n.$index !== 0 ? (w(), q(
|
|
545
|
+
n.$index !== 0 ? (w(), q(me, {
|
|
549
546
|
key: 0,
|
|
550
|
-
onClick: (i) =>
|
|
547
|
+
onClick: (i) => X(n),
|
|
551
548
|
size: "18",
|
|
552
549
|
style: { cursor: "pointer", color: "inherit" },
|
|
553
550
|
class: "hover-blue"
|
|
554
551
|
}, {
|
|
555
552
|
default: o(() => [
|
|
556
|
-
l(
|
|
553
|
+
l(ce)
|
|
557
554
|
]),
|
|
558
555
|
_: 2
|
|
559
|
-
}, 1032, ["onClick"])) :
|
|
556
|
+
}, 1032, ["onClick"])) : he("", !0)
|
|
560
557
|
]),
|
|
561
558
|
_: 1
|
|
562
559
|
}, 8, ["label"])
|
|
563
560
|
]),
|
|
564
561
|
_: 1
|
|
565
562
|
}, 8, ["data"]),
|
|
566
|
-
l(
|
|
567
|
-
icon: r(
|
|
563
|
+
l(fe, {
|
|
564
|
+
icon: r(Ee),
|
|
568
565
|
class: "addButton",
|
|
569
|
-
onClick:
|
|
566
|
+
onClick: Q
|
|
570
567
|
}, {
|
|
571
568
|
default: o(() => [
|
|
572
569
|
O(W(r(I)("common.add")), 1)
|