xyvcard-itsm-flow 0.0.6 → 0.0.8
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/FileSaver.min-BeKvLuyk.mjs +73 -0
- package/dist/common--K4gGsNT.mjs +85 -0
- package/dist/{edit-CWxy8_xc.mjs → edit-B621RtNS.mjs} +1 -1
- package/dist/edit-CoRzQ2SK.mjs +4 -0
- package/dist/edit-Czk64Yon.mjs +4 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-AhC28_ys.mjs +670 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-BYz7O3Xi.mjs +523 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-D-UzvXtU.mjs +567 -0
- package/dist/el-message-FfNjxLv_.mjs +1238 -0
- package/dist/index-B5vmtcUk.mjs +528 -0
- package/dist/index-BCP5cBN6.mjs +486 -0
- package/dist/index-BJl7xHYx.mjs +339 -0
- package/dist/{index-C_jhIPZS.mjs → index-BlBkHqXR.mjs} +77 -90
- package/dist/index-CRHpl0qA.mjs +501 -0
- package/dist/index-CVbpEq7V.mjs +442 -0
- package/dist/index-CdzhLCkX.mjs +356 -0
- package/dist/index-DX1PURJy.mjs +624 -0
- package/dist/index-DY7ZV5kq.mjs +567 -0
- package/dist/index-Dld6YbIV.mjs +484 -0
- package/dist/index.mjs +936 -917
- package/dist/style.css +1 -1
- package/dts/api/dict.d.ts +15 -0
- package/dts/api/index.d.ts +6 -1
- package/dts/api/itsm-flow-acceptance/index.d.ts +14 -0
- package/dts/api/itsm-flow-acceptance/types.d.ts +83 -0
- package/dts/api/itsm-flow-entrust/index.d.ts +6 -2
- package/dts/api/itsm-flow-entrust/types.d.ts +26 -5
- package/dts/api/itsm-flow-entrust-user/types.d.ts +1 -3
- package/dts/api/itsm-flow-reckoning/index.d.ts +14 -0
- package/dts/api/itsm-flow-reckoning/types.d.ts +81 -0
- package/dts/components/TaskItsmFlowAcceptance/index.vue.d.ts +28 -0
- package/dts/components/TaskItsmFlowAcceptanceEdit/index.vue.d.ts +28 -0
- package/dts/components/TaskItsmFlowEntrustEdit/index.vue.d.ts +28 -0
- package/dts/components/TaskItsmFlowReckoning/index.vue.d.ts +28 -0
- package/dts/components/TaskItsmFlowReckoningEdit/index.vue.d.ts +28 -0
- package/dts/constant.d.ts +8 -0
- package/dts/index.d.ts +5 -0
- package/dts/lang/itsm-flow/zh-cn.d.ts +38 -30
- package/dts/utils/common.d.ts +2 -2
- package/dts/views/itsm-flow-acceptance/edit.vue.d.ts +28 -0
- package/dts/views/itsm-flow-acceptance/index.vue.d.ts +2 -0
- package/dts/views/itsm-flow-entrust/edit.vue.d.ts +4 -4
- package/dts/views/itsm-flow-reckoning/edit.vue.d.ts +28 -0
- package/dts/views/itsm-flow-reckoning/index.vue.d.ts +2 -0
- package/package.json +4 -4
- package/dist/edit.vue_vue_type_script_setup_true_lang-Dxn9JNKd.mjs +0 -619
- package/dist/index-DKtAcP6b.mjs +0 -1582
- package/dist/index-DdDM4ocv.mjs +0 -327
package/dist/index-DdDM4ocv.mjs
DELETED
|
@@ -1,327 +0,0 @@
|
|
|
1
|
-
import { defineComponent as j, mergeModels as z, ref as v, useModel as S, resolveComponent as p, openBlock as b, createBlock as q, withCtx as t, createVNode as e, createElementVNode as A, createTextVNode as u, toDisplayString as r, unref as w, createElementBlock as E, withDirectives as C, vShow as $, createCommentVNode as L } from "vue";
|
|
2
|
-
import "element-plus";
|
|
3
|
-
import { useRoute as P } from "vue-router";
|
|
4
|
-
import { D as c, i as R, b as T, C as K } from "./index-DKtAcP6b.mjs";
|
|
5
|
-
const W = { key: 0 }, G = { key: 1 }, H = {
|
|
6
|
-
key: 2,
|
|
7
|
-
class: "distance-left"
|
|
8
|
-
}, Z = /* @__PURE__ */ j({
|
|
9
|
-
__name: "index",
|
|
10
|
-
props: /* @__PURE__ */ z({
|
|
11
|
-
task: {
|
|
12
|
-
type: Object,
|
|
13
|
-
default: () => {
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}, {
|
|
17
|
-
modelValue: {},
|
|
18
|
-
modelModifiers: {}
|
|
19
|
-
}),
|
|
20
|
-
emits: ["update:modelValue"],
|
|
21
|
-
setup(I, { expose: h }) {
|
|
22
|
-
c.parentIdBizDict.useValues(), c.orgIdBizDict.useValues();
|
|
23
|
-
const V = P(), g = I, f = v({
|
|
24
|
-
curPage: 1,
|
|
25
|
-
pageSize: 10,
|
|
26
|
-
applyId: V.query.applyId
|
|
27
|
-
}), n = v({}), d = S(I, "modelValue"), k = v(), D = v({});
|
|
28
|
-
function N(l) {
|
|
29
|
-
l.mobileEncrypt = !l.mobileEncrypt;
|
|
30
|
-
}
|
|
31
|
-
g.task.businessKey && O(), h({
|
|
32
|
-
changeModel: () => U()
|
|
33
|
-
});
|
|
34
|
-
function O() {
|
|
35
|
-
f.value.applyId = g.task.businessKey, R.findById({ entrustId: f.value.applyId }).then(({ data: l }) => {
|
|
36
|
-
n.value = Object.assign(n.value, l), T.findList({ actionId: f.value.applyId }).then(({ data: m }) => {
|
|
37
|
-
n.value.entrustUser = [], m.results.forEach((o) => {
|
|
38
|
-
o.actionId == f.value.applyId && n.value.entrustUser.push({
|
|
39
|
-
...o
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
function U() {
|
|
46
|
-
return d.value && (d.value.selectActions = [
|
|
47
|
-
{ key: "true", value: "同意" },
|
|
48
|
-
{ key: "false", value: "不同意" }
|
|
49
|
-
], d.value.varName = "approved", d.value.module = "", d.value.module = K.MODULE_ITSMFLOW), new Promise((l, m) => {
|
|
50
|
-
var o;
|
|
51
|
-
(o = k.value) == null || o.validate((s) => {
|
|
52
|
-
s ? (d.value && (d.value.comment = ""), l(!0)) : m(!1);
|
|
53
|
-
});
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
return (l, m) => {
|
|
57
|
-
const o = p("el-col"), s = p("el-row"), i = p("el-form-item"), _ = p("el-table-column"), F = p("svg-icon"), B = p("el-table"), M = p("el-form");
|
|
58
|
-
return b(), q(M, {
|
|
59
|
-
ref_key: "taskFormRef",
|
|
60
|
-
ref: k,
|
|
61
|
-
model: D.value,
|
|
62
|
-
"label-width": "130px"
|
|
63
|
-
}, {
|
|
64
|
-
default: t(() => [
|
|
65
|
-
e(s, null, {
|
|
66
|
-
default: t(() => [
|
|
67
|
-
e(o, { span: 12 }, {
|
|
68
|
-
default: t(() => m[0] || (m[0] = [
|
|
69
|
-
A("div", { class: "title" }, "委托服务订单", -1)
|
|
70
|
-
])),
|
|
71
|
-
_: 1
|
|
72
|
-
})
|
|
73
|
-
]),
|
|
74
|
-
_: 1
|
|
75
|
-
}),
|
|
76
|
-
e(s, null, {
|
|
77
|
-
default: t(() => [
|
|
78
|
-
e(o, { span: 24 }, {
|
|
79
|
-
default: t(() => [
|
|
80
|
-
e(i, {
|
|
81
|
-
label: l.$t("itsmFlowEntrust.contractId"),
|
|
82
|
-
prop: "contractName"
|
|
83
|
-
}, {
|
|
84
|
-
default: t(() => [
|
|
85
|
-
u(r(n.value.contractName), 1)
|
|
86
|
-
]),
|
|
87
|
-
_: 1
|
|
88
|
-
}, 8, ["label"])
|
|
89
|
-
]),
|
|
90
|
-
_: 1
|
|
91
|
-
})
|
|
92
|
-
]),
|
|
93
|
-
_: 1
|
|
94
|
-
}),
|
|
95
|
-
e(s, null, {
|
|
96
|
-
default: t(() => [
|
|
97
|
-
e(o, { span: 24 }, {
|
|
98
|
-
default: t(() => [
|
|
99
|
-
e(i, {
|
|
100
|
-
label: l.$t("itsmFlowEntrust.contractNo"),
|
|
101
|
-
prop: "contractNo"
|
|
102
|
-
}, {
|
|
103
|
-
default: t(() => [
|
|
104
|
-
u(r(n.value.contractNo), 1)
|
|
105
|
-
]),
|
|
106
|
-
_: 1
|
|
107
|
-
}, 8, ["label"])
|
|
108
|
-
]),
|
|
109
|
-
_: 1
|
|
110
|
-
})
|
|
111
|
-
]),
|
|
112
|
-
_: 1
|
|
113
|
-
}),
|
|
114
|
-
e(s, null, {
|
|
115
|
-
default: t(() => [
|
|
116
|
-
e(o, { span: 12 }, {
|
|
117
|
-
default: t(() => [
|
|
118
|
-
e(i, {
|
|
119
|
-
label: l.$t("itsmFlowEntrust.entrustName"),
|
|
120
|
-
prop: "entrustName"
|
|
121
|
-
}, {
|
|
122
|
-
default: t(() => [
|
|
123
|
-
u(r(w(c).projectNameDict.getDictValue(n.value.entrustName)), 1)
|
|
124
|
-
]),
|
|
125
|
-
_: 1
|
|
126
|
-
}, 8, ["label"])
|
|
127
|
-
]),
|
|
128
|
-
_: 1
|
|
129
|
-
})
|
|
130
|
-
]),
|
|
131
|
-
_: 1
|
|
132
|
-
}),
|
|
133
|
-
e(s, null, {
|
|
134
|
-
default: t(() => [
|
|
135
|
-
e(o, { span: 12 }, {
|
|
136
|
-
default: t(() => [
|
|
137
|
-
e(i, {
|
|
138
|
-
label: l.$t("itsmFlowEntrust.entrustItsmId"),
|
|
139
|
-
prop: "entrustItsmId"
|
|
140
|
-
}, {
|
|
141
|
-
default: t(() => [
|
|
142
|
-
u(r(n.value.entrustItsmName), 1)
|
|
143
|
-
]),
|
|
144
|
-
_: 1
|
|
145
|
-
}, 8, ["label"])
|
|
146
|
-
]),
|
|
147
|
-
_: 1
|
|
148
|
-
})
|
|
149
|
-
]),
|
|
150
|
-
_: 1
|
|
151
|
-
}),
|
|
152
|
-
e(s, null, {
|
|
153
|
-
default: t(() => [
|
|
154
|
-
e(o, { span: 12 }, {
|
|
155
|
-
default: t(() => [
|
|
156
|
-
e(i, {
|
|
157
|
-
label: l.$t("itsmFlowEntrust.belongOrg"),
|
|
158
|
-
prop: "belongOrg"
|
|
159
|
-
}, {
|
|
160
|
-
default: t(() => {
|
|
161
|
-
var a;
|
|
162
|
-
return [
|
|
163
|
-
u(r((((a = n.value.belongOrgId) == null ? void 0 : a.split(",")) || []).map((y) => w(c).parentIdBizDict.getValue(y)).join(",")), 1)
|
|
164
|
-
];
|
|
165
|
-
}),
|
|
166
|
-
_: 1
|
|
167
|
-
}, 8, ["label"])
|
|
168
|
-
]),
|
|
169
|
-
_: 1
|
|
170
|
-
})
|
|
171
|
-
]),
|
|
172
|
-
_: 1
|
|
173
|
-
}),
|
|
174
|
-
e(s, null, {
|
|
175
|
-
default: t(() => [
|
|
176
|
-
e(o, { span: 12 }, {
|
|
177
|
-
default: t(() => [
|
|
178
|
-
e(i, {
|
|
179
|
-
label: l.$t("itsmFlowEntrust.serviceContent"),
|
|
180
|
-
prop: "serviceContent"
|
|
181
|
-
}, {
|
|
182
|
-
default: t(() => [
|
|
183
|
-
u(r(w(c).serviceContentEnum.getEnumValue(n.value.serviceContent)), 1)
|
|
184
|
-
]),
|
|
185
|
-
_: 1
|
|
186
|
-
}, 8, ["label"])
|
|
187
|
-
]),
|
|
188
|
-
_: 1
|
|
189
|
-
})
|
|
190
|
-
]),
|
|
191
|
-
_: 1
|
|
192
|
-
}),
|
|
193
|
-
e(s, null, {
|
|
194
|
-
default: t(() => [
|
|
195
|
-
e(o, { span: 12 }, {
|
|
196
|
-
default: t(() => [
|
|
197
|
-
e(i, {
|
|
198
|
-
label: l.$t("itsmFlowEntrust.serviceOrg"),
|
|
199
|
-
prop: "serviceOrg"
|
|
200
|
-
}, {
|
|
201
|
-
default: t(() => [
|
|
202
|
-
u(r(w(c).orgIdBizDict.getValue(n.value.serviceOrg)), 1)
|
|
203
|
-
]),
|
|
204
|
-
_: 1
|
|
205
|
-
}, 8, ["label"])
|
|
206
|
-
]),
|
|
207
|
-
_: 1
|
|
208
|
-
})
|
|
209
|
-
]),
|
|
210
|
-
_: 1
|
|
211
|
-
}),
|
|
212
|
-
e(s, null, {
|
|
213
|
-
default: t(() => [
|
|
214
|
-
e(o, { span: 12 }, {
|
|
215
|
-
default: t(() => [
|
|
216
|
-
e(i, {
|
|
217
|
-
label: l.$t("itsmFlowEntrust.orderNo"),
|
|
218
|
-
prop: "orderNo"
|
|
219
|
-
}, {
|
|
220
|
-
default: t(() => [
|
|
221
|
-
u(r(n.value.orderNo), 1)
|
|
222
|
-
]),
|
|
223
|
-
_: 1
|
|
224
|
-
}, 8, ["label"])
|
|
225
|
-
]),
|
|
226
|
-
_: 1
|
|
227
|
-
})
|
|
228
|
-
]),
|
|
229
|
-
_: 1
|
|
230
|
-
}),
|
|
231
|
-
e(s, null, {
|
|
232
|
-
default: t(() => [
|
|
233
|
-
e(o, { span: 12 }, {
|
|
234
|
-
default: t(() => [
|
|
235
|
-
e(i, {
|
|
236
|
-
label: l.$t("itsmFlowEntrust.workContent"),
|
|
237
|
-
prop: "workContent"
|
|
238
|
-
}, {
|
|
239
|
-
default: t(() => [
|
|
240
|
-
u(r(n.value.workContent), 1)
|
|
241
|
-
]),
|
|
242
|
-
_: 1
|
|
243
|
-
}, 8, ["label"])
|
|
244
|
-
]),
|
|
245
|
-
_: 1
|
|
246
|
-
})
|
|
247
|
-
]),
|
|
248
|
-
_: 1
|
|
249
|
-
}),
|
|
250
|
-
e(s, null, {
|
|
251
|
-
default: t(() => [
|
|
252
|
-
e(o, { span: 14 }, {
|
|
253
|
-
default: t(() => [
|
|
254
|
-
e(B, {
|
|
255
|
-
stripe: "",
|
|
256
|
-
data: n.value.entrustUser,
|
|
257
|
-
style: { width: "100%" }
|
|
258
|
-
}, {
|
|
259
|
-
default: t(() => [
|
|
260
|
-
e(_, {
|
|
261
|
-
prop: "userId",
|
|
262
|
-
label: l.$t("itsmFlowEntrustUser.userId")
|
|
263
|
-
}, {
|
|
264
|
-
default: t((a) => [
|
|
265
|
-
u(r(a.row.userName), 1)
|
|
266
|
-
]),
|
|
267
|
-
_: 1
|
|
268
|
-
}, 8, ["label"]),
|
|
269
|
-
e(_, {
|
|
270
|
-
prop: "idNo",
|
|
271
|
-
label: l.$t("itsmFlowEntrustUser.idNo")
|
|
272
|
-
}, {
|
|
273
|
-
default: t((a) => [
|
|
274
|
-
a.row.mobileEncrypt ? (b(), E("span", G, r(a.row.idNo), 1)) : (b(), E("span", W, r(a.row.idNoIns), 1)),
|
|
275
|
-
a.row.idNoIns ? (b(), E("span", H, [
|
|
276
|
-
C(e(F, {
|
|
277
|
-
"icon-class": "close-eye",
|
|
278
|
-
onClick: (y) => N(a.row)
|
|
279
|
-
}, null, 8, ["onClick"]), [
|
|
280
|
-
[$, !a.row.mobileEncrypt]
|
|
281
|
-
]),
|
|
282
|
-
C(e(F, {
|
|
283
|
-
"icon-class": "eye-open",
|
|
284
|
-
onClick: (y) => N(a.row)
|
|
285
|
-
}, null, 8, ["onClick"]), [
|
|
286
|
-
[$, a.row.mobileEncrypt]
|
|
287
|
-
])
|
|
288
|
-
])) : L("", !0)
|
|
289
|
-
]),
|
|
290
|
-
_: 1
|
|
291
|
-
}, 8, ["label"]),
|
|
292
|
-
e(_, {
|
|
293
|
-
prop: "cost",
|
|
294
|
-
label: l.$t("itsmFlowEntrustUser.cost")
|
|
295
|
-
}, {
|
|
296
|
-
default: t((a) => [
|
|
297
|
-
u(r(a.row.cost), 1)
|
|
298
|
-
]),
|
|
299
|
-
_: 1
|
|
300
|
-
}, 8, ["label"]),
|
|
301
|
-
e(_, {
|
|
302
|
-
prop: "duration",
|
|
303
|
-
label: l.$t("itsmFlowEntrustUser.duration")
|
|
304
|
-
}, {
|
|
305
|
-
default: t((a) => [
|
|
306
|
-
u(r(a.row.duration && typeof a.row.duration == "string" ? a.row.duration.split(",").join("~") : a.row.duration), 1)
|
|
307
|
-
]),
|
|
308
|
-
_: 1
|
|
309
|
-
}, 8, ["label"])
|
|
310
|
-
]),
|
|
311
|
-
_: 1
|
|
312
|
-
}, 8, ["data"])
|
|
313
|
-
]),
|
|
314
|
-
_: 1
|
|
315
|
-
})
|
|
316
|
-
]),
|
|
317
|
-
_: 1
|
|
318
|
-
})
|
|
319
|
-
]),
|
|
320
|
-
_: 1
|
|
321
|
-
}, 8, ["model"]);
|
|
322
|
-
};
|
|
323
|
-
}
|
|
324
|
-
});
|
|
325
|
-
export {
|
|
326
|
-
Z as default
|
|
327
|
-
};
|