xyvcard-itsm-flow 0.0.5 → 0.0.6
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.
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
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
2
|
import "element-plus";
|
|
3
|
-
import { useRoute as
|
|
4
|
-
import { D as c, i as
|
|
5
|
-
const
|
|
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
6
|
key: 2,
|
|
7
7
|
class: "distance-left"
|
|
8
|
-
},
|
|
8
|
+
}, Z = /* @__PURE__ */ j({
|
|
9
9
|
__name: "index",
|
|
10
|
-
props: /* @__PURE__ */
|
|
10
|
+
props: /* @__PURE__ */ z({
|
|
11
11
|
task: {
|
|
12
12
|
type: Object,
|
|
13
13
|
default: () => {
|
|
@@ -18,21 +18,21 @@ const L = { key: 0 }, W = { key: 1 }, G = {
|
|
|
18
18
|
modelModifiers: {}
|
|
19
19
|
}),
|
|
20
20
|
emits: ["update:modelValue"],
|
|
21
|
-
setup(
|
|
21
|
+
setup(I, { expose: h }) {
|
|
22
22
|
c.parentIdBizDict.useValues(), c.orgIdBizDict.useValues();
|
|
23
|
-
const V =
|
|
23
|
+
const V = P(), g = I, f = v({
|
|
24
24
|
curPage: 1,
|
|
25
25
|
pageSize: 10,
|
|
26
26
|
applyId: V.query.applyId
|
|
27
|
-
}), n = v({}),
|
|
27
|
+
}), n = v({}), d = S(I, "modelValue"), k = v(), D = v({});
|
|
28
28
|
function N(l) {
|
|
29
29
|
l.mobileEncrypt = !l.mobileEncrypt;
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
changeModel: () =>
|
|
31
|
+
g.task.businessKey && O(), h({
|
|
32
|
+
changeModel: () => U()
|
|
33
33
|
});
|
|
34
|
-
function
|
|
35
|
-
f.value.applyId =
|
|
34
|
+
function O() {
|
|
35
|
+
f.value.applyId = g.task.businessKey, R.findById({ entrustId: f.value.applyId }).then(({ data: l }) => {
|
|
36
36
|
n.value = Object.assign(n.value, l), T.findList({ actionId: f.value.applyId }).then(({ data: m }) => {
|
|
37
37
|
n.value.entrustUser = [], m.results.forEach((o) => {
|
|
38
38
|
o.actionId == f.value.applyId && n.value.entrustUser.push({
|
|
@@ -42,20 +42,20 @@ const L = { key: 0 }, W = { key: 1 }, G = {
|
|
|
42
42
|
});
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
return
|
|
45
|
+
function U() {
|
|
46
|
+
return d.value && (d.value.selectActions = [
|
|
47
47
|
{ key: "true", value: "同意" },
|
|
48
48
|
{ key: "false", value: "不同意" }
|
|
49
|
-
],
|
|
49
|
+
], d.value.varName = "approved", d.value.module = "", d.value.module = K.MODULE_ITSMFLOW), new Promise((l, m) => {
|
|
50
50
|
var o;
|
|
51
51
|
(o = k.value) == null || o.validate((s) => {
|
|
52
|
-
s ? (
|
|
52
|
+
s ? (d.value && (d.value.comment = ""), l(!0)) : m(!1);
|
|
53
53
|
});
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
return (l, m) => {
|
|
57
|
-
const o =
|
|
58
|
-
return b(),
|
|
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
59
|
ref_key: "taskFormRef",
|
|
60
60
|
ref: k,
|
|
61
61
|
model: D.value,
|
|
@@ -66,7 +66,7 @@ const L = { key: 0 }, W = { key: 1 }, G = {
|
|
|
66
66
|
default: t(() => [
|
|
67
67
|
e(o, { span: 12 }, {
|
|
68
68
|
default: t(() => m[0] || (m[0] = [
|
|
69
|
-
|
|
69
|
+
A("div", { class: "title" }, "委托服务订单", -1)
|
|
70
70
|
])),
|
|
71
71
|
_: 1
|
|
72
72
|
})
|
|
@@ -251,7 +251,7 @@ const L = { key: 0 }, W = { key: 1 }, G = {
|
|
|
251
251
|
default: t(() => [
|
|
252
252
|
e(o, { span: 14 }, {
|
|
253
253
|
default: t(() => [
|
|
254
|
-
e(
|
|
254
|
+
e(B, {
|
|
255
255
|
stripe: "",
|
|
256
256
|
data: n.value.entrustUser,
|
|
257
257
|
style: { width: "100%" }
|
|
@@ -271,8 +271,8 @@ const L = { key: 0 }, W = { key: 1 }, G = {
|
|
|
271
271
|
label: l.$t("itsmFlowEntrustUser.idNo")
|
|
272
272
|
}, {
|
|
273
273
|
default: t((a) => [
|
|
274
|
-
a.row.mobileEncrypt ? (b(), E("span",
|
|
275
|
-
a.row.idNoIns ? (b(), E("span",
|
|
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
276
|
C(e(F, {
|
|
277
277
|
"icon-class": "close-eye",
|
|
278
278
|
onClick: (y) => N(a.row)
|
|
@@ -285,7 +285,7 @@ const L = { key: 0 }, W = { key: 1 }, G = {
|
|
|
285
285
|
}, null, 8, ["onClick"]), [
|
|
286
286
|
[$, a.row.mobileEncrypt]
|
|
287
287
|
])
|
|
288
|
-
])) :
|
|
288
|
+
])) : L("", !0)
|
|
289
289
|
]),
|
|
290
290
|
_: 1
|
|
291
291
|
}, 8, ["label"]),
|
|
@@ -323,5 +323,5 @@ const L = { key: 0 }, W = { key: 1 }, G = {
|
|
|
323
323
|
}
|
|
324
324
|
});
|
|
325
325
|
export {
|
|
326
|
-
|
|
326
|
+
Z as default
|
|
327
327
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -2676,7 +2676,7 @@ const xi = {
|
|
|
2676
2676
|
}
|
|
2677
2677
|
};
|
|
2678
2678
|
}
|
|
2679
|
-
}, Ri = /* @__PURE__ */ Object.assign({ "./views/itsm-flow-entrust/edit.vue": () => import("./edit-CWxy8_xc.mjs"), "./views/itsm-flow-entrust/index.vue": () => import("./index-C_jhIPZS.mjs") }), Ni = () => import("./index-
|
|
2679
|
+
}, Ri = /* @__PURE__ */ Object.assign({ "./views/itsm-flow-entrust/edit.vue": () => import("./edit-CWxy8_xc.mjs"), "./views/itsm-flow-entrust/index.vue": () => import("./index-C_jhIPZS.mjs") }), Ni = () => import("./index-DdDM4ocv.mjs"), Fi = {
|
|
2680
2680
|
install(e) {
|
|
2681
2681
|
Ds(Ri, 7), Ts(vs), ps("TaskItsmFlowEntrust", Ni), e.use(xi);
|
|
2682
2682
|
}
|