xyvcard-itsm-flow 0.0.17 → 0.0.19
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-DY017z-s.mjs → index-C7_kMdm5.mjs} +2 -2
- package/dist/{index-B7xhs2Eg.mjs → index-CITy8Hqm.mjs} +1 -1
- package/dist/{index-DVDOqO_3.mjs → index-Cgbv4Ijf.mjs} +16 -13
- package/dist/{index-CW4AhrRD.mjs → index-Cqw8Rz4q.mjs} +100 -95
- package/dist/{index-B7M3zSyM.mjs → index-CxyHtsq2.mjs} +2 -2
- package/dist/{index-C3OfA9Me.mjs → index-DB-P0VX0.mjs} +66 -60
- package/dist/{index-C0CZrR-1.mjs → index-DaSMRndr.mjs} +2 -2
- package/dist/{index-BuNBRcBE.mjs → index-DeerMT0Q.mjs} +73 -68
- 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 +1 -1
- 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/constant.d.ts +1 -0
- package/package.json +5 -5
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as ne, mergeModels as se, ref as p, useModel as de, reactive as
|
|
1
|
+
import { defineComponent as ne, mergeModels as se, ref as p, useModel as de, reactive as M, resolveComponent as i, createElementBlock as C, openBlock as g, Fragment as O, createVNode as l, createElementVNode as r, withCtx as t, unref as s, createBlock as re, createCommentVNode as ue, createTextVNode as V, toDisplayString as L, renderList as ie } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
3
|
import { useI18n as me } from "vue-i18n";
|
|
4
4
|
import { u as ce } from "./index-PafaMNgK.mjs";
|
|
5
|
-
import { I as pe, C as w, U as fe, e as ve, D as F, i as N } from "./index-
|
|
5
|
+
import { I as pe, C as w, U as fe, e as ve, D as F, i as N } from "./index-Cgbv4Ijf.mjs";
|
|
6
6
|
import { useUserStore as be } from "jmash-core";
|
|
7
|
-
import { E as
|
|
7
|
+
import { E as S } from "./el-message-DawVzOVQ.mjs";
|
|
8
8
|
const Ae = /* @__PURE__ */ ne({
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: /* @__PURE__ */ se({
|
|
@@ -18,24 +18,24 @@ const Ae = /* @__PURE__ */ ne({
|
|
|
18
18
|
modelModifiers: {}
|
|
19
19
|
}),
|
|
20
20
|
emits: ["update:modelValue"],
|
|
21
|
-
setup(
|
|
22
|
-
const { t: h } = me(),
|
|
21
|
+
setup(q, { expose: E }) {
|
|
22
|
+
const { t: h } = me(), U = be(), I = p(!1), D = p(), R = p([]), v = p([]), c = p([]), b = p([]), _ = new pe({
|
|
23
23
|
applyStatus: w.applyStatus.finished
|
|
24
24
|
});
|
|
25
|
-
|
|
26
|
-
const
|
|
25
|
+
_.useValues();
|
|
26
|
+
const y = new fe({
|
|
27
27
|
userType: w.userType.companyManager
|
|
28
28
|
});
|
|
29
|
-
|
|
29
|
+
y.useValues(), new ve({}).useValues(), F.orgIdBizDict.useValues();
|
|
30
30
|
function T() {
|
|
31
31
|
var e;
|
|
32
|
-
const a = (e =
|
|
32
|
+
const a = (e = U.user.userJobs[0]) == null ? void 0 : e.deptId;
|
|
33
33
|
if (!a) {
|
|
34
|
-
|
|
34
|
+
S.warning("当前用户缺少岗位信息,无法查询验收组长");
|
|
35
35
|
return;
|
|
36
36
|
}
|
|
37
37
|
N.findHeadman({
|
|
38
|
-
tenant:
|
|
38
|
+
tenant: U.user.tenant,
|
|
39
39
|
deptId: a,
|
|
40
40
|
jobCode: w.jobCode.groupLeader
|
|
41
41
|
}).then(({ data: n }) => {
|
|
@@ -44,16 +44,16 @@ const Ae = /* @__PURE__ */ ne({
|
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
T();
|
|
47
|
-
const A =
|
|
47
|
+
const A = q, j = p({
|
|
48
48
|
curPage: 1,
|
|
49
49
|
pageSize: 10,
|
|
50
50
|
acceptanceId: A.task.businessKey
|
|
51
|
-
}), f = de(
|
|
52
|
-
let o =
|
|
51
|
+
}), f = de(q, "modelValue"), B = p();
|
|
52
|
+
let o = M({
|
|
53
53
|
requestId: Math.random() * 10 + ""
|
|
54
54
|
});
|
|
55
55
|
function K() {
|
|
56
|
-
I.value = !0,
|
|
56
|
+
I.value = !0, D.value.clearFileList();
|
|
57
57
|
}
|
|
58
58
|
function P(a, e) {
|
|
59
59
|
c == null || c.value.splice(a, 1), b.value = b.value.filter(
|
|
@@ -67,7 +67,7 @@ const Ae = /* @__PURE__ */ ne({
|
|
|
67
67
|
};
|
|
68
68
|
c == null || c.value.push(e), c.value = [...new Set(c.value)], b.value.push(e);
|
|
69
69
|
}
|
|
70
|
-
const W =
|
|
70
|
+
const W = M({
|
|
71
71
|
orderNo: [
|
|
72
72
|
{
|
|
73
73
|
required: !0,
|
|
@@ -87,13 +87,13 @@ const Ae = /* @__PURE__ */ ne({
|
|
|
87
87
|
changeModel: () => Y()
|
|
88
88
|
});
|
|
89
89
|
function J(a) {
|
|
90
|
-
const e =
|
|
90
|
+
const e = _.values.find(
|
|
91
91
|
(n) => n.key === a
|
|
92
92
|
);
|
|
93
93
|
o.contractName = (e == null ? void 0 : e.contractName) ?? "", o.contractNo = (e == null ? void 0 : e.contractNo) ?? "", o.serviceOrg = (e == null ? void 0 : e.serviceOrg) ?? "", o.entrustName = (e == null ? void 0 : e.entrustName) ?? "", o.serviceContent = (e == null ? void 0 : e.workContent) ?? "";
|
|
94
94
|
}
|
|
95
95
|
function G() {
|
|
96
|
-
N.findFilesList({ actionId:
|
|
96
|
+
N.findFilesList({ actionId: j.value.acceptanceId }).then(({ data: a }) => {
|
|
97
97
|
c.value = a.results, b.value = (a.results || []).map((e) => ({
|
|
98
98
|
fileName: e.fileName,
|
|
99
99
|
fileId: e.fileId,
|
|
@@ -102,13 +102,13 @@ const Ae = /* @__PURE__ */ ne({
|
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
104
|
function Q() {
|
|
105
|
-
N.findById({ acceptanceId:
|
|
105
|
+
N.findById({ acceptanceId: j.value.acceptanceId }).then(({ data: a }) => {
|
|
106
106
|
Object.assign(o, a), v.value = typeof a.membersId == "string" ? a.membersId.split(",") || [] : [];
|
|
107
107
|
}), G();
|
|
108
108
|
}
|
|
109
109
|
function X() {
|
|
110
|
-
|
|
111
|
-
const e =
|
|
110
|
+
R.value = v.value.map((a) => {
|
|
111
|
+
const e = y.values.find(
|
|
112
112
|
(n) => n.key === a
|
|
113
113
|
);
|
|
114
114
|
return {
|
|
@@ -123,22 +123,19 @@ const Ae = /* @__PURE__ */ ne({
|
|
|
123
123
|
{ key: "false", value: "不同意" }
|
|
124
124
|
], f.value.varName = "approved", f.value.module = "", f.value.module = w.MODULE_ITSMFLOW), new Promise((a, e) => {
|
|
125
125
|
var n;
|
|
126
|
-
(n =
|
|
126
|
+
(n = B.value) == null || n.validate((m) => {
|
|
127
127
|
if (m) {
|
|
128
128
|
if (f.value) {
|
|
129
129
|
if (f.value.comment = "", X(), v.value.length === 0) {
|
|
130
|
-
|
|
130
|
+
S.warning(h("itsmFlowAcceptance.membersRequired"));
|
|
131
131
|
return;
|
|
132
132
|
}
|
|
133
133
|
o.requestId = Math.random() * 10 + "", N.save({
|
|
134
134
|
...o,
|
|
135
|
-
members:
|
|
135
|
+
members: R.value,
|
|
136
136
|
files: b.value
|
|
137
137
|
}).then((u) => {
|
|
138
|
-
u.status === 200 ? a(!0) : (
|
|
139
|
-
message: "保存失败,请联系管理员!",
|
|
140
|
-
type: "error"
|
|
141
|
-
}), e(!1));
|
|
138
|
+
u.status === 200 ? a(!0) : e(!1);
|
|
142
139
|
});
|
|
143
140
|
}
|
|
144
141
|
} else
|
|
@@ -148,7 +145,7 @@ const Ae = /* @__PURE__ */ ne({
|
|
|
148
145
|
}
|
|
149
146
|
return (a, e) => {
|
|
150
147
|
const n = i("el-col"), m = i("el-input"), u = i("el-form-item"), k = i("jmash-select"), Z = i("jmash-dict-select"), $ = i("el-row"), x = i("el-button"), ee = i("CircleClose"), le = i("el-icon"), ae = i("jmash-enum-radio"), te = i("el-form"), oe = i("jmash-multi-upload");
|
|
151
|
-
return g(), C(
|
|
148
|
+
return g(), C(O, null, [
|
|
152
149
|
l(n, { span: 24 }, {
|
|
153
150
|
default: t(() => e[12] || (e[12] = [
|
|
154
151
|
r("div", { class: "title" }, "山西云时代技术有限公司大数据中心分公司项目验收书", -1)
|
|
@@ -158,7 +155,7 @@ const Ae = /* @__PURE__ */ ne({
|
|
|
158
155
|
}),
|
|
159
156
|
l(te, {
|
|
160
157
|
ref_key: "taskFormRef",
|
|
161
|
-
ref:
|
|
158
|
+
ref: B,
|
|
162
159
|
model: s(o),
|
|
163
160
|
"label-width": "150px",
|
|
164
161
|
rules: W,
|
|
@@ -214,7 +211,7 @@ const Ae = /* @__PURE__ */ ne({
|
|
|
214
211
|
modelValue: s(o).orderNo,
|
|
215
212
|
"onUpdate:modelValue": e[2] || (e[2] = (d) => s(o).orderNo = d),
|
|
216
213
|
placeholder: a.$t("itsmFlowAcceptance.orderIdRequired"),
|
|
217
|
-
data: s(
|
|
214
|
+
data: s(_).values,
|
|
218
215
|
clearable: "",
|
|
219
216
|
filterable: "",
|
|
220
217
|
class: "w-full",
|
|
@@ -325,7 +322,7 @@ const Ae = /* @__PURE__ */ ne({
|
|
|
325
322
|
modelValue: v.value,
|
|
326
323
|
"onUpdate:modelValue": e[7] || (e[7] = (d) => v.value = d),
|
|
327
324
|
placeholder: a.$t("itsmFlowAcceptance.membersRequired"),
|
|
328
|
-
data: s(
|
|
325
|
+
data: s(y).values,
|
|
329
326
|
clearable: "",
|
|
330
327
|
multiple: "",
|
|
331
328
|
filterable: "",
|
|
@@ -353,7 +350,7 @@ const Ae = /* @__PURE__ */ ne({
|
|
|
353
350
|
onClick: K
|
|
354
351
|
}, {
|
|
355
352
|
default: t(() => [
|
|
356
|
-
V(
|
|
353
|
+
V(L(a.$t("common.uploadFiles")), 1)
|
|
357
354
|
]),
|
|
358
355
|
_: 1
|
|
359
356
|
}, 8, ["icon"])
|
|
@@ -362,15 +359,15 @@ const Ae = /* @__PURE__ */ ne({
|
|
|
362
359
|
}, 8, ["label"]),
|
|
363
360
|
l(u, null, {
|
|
364
361
|
default: t(() => [
|
|
365
|
-
(g(!0), C(
|
|
366
|
-
key:
|
|
362
|
+
(g(!0), C(O, null, ie(c.value, (d, z) => (g(), C("div", {
|
|
363
|
+
key: z,
|
|
367
364
|
class: "files-list"
|
|
368
365
|
}, [
|
|
369
|
-
V(
|
|
366
|
+
V(L(d.fileName) + " ", 1),
|
|
370
367
|
l(le, {
|
|
371
368
|
size: "16",
|
|
372
369
|
class: "icon-right",
|
|
373
|
-
onClick: (ge) => P(
|
|
370
|
+
onClick: (ge) => P(z, d)
|
|
374
371
|
}, {
|
|
375
372
|
default: t(() => [
|
|
376
373
|
l(ee)
|
|
@@ -504,7 +501,7 @@ const Ae = /* @__PURE__ */ ne({
|
|
|
504
501
|
e[15] || (e[15] = r("div", { class: "with-end" }, "注:验收书编号在验收通过后自动生成。", -1)),
|
|
505
502
|
l(oe, {
|
|
506
503
|
ref_key: "uploadRef",
|
|
507
|
-
ref:
|
|
504
|
+
ref: D,
|
|
508
505
|
modelValue: I.value,
|
|
509
506
|
"onUpdate:modelValue": e[11] || (e[11] = (d) => I.value = d),
|
|
510
507
|
onUploadFileList: H
|
|
@@ -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)
|
package/dist/index.mjs
CHANGED
|
@@ -2697,7 +2697,7 @@ const Wi = {
|
|
|
2697
2697
|
}
|
|
2698
2698
|
};
|
|
2699
2699
|
}
|
|
2700
|
-
}, Pi = /* @__PURE__ */ Object.assign({ "./views/itsm-flow-acceptance-info/index.vue": () => import("./index-
|
|
2700
|
+
}, Pi = /* @__PURE__ */ Object.assign({ "./views/itsm-flow-acceptance-info/index.vue": () => import("./index-DB-P0VX0.mjs"), "./views/itsm-flow-acceptance-info/info.vue": () => import("./info-l0eP5Tw1.mjs"), "./views/itsm-flow-acceptance/edit.vue": () => import("./edit-Vw2XQ1u6.mjs"), "./views/itsm-flow-acceptance/index.vue": () => import("./index-C7_kMdm5.mjs"), "./views/itsm-flow-entrust-info/index.vue": () => import("./index-DeerMT0Q.mjs"), "./views/itsm-flow-entrust-info/info.vue": () => import("./info-BbMCDfFR.mjs"), "./views/itsm-flow-entrust/edit.vue": () => import("./edit-DdzFTqhg.mjs"), "./views/itsm-flow-entrust/index.vue": () => import("./index-DaSMRndr.mjs"), "./views/itsm-flow-reckoning-info/index.vue": () => import("./index-Cqw8Rz4q.mjs"), "./views/itsm-flow-reckoning-info/info.vue": () => import("./info-8NydJYfB.mjs"), "./views/itsm-flow-reckoning/edit.vue": () => import("./edit-DIh0NEYf.mjs"), "./views/itsm-flow-reckoning/index.vue": () => import("./index-CxyHtsq2.mjs") }), Wt = () => import("./index-Dooa5UH_.mjs"), Fi = () => import("./index-tnTugnqa.mjs"), Pt = () => import("./index-BI1uXq1f.mjs"), Ii = () => import("./index-g0KiWDPW.mjs"), Ft = () => import("./index-CITy8Hqm.mjs"), Ci = () => import("./index-7_pEehBt.mjs"), Ei = {
|
|
2701
2701
|
install(e) {
|
|
2702
2702
|
Os(Pi, 7), Rs(Ts), H("TaskItsmFlowEntrust", Wt), H("TaskItsmFlowEntrustEdit", Fi), H("TaskItsmFlowEntrustView", Wt), H("TaskItsmFlowAcceptance", Pt), H(
|
|
2703
2703
|
"TaskItsmFlowAcceptanceEdit",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as K, mergeModels as O, ref as F, useModel as A, computed as P, resolveComponent as p, createBlock as j, openBlock as b, withCtx as t, createVNode as e, createElementVNode as n, createTextVNode as a, toDisplayString as s, unref as v, createElementBlock as
|
|
1
|
+
import { defineComponent as K, mergeModels as O, ref as F, useModel as A, computed as P, resolveComponent as p, createBlock as j, openBlock as b, withCtx as t, createVNode as e, createElementVNode as n, createTextVNode as a, toDisplayString as s, unref as v, createElementBlock as g, createCommentVNode as M, withDirectives as I, vShow as $ } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
3
|
import { i as z, t as L, a as S } from "./common-Cwl5jzlM.mjs";
|
|
4
|
-
import { D as
|
|
4
|
+
import { D as w, b as q } from "./index-Cgbv4Ijf.mjs";
|
|
5
5
|
const T = { key: 0 }, G = { key: 1 }, H = {
|
|
6
6
|
key: 2,
|
|
7
7
|
class: "distance-left"
|
|
@@ -19,8 +19,10 @@ const T = { key: 0 }, G = { key: 1 }, H = {
|
|
|
19
19
|
}),
|
|
20
20
|
emits: ["update:modelValue"],
|
|
21
21
|
setup(k) {
|
|
22
|
-
const
|
|
23
|
-
|
|
22
|
+
const E = F(), f = A(k, "modelValue"), r = F(
|
|
23
|
+
{}
|
|
24
|
+
), _ = k;
|
|
25
|
+
w.orgIdBizDict.useValues();
|
|
24
26
|
const R = P(() => (r.value.entrustUser || []).map((l) => ({
|
|
25
27
|
cost: typeof l.cost == "number" ? l.cost : 0,
|
|
26
28
|
duration: typeof l.duration == "number" ? l.duration : 0
|
|
@@ -61,7 +63,7 @@ const T = { key: 0 }, G = { key: 1 }, H = {
|
|
|
61
63
|
}),
|
|
62
64
|
e(D, {
|
|
63
65
|
ref_key: "itsmFlowReckoningFormRef",
|
|
64
|
-
ref:
|
|
66
|
+
ref: E,
|
|
65
67
|
"label-width": "150px",
|
|
66
68
|
class: "custom-table-form custom-form"
|
|
67
69
|
}, {
|
|
@@ -113,7 +115,9 @@ const T = { key: 0 }, G = { key: 1 }, H = {
|
|
|
113
115
|
prop: "entrustName"
|
|
114
116
|
}, {
|
|
115
117
|
default: t(() => [
|
|
116
|
-
a(s(v(
|
|
118
|
+
a(s(v(w).projectNameDict.getDictValue(
|
|
119
|
+
r.value.entrustName
|
|
120
|
+
)), 1)
|
|
117
121
|
]),
|
|
118
122
|
_: 1
|
|
119
123
|
}, 8, ["label"])
|
|
@@ -132,7 +136,7 @@ const T = { key: 0 }, G = { key: 1 }, H = {
|
|
|
132
136
|
prop: "serviceOrg"
|
|
133
137
|
}, {
|
|
134
138
|
default: t(() => [
|
|
135
|
-
a(s(v(
|
|
139
|
+
a(s(v(w).orgIdBizDict.getValue(r.value.serviceOrg)), 1)
|
|
136
140
|
]),
|
|
137
141
|
_: 1
|
|
138
142
|
}, 8, ["label"])
|
|
@@ -243,19 +247,19 @@ const T = { key: 0 }, G = { key: 1 }, H = {
|
|
|
243
247
|
label: l.$t("itsmFlowEntrustUser.idNo")
|
|
244
248
|
}, {
|
|
245
249
|
default: t((o) => [
|
|
246
|
-
o.row.mobileEncrypt ? (b(),
|
|
247
|
-
o.row.idNoIns ? (b(),
|
|
248
|
-
|
|
250
|
+
o.row.mobileEncrypt ? (b(), g("span", G, s(o.row.idNo), 1)) : (b(), g("span", T, s(o.row.idNoIns), 1)),
|
|
251
|
+
o.row.idNoIns ? (b(), g("span", H, [
|
|
252
|
+
I(e(N, {
|
|
249
253
|
"icon-class": "close-eye",
|
|
250
254
|
onClick: (B) => y(o.row)
|
|
251
255
|
}, null, 8, ["onClick"]), [
|
|
252
|
-
[
|
|
256
|
+
[$, !o.row.mobileEncrypt]
|
|
253
257
|
]),
|
|
254
|
-
|
|
258
|
+
I(e(N, {
|
|
255
259
|
"icon-class": "eye-open",
|
|
256
260
|
onClick: (B) => y(o.row)
|
|
257
261
|
}, null, 8, ["onClick"]), [
|
|
258
|
-
[
|
|
262
|
+
[$, o.row.mobileEncrypt]
|
|
259
263
|
])
|
|
260
264
|
])) : M("", !0)
|
|
261
265
|
]),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as h, mergeModels as K, ref as F, useModel as j, resolveComponent as p, createBlock as z, openBlock as v, withCtx as t, createVNode as e, createElementVNode as o, createTextVNode as r, toDisplayString as a, unref as w, createElementBlock as y, createCommentVNode as M, withDirectives as C, vShow as V } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
|
-
import { D as c, a as S, b as A } from "./index-
|
|
3
|
+
import { D as c, a as S, b as A } from "./index-Cgbv4Ijf.mjs";
|
|
4
4
|
const R = { key: 0 }, q = { key: 1 }, L = {
|
|
5
5
|
key: 2,
|
|
6
6
|
class: "distance-left"
|